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

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

Issue 248013002: Elaborate error handling on ScriptLoader::finishLoading() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Landing Created 6 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLScriptElement/adopt-node-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <iframe src=resources/append-child-adopt-node-frame.html></iframe> 2 <iframe src=resources/adopt-node-frame.html></iframe>
3 <iframe src=resources/append-child-adopt-node-frame.svg></iframe> 3 <iframe src=resources/adopt-node-frame.svg></iframe>
4 <script> 4 <script>
5 testRunner.waitUntilDone(); 5 testRunner.waitUntilDone();
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 7
8 var count = document.querySelectorAll("iframe").length; 8 var count = document.querySelectorAll("iframe").length;
9 9
10 function done() { 10 function done(childDocument) {
11 document.adoptNode(childDocument.querySelector("script"));
11 count--; 12 count--;
12 if (count) 13 if (count)
13 return; 14 return;
14 // Don't use js-test-pre.js because this bug is about <script> loading and 15 // Don't use js-test-pre.js because this bug is about <script> loading and
15 // it makes sense to keep this small and easy to debug when regress. 16 // it makes sense to keep this small and easy to debug when regress.
16 console.log("PASS unless crash."); 17 console.log("PASS unless crash.");
17 testRunner.notifyDone(); 18 testRunner.notifyDone();
18 } 19 }
19 </script> 20 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLScriptElement/adopt-node-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698