mediawiki-extensions-Visual.../modules/ve/test
Roan Kattouw 43ea9a42d8 Use duck typing instead of instanceof Node
instanceof Node doesn't work with nodes generated by the iframe hack
for some reason. Instead, use duck typing by checking for a .cloneNode
method.

>>> ve.createDocumentFromHTML('<body><tt>Foo</tt></body>').body.childNodes[0]
<tt>Foo</tt>
>>> ve.createDocumentFromHTML('<body><tt>Foo</tt></body>').body.childNodes[0] instanceof Node
false

Change-Id: I1ea1253bd204d1070cd01b666b8a90f1cb7e5e14
2013-04-29 17:24:41 -07:00
..
actions The resurrection 2013-04-22 12:50:23 +01:00
ce Added unit tests for getRelativeOffset method 2013-04-22 14:12:56 -07:00
dm Create meta item for defaultsort 2013-04-29 15:33:37 +01:00
init Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
example.png Test: Fix 404 errors in example images. 2013-04-02 23:52:02 +02:00
index.php Create meta item for defaultsort 2013-04-29 15:33:37 +01:00
ve.BranchNode.test.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.Document.test.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.example.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.Factory.test.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.LeafNode.test.js Use static.name once for ce and dm nodes 2013-03-07 17:19:39 -08:00
ve.Node.test.js Use static.name once for ce and dm nodes 2013-03-07 17:19:39 -08:00
ve.qunit.js Use duck typing instead of instanceof Node 2013-04-29 17:24:41 -07:00
ve.Range.test.js Minor comment and licence fixes 2013-03-19 20:54:01 +00:00
ve.test.js Stop dropping properties in copyObject/copyArray 2013-04-26 15:41:56 -07:00
ve.Trigger.test.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00