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

Unified Diff: LayoutTests/fast/dom/navigator-maxTouchPoints.html

Issue 27750002: Add navigator.maxTouchPoints (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add null checks; fix test failure Created 7 years, 2 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
Index: LayoutTests/fast/dom/navigator-maxTouchPoints.html
diff --git a/LayoutTests/fast/dom/navigator-maxTouchPoints.html b/LayoutTests/fast/dom/navigator-maxTouchPoints.html
new file mode 100644
index 0000000000000000000000000000000000000000..e09376a1f786d655a70c39fdf1cc55cb77e7db7f
--- /dev/null
+++ b/LayoutTests/fast/dom/navigator-maxTouchPoints.html
@@ -0,0 +1,12 @@
+<html>
+<script src="../js/resources/js-test-pre.js"></script>
+<script>
+description('This tests that the maxTouchPoints setting is plumbed through to the navigator object.');
+
+window.internals.settings.setMaxTouchPoints(37);
+shouldBe('navigator.maxTouchPoints', '37');
+</script>
+<script src="../js/resources/js-test-post.js"></script>
+<body>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698