Index: LayoutTests/vibration/vibration-exceptions.html |
diff --git a/LayoutTests/vibration/vibration-exceptions.html b/LayoutTests/vibration/vibration-exceptions.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..516ce362899b883ace028115f30087eeddf9b98a |
--- /dev/null |
+++ b/LayoutTests/vibration/vibration-exceptions.html |
@@ -0,0 +1,17 @@ |
+<html> |
+<head> |
+<script src="../fast/js/resources/js-test-pre.js"></script> |
+<script src="vibration-utils.js"></script> |
+</head> |
+<body> |
+<script> |
+description('Tests that bad input throws exceptions in the Vibration API.'); |
+ |
+shouldThrow("navigator.vibrate();"); |
+shouldThrow("navigator.vibrate(1, 2);"); |
+shouldThrow("navigator.vibrate([1], [2]);"); |
+ |
+</script> |
+<script src="../fast/js/resources/js-test-post.js"></script> |
+</body> |
+</html> |