Upstream version 7.35.144.0
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / platform_apps / web_view / speech / guest.html
1 <!doctype html>
2 <!--
3  * Copyright (c) 2013 The Chromium Authors. All rights reserved.  Use of this
4  * source code is governed by a BSD-style license that can be found in the
5  * LICENSE file.
6 -->
7 <html>
8 <head>
9   <title>Waiting</title>
10 </head>
11 <body style="padding: 0; margin: 0;">
12   <div style="position: relative; overflow: hidden; height: 10px;">
13     <div style="position: absolute: left: -5px; top: -5px;">
14       <input id='speechInput' x-webkit-speech style="width: 10px;">
15     </div>
16   </div>
17   <style>
18   input::-webkit-input-speech-button {
19     opacity: 1;
20     pointer-events: auto;
21   }
22   </style>
23   <script>
24     var speechInputElement = document.getElementById('speechInput');
25     var onSpeechInputChanged = function() {
26       if (speechInputElement.value == 'Pictures of the moon') {
27         document.title = 'PASSED';
28       } else {
29         document.title = 'FAILED';
30       }
31     };
32     speechInputElement.onwebkitspeechchange = onSpeechInputChanged;
33     speechInputElement.onchange = onSpeechInputChanged;
34   </script>
35 </body>
36 </html>