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

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: Cleanup Layout Test 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..18c92a11b699982a1bb86b241fc32831c6f07fe9
--- /dev/null
+++ b/LayoutTests/fast/dom/custom/prerender-insert-after-stop.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<script src='../../../resources/js-test.js'></script>
+<script>
+description('Test that Custom Element should be defined while navigating between frames.');
+
+var customBody;
+var jsTestIsAsync = true;
+
+function linkInserter(doc) {
+ return function() {
+ customBody = doc.getElementById('thebody');
+ shouldBeDefined('customBody');
+ shouldBeEqualToString('customBody.toLocaleString()', '[object HTMLBodyElement]');
+ finishJSTest();
+ }
+}
+
+function navigateIFrameThenInsertLink() {
+ var iframe = document.getElementById('iframe');
+ iframe.onload = linkInserter(iframe.contentDocument);
+ iframe.contentWindow.location = 'resources/empty-custom-body.html';
+}
+</script>
+<iframe id='iframe' onload='navigateIFrameThenInsertLink()' src='resources/empty-custom-body.html'>
+</iframe>
« 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