Bug 700190 - Fix test_aboutmemory.xul. r=jlebar.

This commit is contained in:
Nicholas Nethercote 2011-11-08 21:34:33 -08:00
parent 8bcfd86fd6
commit f64d3dc133

View File

@ -367,11 +367,10 @@ Other Measurements\n\
SimpleTest.finish();
}
function check(actual, expected) {
var a = actual.QueryInterface(Ci.nsISupportsString).data;
if (a != expected) {
function checkClipboard(actual, expected) {
if (actual != expected) {
dump("*******ACTUAL*******\n");
dump(a);
dump(actual);
dump("******EXPECTED******\n");
dump(expected);
dump("********************\n");
@ -393,7 +392,8 @@ Other Measurements\n\
SimpleTest.executeSoon(function() {
document.querySelector("#" + aFrame).focus();
SimpleTest.waitForClipboard(function(actual) { return check(actual, aExpectedText) },
SimpleTest.waitForClipboard(
function(actual) { return checkClipboard(actual, aExpectedText) },
function() {
synthesizeKey("A", {accelKey: true});
synthesizeKey("C", {accelKey: true});