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