Commit 9236bee6 authored by Darren Shen's avatar Darren Shen Committed by Commit Bot

[css-typed-om] Stub list-valued tests.

Currently we're just adding a TODO when we want to test a list-valued
property. It's probably easier if we stub that test function and then
implement it later.

Bug: 774887
Change-Id: Iab3cea915afbcc8490cacbd45e5632a18e7dece1
Reviewed-on: https://chromium-review.googlesource.com/981956Reviewed-by: default avatarRune Lillesveen <futhark@chromium.org>
Commit-Queue: Darren Shen <shend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#546067}
parent fe3cbe4d
......@@ -13,8 +13,7 @@
<script>
'use strict';
// FIXME: animation-direction is list-valued. Run list-valued tests here too.
runPropertyTests('animation-direction', [
runListValuedPropertyTests('animation-direction', [
{ syntax: 'normal' },
{ syntax: 'reverse' },
{ syntax: 'alternate-reverse' },
......
......@@ -13,8 +13,7 @@
<script>
'use strict';
// FIXME: background-image is list-valued. Run list-valued tests here too.
runPropertyTests('background-image', [
runListValuedPropertyTests('background-image', [
{ syntax: 'none' },
{ syntax: '<image>' },
]);
......
......@@ -13,8 +13,7 @@
<script>
'use strict';
// FIXME: mask-image is list-valued. Run list-valued tests here too.
runPropertyTests('mask-image', [
runListValuedPropertyTests('mask-image', [
{ syntax: 'none' },
{ syntax: '<image>' },
]);
......
......@@ -378,6 +378,12 @@ function runPropertyTests(propertyName, testCases) {
}
}
// Same as runPropertyTests but for list-valued properties.
function runListValuedPropertyTests(propertyName, testCases) {
// TODO(https://crbug.com/545318): Run list-valued tests as well.
runPropertyTests(propertyName, testCases);
}
// Check that |propertyName| doesn't "support" examples in |testExamples|.
// |testExamples| is a list of CSS string values. An "unsupported" value
// doesn't have a corresponding Typed OM representation. It normalizes as
......
......@@ -12,8 +12,7 @@
<script>
'use strict';
// FIXME: transition-duration is list-valued. Run list-valued tests here too.
runPropertyTests('transition-duration', [
runListValuedPropertyTests('transition-duration', [
{ syntax: '<time>' },
]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment