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> |