mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Allow uncaught exceptions in worker runtime error tests.
This commit is contained in:
parent
2d13178d29
commit
59cf735f85
9 changed files with 35 additions and 0 deletions
|
@ -4,6 +4,10 @@
|
|||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id=log></div>
|
||||
<script>
|
||||
// The worker events races with the window's load event; if the worker events
|
||||
// arrive first, the harness will detect the error event and fail the test.
|
||||
setup({ allow_uncaught_exception: true });
|
||||
|
||||
async_test(function(t) {
|
||||
var worker = new Worker('./support/ErrorEvent.js');
|
||||
worker.onmessage = t.step_func_done(function(e) {
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id=log></div>
|
||||
<script>
|
||||
// The worker events races with the window's load event; if the worker events
|
||||
// arrive first, the harness will detect the error event and fail the test.
|
||||
setup({ allow_uncaught_exception: true });
|
||||
|
||||
async_test(function(t) {
|
||||
var worker = new Worker('./support/ErrorEvent.js');
|
||||
worker.onmessage = t.step_func_done(function(e) {
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id=log></div>
|
||||
<script>
|
||||
// The worker events races with the window's load event; if the worker events
|
||||
// arrive first, the harness will detect the error event and fail the test.
|
||||
setup({ allow_uncaught_exception: true });
|
||||
|
||||
async_test(function(t) {
|
||||
var worker = new Worker('./support/ErrorEvent.js');
|
||||
worker.onmessage = t.step_func_done(function(e) {
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id=log></div>
|
||||
<script>
|
||||
// The worker events races with the window's load event; if the worker events
|
||||
// arrive first, the harness will detect the error event and fail the test.
|
||||
setup({ allow_uncaught_exception: true });
|
||||
|
||||
async_test(function(t) {
|
||||
var message = 'Error Message';
|
||||
var worker = new Worker('./support/ErrorEvent.js');
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
// The worker events races with the window's load event; if the worker events
|
||||
// arrive first, the harness will detect the error event and fail the test.
|
||||
setup({ allow_uncaught_exception: true });
|
||||
|
||||
async_test(function(t) {
|
||||
var worker = new Worker('./support/ErrorEvent.js');
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id=log></div>
|
||||
<script>
|
||||
// The worker events races with the window's load event; if the worker events
|
||||
// arrive first, the harness will detect the error event and fail the test.
|
||||
setup({ allow_uncaught_exception: true });
|
||||
|
||||
async_test(function(t) {
|
||||
var worker = new Worker('./support/ErrorEvent.js');
|
||||
worker.onerror = t.step_func_done(function(e) {
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id=log></div>
|
||||
<script>
|
||||
// The worker events races with the window's load event; if the worker events
|
||||
// arrive first, the harness will detect the error event and fail the test.
|
||||
setup({ allow_uncaught_exception: true });
|
||||
|
||||
async_test(function(t) {
|
||||
var worker = new Worker('./support/ErrorEvent.js');
|
||||
worker.onerror = t.step_func_done(function(e) {
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id=log></div>
|
||||
<script>
|
||||
// The worker events races with the window's load event; if the worker events
|
||||
// arrive first, the harness will detect the error event and fail the test.
|
||||
setup({ allow_uncaught_exception: true });
|
||||
|
||||
async_test(function(t) {
|
||||
var message = 'Error Message';
|
||||
var worker = new Worker('./support/ErrorEvent.js');
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id=log></div>
|
||||
<script>
|
||||
// The worker events races with the window's load event; if the worker events
|
||||
// arrive first, the harness will detect the error event and fail the test.
|
||||
setup({ allow_uncaught_exception: true });
|
||||
|
||||
async_test(function(t) {
|
||||
var worker = new Worker('./support/ErrorEvent.js');
|
||||
worker.onerror = t.step_func_done(function(e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue