mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update web-platform-tests to revision b'4a4653e088039aec186d6dc1d488120d77695c3a'
This commit is contained in:
parent
470a50ab60
commit
6337336fab
1043 changed files with 19705 additions and 6973 deletions
|
@ -67,10 +67,6 @@ test_invalid_angle('atan2(1deg / )');
|
|||
test_invalid_angle('atan2(1deg 2deg)');
|
||||
test_invalid_angle('atan2(1deg, , 2deg)');
|
||||
test_invalid_angle('atan2(90px)');
|
||||
|
||||
// atan2() has to resolve to the same dimension.
|
||||
test_invalid_angle('atan2(90px, 90vw)');
|
||||
test_invalid_angle('atan2(90px, 90em)');
|
||||
test_invalid_angle('atan2(90px, 100%)');
|
||||
|
||||
test_invalid_angle('atan2(30deg + 1.0471967rad, 0)');
|
||||
|
|
|
@ -46,6 +46,15 @@ var test_map = {
|
|||
"atan(infinity)" :"calc(90deg)",
|
||||
"atan(tan(90deg))" :"calc(90deg)",
|
||||
"atan(tan(-90deg))" :"calc(-90deg)",
|
||||
"atan2(37.320508075, 10)" :"calc(75deg)",
|
||||
"atan2(1s, 1000ms)" :"calc(45deg)",
|
||||
"atan2(infinity, infinity)" :"calc(45deg)",
|
||||
"atan2(-infinity, -infinity)" :"calc(-135deg)",
|
||||
"atan2(infinity, 10)" :"calc(90deg)",
|
||||
"atan2(10, infinity)" :"calc(0deg)",
|
||||
"atan2(NaN, 10)" :"calc(NaN * 1deg)",
|
||||
"atan2(10, NaN)" :"calc(NaN * 1deg)",
|
||||
"atan2(NaN, NaN)" :"calc(NaN * 1deg)",
|
||||
};
|
||||
|
||||
for (var exp in test_map) {
|
||||
|
|
|
@ -44,7 +44,7 @@ test_math_used('calc(mod(18,5) * 2 + mod(17,5))', '8', {type:'number'});
|
|||
test_math_used('calc(rem(mod(18,5),5))', '3', {type:'number'});
|
||||
test_math_used('calc(rem(mod(18,5),mod(17,5)))', '1', {type:'number'});
|
||||
test_math_used('calc(mod(-140,-90))', '-50', {type:'number'});
|
||||
test_math_used('calc(mod(rem(1,18)* -1,5))', '-1', {type:'number'});
|
||||
test_math_used('calc(mod(rem(1,18)* -1,5))', '4', {type:'number'});
|
||||
|
||||
// Type check
|
||||
test_math_used('round(10px,6px)', '12px');
|
||||
|
@ -118,4 +118,29 @@ test_math_used('round(2rem,5px)', '30px');
|
|||
test_math_used('round(100px,1rem)', '96px');
|
||||
test_math_used('round(10s,6000ms)', '12s', {type:'time'});
|
||||
test_math_used('round(10000ms,6s)', '12s', {type:'time'});
|
||||
</script>
|
||||
|
||||
test_math_used('mod(10%,1px)', '0.5px');
|
||||
test_math_used('mod(10%,5px)', '2.5px');
|
||||
test_math_used('mod(2rem,5px)', '2px');
|
||||
test_math_used('mod(100px,1rem)', '4px');
|
||||
test_math_used('mod(10s,6000ms)', '4s', {type:'time'});
|
||||
test_math_used('mod(10000ms,6s)', '4s', {type:'time'});
|
||||
test_math_used('mod(18px,100% / 15)', '3px');
|
||||
test_math_used('mod(-18px,100% / 15)', '2px');
|
||||
test_math_used('mod(18%,5%)', '3%');
|
||||
test_math_used('mod(-18%,5%)', '2%');
|
||||
test_math_used('mod(18vw,5vw)', '3vw');
|
||||
test_math_used('mod(-18vw,5vw)', '2vw');
|
||||
|
||||
test_math_used('rem(10%,1px)', '0.5px');
|
||||
test_math_used('rem(10%,5px)', '2.5px');
|
||||
test_math_used('rem(2rem,5px)', '2px');
|
||||
test_math_used('rem(100px,1rem)', '4px');
|
||||
test_math_used('rem(10s,6000ms)', '4s', {type:'time'});
|
||||
test_math_used('rem(10000ms,6s)', '4s', {type:'time'});
|
||||
test_math_used('rem(18px,100% / 15)', '3px');
|
||||
test_math_used('rem(-18px,100% / 15)', '-3px');
|
||||
test_math_used('rem(18vw,5vw)', '3vw');
|
||||
test_math_used('rem(-18vw,5vw)', '-3vw');
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue