mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Back out changeset 6c239220f990 (bug 1207546) on desperate last-ditch suspicion of causing Mulet bustage in webgl-capturestream-test.html?preserve
This commit is contained in:
parent
2293aa4fed
commit
2ef8c59087
@ -269,8 +269,6 @@ support-files =
|
|||||||
[test_audioWindowUtils.html]
|
[test_audioWindowUtils.html]
|
||||||
[test_audioNotification.html]
|
[test_audioNotification.html]
|
||||||
skip-if = buildapp == 'mulet'
|
skip-if = buildapp == 'mulet'
|
||||||
[test_audioNotificationStream.html]
|
|
||||||
skip-if = buildapp == 'mulet'
|
|
||||||
[test_audioNotificationStopOnNavigation.html]
|
[test_audioNotificationStopOnNavigation.html]
|
||||||
skip-if = buildapp == 'mulet'
|
skip-if = buildapp == 'mulet'
|
||||||
[test_audioNotificationWithEarlyPlay.html]
|
[test_audioNotificationWithEarlyPlay.html]
|
||||||
|
@ -1,71 +0,0 @@
|
|||||||
<!DOCTYPE HTML>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Test for audio controller in windows</title>
|
|
||||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
||||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<pre id="test">
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<script type="application/javascript">
|
|
||||||
|
|
||||||
SimpleTest.waitForExplicitFinish();
|
|
||||||
|
|
||||||
var expectedNotification = null;
|
|
||||||
|
|
||||||
var observer = {
|
|
||||||
observe: function(subject, topic, data) {
|
|
||||||
is(topic, "audio-playback", "audio-playback received");
|
|
||||||
is(data, expectedNotification, "This is the right notification");
|
|
||||||
runTest();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
var observerService = SpecialPowers.Cc["@mozilla.org/observer-service;1"]
|
|
||||||
.getService(SpecialPowers.Ci.nsIObserverService);
|
|
||||||
|
|
||||||
var audio = new Audio();
|
|
||||||
audio.srcObject = (new AudioContext()).createMediaStreamDestination().stream;
|
|
||||||
|
|
||||||
var tests = [
|
|
||||||
function() {
|
|
||||||
observerService.addObserver(observer, "audio-playback", false);
|
|
||||||
ok(true, "Observer set");
|
|
||||||
runTest();
|
|
||||||
},
|
|
||||||
|
|
||||||
function() {
|
|
||||||
expectedNotification = 'active';
|
|
||||||
audio.play();
|
|
||||||
},
|
|
||||||
|
|
||||||
function() {
|
|
||||||
expectedNotification = 'inactive';
|
|
||||||
audio.pause();
|
|
||||||
},
|
|
||||||
|
|
||||||
function() {
|
|
||||||
observerService.removeObserver(observer, "audio-playback");
|
|
||||||
ok(true, "Observer removed");
|
|
||||||
runTest();
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
function runTest() {
|
|
||||||
if (!tests.length) {
|
|
||||||
SimpleTest.finish();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var test = tests.shift();
|
|
||||||
test();
|
|
||||||
}
|
|
||||||
|
|
||||||
runTest();
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
@ -4764,11 +4764,6 @@ HTMLMediaElement::IsPlayingThroughTheAudioChannel() const
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we are playing an external stream.
|
|
||||||
if (mSrcAttrStream) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user