diff options
Diffstat (limited to 'dom/presentation/tests/mochitest/file_presentation_non_receiver.html')
-rw-r--r-- | dom/presentation/tests/mochitest/file_presentation_non_receiver.html | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/dom/presentation/tests/mochitest/file_presentation_non_receiver.html b/dom/presentation/tests/mochitest/file_presentation_non_receiver.html deleted file mode 100644 index 1203523ac..000000000 --- a/dom/presentation/tests/mochitest/file_presentation_non_receiver.html +++ /dev/null @@ -1,41 +0,0 @@ -<!DOCTYPE HTML> -<html> -<head> - <meta charset="utf-8"> - <title>Test for B2G PresentationReceiver on a non-receiver page at receiver side</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) { - is(navigator.presentation.receiver, null, "navigator.presentation.receiver shouldn't be available in non-receiving pages."); - aResolve(); - }); -} - -testConnectionAvailable(). -then(finish); - -</script> -</body> -</html> |