mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-11-20 10:33:36 +00:00
42 lines
769 B
HTML
42 lines
769 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Test for B2G PresentationReceiver on a non-receiver page at receiver side (OOP)</title>
|
|
</head>
|
|
<body>
|
|
<div id="content"></div>
|
|
<script type="application/javascript;version=1.7">
|
|
|
|
"use strict";
|
|
|
|
function is(a, b, msg) {
|
|
alert((a === b ? 'OK ' : 'KO ') + msg);
|
|
}
|
|
|
|
function ok(a, msg) {
|
|
alert((a ? 'OK ' : 'KO ') + msg);
|
|
}
|
|
|
|
function info(msg) {
|
|
alert('INFO ' + msg);
|
|
}
|
|
|
|
function finish() {
|
|
alert('DONE');
|
|
}
|
|
|
|
function testConnectionAvailable() {
|
|
return new Promise(function(aResolve, aReject) {
|
|
ok(!navigator.presentation, "navigator.presentation shouldn't be available in non-receiving OOP pages.");
|
|
aResolve();
|
|
});
|
|
}
|
|
|
|
testConnectionAvailable().
|
|
then(finish);
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|