зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 59d848818fd8
This commit is contained in:
Родитель
1b87322c07
Коммит
d033eb22af
|
@ -1176,6 +1176,8 @@ void nsHTMLMediaElement::NetworkError()
|
|||
void nsHTMLMediaElement::PlaybackEnded()
|
||||
{
|
||||
NS_ASSERTION(mDecoder->IsEnded(), "Decoder fired ended, but not in ended state");
|
||||
mBegun = PR_FALSE;
|
||||
mPaused = PR_TRUE;
|
||||
DispatchAsyncSimpleEvent(NS_LITERAL_STRING("ended"));
|
||||
}
|
||||
|
||||
|
|
|
@ -132,7 +132,6 @@ _TEST_FILES += \
|
|||
test_bug465498.html \
|
||||
test_bug468190_wav.html \
|
||||
test_can_play_type_wave.html \
|
||||
test_paused_after_ended.html \
|
||||
test_wav_8bit.html \
|
||||
test_wav_ended1.html \
|
||||
test_wav_ended2.html \
|
||||
|
|
|
@ -1,28 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Media test: paused</title>
|
||||
<script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
||||
</head>
|
||||
<body>
|
||||
<pre id="test">
|
||||
<script class="testbody" type="text/javascript">
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
var a = document.createElement('audio');
|
||||
a.src = 'r11025_u8_c1.wav';
|
||||
a.load();
|
||||
is(a.paused, true, "Must be paused at start");
|
||||
a.play();
|
||||
is(a.paused, false, "Must not be paused after play");
|
||||
|
||||
a.addEventListener("ended", function () {
|
||||
is(a.paused, false, "Must not be paused after end");
|
||||
SimpleTest.finish();
|
||||
}, false);
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче