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

Unified Diff: Source/web/tests/data/device_emulation.html

Issue 1343843004: [DevTools] Emulate hover and pointer types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed settings getters Created 5 years, 3 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 | « Source/web/tests/WebFrameTest.cpp ('k') | Source/web/tests/data/viewport_emulation.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/data/device_emulation.html
diff --git a/Source/web/tests/data/viewport_emulation.html b/Source/web/tests/data/device_emulation.html
similarity index 70%
rename from Source/web/tests/data/viewport_emulation.html
rename to Source/web/tests/data/device_emulation.html
index 94dc6b731f045874185063c30a6b2e9c4dfea376..c96394a05de7e6ed6d7be93c009790efcb986b3b 100644
--- a/Source/web/tests/data/viewport_emulation.html
+++ b/Source/web/tests/data/device_emulation.html
@@ -33,17 +33,30 @@ body {
{
#test { height: 400px; }
}
+#pointer {
+ width: 10px;
+ height: 10px;
+}
+@media all and (pointer: coarse)
+{
+ #pointer { height: 20px; }
+}
+@media all and (hover: on-demand)
+{
+ #pointer { width: 20px; }
+}
</style>
<script>
-function dumpSize()
+function dumpSize(id)
{
- var div = document.querySelector("#test");
+ var div = document.querySelector("#" + id);
return div.offsetWidth + "x" + div.offsetHeight;
}
</script>
</head>
<body>
<div id="test"></div>
+<div id="pointer"></div>
</body>
</html>
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | Source/web/tests/data/viewport_emulation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698