зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1598193 [wpt PR 20353] - Cookie Store: Convert some WPT tests from .window to .any., a=testonly
Automatic update from web-platform-tests Cookie Store: Convert some WPT tests from .window to .any. This conversion is a step towards unifying the structure of the Cookie Store API WPT tests. Change-Id: Ib5ddffd79471c4eecacc85be8b172db0d70911fb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1927579 Commit-Queue: Victor Costan <pwnall@chromium.org> Auto-Submit: Staphany Park <staphany@chromium.org> Reviewed-by: Victor Costan <pwnall@chromium.org> Cr-Commit-Position: refs/heads/master@{#717402} -- wpt-commits: 9daf4f72027ba9fc5be8b698980e608166b90420 wpt-pr: 20353 --HG-- rename : testing/web-platform/tests/cookie-store/cookieStore_event_arguments.tenative.https.window.js => testing/web-platform/tests/cookie-store/cookieStore_event_arguments.tentative.https.window.js
This commit is contained in:
Родитель
832e08bfbd
Коммит
965f344a16
|
@ -1,3 +1,6 @@
|
|||
// META: title=Cookie Store API: cookieListItem attributes
|
||||
// META: global=!default,serviceworker,window
|
||||
|
||||
'use strict';
|
||||
|
||||
const kCurrentHostname = (new URL(self.location.href)).hostname;
|
|
@ -1,3 +1,6 @@
|
|||
// META: title=Cookie Store API: cookieStore.delete() arguments
|
||||
// META: global=!default,serviceworker,window
|
||||
|
||||
'use strict';
|
||||
|
||||
promise_test(async testCase => {
|
|
@ -1,3 +1,6 @@
|
|||
// META: title=Cookie Store API: cookieStore.delete() return type
|
||||
// META: global=!default,serviceworker,window
|
||||
|
||||
'use strict';
|
||||
|
||||
promise_test(async testCase => {
|
|
@ -1,3 +1,6 @@
|
|||
// META: title=Cookie Store API: cookieStore.delete() with insecure cookies
|
||||
// META: global=!default,serviceworker,window
|
||||
|
||||
'use strict';
|
||||
|
||||
promise_test(async t => {
|
|
@ -1,3 +1,6 @@
|
|||
// META: title=Cookie Store API: cookieStore.getAll() arguments
|
||||
// META: global=!default,serviceworker,window
|
||||
|
||||
'use strict';
|
||||
|
||||
promise_test(async testCase => {
|
|
@ -1,3 +1,6 @@
|
|||
// META: title=Cookie Store API: cookieStore.getAll() with multiple cookies
|
||||
// META: global=!default,serviceworker,window
|
||||
|
||||
'use strict';
|
||||
|
||||
promise_test(async testCase => {
|
|
@ -1,3 +1,6 @@
|
|||
// META: title=Cookie Store API: Interaction between cookieStore.set() and cookieStore.getAll()
|
||||
// META: global=!default,serviceworker,window
|
||||
|
||||
'use strict';
|
||||
|
||||
promise_test(async testCase => {
|
|
@ -1,3 +1,6 @@
|
|||
// META: title=Cookie Store API: cookieStore.get() arguments
|
||||
// META: global=!default,serviceworker,window
|
||||
|
||||
'use strict';
|
||||
|
||||
promise_test(async testCase => {
|
|
@ -1,3 +1,6 @@
|
|||
// META: title=Cookie Store API: Interaction between cookieStore.set() and cookieStore.delete()
|
||||
// META: global=!default,serviceworker,window
|
||||
|
||||
'use strict';
|
||||
|
||||
promise_test(async testCase => {
|
|
@ -1,3 +1,6 @@
|
|||
// META: title=Cookie Store API: Interaction between cookieStore.set() and cookieStore.get()
|
||||
// META: global=!default,serviceworker,window
|
||||
|
||||
'use strict';
|
||||
|
||||
promise_test(async testCase => {
|
|
@ -1,3 +1,6 @@
|
|||
// META: title=Cookie Store API: cookieStore.set() arguments
|
||||
// META: global=!default,serviceworker,window
|
||||
|
||||
'use strict';
|
||||
|
||||
promise_test(async testCase => {
|
|
@ -1,3 +1,6 @@
|
|||
// META: title=Cookie Store API: cookieStore.set()/get()/delete() for cookies with special names
|
||||
// META: global=!default,serviceworker,window
|
||||
|
||||
'use strict';
|
||||
|
||||
['__Secure-', '__Host-'].forEach(prefix => {
|
|
@ -1,3 +1,5 @@
|
|||
// META: title=Cookie Store API: cookie encoding
|
||||
// META: global=!default,serviceworker,window
|
||||
// META: script=resources/cookie-test-helpers.js
|
||||
|
||||
'use strict';
|
|
@ -1,16 +0,0 @@
|
|||
self.GLOBAL = {
|
||||
isWindow: function() { return false; },
|
||||
isWorker: function() { return true; },
|
||||
};
|
||||
importScripts("/resources/testharness.js");
|
||||
|
||||
importScripts(
|
||||
"cookieListItem_attributes.tentative.https.window.js",
|
||||
"cookieStore_delete_arguments.tentative.https.window.js",
|
||||
"cookieStore_get_arguments.tentative.https.window.js",
|
||||
"cookieStore_getAll_arguments.tentative.https.window.js",
|
||||
"cookieStore_getAll_multiple.tentative.https.window.js",
|
||||
"cookieStore_set_arguments.tentative.https.window.js",
|
||||
"cookieStore_special_names.tentative.https.window.js");
|
||||
|
||||
done();
|
|
@ -1,22 +0,0 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>Async Cookies: cookieStore API argument handling in ServiceWorker</title>
|
||||
<link rel="help" href="https://github.com/WICG/cookie-store">
|
||||
<link rel="author" href="pwnall@chromium.org" title="Victor Costan">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
(async () => {
|
||||
const scope = 'does/not/exist';
|
||||
|
||||
const registration = await navigator.serviceWorker.register(
|
||||
'serviceworker_cookieStore_arguments.js', {scope});
|
||||
add_completion_callback(() => {
|
||||
registration.unregister();
|
||||
});
|
||||
|
||||
fetch_tests_from_worker(registration.installing);
|
||||
})();
|
||||
</script>
|
|
@ -1,13 +0,0 @@
|
|||
self.GLOBAL = {
|
||||
isWindow: function() { return false; },
|
||||
isWorker: function() { return true; },
|
||||
};
|
||||
importScripts("/resources/testharness.js");
|
||||
|
||||
importScripts(
|
||||
"cookieStore_delete_basic.tentative.https.window.js",
|
||||
"cookieStore_get_delete_basic.tentative.https.window.js",
|
||||
"cookieStore_get_set_basic.tentative.https.window.js",
|
||||
"cookieStore_getAll_set_basic.tentative.https.window.js");
|
||||
|
||||
done();
|
|
@ -1,22 +0,0 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>Async Cookies: cookieStore basic API in ServiceWorker</title>
|
||||
<link rel="help" href="https://github.com/WICG/cookie-store">
|
||||
<link rel="author" href="pwnall@chromium.org" title="Victor Costan">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
'use strict';
|
||||
|
||||
(async () => {
|
||||
const scope = 'does/not/exist';
|
||||
|
||||
const registration = await navigator.serviceWorker.register(
|
||||
'serviceworker_cookieStore_basic.js', {scope});
|
||||
add_completion_callback(() => {
|
||||
registration.unregister();
|
||||
});
|
||||
|
||||
fetch_tests_from_worker(registration.installing);
|
||||
})();
|
||||
</script>
|
Загрузка…
Ссылка в новой задаче