mirror of https://github.com/tc39/test262.git
Remove duplicate Promise.all tests (#2624)
1) Promise/all/S25.4.4.1_A6.1_T1.js is the same as Promise/all/S25.4.4.1_A2.1_T1.js 2) Promise/all/S25.4.4.1_A6.1_T2.js is covered by Promise/all/S25.4.4.1_A2.3_T1.js and Promise/all/S25.4.4.1_A2.3_T2.js
This commit is contained in:
parent
350ac0dab2
commit
218edad632
|
@ -1,16 +0,0 @@
|
|||
// Copyright 2014 Cubane Canada, Inc. All rights reserved.
|
||||
// See LICENSE for details.
|
||||
|
||||
/*---
|
||||
info: |
|
||||
Promise.all with 0-element array
|
||||
es6id: S25.4.4.1_A5.1_T1
|
||||
author: Sam Mikes
|
||||
description: Promise.all([]) produces a promise
|
||||
---*/
|
||||
|
||||
var p = Promise.all([]);
|
||||
|
||||
if (!(p instanceof Promise)) {
|
||||
$ERROR('Expected Promise.all([]) to be instanceof Promise' + err);
|
||||
}
|
|
@ -1,23 +0,0 @@
|
|||
// Copyright 2014 Cubane Canada, Inc. All rights reserved.
|
||||
// See LICENSE for details.
|
||||
|
||||
/*---
|
||||
info: |
|
||||
Promise.all with 0-element array
|
||||
should accept an empty array
|
||||
es6id: S25.4.4.1_A6.1_T2
|
||||
author: Sam Mikes
|
||||
description: Promise.all([]) returns a promise for an empty array
|
||||
flags: [async]
|
||||
---*/
|
||||
|
||||
var p = Promise.all([]);
|
||||
|
||||
p.then(function(result) {
|
||||
if (!(result instanceof Array)) {
|
||||
$ERROR("Expected Promise.all([]) to be Array, actually " + result);
|
||||
}
|
||||
if (result.length !== 0) {
|
||||
$ERROR("Expected Promise.all([]) to be empty Array, actually " + result);
|
||||
}
|
||||
}).then($DONE, $DONE);
|
Loading…
Reference in New Issue