"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "toolkit/components/urlformatter/tests/unit/test_urlformatter.js" between
UXP-2019.03.27.tar.gz and UXP-2019.06.08.tar.gz

About: Basilisk is a full-featured, optimized browser derived from the code behind the pre-Servo Firefox browser (29–56 era). UXP = Unified XUL Platform. Source code.

test_urlformatter.js  (UXP-2019.03.27):test_urlformatter.js  (UXP-2019.06.08)
skipping to change at line 30 skipping to change at line 30
var macutils = null; var macutils = null;
try { try {
macutils = Cc["@mozilla.org/xpcom/mac-utils;1"]. macutils = Cc["@mozilla.org/xpcom/mac-utils;1"].
getService(Ci.nsIMacUtils); getService(Ci.nsIMacUtils);
} catch (e) {} } catch (e) {}
var appInfo = Cc["@mozilla.org/xre/app-info;1"]. var appInfo = Cc["@mozilla.org/xre/app-info;1"].
getService(Ci.nsIXULAppInfo). getService(Ci.nsIXULAppInfo).
QueryInterface(Ci.nsIXULRuntime); QueryInterface(Ci.nsIXULRuntime);
var abi = macutils && macutils.isUniversalBinary ? "Universal-gcc3" : appInfo. XPCOMABI; var abi = macutils && macutils.isUniversalBinary ? "Universal-gcc3" : appInfo. XPCOMABI;
let channel = "default";
let defaults = prefs.QueryInterface(Ci.nsIPrefService).getDefaultBranch(null); let defaults = prefs.QueryInterface(Ci.nsIPrefService).getDefaultBranch(null);
try { let channel = defaults.getCharPref("app.update.channel", "default");
channel = defaults.getCharPref("app.update.channel");
} catch (e) {}
// Set distribution values. // Set distribution values.
defaults.setCharPref("distribution.id", "bacon"); defaults.setCharPref("distribution.id", "bacon");
defaults.setCharPref("distribution.version", "1.0"); defaults.setCharPref("distribution.version", "1.0");
var upperUrlRaw = "http://%LOCALE%.%VENDOR%.foo/?name=%NAME%&id=%ID%&version=% VERSION%&platversion=%PLATFORMVERSION%&abid=%APPBUILDID%&pbid=%PLATFORMBUILDID%& app=%APP%&os=%OS%&abi=%XPCOMABI%"; var upperUrlRaw = "http://%LOCALE%.%VENDOR%.foo/?name=%NAME%&id=%ID%&version=% VERSION%&platversion=%PLATFORMVERSION%&abid=%APPBUILDID%&pbid=%PLATFORMBUILDID%& app=%APP%&os=%OS%&abi=%XPCOMABI%";
var lowerUrlRaw = "http://%locale%.%vendor%.foo/?name=%name%&id=%id%&version=% version%&platversion=%platformversion%&abid=%appbuildid%&pbid=%platformbuildid%& app=%app%&os=%os%&abi=%xpcomabi%"; var lowerUrlRaw = "http://%locale%.%vendor%.foo/?name=%name%&id=%id%&version=% version%&platversion=%platformversion%&abid=%appbuildid%&pbid=%platformbuildid%& app=%app%&os=%os%&abi=%xpcomabi%";
// XXX %APP%'s RegExp is not global, so it only replaces the first space // XXX %APP%'s RegExp is not global, so it only replaces the first space
var ulUrlRef = "http://" + locale + ".Mozilla.foo/?name=Url Formatter Test&id= urlformattertest@test.mozilla.org&version=1&platversion=2.0&abid=" + gAppInfo.ap pBuildID + "&pbid=" + gAppInfo.platformBuildID + "&app=urlformatter test&os=XPCS hell&abi=" + abi; var ulUrlRef = "http://" + locale + ".Mozilla.foo/?name=Url Formatter Test&id= urlformattertest@test.mozilla.org&version=1&platversion=2.0&abid=" + gAppInfo.ap pBuildID + "&pbid=" + gAppInfo.platformBuildID + "&app=urlformatter test&os=XPCS hell&abi=" + abi;
var multiUrl = "http://%VENDOR%.%VENDOR%.%NAME%.%VENDOR%.%NAME%"; var multiUrl = "http://%VENDOR%.%VENDOR%.%NAME%.%VENDOR%.%NAME%";
var multiUrlRef = "http://Mozilla.Mozilla.Url Formatter Test.Mozilla.Url Forma tter Test"; var multiUrlRef = "http://Mozilla.Mozilla.Url Formatter Test.Mozilla.Url Forma tter Test";
 End of changes. 2 change blocks. 
4 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)