blob: 64a440080c29f44cba01f4f27eca280fd3113f4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<!doctype html>
<title>invoking resource selection with play()</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
var v;
var t = async_test(function(t) {
v = document.createElement('video');
assert_equals(v.networkState, v.NETWORK_EMPTY, 'networkState after creating v');
v.play();
assert_equals(v.networkState, v.NETWORK_NO_SOURCE, 'networkState after v.play()');
});
</script>
<script>
t.step(function() {
assert_equals(v.networkState, v.NETWORK_EMPTY, 'networkState in separate script');
t.done();
});
</script>
|