Changeset 21007
- Timestamp:
- 10/09/08 00:17:57 (3 months ago)
- Location:
- lang/cplusplus/llv8call/trunk
- Files:
-
- 3 modified
-
ext/libxml/node.cc (modified) (1 diff)
-
ext/libxml/node.h (modified) (2 diffs)
-
t/070_libxml/02_dom.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/cplusplus/llv8call/trunk/ext/libxml/node.cc
r21002 r21007 35 35 ENDSUBMODULE 36 36 37 // REST: 1 4/5037 // REST: 15/50 38 38 39 // TODO: node.isSameNode40 39 // TODO: node.isEqual 41 40 // TODO: node.nodeValue -
lang/cplusplus/llv8call/trunk/ext/libxml/node.h
r21002 r21007 220 220 END 221 221 222 FUNCTION(isSameNode) 223 ARG_COUNT(1); 224 EXTERNAL_NODE(); 225 ARG_node(an, 0); 226 return an == node ? True() : False(); 227 END 228 222 229 static inline void setupNodeIM(Handle<ObjectTemplate> OBJECT_TEMPLATE) { 223 230 BIND_IM("nodeName", nodeName); … … 235 242 BIND_IM("nextSibling", nextSibling); 236 243 BIND_IM("previousSibling", previousSibling); 244 BIND_IM("isSameNode", isSameNode); 237 245 INTERNALCOUNT(2); 238 246 } -
lang/cplusplus/llv8call/trunk/t/070_libxml/02_dom.js
r21003 r21007 1 1 require('t/util.js'); 2 2 3 plan({tests:3 5});3 plan({tests:37}); 4 4 5 5 check_lib("org.coderepos.libxml"); … … 142 142 }); 143 143 144 test(function () { 145 is(foo.isSameNode(foo), true, 'node.isSameNode()'); 146 is(foo.isSameNode(bar), false, 'node.isSameNode()'); 147 }); 148 144 149 doc.close(); 145 150
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)