mirror of
https://github.com/servo/servo.git
synced 2025-08-30 01:28:21 +01:00
Update web-platform-tests to revision 68a256f49be380ca4add535ce8ece9de28820e6b
This commit is contained in:
parent
e54935c25a
commit
cd5bf022bd
178 changed files with 6082 additions and 795 deletions
|
@ -40,7 +40,6 @@ test(function() {
|
|||
}
|
||||
}
|
||||
|
||||
assert_throws("IndexSizeError", function() { region.lines = -1; });
|
||||
assert_equals(region.lines, 3);
|
||||
|
||||
region.lines = 130;
|
||||
|
|
|
@ -17,8 +17,12 @@ test(function() {
|
|||
// https://heycam.github.io/webidl/#abstract-opdef-converttoint
|
||||
[[0, 0],
|
||||
[-0, 0],
|
||||
[-1, 4294967295],
|
||||
[-100, 4294967196],
|
||||
[101, 101],
|
||||
[-2147483648, 2147483648],
|
||||
[2147483647, 2147483647],
|
||||
[2147483648, 2147483648],
|
||||
[NaN, 0],
|
||||
[Infinity, 0],
|
||||
[-Infinity, 0]].forEach(function (pair) {
|
||||
|
@ -28,10 +32,5 @@ test(function() {
|
|||
assert_equals(region.lines, expected);
|
||||
});
|
||||
|
||||
[-1, -100, -2147483648, 2147483648 /* wraps to -2147483648 */].forEach(function (invalid) {
|
||||
assert_throws('IndexSizeError', function() {
|
||||
region.lines = invalid;
|
||||
}, invalid);
|
||||
});
|
||||
}, document.title + ' script-created region');
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue