forked from mirrors/gecko-dev
Bug 1501445 - Remove unused netwerk/wifi/tests/wifi_access_point_test.html. r=jdm
Differential Revision: https://phabricator.services.mozilla.com/D11443 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
8d6b57d979
commit
d5550b277c
2 changed files with 0 additions and 62 deletions
|
|
@ -33,8 +33,6 @@ netwerk/test/browser/**
|
|||
netwerk/test/httpserver/**
|
||||
netwerk/test/mochitests/**
|
||||
netwerk/test/unit*/**
|
||||
# Bug 1501445.
|
||||
netwerk/wifi/tests/wifi_access_point_test.html
|
||||
parser/**
|
||||
tools/update-packaging/**
|
||||
uriloader/exthandler/**
|
||||
|
|
|
|||
|
|
@ -1,60 +0,0 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>hi</title>
|
||||
<script>
|
||||
|
||||
var count = 0;
|
||||
|
||||
|
||||
function test() {
|
||||
}
|
||||
|
||||
test.prototype =
|
||||
{
|
||||
onChange: function (accessPoints)
|
||||
{
|
||||
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
|
||||
var d = document.getElementById("d");
|
||||
d.innerHTML = "";
|
||||
|
||||
for (var i=0; i<accessPoints.length; i++) {
|
||||
var a = accessPoints[i];
|
||||
d.innerHTML = d.innerHTML + "<p>" + a.mac + " " + a.ssid + " " + a.signal + "</p>";
|
||||
}
|
||||
|
||||
var c = document.getElementById("c");
|
||||
c.innerHTML = "<p>" + count++ + "</p>";
|
||||
|
||||
},
|
||||
|
||||
onError: function (value) {
|
||||
alert("error: " +value);
|
||||
},
|
||||
|
||||
QueryInterface: function(iid) {
|
||||
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
|
||||
if (iid.equals(Ci.nsIWifiListener) ||
|
||||
iid.equals(Ci.nsISupports))
|
||||
return this;
|
||||
throw Cr.NS_ERROR_NO_INTERFACE;
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
|
||||
|
||||
var listener = new test();
|
||||
var wifi_service = Cc["@mozilla.org/wifi/monitor;1"].getService(Ci.nsIWifiMonitor);
|
||||
|
||||
wifi_service.startWatching(listener);
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="d"><p></p></div>
|
||||
<div id="c"><p></p></div>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in a new issue