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

Side by Side Diff: pkg/dev_compiler/test/codegen/lib/html/audiobuffersourcenode_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:web_audio'; 1 import 'dart:web_audio';
2 2
3 import 'package:minitest/minitest.dart'; 3 import 'package:expect/minitest.dart';
4 4
5 main() { 5 main() {
6 group('supported', () { 6 group('supported', () {
7 test('supported', () { 7 test('supported', () {
8 expect(AudioContext.supported, isTrue); 8 expect(AudioContext.supported, isTrue);
9 }); 9 });
10 }); 10 });
11 11
12 group('functional', () { 12 group('functional', () {
13 test('createBuffer', () { 13 test('createBuffer', () {
14 if (AudioContext.supported) { 14 if (AudioContext.supported) {
15 var ctx = new AudioContext(); 15 var ctx = new AudioContext();
16 AudioBufferSourceNode node = ctx.createBufferSource(); 16 AudioBufferSourceNode node = ctx.createBufferSource();
17 expect(node is AudioBufferSourceNode, isTrue); 17 expect(node is AudioBufferSourceNode, isTrue);
18 node.start(ctx.currentTime, 0, 2); 18 node.start(ctx.currentTime, 0, 2);
19 expect(node is AudioBufferSourceNode, isTrue); 19 expect(node is AudioBufferSourceNode, isTrue);
20 } 20 }
21 }); 21 });
22 }); 22 });
23 } 23 }
OLDNEW
« no previous file with comments | « pkg/dev_compiler/test/browser/language_tests.js ('k') | pkg/dev_compiler/test/codegen/lib/html/audiocontext_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698