blob: 7f8b25d55ffb8ce5f756104465cd901b0fe35d76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/*---
includes: [compareArray.js]
flags: [async]
---*/
function resolve(value) {
return new Promise(resolve => setTimeout(() => resolve(value), 0));
}
Promise.all([resolve(['one', 'two']), resolve(['three', 'four'])])
.then(
v => { assert.compareArray(v[0], ['one', 'two']);
assert.compareArray(v[1], ['three', 'four']); },
v => $DONOTEVALUATE(),
)
.then($DONE, $DONE);
|