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
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;">
18 input::-webkit-input-speech-button {
24 var speechInputElement = document.getElementById('speechInput');
25 var onSpeechInputChanged = function() {
26 if (speechInputElement.value == 'Pictures of the moon') {
27 document.title = 'PASSED';
29 document.title = 'FAILED';
32 speechInputElement.onwebkitspeechchange = onSpeechInputChanged;
33 speechInputElement.onchange = onSpeechInputChanged;