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

Unified 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, 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« 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