Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / vibration / vibration-detached-no-crash.html
blob7e0de30d42831b7ab5aec3aa758a641a9c50fc8c
1 <!DOCTYPE HTML>
2 <body>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 <script src="vibration-utils.js"></script>
6 </head>
7 <script>
8 description("Accessing navigator.vibrate on a closed window.");
10 window.jsTestIsAsync = true;
12 var w;
13 function processMessage(event) {
14 if (event.data == "opened") {
15 w.close();
16 } else if (event.data == "closed") {
17 shouldBeFalse("w.navigator.vibrate([])");
18 finishJSTest();
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);
28 </script>
29 </body>