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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/history/the-location-interface/reload_document_write_onload.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/history/the-location-interface/reload_document_write_onload.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/history/the-location-interface/reload_document_write_onload.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/history/the-location-interface/reload_document_write_onload.html
new file mode 100644
index 0000000000000000000000000000000000000000..2f11c0d0aa97a1b05ef9ac22a677c1c6fc1ecee5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/history/the-location-interface/reload_document_write_onload.html
@@ -0,0 +1,26 @@
+<!doctype html>
+<title>Reload document with document.written content written in load event</title>
+<script src="../../../../../../resources/testharness.js"></script>
+<script src="../../../../../../resources/testharnessreport.js"></script>
+<div id="log"></div>
+<script>
+var win = window.open("reload_document_write_onload-1.html");
+var t = async_test();
+
+var data = [];
+
+window.onmessage = t.step_func(function(e) {
+ data.push(e.data);
+ if (data.length < 3) {
+ win.location.reload();
+ } else {
+ setTimeout(t.step_func(function() {
+ assert_array_equals(data, ["original", "written", "written"]);
+ t.done();
+ }), 500);
+ }
+});
+
+add_completion_callback(function() {win.close()});
+</script>
+

Powered by Google App Engine
This is Rietveld 408576698