Chromium Code Reviews| Index: LayoutTests/fast/dom/custom/prerender-insert-after-stop.html |
| diff --git a/LayoutTests/fast/dom/custom/prerender-insert-after-stop.html b/LayoutTests/fast/dom/custom/prerender-insert-after-stop.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bb14955c278a6cce32fac8987eafa11388b5ca95 |
| --- /dev/null |
| +++ b/LayoutTests/fast/dom/custom/prerender-insert-after-stop.html |
| @@ -0,0 +1,38 @@ |
| +<!DOCTYPE html> |
| +<script> |
| +var customBody; |
| +function done() { |
| + if (window.testRunner) |
| + testRunner.notifyDone(); |
| +} |
| + |
| +function linkInserter(doc) { |
| + return function() { |
| + customBody = doc.getElementById('thebody'); |
| + 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.
|
| + done(); |
| + } |
| +} |
| + |
| +function navigateIFrameThenInsertLink() { |
| + var iframe = document.getElementById('iframe'); |
| + iframe.onload = linkInserter(iframe.contentDocument); |
| + iframe.contentWindow.location = "resources/empty2.html"; |
| +} |
| + |
| +if (window.testRunner) { |
| + testRunner.waitUntilDone(); |
| + testRunner.dumpAsText(); |
| +} |
| + |
| +var proto = Object.create(HTMLBodyElement.prototype); |
| +document.registerElement('x-body', {prototype: proto, extends: 'body'}); |
| +</script> |
| + |
| +<body is="x-body"> |
| +<div>Test that Custom Element should be defined while navigating between frames.</div> |
| +<iframe id="iframe" onload="navigateIFrameThenInsertLink()" src="resources/empty.html"></iframe><br> |
| + |
| +<div id="log"></div> |
| +<div> Test is Passed if [object HTMLBodyElement] is written above.</div> |
| +</body> |