mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
Update web-platform-tests to revision c9633200e9c3d5524dca096e8c23c8eb4a94e495
This commit is contained in:
parent
049527872e
commit
902c03b511
123 changed files with 2587 additions and 569 deletions
|
@ -1,7 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-values-4/#comp-func">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-values-4/#angles">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-values-4/#calc-type-checking">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-values-4/#calc-serialize">
|
||||
<link rel="author" title="Xiaocheng Hu" href="mailto:xiaochengh@chromium.org">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
@ -20,6 +20,20 @@ test_valid_angle('max(1rad)', 'max(1rad)');
|
|||
test_valid_angle('max(1turn)', 'max(1turn)');
|
||||
test_valid_angle('max(1grad)', 'max(1grad)');
|
||||
|
||||
// TODO(crbug.com/978682): Complete this test suite
|
||||
test_valid_angle('min(1deg, 2deg, 3deg)', 'min(1deg, 2deg, 3deg)');
|
||||
test_valid_angle('min(3deg, 2deg, 1deg)', 'min(3deg, 2deg, 1deg)');
|
||||
test_valid_angle('min(90deg, 1.57rad, 0.25turn)', 'min(90deg, 1.57rad, 0.25turn)');
|
||||
test_valid_angle('min(0.25turn, 1.57rad, 90deg)', 'min(0.25turn, 1.57rad, 90deg)');
|
||||
test_valid_angle('max(1deg, 2deg, 3deg)', 'max(1deg, 2deg, 3deg)');
|
||||
test_valid_angle('max(3deg, 2deg, 1deg)', 'max(3deg, 2deg, 1deg)');
|
||||
test_valid_angle('max(90deg, 1.57rad, 0.25turn)', 'max(90deg, 1.57rad, 0.25turn)');
|
||||
test_valid_angle('max(0.25turn, 1.57rad, 90deg)', 'max(0.25turn, 1.57rad, 90deg)');
|
||||
|
||||
test_valid_angle('calc(min(1deg) + min(2deg))', 'calc(min(1deg) + min(2deg))');
|
||||
test_valid_angle('calc(max(1deg) + max(2deg))', 'calc(max(1deg) + max(2deg))');
|
||||
test_valid_angle('calc(1rad + min(1deg))', 'calc(1rad + min(1deg))');
|
||||
test_valid_angle('calc(min(1deg) + 1rad)', 'calc(1rad + min(1deg))');
|
||||
test_valid_angle('calc(1rad + max(1deg))', 'calc(1rad + max(1deg))');
|
||||
test_valid_angle('calc(max(1deg) + 1rad)', 'calc(1rad + max(1deg))');
|
||||
|
||||
</script>
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-values-4/#comp-func">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-values-4/#time">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-values-4/#calc-serialize">
|
||||
<link rel="author" title="Xiaocheng Hu" href="mailto:xiaochengh@chromium.org">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="../support/parsing-testcommon.js"></script>
|
||||
<script>
|
||||
function test_valid_time(value, expected) {
|
||||
test_valid_value('transition-delay', value, expected);
|
||||
}
|
||||
|
||||
test_valid_time('min(1ms)', 'min(1ms)');
|
||||
test_valid_time('min(1s)', 'min(1s)');
|
||||
test_valid_time('max(1ms)', 'max(1ms)');
|
||||
test_valid_time('max(1s)', 'max(1s)');
|
||||
|
||||
test_valid_time('min(1ms, 2ms, 3ms)', 'min(1ms, 2ms, 3ms)');
|
||||
test_valid_time('min(3ms, 2ms, 1ms)', 'min(3ms, 2ms, 1ms)');
|
||||
test_valid_time('max(1ms, 2ms, 3ms)', 'max(1ms, 2ms, 3ms)');
|
||||
test_valid_time('max(3ms, 2ms, 1ms)', 'max(3ms, 2ms, 1ms)');
|
||||
test_valid_time('min(1000ms, 1s)', 'min(1000ms, 1s)');
|
||||
test_valid_time('min(1s, 1000ms)', 'min(1s, 1000ms)');
|
||||
test_valid_time('max(1000ms, 1s)', 'max(1000ms, 1s)');
|
||||
test_valid_time('max(1s, 1000ms)', 'max(1s, 1000ms)');
|
||||
|
||||
test_valid_time('calc(min(1s) + min(2s))', 'calc(min(1s) + min(2s))');
|
||||
test_valid_time('calc(min(2s) + min(1s))', 'calc(min(2s) + min(1s))');
|
||||
test_valid_time('calc(max(1s) + max(2s))', 'calc(max(1s) + max(2s))');
|
||||
test_valid_time('calc(max(2s) + max(1s))', 'calc(max(2s) + max(1s))');
|
||||
|
||||
test_valid_time('calc(1s + min(2s))', 'calc(1s + min(2s))');
|
||||
test_valid_time('calc(min(2s) + 1s)', 'calc(1s + min(2s))');
|
||||
test_valid_time('calc(1s + max(2s))', 'calc(1s + max(2s))');
|
||||
test_valid_time('calc(max(2s) + 1s)', 'calc(1s + max(2s))');
|
||||
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue