Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: tests/lib_strong/html/speechrecognition_test.dart

Issue 2896463002: DDC fixes for SpeechRecognition (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
});
« no previous file with comments | « pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/runtime.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698