diff options
Diffstat (limited to 'dom/presentation/tests/mochitest/file_presentation_receiver_inner_iframe.html')
-rw-r--r-- | dom/presentation/tests/mochitest/file_presentation_receiver_inner_iframe.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dom/presentation/tests/mochitest/file_presentation_receiver_inner_iframe.html b/dom/presentation/tests/mochitest/file_presentation_receiver_inner_iframe.html new file mode 100644 index 000000000..3bd5ac4b1 --- /dev/null +++ b/dom/presentation/tests/mochitest/file_presentation_receiver_inner_iframe.html @@ -0,0 +1,26 @@ +<!DOCTYPE HTML> +<html> +<head> + <meta charset="utf-8"> + <title>Test for B2G PresentationReceiver in an inner iframe of the receiver page at receiver side</title> +</head> +<body onload="testConnectionAvailable()"> +<div id="content"></div> +<script type="application/javascript;version=1.7"> + +"use strict"; + +function ok(a, msg) { + alert((a ? 'OK ' : 'KO ') + msg); +} + +function testConnectionAvailable() { + return new Promise(function(aResolve, aReject) { + ok(navigator.presentation.receiver, "navigator.presentation.receiver should be available in same-origin inner iframes of receiving pages."); + aResolve(); + }); +} + +</script> +</body> +</html> |