Permalink
Browse files

use qunit's own examples of asyncTest

  • Loading branch information...
1 parent 79bd488 commit 9d74808469d503a5848e5b0dde24c231dc596a80 @joshski committed Feb 1, 2011
Showing with 2 additions and 4 deletions.
  1. +2 −4 public/index.html
View
@@ -24,20 +24,18 @@
setTimeout(function() {
asyncTest("async, define after 1 second, pass after 3 seconds", function() {
- expect(1);
setTimeout(function() {
- start();
ok(true);
+ start();
}, 2000);
});
}, 1000);
setTimeout(function() {
asyncTest("async, define after 1 second, fail after 3 seconds", function() {
- expect(1);
setTimeout(function() {
- start();
ok(false);
+ start();
}, 2000);
});
}, 1000);

0 comments on commit 9d74808

Please sign in to comment.