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

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: Made a test more robust. 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
« no previous file with comments | « no previous file | LayoutTests/fast/html/imports/import-master-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..87a68c95729e368d028f73cfd6aa330d046bde79 100644
--- a/LayoutTests/fast/html/imports/import-master.html
+++ b/LayoutTests/fast/html/imports/import-master.html
@@ -1,15 +1,26 @@
<!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");
+if (window.testRunner)
+ testRunner.dumpAsText();
+
+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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698