зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1560874 [wpt PR 16415] - [cookie-store] Promote stability in test results, a=testonly
Automatic update from web-platform-tests [cookie-store] Promote stability in test results (#16415) * [cookie-store] Promote stability in test results Allow service worker activation to proceed in the absence of the API under test. This prevents the workers in failing implementations from entering the "redundant" state, which can interfere with the harness's ability to detect all tests. * fixup! [cookie-store] Promote stability in test results * fixup! [cookie-store] Promote stability in test results -- wpt-commits: 199b5fa5c003e348490000bc8147e0f2bb3fbaf0 wpt-pr: 16415
This commit is contained in:
Родитель
d998c4e17d
Коммит
43ac5f410f
|
@ -9,12 +9,18 @@ self.addEventListener('install', (event) => {
|
|||
// The subscribeToChanges calls are not done in parallel on purpose. Having
|
||||
// multiple in-flight requests introduces failure modes aside from the
|
||||
// cookie change logic that this test aims to cover.
|
||||
await cookieStore.subscribeToChanges([
|
||||
{ name: 'cookie-name1', matchType: 'equals', url: '/scope/path1' }]);
|
||||
await cookieStore.subscribeToChanges([
|
||||
{ }, // Test the default values for subscription properties.
|
||||
{ name: 'cookie-prefix', matchType: 'starts-with' },
|
||||
]);
|
||||
try {
|
||||
await cookieStore.subscribeToChanges([
|
||||
{ name: 'cookie-name1', matchType: 'equals', url: '/scope/path1' }]);
|
||||
await cookieStore.subscribeToChanges([
|
||||
{ }, // Test the default values for subscription properties.
|
||||
{ name: 'cookie-prefix', matchType: 'starts-with' },
|
||||
]);
|
||||
|
||||
// If the worker enters the "redundant" state, the UA may terminate it
|
||||
// before all tests have been reported to the client. Stifle errors in
|
||||
// order to avoid this and ensure all tests are consistently reported.
|
||||
} catch (err) {}
|
||||
})());
|
||||
});
|
||||
|
||||
|
|
|
@ -6,8 +6,14 @@ importScripts("/resources/testharness.js");
|
|||
|
||||
self.addEventListener('install', (event) => {
|
||||
event.waitUntil((async () => {
|
||||
await cookieStore.subscribeToChanges([
|
||||
{ name: 'cookie-name', matchType: 'equals', url: '/scope/path' }]);
|
||||
try {
|
||||
await cookieStore.subscribeToChanges([
|
||||
{ name: 'cookie-name', matchType: 'equals', url: '/scope/path' }]);
|
||||
|
||||
// If the worker enters the "redundant" state, the UA may terminate it
|
||||
// before all tests have been reported to the client. Stifle errors in
|
||||
// order to avoid this and ensure all tests are consistently reported.
|
||||
} catch (err) {}
|
||||
})());
|
||||
});
|
||||
|
||||
|
|
|
@ -6,7 +6,13 @@ importScripts("/resources/testharness.js");
|
|||
|
||||
self.addEventListener('install', (event) => {
|
||||
event.waitUntil((async () => {
|
||||
await cookieStore.subscribeToChanges([]);
|
||||
try {
|
||||
await cookieStore.subscribeToChanges([]);
|
||||
|
||||
// If the worker enters the "redundant" state, the UA may terminate it
|
||||
// before all tests have been reported to the client. Stifle errors in
|
||||
// order to avoid this and ensure all tests are consistently reported.
|
||||
} catch (err) {}
|
||||
})());
|
||||
});
|
||||
|
||||
|
|
|
@ -6,8 +6,14 @@ importScripts("/resources/testharness.js");
|
|||
|
||||
self.addEventListener('install', (event) => {
|
||||
event.waitUntil((async () => {
|
||||
await cookieStore.subscribeToChanges([
|
||||
{ name: 'cookie-name', matchType: 'equals', url: '/scope/path' }]);
|
||||
try {
|
||||
await cookieStore.subscribeToChanges([
|
||||
{ name: 'cookie-name', matchType: 'equals', url: '/scope/path' }]);
|
||||
|
||||
// If the worker enters the "redundant" state, the UA may terminate it
|
||||
// before all tests have been reported to the client. Stifle errors in
|
||||
// order to avoid this and ensure all tests are consistently reported.
|
||||
} catch (err) {}
|
||||
})());
|
||||
});
|
||||
|
||||
|
|
|
@ -6,8 +6,14 @@ importScripts("/resources/testharness.js");
|
|||
|
||||
self.addEventListener('install', (event) => {
|
||||
event.waitUntil((async () => {
|
||||
await cookieStore.subscribeToChanges([
|
||||
{ name: 'cookie-name', matchType: 'equals', url: '/scope/path' }]);
|
||||
try {
|
||||
await cookieStore.subscribeToChanges([
|
||||
{ name: 'cookie-name', matchType: 'equals', url: '/scope/path' }]);
|
||||
|
||||
// If the worker enters the "redundant" state, the UA may terminate it
|
||||
// before all tests have been reported to the client. Stifle errors in
|
||||
// order to avoid this and ensure all tests are consistently reported.
|
||||
} catch (err) {}
|
||||
})());
|
||||
});
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче