Fix output printed during test failures

Expected value was being printed instead of the actual one.

Original patch by Wolfgang Kluge:

  1e875d4479
redux
David Majda 13 years ago
parent 50be1081e0
commit cb2415a4fd

@ -51,7 +51,7 @@ QUnit.log = function(details) {
if (details.actual && details.expected) {
output += indent("Expected: " + QUnit.jsDump.parse(details.expected)) + "\n";
if (details.actual != details.expected) {
output += indent("Actual: " + QUnit.jsDump.parse(details.expected));
output += indent("Actual: " + QUnit.jsDump.parse(details.actual));
}
}

Loading…
Cancel
Save