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

Side by Side Diff: LayoutTests/fast/dom/HTMLScriptElement/append-child-adopt-node-error-crash.html

Issue 532643002: Move pending async script to the correct resolved document. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update expected outputs. Created 6 years, 3 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <iframe src=resources/append-child-adopt-node-error-frame.html></iframe> 2 <iframe src=resources/append-child-adopt-node-error-frame.html></iframe>
3 <iframe src=resources/append-child-adopt-node-error-frame.svg></iframe> 3 <iframe src=resources/append-child-adopt-node-error-frame.svg></iframe>
4 <script> 4 <script>
5 testRunner.waitUntilDone(); 5 testRunner.waitUntilDone();
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 7
8 // Don't use js-test.js because this bug is about a failing load of an async
9 // <script> of a frame document being moved to its parent document.
10 // Hence it makes sense to keep this small and easy to debug when regress.
11 console.log("PASS unless crash.");
12
8 var count = document.querySelectorAll("iframe").length; 13 var count = document.querySelectorAll("iframe").length;
9 14
10 function done() { 15 function done() {
11 count--; 16 if (--count)
12 if (count)
13 return; 17 return;
14 // Don't use js-test.js because this bug is about a failing load of an async
15 // <script> of a frame document being moved to its parent document.
16 // Hence it makes sense to keep this small and easy to debug when regress.
17 console.log("PASS unless crash.");
18 testRunner.notifyDone(); 18 testRunner.notifyDone();
19 } 19 }
20 </script> 20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698