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

Side by Side Diff: pkg/dev_compiler/test/codegen/lib/html/audiocontext_test.dart

Issue 2416853003: Move minitest.dart into the expect package. (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 import 'dart:async'; 1 import 'dart:async';
2 import 'dart:html'; 2 import 'dart:html';
3 import 'dart:typed_data'; 3 import 'dart:typed_data';
4 import 'dart:web_audio'; 4 import 'dart:web_audio';
5 5
6 import 'package:minitest/minitest.dart'; 6 import 'package:expect/minitest.dart';
7 7
8 main() { 8 main() {
9 var isAudioContext = 9 var isAudioContext =
10 predicate((x) => x is AudioContext, 'is an AudioContext'); 10 predicate((x) => x is AudioContext, 'is an AudioContext');
11 11
12 group('supported', () { 12 group('supported', () {
13 test('supported', () { 13 test('supported', () {
14 expect(AudioContext.supported, true); 14 expect(AudioContext.supported, true);
15 }); 15 });
16 }); 16 });
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 expect(oscillator.type, equals('triangle')); 86 expect(oscillator.type, equals('triangle'));
87 87
88 // Firefox does not throw when it receives invalid values; it simply 88 // Firefox does not throw when it receives invalid values; it simply
89 // ignores them. 89 // ignores them.
90 //expect(() => oscillator.type = ['heap object not a string'], throws); 90 //expect(() => oscillator.type = ['heap object not a string'], throws);
91 expect(oscillator.type, equals('triangle')); 91 expect(oscillator.type, equals('triangle'));
92 } 92 }
93 }); 93 });
94 }); 94 });
95 } 95 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698