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

Unified Diff: LayoutTests/fast/html/imports/import-master.html

Issue 19762002: [HTML Imports] Let script of imported document running. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed a failing test. Created 7 years, 5 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
Index: LayoutTests/fast/html/imports/import-master.html
diff --git a/LayoutTests/fast/html/imports/import-master.html b/LayoutTests/fast/html/imports/import-master.html
index 993a968a79284f2328fa4e73ac548aaa636d3403..6b9ee33dddc45e0a623fc80e0cffd8bc41dcf6f6 100644
--- a/LayoutTests/fast/html/imports/import-master.html
+++ b/LayoutTests/fast/html/imports/import-master.html
@@ -1,15 +1,24 @@
<!DOCTYPE html>
<html>
<head>
-<script src="../../js/resources/js-test-pre.js"></script>
<link id="master" rel="import" href="import-master.html">
</head>
<body>
<h1 style="dipslay: none;">Importing Master</h1>
+<pre id="resultConsole"></screen>
<script>
-shouldBe("master.import.querySelector('h1').innerHTML", "'Importing Master'");
-shouldBe("master.import.querySelector('#master').import", "master.import");
+testRunner.dumpAsText();
abarth-chromium 2013/07/19 07:55:55 Normally we wrap this call in an if (window.testR
+if (document == document.currentScript.ownerDocument) {
+ if (master.import.querySelector('h1').innerHTML != "Importing Master")
+ resultConsole.innerHTML += "FAIL: Loaded wrong nested document.\n";
+ else
+ resultConsole.innerHTML += "PASS\n";
+
+ if (master.import.querySelector('#master').import != master.import)
+ resultConsole.innerHTML += "FAIL: Imported object is shared with nested one.\n";
+ else
+ resultConsole.innerHTML += "PASS\n";
+}
</script>
-<script src="../../js/resources/js-test-post.js"></script>
</body>
</html>
« no previous file with comments | « no previous file | LayoutTests/fast/html/imports/import-master-expected.txt » ('j') | Source/core/dom/DocumentInit.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698