blob: 7d286018fa71dd02610c02e8ba7c8da36e6512a6 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../resources/js-test-pre.js"></script>
<script src="resources/audio-testing.js"></script>
</head>
<body>
<script>
description("Tests that passing null to context.createMediaStreamSource() throws a TypeError.");
var context = new AudioContext();
shouldThrow("context.createMediaStreamSource(null)", "'TypeError: Argument 1 (\\'mediaStream\\') to AudioContext.createMediaStreamSource must be an instance of MediaStream'");
</script>
<script src="../resources/js-test-post.js"></script>
</body>
</html>