Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: LayoutTests/fast/loader/resources/document-destruction-within-unload-iframe.html

Issue 561813003: Prepare blink to unify definitions of load completion (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add document.close() to scroll-left-while-loading.html Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <body> 2 <body>
3 <script> 3 <script>
4 function runTest() { 4 function runTest() {
5 var test = document.getElementById('root').contentDocument; 5 var test = document.getElementById('root').contentDocument;
6 test.firstChild.setAttribute('onunload', "parent.clearUs();"); 6 test.firstChild.setAttribute('onunload', "parent.clearUs();");
7 location.reload(); 7 location.reload();
8 } 8 }
9 9
10 function clearUs() { 10 function clearUs() {
11 document.write(); 11 document.write();
12 parent.done(); 12 parent.done();
13 document.close();
13 } 14 }
14 </script> 15 </script>
15 <object data="does_not_exist"></object> 16 <object data="does_not_exist"></object>
16 <object data="document-destruction-within-unload.svg" id="root" onload="runTest( );"></object> 17 <object data="document-destruction-within-unload.svg" id="root" onload="runTest( );"></object>
17 </body> 18 </body>
18 </html> 19 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/loader/open-in-srcdoc-unload.html ('k') | LayoutTests/fast/loader/resources/external-script-URL-location.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698