Bug 769285 - Remove obsolete test of geolocation access token.
authorJosh Matthews <josh@joshmatthews.net>
Thu, 06 Dec 2012 23:00:23 -0500
changeset 115177 739f20de3c1e0dd1ebaaf9c8130a4194846e86fe
parent 115176 adefa12142357e87bd55dbe4ec75571896273a33
child 115178 f5c964696e8172c7c2f9c94405ebd5e5d99ff26c
child 115273 2a54ecb3c0aac9e3ed047ca0a0f58ae9095bff48
child 127135 c7505a7eda40f0a52240796f0f08291f1ce14331
push id23988
push userjosh@joshmatthews.net
push dateFri, 07 Dec 2012 04:00:52 +0000
treeherdermozilla-central@739f20de3c1e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs769285
milestone20.0a1
first release with
nightly linux32
739f20de3c1e / 20.0a1 / 20121207030741 / files
nightly linux64
739f20de3c1e / 20.0a1 / 20121207030741 / files
nightly mac
739f20de3c1e / 20.0a1 / 20121207030741 / files
nightly win32
739f20de3c1e / 20.0a1 / 20121207030741 / files
nightly win64
739f20de3c1e / 20.0a1 / 20121207030741 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 769285 - Remove obsolete test of geolocation access token.
browser/components/privatebrowsing/test/unit/test_geoClearCookie.js
browser/components/privatebrowsing/test/unit/xpcshell.ini
deleted file mode 100644
--- a/browser/components/privatebrowsing/test/unit/test_geoClearCookie.js
+++ /dev/null
@@ -1,41 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-// Test to ensure the geolocation token is cleared when changing the private
-// browsing mode
-
-const accessToken = '{"location":{"latitude":51.5090332,"longitude":-0.1212726,"accuracy":150.0},"access_token":"2:jVhRZJ-j6PiRchH_:RGMrR0W1BiwdZs12"}'
-function run_test_on_service() {
-  var prefBranch = Cc["@mozilla.org/preferences-service;1"].
-                   getService(Ci.nsIPrefBranch);
-  var pb = Cc[PRIVATEBROWSING_CONTRACT_ID].
-           getService(Ci.nsIPrivateBrowsingService);
-  prefBranch.setCharPref("geo.wifi.access_token.test", accessToken);
-  var token = prefBranch.getCharPref("geo.wifi.access_token.test");
-  do_check_eq(token, accessToken);
-  pb.privateBrowsingEnabled = true;
-  token = "";
-  try {
-    token = prefBranch.getCharPref("geo.wifi.access_token.test");
-  }
-  catch(e){}
-  finally {
-    do_check_eq(token, "");
-  }
-  token = "";
-  prefBranch.setCharPref("geo.wifi.access_token.test", accessToken);
-  pb.privateBrowsingEnabled = false;
-  try {
-    token = prefBranch.getCharPref("geo.wifi.access_token.test");
-  }
-  catch(e){}
-  finally {
-    do_check_eq(token, "");
-  }
-}
-
-// Support running tests on both the service itself and its wrapper
-function run_test() {
-  run_test_on_all_services();
-}
--- a/browser/components/privatebrowsing/test/unit/xpcshell.ini
+++ b/browser/components/privatebrowsing/test/unit/xpcshell.ini
@@ -1,16 +1,15 @@
 [DEFAULT]
 head = head_privatebrowsing.js
 tail = tail_privatebrowsing.js
 
 [test_0-privatebrowsing.js]
 [test_0-privatebrowsingwrapper.js]
 [test_aboutprivatebrowsing.js]
-[test_geoClearCookie.js]
 [test_httpauth.js]
 [test_placesTitleNoUpdate.js]
 [test_privatebrowsing_autostart.js]
 [test_privatebrowsing_commandline.js]
 [test_privatebrowsing_exit.js]
 [test_privatebrowsing_telemetry.js]
 [test_privatebrowsingwrapper_autostart.js]
 [test_privatebrowsingwrapper_commandline.js]