Skip to content

Commit

Permalink
Use step_timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Nov 11, 2016
1 parent 6bcec5c commit f2699d1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion html/webappapis/animation-frames/callback-exception.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
});

// The test passes if no error events have been fired within this time.
setTimeout(t.step_func_done(), 10);
t.step_timeout(t.step_func_done(), 2000);
}));
windowProxy.location.href = "callback-exception-support-2.html";
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
assert_equals(onclick, null, "Attempting to compile a syntax error must give null");

// The test passes if no error events have been fired within this time.
setTimeout(t.step_func_done(), 10);
t.step_timeout(t.step_func_done(), 2000);
}));
windowProxy.location.href = "event-handler-idl-attribute-realm-support-2.html";
});
Expand Down
2 changes: 1 addition & 1 deletion html/webappapis/timers/compile-errors.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
oldSetTimeout("1 *-* 'syntax error'", 0);

// The test passes if no error events have been fired within this time.
setTimeout(t.step_func_done(), 10);
t.step_timeout(t.step_func_done(), 2000);
}));
windowProxy.location.href = "compile-errors-support-2.html";
});
Expand Down
2 changes: 1 addition & 1 deletion tools
3 changes: 1 addition & 2 deletions workers/Worker_ErrorEvent_after_navigation.htm
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@
windowProxy.doWorkerStuffAndExpectNoError(t);

iframe.addEventListener("load", t.step_func(() => {

// The test passes if no error events have been fired within this time.
setTimeout(t.step_func_done(), 300);
t.step_timeout(t.step_func_done(), 2000);
}));
windowProxy.location.href = "Worker_ErrorEvent_after_navigation_support-2.htm";
}));
Expand Down
2 changes: 1 addition & 1 deletion workers/support/error-after-some-time.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ self.onmessage = ev => {
}
}

setTimeout(() => { throw new Error("boo"); }, 100);
step_timeout(() => { throw new Error("boo"); }, 100);
};

0 comments on commit f2699d1

Please sign in to comment.