29 lines
811 B
HTML
29 lines
811 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>video.currentSrc - non-empty after adding source element</title>
|
|
<script src="../../w3cwrapper.js"></script>
|
|
</head>
|
|
<body>
|
|
<p><a href="http://dev.w3.org/html5/spec/Overview.html#dom-media-currentsrc">spec reference</a></p>
|
|
<div id="log"></div>
|
|
<script>
|
|
var v = document.createElement("video");
|
|
document.body.appendChild(v);
|
|
assert_true(
|
|
v.currentSrc == "",
|
|
"videoElement.currentSrc should be empty if there is no source");
|
|
var s = document.createElement("source");
|
|
s.src = ".";
|
|
v.appendChild(s);
|
|
var t = async_test("videoElement.currentSrc should not be empty after adding source element (even with a bogus value)");
|
|
window.setTimeout(function() {
|
|
t.step(function() {
|
|
assert_false(
|
|
v.currentSrc == "")});
|
|
t.done();
|
|
}, 0);
|
|
</script>
|
|
</body>
|
|
</html>
|