4 <script src=
"../resources/js-test.js"></script>
5 <script src=
"vibration-utils.js"></script>
8 description("Accessing navigator.vibrate on a closed window.");
10 window
.jsTestIsAsync
= true;
13 function processMessage(event
) {
14 if (event
.data
== "opened") {
16 } else if (event
.data
== "closed") {
17 shouldBeFalse("w.navigator.vibrate([])");
22 if (window
.testRunner
) {
23 testRunner
.dumpAsText();
24 testRunner
.setCanOpenWindows();
26 w
= window
.open('../resources/window-postmessage-open-close.html');
27 window
.addEventListener("message", processMessage
, false);