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