mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Make async promise test assertion more specific
This commit is contained in:
parent
ee3f916b65
commit
acf98539f2
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@
|
|||
t.resolvePromiseDelayed(p, 'success', 100);
|
||||
return p.then(function(v) {
|
||||
var end = Date.now();
|
||||
assert_true(end - start > 100);
|
||||
assert_greater_than_equal(end - start, 100);
|
||||
assert_equals(v, 'success');
|
||||
});
|
||||
}, 'Native promise from async callback can be resolved');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue