| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../js/resources/js-test-pre.js"></script> | 2 <script src="../../../resources/js-test.js"></script> |
| 3 <script src="testutils.js"></script> | 3 <script src="testutils.js"></script> |
| 4 <body> | 4 <body> |
| 5 <script> | 5 <script> |
| 6 description('Tests that an element is not upgraded after being moved to ' + | 6 description('Tests that an element is not upgraded after being moved to ' + |
| 7 'a different document, then destroyed'); | 7 'a different document, then destroyed'); |
| 8 | 8 |
| 9 jsTestIsAsync = true; | 9 jsTestIsAsync = true; |
| 10 | 10 |
| 11 withFrame(function (frame) { | 11 withFrame(function (frame) { |
| 12 // Create an upgrade candidate. Don't wrap it. | 12 // Create an upgrade candidate. Don't wrap it. |
| (...skipping 14 matching lines...) Expand all Loading... |
| 27 document.register('x-a', {prototype: proto}); | 27 document.register('x-a', {prototype: proto}); |
| 28 | 28 |
| 29 testPassed('Did not crash.'); | 29 testPassed('Did not crash.'); |
| 30 | 30 |
| 31 frame.remove(); | 31 frame.remove(); |
| 32 finishJSTest(); | 32 finishJSTest(); |
| 33 }); | 33 }); |
| 34 | 34 |
| 35 successfullyParsed = true; | 35 successfullyParsed = true; |
| 36 </script> | 36 </script> |
| OLD | NEW |