| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <!-- | 3 <!-- |
| 4 Test adapted from https://github.com/operasoftware/presto-testo/blob/master/core
/standards/acid3/individual/006a.html | 4 Test adapted from https://github.com/operasoftware/presto-testo/blob/master/core
/standards/acid3/individual/006a.html |
| 5 --> | 5 --> |
| 6 <head> | 6 <head> |
| 7 <title>TreeWalker: walking-outside-a-tree</title> | 7 <title>TreeWalker: walking-outside-a-tree</title> |
| 8 <script src="../../../../resources/testharness.js"></script> | 8 <script src="../../../../resources/testharness.js"></script> |
| 9 <script src="../../../../resources/testharnessreport.js"></script> | 9 <script src="../../../../resources/testharnessreport.js"></script> |
| 10 <script src="traversal-support.js"></script> | 10 <script src="traversal-support.js"></script> |
| 11 <link rel="stylesheet" href="../../../../resources/testharness.css"> | |
| 12 <div id=log></div> | 11 <div id=log></div> |
| 13 </head> | 12 </head> |
| 14 <body> | 13 <body> |
| 15 <p>[Acid3 - Test 006a] walking outside a tree</p> | 14 <p>[Acid3 - Test 006a] walking outside a tree</p> |
| 16 <script> | 15 <script> |
| 17 test(function () { | 16 test(function () { |
| 18 // test 6: walking outside a tree | 17 // test 6: walking outside a tree |
| 19 var doc = document.createElement("div"); | 18 var doc = document.createElement("div"); |
| 20 var head = document.createElement('head'); | 19 var head = document.createElement('head'); |
| 21 var title = document.createElement('title'); | 20 var title = document.createElement('title'); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 32 doc.appendChild(p); | 31 doc.appendChild(p); |
| 33 assert_equals(w.previousNode(), title, "failed to handle regrafting correctl
y"); | 32 assert_equals(w.previousNode(), title, "failed to handle regrafting correctl
y"); |
| 34 p.appendChild(body); | 33 p.appendChild(body); |
| 35 assert_equals(w.nextNode(), p, "couldn't retrace steps"); | 34 assert_equals(w.nextNode(), p, "couldn't retrace steps"); |
| 36 assert_equals(w.nextNode(), body, "couldn't step back into root"); | 35 assert_equals(w.nextNode(), body, "couldn't step back into root"); |
| 37 assert_equals(w.previousNode(), null, "root didn't retake its rootish positi
on"); | 36 assert_equals(w.previousNode(), null, "root didn't retake its rootish positi
on"); |
| 38 }, "walking outside a tree"); | 37 }, "walking outside a tree"); |
| 39 </script> | 38 </script> |
| 40 </body> | 39 </body> |
| 41 </html> | 40 </html> |
| OLD | NEW |