зеркало из https://github.com/mozilla/gecko-dev.git
Bug 485288 - Replace all usage of video autobuffer attribute with preload=auto. a=test-fix
This commit is contained in:
Родитель
ed6c525c12
Коммит
7314b871e2
|
@ -8,7 +8,7 @@ function runTest() {
|
|||
v.id = 'v';
|
||||
v.src = "black140x100.ogv";
|
||||
v.poster = "blue250x200.png";
|
||||
v.autobuffer = true;
|
||||
v.preload = "auto";
|
||||
document.body.appendChild(v);
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ function runTest() {
|
|||
v.addEventListener('loadeddata', addPoster, false);
|
||||
v.id = 'v';
|
||||
v.src = "black140x100.ogv";
|
||||
v.autobuffer = true;
|
||||
v.preload = "auto";
|
||||
document.body.appendChild(v);
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ function runTest() {
|
|||
false);
|
||||
v.id = 'v';
|
||||
v.src = "black140x100.ogv";
|
||||
v.autobuffer = true;
|
||||
v.preload = "auto";
|
||||
document.body.appendChild(v);
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ function runTest() {
|
|||
false);
|
||||
v.id = 'v';
|
||||
v.src = "black140x100.ogv";
|
||||
v.autobuffer = true;
|
||||
v.preload = "auto";
|
||||
document.body.appendChild(v);
|
||||
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<body style="background:white;">
|
||||
<video src="black140x100.ogv"
|
||||
poster="green70x30.png"
|
||||
autobuffer
|
||||
preload="auto"
|
||||
style="border: solid blue 2px;">
|
||||
</video>
|
||||
</body>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<!-- Test if poster hides after playing with autoplay. -->
|
||||
<video src="black140x100.ogv"
|
||||
poster="blue250x200.png"
|
||||
autobuffer
|
||||
preload="auto"
|
||||
autoplay
|
||||
onplaying="setTimeout(function(){document.documentElement.className = '';},0);"></video>
|
||||
</body>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<body style="background:white;">
|
||||
<!-- Test if we show video frame after removing valid poster. -->
|
||||
<video src="black140x100.ogv"
|
||||
autobuffer
|
||||
preload="auto"
|
||||
id="v"
|
||||
onload="document.getElementById('v').poster = ''; setTimeout(function(){document.documentElement.className = '';}, 0);"
|
||||
poster="blue250x200.png"></video>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
frame doesn't render the poster. The video frame should not change to the
|
||||
poster, since it's already painted its first video frame. -->
|
||||
<video src="black140x100.ogv"
|
||||
autobuffer
|
||||
preload="auto"
|
||||
id="v"
|
||||
autoplay
|
||||
onended="document.getElementById('v').poster = 'blue250x200.png'; setTimeout(function(){document.documentElement.className = '';},0);"></video>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<body style="background:white;">
|
||||
<!-- Test that poster frame should hide after completing a seek. -->
|
||||
<video src="black140x100.ogv"
|
||||
autobuffer
|
||||
preload="auto"
|
||||
id="v"
|
||||
onloadeddata="var v = document.getElementById('v'); v.currentTime = v.duration;"
|
||||
onseeked="setTimeout(function(){document.documentElement.className = '';}, 0);"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<body style="background:white;">
|
||||
<!-- Test that poster frame changes when you change the poster attribute. -->
|
||||
<video src="black140x100.ogv"
|
||||
autobuffer
|
||||
preload="auto"
|
||||
id="v"
|
||||
onload="document.getElementById('v').poster = 'red160x120.png'; setTimeout(function(){document.documentElement.className = '';}, 0);"
|
||||
poster="blue250x200.png"></video>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<video src="black140x100.ogv"
|
||||
poster="blue250x200.png"
|
||||
id="v"
|
||||
autobuffer
|
||||
preload="auto"
|
||||
onloadeddata="document.getElementById('v').play();"
|
||||
onplaying="setTimeout(function(){document.documentElement.className = '';}, 0);"></video>
|
||||
</body>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<body style="background:white;">
|
||||
<video src="black140x100.ogv" autobuffer></video>
|
||||
<video src="black140x100.ogv" preload="auto"></video>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<p id="display"></p>
|
||||
|
||||
<div id="content">
|
||||
<video width="320" height="240" id="video" src="video.ogg" controls mozNoDynamicControls autobuffer></video>
|
||||
<video width="320" height="240" id="video" src="video.ogg" controls mozNoDynamicControls preload="auto"></video>
|
||||
</div>
|
||||
|
||||
<pre id="test">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<link rel="stylesheet" type="text/css" href="videomask.css">
|
||||
</head>
|
||||
<body style="text-align: right;">
|
||||
<video controls autobuffer id="av" source="audio.wav"></video>
|
||||
<video controls preload="auto" id="av" source="audio.wav"></video>
|
||||
<div id="mask"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<link rel="stylesheet" type="text/css" href="videomask.css">
|
||||
</head>
|
||||
<body>
|
||||
<video controls autobuffer id="av" source="audio.wav"></video>
|
||||
<video controls preload="auto" id="av" source="audio.wav"></video>
|
||||
<div id="mask"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<link rel="stylesheet" type="text/css" href="videomask.css">
|
||||
</head>
|
||||
<body>
|
||||
<video controls autobuffer id="av" source="audio.wav"></video>
|
||||
<video controls preload="auto" id="av" source="audio.wav"></video>
|
||||
<div id="mask"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<link rel="stylesheet" type="text/css" href="videomask.css">
|
||||
</head>
|
||||
<body style="direction: rtl">
|
||||
<video controls autobuffer id="av" source="audio.wav"></video>
|
||||
<video controls preload="auto" id="av" source="audio.wav"></video>
|
||||
<div id="mask"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<link rel="stylesheet" type="text/css" href="videomask.css">
|
||||
</head>
|
||||
<body style="text-align: right;">
|
||||
<video controls autobuffer id="av" source="audio.wav" dir="rtl"></video>
|
||||
<video controls preload="auto" id="av" source="audio.wav" dir="rtl"></video>
|
||||
<div id="mask"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<link rel="stylesheet" type="text/css" href="videomask.css">
|
||||
</head>
|
||||
<body style="text-align: right;">
|
||||
<video controls autobuffer id="av" source="audio.wav" style="direction: rtl;"></video>
|
||||
<video controls preload="auto" id="av" source="audio.wav" style="direction: rtl;"></video>
|
||||
<div id="mask"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<link rel="stylesheet" type="text/css" href="videomask.css">
|
||||
</head>
|
||||
<body style="text-align: right;">
|
||||
<audio controls autobuffer id="av" source="audio.wav"></audio>
|
||||
<audio controls preload="auto" id="av" source="audio.wav"></audio>
|
||||
<div id="mask"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<link rel="stylesheet" type="text/css" href="videomask.css">
|
||||
</head>
|
||||
<body>
|
||||
<audio controls autobuffer id="av" source="audio.wav"></audio>
|
||||
<audio controls preload="auto" id="av" source="audio.wav"></audio>
|
||||
<div id="mask"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<link rel="stylesheet" type="text/css" href="videomask.css">
|
||||
</head>
|
||||
<body>
|
||||
<audio controls autobuffer id="av" source="audio.wav"></audio>
|
||||
<audio controls preload="auto" id="av" source="audio.wav"></audio>
|
||||
<div id="mask"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<link rel="stylesheet" type="text/css" href="videomask.css">
|
||||
</head>
|
||||
<body style="direction: rtl">
|
||||
<audio controls autobuffer id="av" source="audio.wav"></audio>
|
||||
<audio controls preload="auto" id="av" source="audio.wav"></audio>
|
||||
<div id="mask"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<link rel="stylesheet" type="text/css" href="videomask.css">
|
||||
</head>
|
||||
<body style="text-align: right;">
|
||||
<audio controls autobuffer id="av" source="audio.wav" dir="rtl"></audio>
|
||||
<audio controls preload="auto" id="av" source="audio.wav" dir="rtl"></audio>
|
||||
<div id="mask"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<link rel="stylesheet" type="text/css" href="videomask.css">
|
||||
</head>
|
||||
<body style="text-align: right;">
|
||||
<audio controls autobuffer id="av" source="audio.wav" style="direction: rtl;"></audio>
|
||||
<audio controls preload="auto" id="av" source="audio.wav" style="direction: rtl;"></audio>
|
||||
<div id="mask"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Загрузка…
Ссылка в новой задаче