mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Update web-platform-tests to revision abd18b3e018d25ed668d179c905b7869dca5e239
This commit is contained in:
parent
908a642063
commit
158f7eec0e
117 changed files with 2997 additions and 434 deletions
|
@ -8,7 +8,7 @@ function testStartStop(should, node, options) {
|
|||
should(() => {
|
||||
node.start(time);
|
||||
}, `start(${time})`)
|
||||
.throw('TypeError');
|
||||
.throw(TypeError);
|
||||
});
|
||||
|
||||
should(() => {
|
||||
|
@ -17,7 +17,7 @@ function testStartStop(should, node, options) {
|
|||
|
||||
should(() => {
|
||||
node.start(-1);
|
||||
}, 'start(-1)').throw('RangeError');
|
||||
}, 'start(-1)').throw(RangeError);
|
||||
|
||||
if (options) {
|
||||
options.forEach(test => {
|
||||
|
@ -32,14 +32,14 @@ function testStartStop(should, node, options) {
|
|||
}, 'Calling start() twice').throw('InvalidStateError');
|
||||
should(() => {
|
||||
node.stop(-1);
|
||||
}, 'stop(-1)').throw('RangeError');
|
||||
}, 'stop(-1)').throw(RangeError);
|
||||
|
||||
// Test non-finite stop times
|
||||
nonFiniteValues.forEach(time => {
|
||||
should(() => {
|
||||
node.stop(time);
|
||||
}, `stop(${time})`)
|
||||
.throw('TypeError');
|
||||
.throw(TypeError);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue