Permalink
Browse files

Some debug code for the commandLine/5873 test

  • Loading branch information...
1 parent 602964a commit 141bcd67ce426eaa3311df18e819614a4f94b0cf @simonlindholm simonlindholm committed Jan 3, 2013
Showing with 10 additions and 3 deletions.
  1. +10 −3 tests/content/commandLine/5873/issue5873.js
@@ -62,8 +62,17 @@ function runTest()
}
var src = (createA + "").replace(/\n/g,' ').replace(/ +/g, ' ');
src += " createA();";
+ var sync = false;
FW.Firebug.CommandLine.evaluate(src, FW.Firebug.currentContext, undefined,
- undefined, function() {}, function() {});
+ undefined, function()
+ {
+ sync = true;
+ }, function(e)
+ {
+ sync = true;
+ FBTest.compare(1, 0, "evaluation error: " + e);
+ });
+ FBTest.compare(true, sync, "Evaluation must be syncronous.");
callback();
}
@@ -86,8 +95,6 @@ function runTest()
}).join(",");
var wanted = "catched,helper,local,param,unused,withVar";
FBTest.compare(wanted, joined, "The completion popup should show the right list of closure variables.");
- if (wanted !== joined)
- FBTest.progress("Actual: " + joined);
cmdLine.value = "";
FBTest.setPref("commandLineShowCompleterPopup", false);
callback();

0 comments on commit 141bcd6

Please sign in to comment.