mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
Auto merge of #13385 - servo:jdm-patch-2, r=KiChjang
Make async promise test assertion more specific This will either yield more debuggable failures or fix the problem revealed in #13384 entirely. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13385) <!-- Reviewable:end -->
This commit is contained in:
commit
201db25862
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