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

Side by Side Diff: tests/html/audiocontext_test.dart

Issue 307483004: Another audiocontext_test fix (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library AudioContextTest; 1 library AudioContextTest;
2 import 'package:unittest/unittest.dart'; 2 import 'package:unittest/unittest.dart';
3 import 'package:unittest/html_individual_config.dart'; 3 import 'package:unittest/html_individual_config.dart';
4 import 'dart:html'; 4 import 'dart:html';
5 import 'dart:typed_data'; 5 import 'dart:typed_data';
6 import 'dart:web_audio'; 6 import 'dart:web_audio';
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 main() { 9 main() {
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 oscillator.type = 'sine'; 77 oscillator.type = 'sine';
78 expect(oscillator.type, equals('sine')); 78 expect(oscillator.type, equals('sine'));
79 79
80 oscillator.type = 'square'; 80 oscillator.type = 'square';
81 expect(oscillator.type, equals('square')); 81 expect(oscillator.type, equals('square'));
82 82
83 oscillator.type = 'triangle'; 83 oscillator.type = 'triangle';
84 expect(oscillator.type, equals('triangle')); 84 expect(oscillator.type, equals('triangle'));
85 85
86 expect(() => oscillator.type = 'somethingUnsupported', throws);
87 expect(oscillator.type, equals('triangle'));
88
89 expect(() => oscillator.type = 7, throws); 86 expect(() => oscillator.type = 7, throws);
90 expect(oscillator.type, equals('triangle')); 87 expect(oscillator.type, equals('triangle'));
91 88
92 expect(() => oscillator.type = ['heap object not a string'], throws); 89 expect(() => oscillator.type = ['heap object not a string'], throws);
93 expect(oscillator.type, equals('triangle')); 90 expect(oscillator.type, equals('triangle'));
94 } 91 }
95 }); 92 });
96 }); 93 });
97 } 94 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698