From 80cda12a87aecdcdfd7e1fca3e7f172933e710e9 Mon Sep 17 00:00:00 2001 From: yvt Date: Sat, 17 Jul 2021 12:09:31 +0900 Subject: [PATCH] test: update expectations No improvements are seen in `/html/browsers/origin/cross-origin- objects/cross-origin-objects.html` because each included test case tests both `Location` and `WindowProxy`, the latter of which isn't implemented correctly yet. In fact, the first test case "Basic sanity- checking" passes if it's reduced to only check `Location` as follows: addTest(function(win) { assert_equals(B.location.pathname, path, "location.href works same-origin"); assert_throws("SecurityError", function() { win.location.pathname; }, "location.pathname throws cross-origin"); }, "Basic sanity-checking"); --- ...totype_cycle_through_location.sub.html.ini | 10 ------- .../location-prevent-extensions.html.ini | 7 ----- ...e-setting-cross-origin-domain.sub.html.ini | 20 ------------- ...rototype-setting-cross-origin.sub.html.ini | 20 ------------- ...ting-goes-cross-origin-domain.sub.html.ini | 28 ------------------- ...pe-setting-same-origin-domain.sub.html.ini | 10 ------- ...ion-prototype-setting-same-origin.html.ini | 13 --------- 7 files changed, 108 deletions(-) delete mode 100644 tests/wpt/metadata/html/browsers/history/the-location-interface/location-prevent-extensions.html.ini delete mode 100644 tests/wpt/metadata/html/browsers/history/the-location-interface/location-prototype-setting-cross-origin-domain.sub.html.ini delete mode 100644 tests/wpt/metadata/html/browsers/history/the-location-interface/location-prototype-setting-cross-origin.sub.html.ini delete mode 100644 tests/wpt/metadata/html/browsers/history/the-location-interface/location-prototype-setting-goes-cross-origin-domain.sub.html.ini delete mode 100644 tests/wpt/metadata/html/browsers/history/the-location-interface/location-prototype-setting-same-origin-domain.sub.html.ini delete mode 100644 tests/wpt/metadata/html/browsers/history/the-location-interface/location-prototype-setting-same-origin.html.ini diff --git a/tests/wpt/metadata/html/browsers/history/the-location-interface/allow_prototype_cycle_through_location.sub.html.ini b/tests/wpt/metadata/html/browsers/history/the-location-interface/allow_prototype_cycle_through_location.sub.html.ini index 12c3c88a12b..1ec75cbce38 100644 --- a/tests/wpt/metadata/html/browsers/history/the-location-interface/allow_prototype_cycle_through_location.sub.html.ini +++ b/tests/wpt/metadata/html/browsers/history/the-location-interface/allow_prototype_cycle_through_location.sub.html.ini @@ -1,14 +1,4 @@ [allow_prototype_cycle_through_location.sub.html] - type: testharness - [same-origin, same-window location cycle] - expected: FAIL - - [cross-origin location has null prototype] - expected: FAIL - - [same-origin, different-window location cycle] - expected: FAIL - [cross-origin, but joined via document.domain, location cycle] expected: FAIL diff --git a/tests/wpt/metadata/html/browsers/history/the-location-interface/location-prevent-extensions.html.ini b/tests/wpt/metadata/html/browsers/history/the-location-interface/location-prevent-extensions.html.ini deleted file mode 100644 index 95ea0b1fc02..00000000000 --- a/tests/wpt/metadata/html/browsers/history/the-location-interface/location-prevent-extensions.html.ini +++ /dev/null @@ -1,7 +0,0 @@ -[location-prevent-extensions.html] - [Object.preventExtensions throws a TypeError] - expected: FAIL - - [Reflect.preventExtensions returns false] - expected: FAIL - diff --git a/tests/wpt/metadata/html/browsers/history/the-location-interface/location-prototype-setting-cross-origin-domain.sub.html.ini b/tests/wpt/metadata/html/browsers/history/the-location-interface/location-prototype-setting-cross-origin-domain.sub.html.ini deleted file mode 100644 index 46273a81c95..00000000000 --- a/tests/wpt/metadata/html/browsers/history/the-location-interface/location-prototype-setting-cross-origin-domain.sub.html.ini +++ /dev/null @@ -1,20 +0,0 @@ -[location-prototype-setting-cross-origin-domain.sub.html] - type: testharness - [Cross-origin via document.domain: the prototype is null] - expected: FAIL - - [Cross-origin via document.domain: setting the prototype to an empty object via __proto__ should throw a "SecurityError" DOMException] - expected: FAIL - - [Cross-origin via document.domain: setting the prototype to an empty object via Reflect.setPrototypeOf should return false] - expected: FAIL - - [Cross-origin via document.domain: setting the prototype to its original value via __proto__ should throw a "SecurityError" since it ends up in CrossOriginGetOwnProperty] - expected: FAIL - - [Cross-origin via document.domain: setting the prototype to an empty object via Object.setPrototypeOf should throw a TypeError] - expected: FAIL - - [Cross-origin via document.domain: the prototype must still be its original value] - expected: FAIL - diff --git a/tests/wpt/metadata/html/browsers/history/the-location-interface/location-prototype-setting-cross-origin.sub.html.ini b/tests/wpt/metadata/html/browsers/history/the-location-interface/location-prototype-setting-cross-origin.sub.html.ini deleted file mode 100644 index ad2148986a2..00000000000 --- a/tests/wpt/metadata/html/browsers/history/the-location-interface/location-prototype-setting-cross-origin.sub.html.ini +++ /dev/null @@ -1,20 +0,0 @@ -[location-prototype-setting-cross-origin.sub.html] - type: testharness - [Cross-origin: the prototype is null] - expected: FAIL - - [Cross-origin: setting the prototype to an empty object via __proto__ should throw a "SecurityError" DOMException] - expected: FAIL - - [Cross-origin: setting the prototype to an empty object via Reflect.setPrototypeOf should return false] - expected: FAIL - - [Cross-origin: the prototype must still be null] - expected: FAIL - - [Cross-origin: setting the prototype to null via __proto__ should throw a "SecurityError" since it ends up in CrossOriginGetOwnProperty] - expected: FAIL - - [Cross-origin: setting the prototype to an empty object via Object.setPrototypeOf should throw a TypeError] - expected: FAIL - diff --git a/tests/wpt/metadata/html/browsers/history/the-location-interface/location-prototype-setting-goes-cross-origin-domain.sub.html.ini b/tests/wpt/metadata/html/browsers/history/the-location-interface/location-prototype-setting-goes-cross-origin-domain.sub.html.ini deleted file mode 100644 index 73082a5de2a..00000000000 --- a/tests/wpt/metadata/html/browsers/history/the-location-interface/location-prototype-setting-goes-cross-origin-domain.sub.html.ini +++ /dev/null @@ -1,28 +0,0 @@ -[location-prototype-setting-goes-cross-origin-domain.sub.html] - type: testharness - [Became cross-origin via document.domain: the prototype is now null] - expected: FAIL - - [Became cross-origin via document.domain: setting the prototype to an empty object via __proto__ should throw a "SecurityError" DOMException] - expected: FAIL - - [Became cross-origin via document.domain: the prototype must still be null] - expected: FAIL - - [Became cross-origin via document.domain: setting the prototype to null via __proto__ should throw a "SecurityError" since it ends up in CrossOriginGetOwnProperty] - expected: FAIL - - [Became cross-origin via document.domain: setting the prototype to an empty object via Reflect.setPrototypeOf should return false] - expected: FAIL - - [Became cross-origin via document.domain: setting the prototype to the original value from before going cross-origin via __proto__ should throw a "SecurityError" DOMException] - expected: FAIL - - [Became cross-origin via document.domain: setting the prototype to the original value from before going cross-origin via Reflect.setPrototypeOf should return false] - expected: FAIL - - [Became cross-origin via document.domain: setting the prototype to an empty object via Object.setPrototypeOf should throw a TypeError] - expected: FAIL - - [Became cross-origin via document.domain: setting the prototype to the original value from before going cross-origin via Object.setPrototypeOf should throw a TypeError] - expected: FAIL diff --git a/tests/wpt/metadata/html/browsers/history/the-location-interface/location-prototype-setting-same-origin-domain.sub.html.ini b/tests/wpt/metadata/html/browsers/history/the-location-interface/location-prototype-setting-same-origin-domain.sub.html.ini deleted file mode 100644 index ec94321c85c..00000000000 --- a/tests/wpt/metadata/html/browsers/history/the-location-interface/location-prototype-setting-same-origin-domain.sub.html.ini +++ /dev/null @@ -1,10 +0,0 @@ -[location-prototype-setting-same-origin-domain.sub.html] - type: testharness - [Same-origin-domain: setting the prototype to an empty object via Reflect.setPrototypeOf should return false] - expected: FAIL - [Same-origin-domain: setting the prototype to an empty object via Object.setPrototypeOf should throw a TypeError] - expected: FAIL - [Same-origin-domain: setting the prototype to an empty object via __proto__ should throw a TypeError] - expected: FAIL - [Same-origin-domain: the prototype must still be its original value] - expected: FAIL diff --git a/tests/wpt/metadata/html/browsers/history/the-location-interface/location-prototype-setting-same-origin.html.ini b/tests/wpt/metadata/html/browsers/history/the-location-interface/location-prototype-setting-same-origin.html.ini deleted file mode 100644 index 30a5bf9ee84..00000000000 --- a/tests/wpt/metadata/html/browsers/history/the-location-interface/location-prototype-setting-same-origin.html.ini +++ /dev/null @@ -1,13 +0,0 @@ -[location-prototype-setting-same-origin.html] - type: testharness - [Same-origin: setting the prototype to an empty object via Reflect.setPrototypeOf should return false] - expected: FAIL - - [Same-origin: setting the prototype to an empty object via Object.setPrototypeOf should throw a TypeError] - expected: FAIL - - [Same-origin: setting the prototype to an empty object via __proto__ should throw a TypeError] - expected: FAIL - - [Same-origin: the prototype must still be its original value] - expected: FAIL