OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script type="text/javascript"> | 7 <script type="text/javascript"> |
8 description('Tests the basics of SpeechGrammar and SpeechGrammarList'); | 8 description('Tests the basics of SpeechGrammar and SpeechGrammarList'); |
9 | 9 |
10 function run() { | 10 function run() { |
11 window.base = document.baseURI.substring(0, document.baseURI.lastIndexOf('/'
) + 1); | 11 window.base = document.baseURI.substring(0, document.baseURI.lastIndexOf('/'
) + 1); |
12 | 12 |
13 // Check availability of constructors. | 13 // Check availability of constructors. |
14 shouldBeTrue("'webkitSpeechGrammar' in window"); | 14 shouldBeTrue("'webkitSpeechGrammar' in window"); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 shouldBe("gs[2].src", "'data:application/xml,%3Cgrammar%3Efoo%3C/grammar%3E'
"); | 65 shouldBe("gs[2].src", "'data:application/xml,%3Cgrammar%3Efoo%3C/grammar%3E'
"); |
66 shouldBe("gs[2].weight", "4"); | 66 shouldBe("gs[2].weight", "4"); |
67 finishJSTest(); | 67 finishJSTest(); |
68 } | 68 } |
69 | 69 |
70 window.onload = run; | 70 window.onload = run; |
71 window.jsTestIsAsync = true; | 71 window.jsTestIsAsync = true; |
72 </script> | 72 </script> |
73 </body> | 73 </body> |
74 </html> | 74 </html> |
OLD | NEW |