Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / loader / resources / document-destruction-within-unload-iframe.html
1 <html>
2 <body>
3 <script>
4 function runTest() {
5     var test = document.getElementById('root').contentDocument;
6     test.firstChild.setAttribute('onunload', "parent.clearUs();");
7     location.reload();
8 }
9
10 function clearUs() {
11     document.write();
12     parent.done();
13 }
14 </script>
15 <object data="does_not_exist"></object>
16 <object data="document-destruction-within-unload.svg" id="root" onload="runTest();"></object>
17 </body>
18 </html>