blob: bf66654bfc34849227d924af05c23d132c23375b [file] [log] [blame]
library AudioElementTest;
import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_config.dart';
import 'dart:web_audio';
main() {
useHtmlConfiguration();
test('constructorTest1', () {
var audio = new AudioElement();
expect(audio, isNotNull);
expect(audio is AudioElement, isTrue);
});
test('constructorTest2', () {
var audio = new AudioElement('hahaURL');
expect(audio, isNotNull);
expect(audio is AudioElement, isTrue);
expect(audio.src, contains('hahaURL'));
});
}