22 lines
545 B
HTML
22 lines
545 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>video.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>
|
|
<video id="video" src="foo">
|
|
<source src="barbaz" />
|
|
</video>
|
|
<div id="log"></div>
|
|
<script>
|
|
test(function() {
|
|
assert_true(
|
|
document.getElementById("video").src.indexOf("barbaz") == -1,
|
|
"videoElement.src should reflect src attribute, not source child elements");
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|