1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/components/shell/test/browser_633221.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +function test() { 1.5 + let osString = Cc["@mozilla.org/xre/app-info;1"]. 1.6 + getService(Ci.nsIXULRuntime).OS; 1.7 + 1.8 + // this test is Linux-specific 1.9 + if (osString != "Linux") 1.10 + return; 1.11 + 1.12 + let shell = Cc["@mozilla.org/browser/shell-service;1"]. 1.13 + getService(Ci.nsIShellService); 1.14 + 1.15 + shell.setDefaultBrowser(true, false); 1.16 + ok(shell.isDefaultBrowser(true, false), "we got here and are the default browser"); 1.17 + ok(shell.isDefaultBrowser(true, true), "we got here and are the default browser"); 1.18 +}