Chromium Code Reviews| Index: tests/lib_strong/html/speechrecognition_test.dart |
| diff --git a/tests/lib_strong/html/speechrecognition_test.dart b/tests/lib_strong/html/speechrecognition_test.dart |
| index 555beabd5409dda4aab0449af0fc584163a5ecfe..066faf03d05893fac27341a3a112ca0dadd0d34b 100644 |
| --- a/tests/lib_strong/html/speechrecognition_test.dart |
| +++ b/tests/lib_strong/html/speechrecognition_test.dart |
| @@ -18,21 +18,22 @@ main() { |
| test('SpeechRecognition', () { |
| expect(() { |
| - new SpeechRecognition(); |
| + var s = new SpeechRecognition(); |
| + expect(s is SpeechRecognition, true); |
| + expect(s.onStart.listen is Function, true); |
| }, expectation); |
| }); |
| -/* |
| - https://code.google.com/p/dart/issues/detail?id=11825 |
| + |
| test('SpeechRecognitionEvent', () { |
| expect(() { |
| - var e = new Event.eventType('SpeechRecognitionEvent', 'speech'); |
| + var e = new SpeechRecognitionEvent('speech'); |
| expect(e is SpeechRecognitionEvent, true); |
| }, expectation); |
| }); |
| -*/ |
| + |
| test('SpeechRecognitionError', () { |
| expect(() { |
| - var e = new Event.eventType('SpeechRecognitionError', 'speech'); |
|
vsm
2017/05/18 20:11:51
This and commented test above appear deprecated.
|
| + var e = new SpeechRecognitionError('speech'); |
| expect(e is SpeechRecognitionError, true); |
| }, expectation); |
| }); |