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

Unified 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, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLScriptElement/adopt-node-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/HTMLScriptElement/adopt-node-crash.html
diff --git a/LayoutTests/fast/dom/HTMLScriptElement/append-child-adopt-node-crash.html b/LayoutTests/fast/dom/HTMLScriptElement/adopt-node-crash.html
similarity index 67%
copy from LayoutTests/fast/dom/HTMLScriptElement/append-child-adopt-node-crash.html
copy to LayoutTests/fast/dom/HTMLScriptElement/adopt-node-crash.html
index c7a049d8844fc2577d3a7dcf81da023d45126aa2..78b9276f995aac2af095a9916b15f4793f8da267 100644
--- a/LayoutTests/fast/dom/HTMLScriptElement/append-child-adopt-node-crash.html
+++ b/LayoutTests/fast/dom/HTMLScriptElement/adopt-node-crash.html
@@ -1,13 +1,14 @@
<!DOCTYPE html>
-<iframe src=resources/append-child-adopt-node-frame.html></iframe>
-<iframe src=resources/append-child-adopt-node-frame.svg></iframe>
+<iframe src=resources/adopt-node-frame.html></iframe>
+<iframe src=resources/adopt-node-frame.svg></iframe>
<script>
testRunner.waitUntilDone();
testRunner.dumpAsText();
var count = document.querySelectorAll("iframe").length;
-function done() {
+function done(childDocument) {
+ document.adoptNode(childDocument.querySelector("script"));
count--;
if (count)
return;
« 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