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

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

Issue 11280103: Splitting out the Audio library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changed dart:audio to dart:web_audio Created 8 years, 1 month 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
« tests/html/audiocontext_test.dart ('K') | « tests/html/html.status ('k') | 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
(Empty)
1 library AudioElementTest;
Emily Fortuna 2012/11/21 00:27:08 why delete this test? Why don't we just rename it?
blois 2012/11/21 00:48:55 Rename it to audioelement_test? I think someone al
2 import '../../pkg/unittest/lib/unittest.dart';
3 import '../../pkg/unittest/lib/html_config.dart';
4 import 'dart:html';
5
6 main() {
7
8 useHtmlConfiguration();
9
10 var isAudioElement =
11 predicate((x) => x is AudioElement, 'is an AudioElement');
12
13 test('constructorTest1', () {
14 var audio = new AudioElement(); // would be new Audio() in JS
15 expect(audio, isNotNull);
16 expect(audio, isAudioElement);
17 });
18
19 test('constructorTest2', () {
20 var audio = new AudioElement('hahaURL');
21 expect(audio, isNotNull);
22 expect(audio, isAudioElement);
23 expect(audio.src.indexOf('hahaURL'), greaterThanOrEqualTo(0));
24 });
25 }
OLDNEW
« tests/html/audiocontext_test.dart ('K') | « tests/html/html.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698