Part 5: Update devtools to follow displayName change

Issue #87
This commit is contained in:
janekptacijarabaci 2018-03-19 16:15:11 +01:00 committed by Roy Tam
commit 359afc3ad5
5 changed files with 51 additions and 37 deletions

View file

@ -58,7 +58,7 @@ function consoleOpened(hud) {
waitForMessages({
webconsole: gWebConsole,
messages: [{
text: "function _pfactory/<.getName()",
text: "getName()",
category: CATEGORY_OUTPUT,
objects: true,
}],

View file

@ -36,10 +36,10 @@ var inputTests = [
suppressClick: true
},
// 3 - anonymous function, but spidermonkey gives us an inferred name.
// 3 - anonymous function, but gets name.
{
input: "testobj1.testfn2",
output: "function testobj1.testfn2()",
output: "function testfn2()",
printOutput: "function () { return 42; }",
suppressClick: true
},