OLD | NEW |
---|---|
(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> | |
OLD | NEW |