Skip to content

Commit

Permalink
[css-typed-om] Stub list-valued tests.
Browse files Browse the repository at this point in the history
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/981956
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Darren Shen <shend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#546067}
  • Loading branch information
darrnshn authored and foolip committed Mar 28, 2018
1 parent 1d25beb commit 97d4646
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>' },
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>' },
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>' },
]);

Expand Down

0 comments on commit 97d4646

Please sign in to comment.