blob: ee16c08ea9b7958fec472fb8b58f34fad2f61c15 [file] [log] [blame]
<html>
<head>
<script src="../resources/js-test.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()");
shouldBe("navigator.vibrate(1, 2)", "true");
shouldBe("navigator.vibrate([1], [2])", "true");
</script>
</body>
</html>