Diff
Modified: trunk/LayoutTests/TestExpectations (237692 => 237693)
--- trunk/LayoutTests/TestExpectations 2018-11-01 18:57:27 UTC (rev 237692)
+++ trunk/LayoutTests/TestExpectations 2018-11-01 18:58:31 UTC (rev 237693)
@@ -217,6 +217,11 @@
imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location-protocol-setter-non-broken.html [ DumpJSConsoleLogInStdErr ]
imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location-protocol-setter-non-broken-weird.html [ DumpJSConsoleLogInStdErr ]
+# Newly imported WPT tests that are timing out.
+imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location-origin-idna.sub.window.html [ Skip ]
+imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_assign.html [ Skip ]
+imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/per-global.window.html [ Skip ]
+
# Line number in the console logging may change so we silence it to avoid flakiness.
http/tests/security/frame-loading-via-document-write.html [ DumpJSConsoleLogInStdErr ]
http/tests/security/frame-loading-via-document-write-async-delegates.html [ DumpJSConsoleLogInStdErr ]
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (237692 => 237693)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2018-11-01 18:57:27 UTC (rev 237692)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2018-11-01 18:58:31 UTC (rev 237693)
@@ -1,3 +1,38 @@
+2018-11-01 Chris Dumez <[email protected]>
+
+ Resync html/browsers/history/the-location-interface web platform tests from upstream
+ https://bugs.webkit.org/show_bug.cgi?id=191139
+
+ Reviewed by Alex Christensen.
+
+ Resync html/browsers/history/the-location-interface web platform tests from upstream 8295368c82.
+
+ * web-platform-tests/html/browsers/history/the-location-interface/assign_after_load-expected.txt: Added.
+ * web-platform-tests/html/browsers/history/the-location-interface/assign_after_load.html: Added.
+ * web-platform-tests/html/browsers/history/the-location-interface/assign_before_load-expected.txt: Added.
+ * web-platform-tests/html/browsers/history/the-location-interface/assign_before_load.html: Added.
+ * web-platform-tests/html/browsers/history/the-location-interface/location-origin-idna.sub.window-expected.txt: Added.
+ * web-platform-tests/html/browsers/history/the-location-interface/location-origin-idna.sub.window.html: Added.
+ * web-platform-tests/html/browsers/history/the-location-interface/location_assign-expected.txt: Added.
+ * web-platform-tests/html/browsers/history/the-location-interface/location_assign.html: Added.
+ * web-platform-tests/html/browsers/history/the-location-interface/no-browsing-context.window-expected.txt: Added.
+ * web-platform-tests/html/browsers/history/the-location-interface/no-browsing-context.window.html: Added.
+ * web-platform-tests/html/browsers/history/the-location-interface/no-browsing-context.window.js: Added.
+ (test):
+ (bcLessLocation):
+ (forEach.testSetup.testSetup.values.forEach.value.test):
+ (string_appeared_here.forEach.method.string_appeared_here.forEach.value.test):
+ * web-platform-tests/html/browsers/history/the-location-interface/non-automated/w3c-import.log:
+ * web-platform-tests/html/browsers/history/the-location-interface/per-global.window-expected.txt: Added.
+ * web-platform-tests/html/browsers/history/the-location-interface/per-global.window.html: Added.
+ * web-platform-tests/html/browsers/history/the-location-interface/reload_post_1-1.html: Removed.
+ * web-platform-tests/html/browsers/history/the-location-interface/reload_post_1-expected.txt: Removed.
+ * web-platform-tests/html/browsers/history/the-location-interface/reload_post_1.html: Removed.
+ * web-platform-tests/html/browsers/history/the-location-interface/resources/reload_post_1-1.py: Added.
+ (main):
+ * web-platform-tests/html/browsers/history/the-location-interface/resources/w3c-import.log:
+ * web-platform-tests/html/browsers/history/the-location-interface/w3c-import.log:
+
2018-11-01 Youenn Fablet <[email protected]>
RTCTrackEvent.streams should be SameObject
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_after_load-expected.txt (0 => 237693)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_after_load-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_after_load-expected.txt 2018-11-01 18:58:31 UTC (rev 237693)
@@ -0,0 +1,3 @@
+
+FAIL Assignment to location after document is completely loaded assert_equals: expected 4 but got 3
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_after_load.html (0 => 237693)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_after_load.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_after_load.html 2018-11-01 18:58:31 UTC (rev 237693)
@@ -0,0 +1,23 @@
+<!doctype html>
+<title>Assignment to location after document is completely loaded</title>
+<script src=""
+<script src=""
+<div id="log"></div>
+<iframe></iframe>
+<script>
+var t = async_test();
+var history_length;
+
+_onload_ = t.step_func(function() {
+ setTimeout(function() {
+ history_length = history.length;
+ document.getElementsByTagName("iframe")[0].src = ""
+ }, 100);
+});
+
+do_test = t.step_func(function() {
+ assert_equals(history.length, history_length + 2);
+ t.done();
+});
+
+</script>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_before_load-expected.txt (0 => 237693)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_before_load-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_before_load-expected.txt 2018-11-01 18:58:31 UTC (rev 237693)
@@ -0,0 +1,3 @@
+
+FAIL Assignment to location before document is completely loaded assert_equals: expected 3 but got 2
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_before_load.html (0 => 237693)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_before_load.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_before_load.html 2018-11-01 18:58:31 UTC (rev 237693)
@@ -0,0 +1,23 @@
+<!doctype html>
+<title>Assignment to location before document is completely loaded</title>
+<script src=""
+<script src=""
+<div id="log"></div>
+<iframe></iframe>
+<script>
+var t = async_test();
+var history_length;
+
+_onload_ = t.step_func(function() {
+ setTimeout(function() {
+ history_length = history.length;
+ document.getElementsByTagName("iframe")[0].src = ""
+ }, 100);
+});
+
+do_test = t.step_func(function() {
+ assert_equals(history.length, history_length + 1);
+ t.done();
+});
+
+</script>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location-origin-idna.sub.window-expected.txt (0 => 237693)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location-origin-idna.sub.window-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location-origin-idna.sub.window-expected.txt 2018-11-01 18:58:31 UTC (rev 237693)
@@ -0,0 +1,6 @@
+Blocked access to external URL http://xn--n8j6ds53lwwkrqhv28a.localhost:8800/html/browsers/history/the-location-interface/resources/post-your-origin.html
+
+Harness Error (TIMEOUT), message = null
+
+TIMEOUT Test that location.origin returns ASCII Test timed out
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location-origin-idna.sub.window.html (0 => 237693)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location-origin-idna.sub.window.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location-origin-idna.sub.window.html 2018-11-01 18:58:31 UTC (rev 237693)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_assign-expected.txt (0 => 237693)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_assign-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_assign-expected.txt 2018-11-01 18:58:31 UTC (rev 237693)
@@ -0,0 +1,6 @@
+
+Harness Error (TIMEOUT), message = null
+
+PASS location assign
+FAIL URL that fails to parse assert_throws: function "function () { location.assign("http://:"); }" did not throw
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_assign.html (0 => 237693)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_assign.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_assign.html 2018-11-01 18:58:31 UTC (rev 237693)
@@ -0,0 +1,26 @@
+<!DOCTYPE HTML>
+<html>
+ <head>
+ <title>location_assign</title>
+ <script src=""
+ <script src=""
+ </head>
+ <body>
+ <div id="log"></div>
+ <script>
+ test(function () {
+ var href = ""
+ location.assign('#x');
+
+ assert_equals((href + "#x"), location.href, "location href");
+
+ }, "location assign");
+
+ test(function () {
+ var href = ""
+ assert_throws('SYNTAX_ERR', function() { location.assign("http://:"); });
+ assert_equals(location.href, href);
+ }, "URL that fails to parse");
+ </script>
+ </body>
+</html>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/no-browsing-context.window-expected.txt (0 => 237693)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/no-browsing-context.window-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/no-browsing-context.window-expected.txt 2018-11-01 18:58:31 UTC (rev 237693)
@@ -0,0 +1,48 @@
+
+PASS Window and Location are 1:1 after browsing context removal
+FAIL Setting `href` to `https://example.com/` of a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Setting `href` to `/` of a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Setting `href` to `http://test:test/` of a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Setting `href` to `test test` of a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Setting `href` to `test:test` of a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Setting `href` to `chrome:fail` of a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Setting `protocol` to `http` of a `Location` object sans browsing context is a no-op assert_equals: expected "about:" but got ""
+FAIL Setting `protocol` to `about` of a `Location` object sans browsing context is a no-op assert_equals: expected "about:" but got ""
+FAIL Setting `protocol` to `test` of a `Location` object sans browsing context is a no-op assert_equals: expected "about:" but got ""
+PASS Setting `host` to `example.com` of a `Location` object sans browsing context is a no-op
+PASS Setting `host` to `test test` of a `Location` object sans browsing context is a no-op
+PASS Setting `host` to `()` of a `Location` object sans browsing context is a no-op
+PASS Setting `hostname` to `example.com` of a `Location` object sans browsing context is a no-op
+PASS Setting `port` to `80` of a `Location` object sans browsing context is a no-op
+PASS Setting `port` to `` of a `Location` object sans browsing context is a no-op
+PASS Setting `port` to `443` of a `Location` object sans browsing context is a no-op
+PASS Setting `port` to `notaport` of a `Location` object sans browsing context is a no-op
+PASS Setting `pathname` to `/` of a `Location` object sans browsing context is a no-op
+PASS Setting `pathname` to `x` of a `Location` object sans browsing context is a no-op
+PASS Setting `search` to `test` of a `Location` object sans browsing context is a no-op
+PASS Setting `hash` to `test` of a `Location` object sans browsing context is a no-op
+PASS Setting `hash` to `#` of a `Location` object sans browsing context is a no-op
+FAIL Getting `origin` of a `Location` object sans browsing context should be "null" assert_equals: expected "null" but got ""
+FAIL Invoking `assign` with `about:blank` on a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Invoking `assign` with `https://example.com/` on a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Invoking `assign` with `/` on a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Invoking `assign` with `http://test:test/` on a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Invoking `assign` with `test test` on a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Invoking `assign` with `test:test` on a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Invoking `assign` with `chrome:fail` on a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Invoking `replace` with `about:blank` on a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Invoking `replace` with `https://example.com/` on a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Invoking `replace` with `/` on a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Invoking `replace` with `http://test:test/` on a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Invoking `replace` with `test test` on a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Invoking `replace` with `test:test` on a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Invoking `replace` with `chrome:fail` on a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Invoking `reload` with `about:blank` on a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Invoking `reload` with `https://example.com/` on a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Invoking `reload` with `/` on a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Invoking `reload` with `http://test:test/` on a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Invoking `reload` with `test test` on a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Invoking `reload` with `test:test` on a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+FAIL Invoking `reload` with `chrome:fail` on a `Location` object sans browsing context is a no-op assert_equals: expected "about:blank" but got ""
+PASS Getting `ancestorOrigins` of a `Location` object sans browsing context should be []
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/no-browsing-context.window.html (0 => 237693)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/no-browsing-context.window.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/no-browsing-context.window.html 2018-11-01 18:58:31 UTC (rev 237693)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/no-browsing-context.window.js (0 => 237693)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/no-browsing-context.window.js (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/no-browsing-context.window.js 2018-11-01 18:58:31 UTC (rev 237693)
@@ -0,0 +1,86 @@
+test(() => {
+ const frame = document.body.appendChild(document.createElement("iframe")),
+ win = frame.contentWindow,
+ loc = win.location;
+ frame.remove();
+ assert_equals(win.location, loc);
+}, "Window and Location are 1:1 after browsing context removal");
+
+function bcLessLocation() {
+ const frame = document.body.appendChild(document.createElement("iframe")),
+ win = frame.contentWindow,
+ loc = win.location;
+ frame.remove();
+ return loc;
+}
+
+[
+ {
+ "property": "href",
+ "expected": "about:blank",
+ "values": ["https://example.com/", "/", "http://test:test/", "test test", "test:test", "chrome:fail"]
+ },
+ {
+ "property": "protocol",
+ "expected": "about:",
+ "values": ["http", "about", "test"]
+ },
+ {
+ "property": "host",
+ "expected": "",
+ "values": ["example.com", "test test", "()"]
+ },
+ {
+ "property": "hostname",
+ "expected": "",
+ "values": ["example.com"]
+ },
+ {
+ "property": "port",
+ "expected": "",
+ "values": ["80", "", "443", "notaport"]
+ },
+ {
+ "property": "pathname",
+ "expected": "",
+ "values": ["/", "x"]
+ },
+ {
+ "property": "search",
+ "expected": "",
+ "values": ["test"]
+ },
+ {
+ "property": "hash",
+ "expected": "",
+ "values": ["test", "#"]
+ }
+].forEach(testSetup => {
+ testSetup.values.forEach(value => {
+ test(() => {
+ const loc = bcLessLocation();
+ loc[testSetup.property] = value;
+ assert_equals(loc[testSetup.property], testSetup.expected);
+ }, "Setting `" + testSetup.property + "` to `" + value + "` of a `Location` object sans browsing context is a no-op");
+ });
+});
+
+test(() => {
+ const loc = bcLessLocation();
+ assert_equals(loc.origin, "null");
+}, "Getting `origin` of a `Location` object sans browsing context should be \"null\"");
+
+["assign", "replace", "reload"].forEach(method => {
+ ["about:blank", "https://example.com/", "/", "http://test:test/", "test test", "test:test", "chrome:fail"].forEach(value => {
+ test(() => {
+ const loc = bcLessLocation();
+ loc[method](value);
+ assert_equals(loc.href, "about:blank");
+ }, "Invoking `" + method + "` with `" + value + "` on a `Location` object sans browsing context is a no-op");
+ });
+});
+
+test(() => {
+ const loc = bcLessLocation();
+ assert_array_equals(loc.ancestorOrigins, []);
+}, "Getting `ancestorOrigins` of a `Location` object sans browsing context should be []");
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/non-automated/w3c-import.log (237692 => 237693)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/non-automated/w3c-import.log 2018-11-01 18:57:27 UTC (rev 237692)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/non-automated/w3c-import.log 2018-11-01 18:58:31 UTC (rev 237693)
@@ -1,7 +1,7 @@
The tests in this directory were imported from the W3C repository.
Do NOT modify these tests directly in WebKit.
Instead, create a pull request on the WPT github:
- https://github.com/w3c/web-platform-tests
+ https://github.com/web-platform-tests/wpt
Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/per-global.window-expected.txt (0 => 237693)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/per-global.window-expected.txt (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/per-global.window-expected.txt 2018-11-01 18:58:31 UTC (rev 237693)
@@ -0,0 +1,7 @@
+
+Harness Error (TIMEOUT), message = null
+
+PASS Discarding the browsing context must not change window.location
+FAIL Navigating from the initial about:blank must not replace window.location assert_equals: expected [stringifying object threw SecurityError: The operation is insecure. with type object] but got object "http://localhost:8800/common/blank.html"
+FAIL document.open() must replace window.location assert_not_equals: got disallowed value object "http://localhost:8800/html/browsers/history/the-location-interface/per-global.window.html"
+
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/per-global.window.html (0 => 237693)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/per-global.window.html (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/per-global.window.html 2018-11-01 18:58:31 UTC (rev 237693)
@@ -0,0 +1 @@
+<!-- This file is required for WebKit test infrastructure to run the templated test -->
\ No newline at end of file
Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/reload_post_1-1.html (237692 => 237693)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/reload_post_1-1.html 2018-11-01 18:57:27 UTC (rev 237692)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/reload_post_1-1.html 2018-11-01 18:58:31 UTC (rev 237693)
@@ -1,10 +0,0 @@
-<script>
-_onload_ = function() {opener.next()}
-document.write(Math.random());
-</script>
-
-<form method="POST" action=""
-<input type=hidden name=test value=test>
-<input type=submit>
-</form>
-<button _onclick_="location.reload()">Reload</button>
Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/reload_post_1-expected.txt (237692 => 237693)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/reload_post_1-expected.txt 2018-11-01 18:57:27 UTC (rev 237692)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/reload_post_1-expected.txt 2018-11-01 18:58:31 UTC (rev 237693)
@@ -1,5 +0,0 @@
-
-Harness Error (TIMEOUT), message = null
-
-TIMEOUT Reload document with POST Test timed out
-
Deleted: trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/reload_post_1.html (237692 => 237693)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/reload_post_1.html 2018-11-01 18:57:27 UTC (rev 237692)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/reload_post_1.html 2018-11-01 18:58:31 UTC (rev 237693)
@@ -1,27 +0,0 @@
-<!doctype html>
-<title>Reload document with POST</title>
-<script src=""
-<script src=""
-<div id="log"></div>
-<script>
-var win = window.open("reload_post_1-1.html");
-var t = async_test();
-var posted = false;
-var reloaded = false;
-
-next = t.step_func(function() {
-
-if (posted && !reloaded) {
- reloaded = true;
- win.location.reload();
-} else if (posted && reloaded) {
- t.done();
-} else {
- posted = true;
- win.document.forms[0].submit();
-}
-
-});
-
-add_completion_callback(function() {win.close()});
-</script>
Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/resources/reload_post_1-1.py (0 => 237693)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/resources/reload_post_1-1.py (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/resources/reload_post_1-1.py 2018-11-01 18:58:31 UTC (rev 237693)
@@ -0,0 +1,13 @@
+def main(request, response):
+ headers = [("Content-Type", "text/html")]
+ return headers, '''
+ <script>
+ _onload_ = function() {opener.next()}
+ document.write(Math.random());
+ </script>
+ <form method="POST" action=""
+ <input type=hidden name=test value=test>
+ <input type=submit>
+ </form>
+ <button _onclick_="location.reload()">Reload</button>
+ '''
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/resources/w3c-import.log (237692 => 237693)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/resources/w3c-import.log 2018-11-01 18:57:27 UTC (rev 237692)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/resources/w3c-import.log 2018-11-01 18:58:31 UTC (rev 237693)
@@ -1,7 +1,7 @@
The tests in this directory were imported from the W3C repository.
Do NOT modify these tests directly in WebKit.
Instead, create a pull request on the WPT github:
- https://github.com/w3c/web-platform-tests
+ https://github.com/web-platform-tests/wpt
Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
@@ -16,3 +16,4 @@
List of files:
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/resources/post-your-origin.html
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/resources/post-your-protocol.html
+/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/resources/reload_post_1-1.py
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/w3c-import.log (237692 => 237693)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/w3c-import.log 2018-11-01 18:57:27 UTC (rev 237692)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/w3c-import.log 2018-11-01 18:58:31 UTC (rev 237693)
@@ -1,7 +1,7 @@
The tests in this directory were imported from the W3C repository.
Do NOT modify these tests directly in WebKit.
Instead, create a pull request on the WPT github:
- https://github.com/w3c/web-platform-tests
+ https://github.com/web-platform-tests/wpt
Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
@@ -17,8 +17,10 @@
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/allow_prototype_cycle_through_location.sub.html
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_after_load-1.html
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_after_load-2.html
+/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_after_load.html
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_before_load-1.html
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_before_load-2.html
+/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_before_load.html
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/contains.json
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/cross_origin_joined_frame.sub.html
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/document_location.html
@@ -37,6 +39,7 @@
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location-symbol-toprimitive.html
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location-tojson.html
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location-valueof.html
+/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_assign.html
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_assign_about_blank-1.html
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_assign_about_blank.html
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_hash.html
@@ -51,6 +54,7 @@
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_reload.html
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_replace.html
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/location_search.html
+/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/no-browsing-context.window.js
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/per-global.window.js
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/reload_document_open_write-1.html
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/reload_document_open_write.html
@@ -58,8 +62,6 @@
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/reload_document_write.html
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/reload_document_write_onload-1.html
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/reload_document_write_onload.html
-/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/reload_post_1-1.html
-/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/reload_post_1.html
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/same_origin_frame.html
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/scripted_click_assign_during_load-1.html
/LayoutTests/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/scripted_click_assign_during_load-2.html
Added: trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_after_load-expected.txt (0 => 237693)
--- trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_after_load-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_after_load-expected.txt 2018-11-01 18:58:31 UTC (rev 237693)
@@ -0,0 +1,3 @@
+
+FAIL Assignment to location after document is completely loaded assert_equals: expected 3 but got 2
+
Added: trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_before_load-expected.txt (0 => 237693)
--- trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_before_load-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/browsers/history/the-location-interface/assign_before_load-expected.txt 2018-11-01 18:58:31 UTC (rev 237693)
@@ -0,0 +1,3 @@
+
+FAIL Assignment to location before document is completely loaded assert_equals: expected 4 but got 3
+