blob: 957490ab1c7aad8c27dad42411e0bb63db427c4d [file] [log] [blame]
<!doctype html>
<html>
<script src=../resources/js-test.js></script>
<body>
<script>
description("Test that the promise return by startRendering() is from the right global");
frame = document.createElement('iframe');
document.body.appendChild(frame);
context = new frame.contentWindow.OfflineAudioContext({ length: 1, sampleRate: 48000 });
promise = context.startRendering();
shouldNotBe("promise.constructor", "window.Promise");
shouldBe("promise.constructor", "frame.contentWindow.Promise");
</script>
</body>
</html>