blob: 8e3043a49a1686980aba77ae92d3168a5c370c43 (
plain)
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
|
<html>
<head>
<title>WebMIDI Listener Test</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="application/javascript" src="MIDITestUtils.js"></script>
</head>
<body onload="runTests()">
<script class="testbody" type="application/javascript">
SimpleTest.waitForExplicitFinish();
async function runTests() {
await MIDITestUtils.permissionSetup(false);
// Request access without sysex.
try {
await navigator.requestMIDIAccess({ "sysex": false });
ok(false, "MIDI Access Request Deny failed");
SimpleTest.finish();
} catch (ex) {
ok(true, "MIDI Access Request Deny successful!");
SimpleTest.finish();
}
}
</script>
</body>
</html>
|