mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Prevent the error from triggering a page error in Worker-nested-importScripts-error
Fixes #23511
This commit is contained in:
parent
b3eed5b5bd
commit
834e5778a0
2 changed files with 2 additions and 1 deletions
|
@ -682244,7 +682244,7 @@
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"workers/Worker-nested-importScripts-error.html": [
|
"workers/Worker-nested-importScripts-error.html": [
|
||||||
"8863b7523010dd8566d1ed42094e519efc500a65",
|
"bd96c835df9275e6f191adfe79f47f1df2d7d5bf",
|
||||||
"testharness"
|
"testharness"
|
||||||
],
|
],
|
||||||
"workers/Worker-replace-event-handler.any.js": [
|
"workers/Worker-replace-event-handler.any.js": [
|
||||||
|
|
|
@ -12,6 +12,7 @@ promise_test(t => {
|
||||||
}).then(e => {
|
}).then(e => {
|
||||||
assert_equals(e.type, "error");
|
assert_equals(e.type, "error");
|
||||||
assert_true(e.filename.indexOf('invalidScript.js') >= 0);
|
assert_true(e.filename.indexOf('invalidScript.js') >= 0);
|
||||||
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
}, 'Tests that errors from the import scripts come from the expected file.')
|
}, 'Tests that errors from the import scripts come from the expected file.')
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue