mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Update web-platform-tests to revision 824f0c1df556305042b8aa8073c32e9ef86c3efa
This commit is contained in:
parent
bcafe4188f
commit
d0eccdba1a
131 changed files with 3087 additions and 705 deletions
|
@ -55,6 +55,10 @@ assert_valid("<number>", "-109");
|
|||
assert_valid("<number>", "2.3e4");
|
||||
assert_valid("<integer>", "-109");
|
||||
assert_valid("<integer>", "19");
|
||||
assert_valid("<integer>", "calc(1)");
|
||||
assert_valid("<integer>", "calc(1 + 2)");
|
||||
assert_valid("<integer>", "calc(3.1415)");
|
||||
assert_valid("<integer>", "calc(3.1415 + 3.1415)");
|
||||
|
||||
assert_valid("<angle>", "10deg");
|
||||
assert_valid("<angle>", "20.5rad");
|
||||
|
|
|
@ -111,5 +111,17 @@ for (let element of [divWithFontSizeSet, divWithFontSizeInherited]) {
|
|||
assert_computed_value('<transform-function>', 'translateX(calc(11em + 10%))', 'translateX(calc(110px + 10%))');
|
||||
assert_computed_value('<transform-function>+', 'translateX(10%) scale(2)', 'translateX(10%) scale(2)');
|
||||
}, "<transform-function> values are computed correctly for " + id);
|
||||
|
||||
test(function() {
|
||||
assert_computed_value('<integer>', '15', '15');
|
||||
assert_computed_value('<integer>', 'calc(15 + 15)', '30');
|
||||
assert_computed_value('<integer>', 'calc(2.4)', '2');
|
||||
assert_computed_value('<integer>', 'calc(2.6)', '3');
|
||||
assert_computed_value('<integer>', 'calc(2.6 + 3.1)', '6');
|
||||
}, "<integer> values are computed correctly for " + id);
|
||||
|
||||
test(function() {
|
||||
assert_computed_value('<integer>+', '15 calc(2.4) calc(2.6)', '15 2 3');
|
||||
}, "<integer>+ values are computed correctly for " + id);
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -382,8 +382,8 @@ test_style_property_map_set({
|
|||
test_style_property_map_set({
|
||||
syntax: '<integer>',
|
||||
initialValue: '0',
|
||||
shouldAccept: [CSS.number(1), CSS.number(-42), '1', '-42'],
|
||||
shouldReject: [unparsed('42'), CSS.px(100), '50px', [CSS.number(42), '42']],
|
||||
shouldAccept: [CSS.number(1), CSS.number(-42), '1', '-42', 'calc(2.4)'],
|
||||
shouldReject: [unparsed('42'), CSS.px(100), '50px', [CSS.number(42), '42'], 'calc(2px + 1px)'],
|
||||
});
|
||||
|
||||
test_style_property_map_set({
|
||||
|
@ -482,8 +482,8 @@ test_style_property_map_set({
|
|||
test_style_property_map_set({
|
||||
syntax: '<integer>+',
|
||||
initialValue: '0',
|
||||
shouldAccept: [CSS.number(42), [CSS.number(42), '42'], '42 42'],
|
||||
shouldReject: [[CSS.number(42), keyword('noint')], '42 noint'],
|
||||
shouldAccept: [CSS.number(42), [CSS.number(42), '42'], '42 42', 'calc(2.4) calc(2.6)'],
|
||||
shouldReject: [[CSS.number(42), keyword('noint')], '42 noint', 'calc(2px + 2px)'],
|
||||
});
|
||||
|
||||
test_style_property_map_set({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue