OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../fast/js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 | 7 |
8 <canvas> | 8 <canvas> |
9 <div id="node1"> | 9 <div id="node1"> |
10 <div id="node2"> | 10 <div id="node2"> |
11 </canvas> | 11 </canvas> |
12 | 12 |
13 <script> | 13 <script> |
14 document.getElementById("node2").setAttribute("aria-label", "Label"); | 14 document.getElementById("node2").setAttribute("aria-label", "Label"); |
15 document.implementation.createDocument("", "", null).adoptNode(node1); | 15 document.implementation.createDocument("", "", null).adoptNode(node1); |
16 | 16 |
17 gc(); | 17 gc(); |
18 | 18 |
19 alert("This test makes sure that adopting a node with an AccessibilityObject int
o a new document doesn't crash. Test passed."); | 19 alert("This test makes sure that adopting a node with an AccessibilityObject int
o a new document doesn't crash. Test passed."); |
20 | 20 |
21 </script> | 21 </script> |
22 <script src="../fast/js/resources/js-test-post.js"></script> | 22 <script src="../fast/js/resources/js-test-post.js"></script> |
23 </body> | 23 </body> |
24 </html> | 24 </html> |
OLD | NEW |