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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/frames/subframe-load-crash-main.html

Issue 1475863005: [Async][WIP] Call FrameLoader::checkCompleted() asynchronously to avoid sync body.onload() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 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
OLDNEW
1 <html> 1 <html>
2 <object data="resources/subframe-load-crash.svg" id="root" onload="runTest()"></ object> 2 <object data="resources/subframe-load-crash.svg" id="root" onload="runTest()"></ object>
3 <script> 3 <script>
4 if (window.testRunner) { 4 if (window.testRunner) {
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 testRunner.waitUntilDone(); 6 testRunner.waitUntilDone();
7 } 7 }
8 function runTest() { 8 function runTest() {
9 root = document.getElementById('root').contentDocument; 9 root = document.getElementById('root').contentDocument;
10 root.addEventListener('load', function() { document.open(); document.write(" PASS"); document.close(); }, 1); 10 root.addEventListener('load', function() {
11 document.open();
12 document.write("PASS");
13 document.close();
14 if (window.testRunner) {
15 testRunner.notifyDone();
16 }}, 1);
11 setTimeout(function() { 17 setTimeout(function() {
12 root.getElementById('test').appendChild(document.createElement('iframe') ); 18 root.getElementById('test').appendChild(document.createElement('iframe') );
13 if (window.testRunner)
14 testRunner.notifyDone();
15 }, 0); 19 }, 0);
16 } 20 }
17 </script> 21 </script>
18 </html> 22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698