Skip to content
This repository has been archived by the owner on Sep 19, 2018. It is now read-only.

Commit

Permalink
Add after_timeout function
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham committed May 8, 2015
1 parent 2f5c4d0 commit c73c853
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions testharness.js
Expand Up @@ -603,6 +603,10 @@ policies and contribution forms [3].
object.addEventListener(event, callback, false);
}

function after_timeout(f, t) {
return setTimeout(f, t * tests.timeout_multiplier);
}

expose(test, 'test');
expose(async_test, 'async_test');
expose(promise_test, 'promise_test');
Expand All @@ -611,6 +615,7 @@ policies and contribution forms [3].
expose(setup, 'setup');
expose(done, 'done');
expose(on_event, 'on_event');
expose(after_timeout, 'after_timeout');

/*
* Return a string truncated to the given length, with ... added at the end
Expand Down

0 comments on commit c73c853

Please sign in to comment.