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

Side by Side 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, 4 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/html/imports/import-master-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 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script>
5 <link id="master" rel="import" href="import-master.html"> 4 <link id="master" rel="import" href="import-master.html">
6 </head> 5 </head>
7 <body> 6 <body>
8 <h1 style="dipslay: none;">Importing Master</h1> 7 <h1 style="dipslay: none;">Importing Master</h1>
8 <pre id="resultConsole"></screen>
9 <script> 9 <script>
10 shouldBe("master.import.querySelector('h1').innerHTML", "'Importing Master'"); 10 if (window.testRunner)
11 shouldBe("master.import.querySelector('#master').import", "master.import"); 11 testRunner.dumpAsText();
12
13 if (document == document.currentScript.ownerDocument) {
14 if (master.import.querySelector('h1').innerHTML != "Importing Master")
15 resultConsole.innerHTML += "FAIL: Loaded wrong nested document.\n";
16 else
17 resultConsole.innerHTML += "PASS\n";
18
19 if (master.import.querySelector('#master').import != master.import)
20 resultConsole.innerHTML += "FAIL: Imported object is shared with nested o ne.\n";
21 else
22 resultConsole.innerHTML += "PASS\n";
23 }
12 </script> 24 </script>
13 <script src="../../js/resources/js-test-post.js"></script>
14 </body> 25 </body>
15 </html> 26 </html>
OLDNEW
« 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