blob: 588c64dab6a08429109e2d0b9dda2285507d0443 [file] [log] [blame]
<!doctype html>
<html>
<head>
<title>audio.src - reflection test</title>
<script src="../../w3cwrapper.js"></script>
</head>
<body>
<p><a href="http://dev.w3.org/html5/spec/Overview.html#dom-media-src">spec reference</a></p>
<audio id="audio" src="foo">
<source src="barbaz" />
</audio>
<div id="log"></div>
<script>
test(function() {
assert_true(
document.getElementById("audio").src.indexOf("barbaz") == -1,
"audioElement.src should reflect src attribute, not source child elements");
});
</script>
</body>
</html>