18 lines
545 B
HTML
18 lines
545 B
HTML
<!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>
|