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

Side by Side Diff: LayoutTests/fast/dom/custom/prerender-insert-after-stop.html

Issue 604773002: Custom Element should have a wrapper while frame navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/custom/prerender-insert-after-stop-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
(Empty)
1 <!DOCTYPE html>
2 <script>
3 var customBody;
4 function done() {
5 if (window.testRunner)
6 testRunner.notifyDone();
7 }
8
9 function linkInserter(doc) {
10 return function() {
11 customBody = doc.getElementById('thebody');
12 document.getElementById("log").innerHTML = customBody;
dominicc (has gone to gerrit) 2014/09/26 08:07:02 Be consistent about using single quotes for string
deepak.sa 2014/09/29 12:58:10 Done.
13 done();
14 }
15 }
16
17 function navigateIFrameThenInsertLink() {
18 var iframe = document.getElementById('iframe');
19 iframe.onload = linkInserter(iframe.contentDocument);
20 iframe.contentWindow.location = "resources/empty2.html";
21 }
22
23 if (window.testRunner) {
24 testRunner.waitUntilDone();
25 testRunner.dumpAsText();
26 }
27
28 var proto = Object.create(HTMLBodyElement.prototype);
29 document.registerElement('x-body', {prototype: proto, extends: 'body'});
30 </script>
31
32 <body is="x-body">
33 <div>Test that Custom Element should be defined while navigating between frames. </div>
34 <iframe id="iframe" onload="navigateIFrameThenInsertLink()" src="resources/empty .html"></iframe><br>
35
36 <div id="log"></div>
37 <div> Test is Passed if [object HTMLBodyElement] is written above.</div>
38 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/custom/prerender-insert-after-stop-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698