Chromium Code Reviews| 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.'); |
|
Peter Beverloo
2013/10/24 17:46:59
seems unrelated to this patch, but nice to have an
Michael van Ouwerkerk
2013/10/25 10:26:39
Oh sorry it's related as part of the split into mu
|
| + |
| +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> |