Bug 690307 - Add more tests for the localhost + spaces case. r=mak, a=test-only
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Wed, 05 Nov 2014 19:08:45 +0000
changeset 226013 9ebc7ee50a9c
parent 226012 ffb4891a237d
child 226014 f85f63d11f68
push id4105
push userryanvm@gmail.com
push date2014-11-10 18:36 +0000
treeherdermozilla-beta@fa1706ebf845 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak, test-only
bugs690307
milestone34.0
Bug 690307 - Add more tests for the localhost + spaces case. r=mak, a=test-only
browser/base/content/test/general/browser_urlbarTrimURLs.js
--- a/browser/base/content/test/general/browser_urlbarTrimURLs.js
+++ b/browser/base/content/test/general/browser_urlbarTrimURLs.js
@@ -52,16 +52,18 @@ function test() {
   testVal("mailto:admin@mozilla.org");
   testVal("gopher://mozilla.org/");
   testVal("about:config");
   testVal("jar:http://mozilla.org/example.jar!/");
   testVal("view-source:http://mozilla.org/");
 
   testVal("http://localhost");
   testVal("http://someotherhostwithnodots");
+  testVal("http://localhost/ foo bar baz");
+  testVal("http://localhost.localdomain/ foo bar baz", "localhost.localdomain/ foo bar baz");
 
   Services.prefs.setBoolPref(prefname, false);
 
   testVal("http://mozilla.org/");
 
   Services.prefs.setBoolPref(prefname, true);
 
   waitForExplicitFinish();