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 @@ ...@@ -13,8 +13,7 @@
<script> <script>
'use strict'; 'use strict';
// FIXME: animation-direction is list-valued. Run list-valued tests here too. runListValuedPropertyTests('animation-direction', [
runPropertyTests('animation-direction', [
{ syntax: 'normal' }, { syntax: 'normal' },
{ syntax: 'reverse' }, { syntax: 'reverse' },
{ syntax: 'alternate-reverse' }, { syntax: 'alternate-reverse' },
......
...@@ -13,8 +13,7 @@ ...@@ -13,8 +13,7 @@
<script> <script>
'use strict'; 'use strict';
// FIXME: background-image is list-valued. Run list-valued tests here too. runListValuedPropertyTests('background-image', [
runPropertyTests('background-image', [
{ syntax: 'none' }, { syntax: 'none' },
{ syntax: '<image>' }, { syntax: '<image>' },
]); ]);
......
...@@ -13,8 +13,7 @@ ...@@ -13,8 +13,7 @@
<script> <script>
'use strict'; 'use strict';
// FIXME: mask-image is list-valued. Run list-valued tests here too. runListValuedPropertyTests('mask-image', [
runPropertyTests('mask-image', [
{ syntax: 'none' }, { syntax: 'none' },
{ syntax: '<image>' }, { syntax: '<image>' },
]); ]);
......
...@@ -378,6 +378,12 @@ function runPropertyTests(propertyName, testCases) { ...@@ -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|. // Check that |propertyName| doesn't "support" examples in |testExamples|.
// |testExamples| is a list of CSS string values. An "unsupported" value // |testExamples| is a list of CSS string values. An "unsupported" value
// doesn't have a corresponding Typed OM representation. It normalizes as // doesn't have a corresponding Typed OM representation. It normalizes as
......
...@@ -12,8 +12,7 @@ ...@@ -12,8 +12,7 @@
<script> <script>
'use strict'; 'use strict';
// FIXME: transition-duration is list-valued. Run list-valued tests here too. runListValuedPropertyTests('transition-duration', [
runPropertyTests('transition-duration', [
{ syntax: '<time>' }, { 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