Skip to content

Commit

Permalink
Bug 1643934 [wpt PR 24024] - Align prefers-color-scheme:no-preference…
Browse files Browse the repository at this point in the history
… tests with spec., a=testonly

Automatic update from web-platform-tests
Align prefers-color-scheme:no-preference tests with spec.

The 'no-preference' value has been removed from the spec per resolution
in [1].

[1] w3c/csswg-drafts#3857 (comment)

Bug: 1091806
Change-Id: Id5fd41b93f14c7ee60d10aa4dae036558271c948
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2232924
Reviewed-by: Anders Hartvoll Ruud <andruudchromium.org>
Commit-Queue: Rune Lillesveen <futharkchromium.org>
Cr-Commit-Position: refs/heads/master{#775910}

--

wpt-commits: 16f0e250577490c6d7dcba06d818a3a806a667c0
wpt-pr: 24024

UltraBlame original commit: dfe4c967f39d7d934aac4a281bd7890af198c79d
  • Loading branch information
marco-c committed Jun 15, 2020
1 parent 1903876 commit b3b3d37
Showing 1 changed file with 24 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,23 +135,6 @@
-
scheme
:
no
-
preference
)
"
)
;
query_should_be_css_parseable
(
"
(
prefers
-
color
-
scheme
:
light
)
"
Expand Down Expand Up @@ -266,7 +249,7 @@
"
)
;
query_should_be_js_parseable
query_should_not_be_css_parseable
(
"
(
Expand All @@ -275,6 +258,10 @@
color
-
scheme
:
no
-
preference
)
"
)
Expand All @@ -288,10 +275,6 @@
color
-
scheme
:
no
-
preference
)
"
)
Expand Down Expand Up @@ -420,19 +403,7 @@
"
)
;
test
(
(
)
=
>
{
let
booleanContext
=
window
.
matchMedia
query_should_not_be_js_parseable
(
"
(
Expand All @@ -441,12 +412,23 @@
color
-
scheme
:
no
-
preference
)
"
)
;
test
(
(
)
=
>
{
let
noPreference
booleanContext
=
window
.
Expand All @@ -459,35 +441,29 @@
color
-
scheme
:
no
-
preference
)
"
)
;
assert_equals
assert_true
(
booleanContext
.
matches
!
noPreference
.
matches
)
;
}
"
Check
that
no
prefer
-
preference
color
-
scheme
evaluates
to
false
true
in
the
boolean
Expand Down

0 comments on commit b3b3d37

Please sign in to comment.