зеркало из https://github.com/mozilla/gecko-dev.git
31 строка
795 B
HTML
31 строка
795 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<title>Test for Worklet - Console</title>
|
|
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
|
<script type="application/javascript" src="common.js"></script>
|
|
</head>
|
|
<body>
|
|
|
|
<script type="application/javascript">
|
|
|
|
function configureTest() {
|
|
return SpecialPowers.pushPrefEnv(
|
|
{"set": [["dom.audioworklet.enabled", true],
|
|
["dom.worklet.enabled", true]]});
|
|
}
|
|
|
|
// This function is called into an iframe.
|
|
function runTestInIframe() {
|
|
var audioContext = new AudioContext();
|
|
audioContext.audioWorklet.addModule("worklet_dump.js")
|
|
.then(() => {
|
|
ok(true, "All good!");
|
|
SimpleTest.finish();
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|