summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-invoke-audio-constructor.html
blob: 662129756f59ffb403fa61f3b8a76b6e6c0f5214 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<!doctype html>
<title>invoking resource selection with new Audio(src)</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
async_test(function(t) {
  var a = new Audio('');
  a.onloadstart = t.step_func(function() { t.done(); });
  window.onload = t.step_func(function() { assert_unreached(); });
});
</script>