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

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

Issue 39313002: Move vibration test case to the vibration directory. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/navigator-vibration-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/navigator-vibration.html
diff --git a/LayoutTests/fast/dom/navigator-vibration.html b/LayoutTests/fast/dom/navigator-vibration.html
deleted file mode 100644
index 175f75c13dacfd8a510bcdd9807e3a3beea1a8db..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/navigator-vibration.html
+++ /dev/null
@@ -1,33 +0,0 @@
-<html>
-<head>
-<script src="../js/resources/js-test-pre.js"></script>
-</head>
-<body>
-<script>
-description('Test for the Vibration API.');
-
-shouldBeTrue("navigator.vibrate(0);");
-shouldBeTrue("navigator.vibrate([]);");
-shouldBeTrue("navigator.vibrate(1);");
-shouldBeTrue("navigator.vibrate([1, 2]);");
-shouldBeTrue("navigator.vibrate([1, 2, 3]);");
-
-// Max pattern entry value.
-shouldBeTrue("navigator.vibrate(10000);");
-
-// Larger than max but the value is truncated and execution proceeds.
-shouldBeTrue("navigator.vibrate(10001);");
-
-shouldBeTrue("navigator.vibrate(-1);");
-
-// Maximum pattern length.
-shouldBeTrue("var p = []; for (var i = 0; i < 99; i++) p[i] = 1; navigator.vibrate(p);");
-
-// Larger than max but the pattern is truncated and execution proceeds.
-shouldBeTrue("var p = []; for (var i = 0; i < 100; i++) p[i] = 1; navigator.vibrate(p);");
-shouldThrow("navigator.vibrate();");
-shouldThrow("navigator.vibrate([1], [2]);");
-</script>
-<script src="../js/resources/js-test-post.js"></script>
-</body>
-</html>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/navigator-vibration-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698