blob: 728dfd911ee250b8d9c0c6dfed6b2b76551ce91d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<body>
<p>Test that Audio("url") constructor loads the specified resource.</p>
<script src=media-file.js></script>
<!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
(Please avoid writing new tests using video-test.js) -->
<script src=video-test.js></script>
<script>
var audioFile = findMediaFile("audio", "content/test");
var audio = new Audio(audioFile);
mediaElement = audio;
testExpected("audio instanceof HTMLAudioElement", true);
waitForEvent("loadstart", function () { testExpected("relativeURL(audio.currentSrc)", audioFile); });
waitForEventAndEnd("canplaythrough");
</script>
|