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

Side by Side Diff: LayoutTests/fast/html/imports/resources/child-frame-with-import.html

Issue 23933004: Add tests for imports in iframe (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed bogus commas Created 7 years, 3 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 | « LayoutTests/fast/html/imports/import-in-iframe-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 var callbackCount = 0;
6
7 function finishJSTestIfNeeded()
8 {
9 callbackCount++;
10 if (2 == callbackCount)
11 window.parent.finishJSTest();
12 }
13
14 function importLoaded()
15 {
16 window.parent.headlineText = target.import.querySelector('h1').innerHTML;
17 window.parent.shouldBe('headlineText', '"Hello"');
18 finishJSTestIfNeeded();
19 }
20
21 function importError()
22 {
23 window.parent.wrongImport = wrong.import;
24 window.parent.shouldBeNull('wrongImport');
25 finishJSTestIfNeeded();
26 }
27 </script>
28 <link id="target" rel="import" href="hello.html" onload="importLoaded()">
29 <link id="wrong" rel="import" href="nosuch.html" onerror="importError()">
30 </head>
31 <body>
32 </body>
33 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/html/imports/import-in-iframe-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698