Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / svg / change-id-with-pending-resources.html
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();
8     }
9
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();
18     }
19 </script>
20 <object data="http://127.0.0.1:8000/svg/resources/svg-use-defs-rect.svg" id="root" onload="crash()"/>