Skip to content

Commit f3bf88d

Browse files
hsingh-mozmoz-wptsync-bot
authored andcommitted
Test changes.
Differential Revision: https://phabricator.services.mozilla.com/D264457 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1360870 gecko-commit: 61e88493ad1533487f94c277bd0eb844b5de2ca6 gecko-reviewers: edenchuang, dom-worker-reviewers
1 parent a45baf0 commit f3bf88d

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

infrastructure/metadata/infrastructure/server/context.any.js.ini

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
if product == "epiphany" or product == "webkit": FAIL # https://bugs.webkit.org/show_bug.cgi?id=200815
55

66
[context.any.serviceworker-module.html]
7-
expected:
8-
if product == "firefox_android": [OK, ERROR]
9-
# See e.g. https://community-tc.services.mozilla.com/tasks/IouM2LcdQy6b6ImEvgZ0kg
10-
if product == "firefox": [ERROR, OK]
7+
[context]
8+
expected:
9+
if product == "epiphany" or product == "webkit": FAIL # https://bugs.webkit.org/show_bug.cgi?id=200815
1110

1211
[context.any.worker-module.html]
1312

service-workers/service-worker/resources/registration-tests-script.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@ function registration_tests_script(register_method, type) {
3030

3131
promise_test(function(t) {
3232
var script = 'resources/malformed-worker.py?undefined-error';
33-
var scope = 'resources/scope/undefined-error';
33+
var scope = `resources/scope/undefined-error/${type}`;
3434
return promise_rejects_js(t,
3535
TypeError,
3636
register_method(script, {scope: scope}),
3737
'Registration of script including undefined error should fail.');
38-
}, 'Registering script including undefined error');
38+
}, `Registering script including undefined error: ${type}`);
3939

4040
promise_test(function(t) {
4141
var script = 'resources/malformed-worker.py?uncaught-exception';
42-
var scope = 'resources/scope/uncaught-exception';
42+
var scope = `resources/scope/uncaught-exception/${type}`;
4343
return promise_rejects_js(t,
4444
TypeError,
4545
register_method(script, {scope: scope}),
4646
'Registration of script including uncaught exception should fail.');
47-
}, 'Registering script including uncaught exception');
47+
}, `Registering script including uncaught exception: ${type}`);
4848

4949
if (type === 'classic') {
5050
promise_test(function(t) {

0 commit comments

Comments
 (0)