| Index: tests/html/htmlaudioelement_test.dart
|
| ===================================================================
|
| --- tests/html/htmlaudioelement_test.dart (revision 14114)
|
| +++ tests/html/htmlaudioelement_test.dart (working copy)
|
| @@ -9,14 +9,14 @@
|
|
|
| test('constructorTest1', () {
|
| var audio = new AudioElement(); // would be new Audio() in JS
|
| - Expect.isTrue(audio != null);
|
| - Expect.isTrue(audio is AudioElement);
|
| + expect(audio, isNotNull);
|
| + expect(audio, new isInstanceOf<AudioElement>('AudioElement'));
|
| });
|
|
|
| test('constructorTest2', () {
|
| var audio = new AudioElement('hahaURL');
|
| - Expect.isTrue(audio != null);
|
| - Expect.isTrue(audio is AudioElement);
|
| - Expect.isTrue(audio.src.indexOf('hahaURL') >= 0);
|
| + expect(audio, isNotNull);
|
| + expect(audio, new isInstanceOf<AudioElement>('AudioElement'));
|
| + expect(audio.src.indexOf('hahaURL'), greaterThanOrEqualTo(0));
|
| });
|
| }
|
|
|