OLD | NEW |
(Empty) | |
| 1 Unittests for private scripts. |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 This test needs window.internals. |
| 7 PASS internals.return123() is 123 |
| 8 PASS internals.echoInteger(111) is 111 |
| 9 PASS internals.echoString("foo") is "foo" |
| 10 PASS internals.addInteger(111, 222) is 333 |
| 11 PASS internals.addString("foo", "bar") is "foobar" |
| 12 PASS internals.getIntegerFromPrototype() is 0 |
| 13 PASS internals.getIntegerFromPrototype() is 123 |
| 14 PASS internals.getIntegerFromDocument(document) is 0 |
| 15 PASS internals.getIntegerFromDocument(document) is 123 |
| 16 PASS internals.firstChild(node1) is node2 |
| 17 PASS internals.nextSibling(node2) is node3 |
| 18 PASS internals.nextSibling(node3) is node4 |
| 19 PASS internals.nextSibling(node4) is null |
| 20 PASS internals.innerHTML(node5) is "" |
| 21 PASS internals.innerHTML(node5) is "<div>foo</div>" |
| 22 PASS internals.innerHTML(node6) is "foo" |
| 23 PASS internals.innerHTML(node7) is "" |
| 24 PASS internals.innerHTML(node7) is "clicked" |
| 25 PASS successfullyParsed is true |
| 26 |
| 27 TEST COMPLETE |
| 28 |
OLD | NEW |