зеркало из https://github.com/mozilla/pjs.git
Bug 614561 - pprint() does not take string arguments any more; r=gavin.sharp approval2.0=gavin.sharp
This commit is contained in:
Родитель
36f3192cf5
Коммит
3e20749df4
|
@ -707,7 +707,11 @@ function createAndAppendElement(aParent, aTag, aAttributes)
|
|||
|
||||
function unwrap(aObject)
|
||||
{
|
||||
return XPCNativeWrapper.unwrap(aObject);
|
||||
try {
|
||||
return XPCNativeWrapper.unwrap(aObject);
|
||||
} catch(e) {
|
||||
return aObject;
|
||||
}
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -137,5 +137,11 @@ function testJSTerm()
|
|||
let labels = jsterm.outputNode.querySelectorAll(".jsterm-output-line");
|
||||
ok(labels.length, "more than 0 lines of output for keys(window)");
|
||||
|
||||
jsterm.clearOutput();
|
||||
jsterm.execute("pprint('hi')");
|
||||
// Doesn't conform to checkResult format, bug 614561
|
||||
let label = jsterm.outputNode.querySelector(".jsterm-output-line");
|
||||
is(label.textContent.trim(), '0: "h"\n 1: "i"', 'pprint("hi") worked');
|
||||
|
||||
finishTest();
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче