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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/navigation_unload_data_url.html

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Whoops, the forward declaration just needed to be moved. Created 5 years, 2 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
Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/navigation_unload_data_url.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/004.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/navigation_unload_data_url.html
similarity index 50%
copy from third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/004.html
copy to third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/navigation_unload_data_url.html
index ad2d70e11984c8871996ad28d7322207b29f19a2..5c21dcee26fa6354d611181d88c264c3af6c77ac 100644
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/dom/dynamic-markup-insertion/opening-the-input-stream/004.html
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/browsing-the-web/navigating-across-documents/navigation_unload_data_url.html
@@ -1,19 +1,20 @@
<!doctype html>
-<title>Reuse of document object after document.open</title>
+<title>Same-origin navigation started from unload handler</title>
<script src="../../../../../../resources/testharness.js"></script>
<script src="../../../../../../resources/testharnessreport.js"></script>
<div id="log"></div>
-<iframe src="004-1.html"></iframe>
+<iframe src="navigation_unload_data_url-1.html"></iframe>
<script>
var t = async_test();
-var iframe;
onload = t.step_func(function() {
var iframe = document.getElementsByTagName("iframe")[0];
- var handle = iframe.contentDocument;
- iframe.contentDocument.test_state = 1;
- iframe.contentDocument.open();
- assert_equals(iframe.contentDocument.test_state, 1);
- assert_equals(iframe.contentDocument, handle);
+ var new_src = "data:text/html,load<script>parent.postMessage('pass', '*')<\/script>";
+ iframe.src = new_src;
+});
+
+onmessage = t.step_func(function(e) {
+ assert_equals(e.data, "pass");
t.done();
});
+
</script>

Powered by Google App Engine
This is Rietveld 408576698