Bug 995806 - Remove http request to non-local host in test_DirectoryLinksProvider.js. a=test-only
authorMaxim Zhilyaev <mzhilyaev@mozilla.com>
Thu, 26 Jun 2014 13:58:00 -0400
changeset 200655 5c047cecbe5ab1c2ad2bdca4fcb8dda2281751a8
parent 200654 3f2a4a1c1a845b21c26a0a83c800df117d6a255e
child 200656 aef4862304e6353f5ea6878a3f13912a2939c5ed
push id486
push userasasaki@mozilla.com
push dateMon, 14 Jul 2014 18:39:42 +0000
treeherdermozilla-release@d33428174ff1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only
bugs995806
milestone31.0
Bug 995806 - Remove http request to non-local host in test_DirectoryLinksProvider.js. a=test-only
toolkit/modules/tests/xpcshell/test_DirectoryLinksProvider.js
--- a/toolkit/modules/tests/xpcshell/test_DirectoryLinksProvider.js
+++ b/toolkit/modules/tests/xpcshell/test_DirectoryLinksProvider.js
@@ -121,17 +121,17 @@ add_task(function test_DirectoryLinksPro
   let links = yield fetchData(provider);
   do_check_eq(links.length, 1);
   let expectedData =  [{url: "http://example.com", title: "TestSource", frecency: DIRECTORY_FRECENCY, lastVisitDate: 1}];
   isIdentical(links, expectedData);
 
   // tests these 2 things:
   // 1. observer trigger on pref change
   // 2. invalid source url
-  let exampleUrl = 'http://example.com/bad';
+  let exampleUrl = 'http://nosuchhost.localhost/bad';
   Services.prefs.setCharPref(provider._prefs['linksURL'], exampleUrl);
 
   do_check_eq(provider._linksURL, exampleUrl);
 
   let newLinks = yield fetchData(provider);
   isIdentical(newLinks, []);
 
   provider.reset();