| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 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 <p id="description"></p> | 7 <p id="description"></p> |
| 8 <div id="console"></div> | 8 <div id="console"></div> |
| 9 <script> | 9 <script> |
| 10 | 10 |
| 11 description("This tests the constructor for the SpeechRecognitionError DOM class
."); | 11 description("This tests the constructor for the SpeechRecognitionError DOM class
."); |
| 12 | 12 |
| 13 // Test constructor without initializer. | 13 // Test constructor without initializer. |
| 14 shouldBe("new webkitSpeechRecognitionError('eventType').bubbles", "false"); | 14 shouldBe("new webkitSpeechRecognitionError('eventType').bubbles", "false"); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 28 shouldBeEqualToString("new webkitSpeechRecognitionError('eventType', { error: 'b
ar' }).error", "bar"); | 28 shouldBeEqualToString("new webkitSpeechRecognitionError('eventType', { error: 'b
ar' }).error", "bar"); |
| 29 | 29 |
| 30 // Test passing message in the initializer. | 30 // Test passing message in the initializer. |
| 31 shouldBeEqualToString("new webkitSpeechRecognitionError('eventType', { message:
'foo' }).message", "foo"); | 31 shouldBeEqualToString("new webkitSpeechRecognitionError('eventType', { message:
'foo' }).message", "foo"); |
| 32 | 32 |
| 33 </script> | 33 </script> |
| 34 </body> | 34 </body> |
| 35 </html> | 35 </html> |
| 36 | 36 |
| 37 | 37 |
| OLD | NEW |