forked from mirrors/gecko-dev
This is based on the same rules as for the majority of the rest of mozilla-central. MozReview-Commit-ID: 2O1jH8cNXIj --HG-- extra : rebase_source : b6788a231f70521398ef8783bebce99384a344d9
26 lines
638 B
HTML
26 lines
638 B
HTML
<!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">
|
|
|
|
"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>
|