Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Unified Diff: LayoutTests/fast/media/mq-pointer.html

Issue 13818030: Added primary input devices setting to blink to allow media queries for hover/pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review fixes Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/media/mq-pointer-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/media/mq-pointer.html
diff --git a/LayoutTests/fast/media/mq-pointer.html b/LayoutTests/fast/media/mq-pointer.html
index 9ad01a6f5b7fe0db58bc204dc736fdf029581970..9a1fe9fff95c2330124218aff43d3ce1d63852c4 100644
--- a/LayoutTests/fast/media/mq-pointer.html
+++ b/LayoutTests/fast/media/mq-pointer.html
@@ -18,10 +18,12 @@
"(pointer)",
"(Pointer)",
"(pointer:none)",
+ "(pointer:NoNe)",
"(pointer:coarse)",
"(pointer:coARse)",
"(pointer:bogusvalue)",
"(pointer:fine)",
+ "(pointer:FiNe)",
"(hover)",
"(hover:0)",
"(hover:1)",
@@ -38,10 +40,30 @@
testQueries();
if (window.internals) {
- internals.settings.setDeviceSupportsTouch(true);
+ internals.settings.setPrimaryPointerDevices('touch');
log("------------- with touch screen -------------");
testQueries();
+
+ internals.settings.setPrimaryPointerDevices('mouse');
+
+ log("------------- with mouse -------------");
+ testQueries();
+
+ internals.settings.setPrimaryPointerDevices('none');
+
+ log("------------- with no pointer -------------");
+ testQueries();
+
+ internals.settings.setPrimaryPointerDevices('unknown');
+
+ log("------------- with unknown -------------");
+ testQueries();
+
+ internals.settings.setPrimaryPointerDevices('mouse,touch');
+
+ log("------------- with mouse and touch -------------");
+ testQueries();
}
}
« no previous file with comments | « no previous file | LayoutTests/fast/media/mq-pointer-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698