зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1642564 [wpt PR 23907] - COEP: do not test exception message, a=testonly
Automatic update from web-platform-tests COEP: do not test exception message It's implementation-defined, see https://bugzilla.mozilla.org/show_bug.cgi?id=1642149. -- wpt-commits: 5cf5c990b4e55923a055a04614dec1afa0439f9d wpt-pr: 23907
This commit is contained in:
Родитель
1389c47888
Коммит
f22c50bbd3
|
@ -32,7 +32,7 @@ promise_test(async t => {
|
|||
navigator.serviceWorker.addEventListener('message', resolve,
|
||||
{once: true}));
|
||||
worker.postMessage('WithoutCorp');
|
||||
assert_equals((await p).data, 'TypeError: Failed to fetch');
|
||||
assert_equals((await p).data, 'Exception: TypeError');
|
||||
}, "fetch() to no CORP response should not succeed.");
|
||||
|
||||
promise_test(async t => {
|
||||
|
|
|
@ -19,7 +19,7 @@ self.addEventListener('message', e => {
|
|||
const response = await fetch(url, { mode: 'no-cors' });
|
||||
result = response.type;
|
||||
} catch (error) {
|
||||
result = `${error.name}: ${error.message}`;
|
||||
result = `Exception: ${error.name}`;
|
||||
} finally {
|
||||
e.source.postMessage(result);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче