Bug 1007057 - add logs to test in case of orange. r=pbrosset

This commit is contained in:
Paul Rouget 2014-06-12 14:47:36 +08:00
parent 7ee35374fb
commit 5e592ad7fa
3 changed files with 8 additions and 0 deletions

View File

@ -168,6 +168,7 @@ let UI = {
let timeout = setTimeout(() => {
this.unbusy();
UI.reportError("error_operationTimeout", operationDescription);
promise.reject("promise timeout: " + operationDescription);
}, 30000);
this.busy();
promise.then(() => {

View File

@ -35,6 +35,7 @@ function openWebIDE() {
win.addEventListener("load", function onLoad() {
win.removeEventListener("load", onLoad);
info("WebIDE open");
SimpleTest.requestCompleteLog();
SimpleTest.executeSoon(() => {
deferred.resolve(win);
});

View File

@ -25,6 +25,9 @@
yield win.AppProjects.load();
is(win.AppProjects.store.object.projects.length, 0, "IDB is empty");
info("to call importPackagedApp(" + packagedAppLocation + ")");
ok(!win.UI._busyPromise, "UI is not busy");
yield win.Cmds.importPackagedApp(packagedAppLocation);
let project = win.AppManager.selectedProject;
@ -58,6 +61,9 @@
yield removeAllProjects();
SimpleTest.finish();
}).then(null, e => {
ok(false, "Exception: " + e);
SimpleTest.finish();
});
}