mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 562884: Non-Firefox apps fail running test_fuel.js. r=robstrong
This commit is contained in:
parent
065ecaff79
commit
bc100d717d
@ -48,10 +48,22 @@ var testdata = {
|
||||
dummy: "fuel.fuel-test"
|
||||
};
|
||||
|
||||
var Application = AM_Cc["@mozilla.org/fuel/application;1"].
|
||||
getService(AM_Ci.nsISupports);
|
||||
var Application = null
|
||||
|
||||
function run_test() {
|
||||
var cm = AM_Cc["@mozilla.org/categorymanager;1"].
|
||||
getService(AM_Ci.nsICategoryManager);
|
||||
|
||||
try {
|
||||
var contract = cm.getCategoryEntry("JavaScript global privileged property",
|
||||
"Application");
|
||||
Application = AM_Cc[contract].getService(AM_Ci.extIApplication);
|
||||
}
|
||||
catch (e) {
|
||||
// This application does not include a FUEL variant.
|
||||
return;
|
||||
}
|
||||
|
||||
do_test_pending();
|
||||
createAppInfo("xpcshell@tests.mozilla.org", "XPCShell", "1", "1.9.2");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user