Skip to content

Commit

Permalink
Pass tests when cross-origin workers fail to construct, and fix other…
Browse files Browse the repository at this point in the history
… tests
  • Loading branch information
domfarolino committed Oct 23, 2018
1 parent f84d7a5 commit 6e6d6be
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions workers/Worker_cross_origin_security_err.htm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
assert_true(e instanceof Event);
});
} catch (e) {
assert_unreached("Constructing a cross-origin worker should not synchronously fail. Its error event should be fired instead.");
t.done();
}
}, "Cross-origin classic workers should fail to fetch");

Expand All @@ -22,7 +22,7 @@
assert_true(e instanceof Event);
});
} catch (e) {
assert_unreached("Constructing a cross-origin module worker should not synchronously fail. Its error even should be fired instead.");
t.done();
}
}, "Cross-origin module workers should fail to fetch");
</script>
2 changes: 1 addition & 1 deletion workers/constructors/SharedWorker/same-origin.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
assert_true(e instanceof Event);
});
} catch (e) {
t.step_func_done(function(e) { assert_true(true); });
t.done();
}
}

Expand Down
2 changes: 1 addition & 1 deletion workers/constructors/Worker/same-origin.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
assert_true(e instanceof Event);
});
} catch (e) {
t.step_func_done(function(e) { assert_true(true); });
t.done();
}
}

Expand Down

0 comments on commit 6e6d6be

Please sign in to comment.