-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest7.html
28 lines (26 loc) · 863 Bytes
/
test7.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Test7</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="qunit/qunit-1.12.0.css">
</head>
<body>
<video src="http://www.w3school.com.cn/i/movie.mp4" controls="controls">
你的浏览器不支持video标签
</video>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
<script src="qunit/qunit-1.12.0.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
asyncTest( "asynchronous test: video ready to play", 1, function() {
var $video = $( "video" );
$video.on( "canplaythrough", function() {
ok( true, "video has loaded and is ready to play" );
start();
});
});
</script>
</body>
</html>