Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / svg / change-id-with-pending-resources.html
blobf0bd02249ae4b8e64986109a343422216da51f53
1 <script>
2 // Test passes if it does not crash.
3 // Note: this test is located under Layouttests/http in order to load an external
4 // document and modify it without hitting security restrictions.
5 if (window.testRunner) {
6 testRunner.waitUntilDone();
7 testRunner.dumpAsText();
10 function crash() {
11 q = document.getElementById('root').contentDocument;
12 document.write("");
13 q.getElementById('d').id = "maskedGradient";
14 document.write("If this text is visible and the test did not crash, this test passes");
15 document.close();
16 if (window.testRunner)
17 testRunner.notifyDone();
19 </script>
20 <object data="http://127.0.0.1:8000/svg/resources/svg-use-defs-rect.svg" id="root" onload="crash()"/>