| Index: LayoutTests/vibration/vibration-detached-no-crash.html
|
| diff --git a/LayoutTests/vibration/vibration-detached-no-crash.html b/LayoutTests/vibration/vibration-detached-no-crash.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..46b12de5a54a8e51b7acdd480115bf094bb626f8
|
| --- /dev/null
|
| +++ b/LayoutTests/vibration/vibration-detached-no-crash.html
|
| @@ -0,0 +1,29 @@
|
| +<!DOCTYPE HTML>
|
| +<body>
|
| +<head>
|
| +<script src="../resources/js-test.js"></script>
|
| +<script src="vibration-utils.js"></script>
|
| +</head>
|
| +<script>
|
| +description("Accessing navigator.vibrate on a closed window.");
|
| +
|
| +window.jsTestIsAsync = true;
|
| +
|
| +var w;
|
| +function processMessage(event) {
|
| + if (event.data == "opened") {
|
| + w.close();
|
| + } else if (event.data == "closed") {
|
| + shouldBeFalse("w.navigator.vibrate([])");
|
| + finishJSTest();
|
| + }
|
| +}
|
| +
|
| +if (window.testRunner) {
|
| + testRunner.dumpAsText();
|
| + testRunner.setCanOpenWindows();
|
| +}
|
| +w = window.open('resources/vibration-detached-no-crash-new-window.html');
|
| +window.addEventListener("message", processMessage, false);
|
| +</script>
|
| +</body>
|
|
|