summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/mediacapture-streams/support/iframe-MediaStreamTrack-transfer.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/mediacapture-streams/support/iframe-MediaStreamTrack-transfer.html')
-rw-r--r--testing/web-platform/tests/mediacapture-streams/support/iframe-MediaStreamTrack-transfer.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/web-platform/tests/mediacapture-streams/support/iframe-MediaStreamTrack-transfer.html b/testing/web-platform/tests/mediacapture-streams/support/iframe-MediaStreamTrack-transfer.html
new file mode 100644
index 0000000000..e8d6aac647
--- /dev/null
+++ b/testing/web-platform/tests/mediacapture-streams/support/iframe-MediaStreamTrack-transfer.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>iframe</title>
+ <script>
+ function onMsg(e) {
+ if(e.data instanceof MediaStreamTrack) {
+ parent.postMessage({result: 'Success'});
+ } else {
+ parent.postMessage({
+ result: 'Failure',
+ error: `${e.data} is not a MediaStreamTrack`
+ });
+ }
+ }
+ window.addEventListener("message", onMsg);
+ </script>
+ </head>
+ <body>
+ </body>
+</html>