mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 2f346208c2a115a601b580e7869fe112b97c4246
This commit is contained in:
parent
2a594821ba
commit
add3067672
78 changed files with 2101 additions and 635 deletions
|
@ -4,6 +4,7 @@
|
|||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
import { assert } from './util/index.js';
|
||||
export class SkipTestCase extends Error {} // A Fixture is a class used to instantiate each test case at run time.
|
||||
// A new instance of the Fixture is created for every single test case
|
||||
// (i.e. every time the test function is run).
|
||||
|
@ -35,10 +36,7 @@ export class Fixture {
|
|||
}
|
||||
|
||||
async finalize() {
|
||||
if (this.numOutstandingAsyncExpectations !== 0) {
|
||||
throw new Error('there were outstanding asynchronous expectations (e.g. shouldReject) at the end of the test');
|
||||
}
|
||||
|
||||
assert(this.numOutstandingAsyncExpectations === 0, 'there were outstanding asynchronous expectations (e.g. shouldReject) at the end of the test');
|
||||
await Promise.all(this.eventualExpectations);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue