213830e122
R=bkonyi@google.com Change-Id: I3a450b04becaef007cc81fda1dbca1fda58b3d19 Reviewed-on: https://dart-review.googlesource.com/12361 Commit-Queue: Terry Lucas <terry@google.com> Reviewed-by: Ben Konyi <bkonyi@google.com>
26 lines
662 B
Dart
26 lines
662 B
Dart
import 'dart:html';
|
|
|
|
import 'package:expect/minitest.dart';
|
|
|
|
main() {
|
|
test('constructorTest1', () {
|
|
var audio = new AudioElement();
|
|
expect(audio, isNotNull);
|
|
expect(audio is AudioElement, isTrue);
|
|
});
|
|
|
|
test('constructorTest2', () {
|
|
var audio = new AudioElement('IntentionallyMissingFileURL');
|
|
expect(audio, isNotNull);
|
|
expect(audio is AudioElement, isTrue);
|
|
expect(audio.src.contains('IntentionallyMissingFileURL'), isTrue);
|
|
});
|
|
|
|
test('canPlayTypeTest', () {
|
|
var audio = new AudioElement();
|
|
var canPlay = audio.canPlayType("audio/mp4");
|
|
expect(canPlay, isNotNull);
|
|
expect(canPlay is String, isTrue);
|
|
});
|
|
}
|