OLD | NEW |
1 This test checks behavior of Node.contains. | 1 This test checks behavior of Node.contains. |
2 | 2 |
3 [test1 [test 2]] | 3 [test1 [test 2]] |
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
5 | 5 |
6 | 6 |
7 PASS typeof document.contains is "function" | 7 PASS typeof document.contains is "function" |
8 PASS test1.contains(test2) is true | 8 PASS test1.contains(test2) is true |
9 PASS test1.contains(test1TextChild) is true | 9 PASS test1.contains(test1TextChild) is true |
10 PASS document.contains(test1) is true | 10 PASS document.contains(test1) is true |
11 PASS document.contains(test1TextChild) is true | 11 PASS document.contains(test1TextChild) is true |
12 PASS document.contains(document) is true | 12 PASS document.contains(document) is true |
13 PASS test1.contains(test1) is true | 13 PASS test1.contains(test1) is true |
14 PASS test1TextChild.contains(test1TextChild) is true | 14 PASS test1TextChild.contains(test1TextChild) is true |
15 PASS test1.contains(123) is false | 15 PASS test1.contains(123) threw exception TypeError: Failed to execute 'contains'
on 'Node': parameter 1 is not of type 'Node'.. |
16 PASS test1.contains(null) is false | 16 PASS test1.contains(null) is false |
17 PASS document.contains(iframe) is false | 17 PASS document.contains(iframe) is false |
18 PASS iframe.contains(iframe) is true | 18 PASS iframe.contains(iframe) is true |
19 iframe is now in document | 19 iframe is now in document |
20 PASS document.contains(iframe) is true | 20 PASS document.contains(iframe) is true |
21 PASS document.contains(iframeDoc) is false | 21 PASS document.contains(iframeDoc) is false |
22 PASS iframeDoc.contains(iframeBody) is true | 22 PASS iframeDoc.contains(iframeBody) is true |
23 PASS document.contains(iframeBody) is false | 23 PASS document.contains(iframeBody) is false |
24 PASS successfullyParsed is true | 24 PASS successfullyParsed is true |
25 | 25 |
26 TEST COMPLETE | 26 TEST COMPLETE |
27 | 27 |
OLD | NEW |