blob: ffe0a3959f630169f179313a9c2fb402aa9e1a1a [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>
audiocontext-listener-should-not-crash.html
</title>
<script src="../../imported/w3c/web-platform-tests/resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../resources/audit.js"></script>
</head>
<body>
<script id="layout-test-code">
let audit = new Audit.createTaskRunner();
audit.define('test', function(task, should) {
let context = new AudioContext();
should(
context.listener instanceof AudioListener,
'context.listener is AudioListener')
.beTrue();
should(function() {
document.addEventListener(0, context);
}, 'document.addEventListener(0, context) should not crash').notThrow();
task.done();
});
audit.run();
</script>
</body>
</html>