Skip to content

Commit

Permalink
Add Dark Mode web tests for inverting pages based on background color.
Browse files Browse the repository at this point in the history
Bug: 925949
Change-Id: Ie6042612b107874f984a0ae03794ec235b3e6cc2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1510114
Commit-Queue: Aran Gilman <gilmanmh@google.com>
Reviewed-by: Dominic Mazzoni <dmazzoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#642044}
  • Loading branch information
gilmanmh authored and Commit Bot committed Mar 19, 2019
1 parent 8c42030 commit c493687
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions third_party/blink/web_tests/VirtualTestSuites
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,16 @@
"base": "paint/dark-mode/image-filter-smart",
"args": ["--blink-settings=darkMode=3,darkModeImagePolicy=2"]
},
{
"prefix": "dark-mode",
"base": "paint/dark-mode/page-policy-all",
"args": ["--blink-settings=darkMode=3,darkModePagePolicy=0"]
},
{
"prefix": "dark-mode",
"base": "paint/dark-mode/page-policy-background",
"args": ["--blink-settings=darkMode=3,darkModePagePolicy=1"]
},
{
"prefix": "outofblink-cors",
"base": "external/wpt/fetch",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!DOCTYPE html>
<body style="background-color: #000080"></body>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!DOCTYPE html>
<body style="background-color: #8080ff"></body>

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!DOCTYPE html>
<body style="background-color: #8080ff"></body>

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!DOCTYPE html>
<body style="background-color: #000080"></body>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This suite runs the tests in LayoutTests/paint/dark-mode
# with --blink-settings="highContrastMode=3,darkModePagePolicy=0"
# See the virtual_test_suites() method in tools/blinkpy/web_tests/port/base.py.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This suite runs the tests in LayoutTests/paint/dark-mode
# with --blink-settings="highContrastMode=3,darkModePagePolicy=1"
# See the virtual_test_suites() method in tools/blinkpy/web_tests/port/base.py.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c493687

Please sign in to comment.