Closed
Bug 576962
Opened 14 years ago
Closed 14 years ago
console log/info etc. does handle multiple arguments + newline (\n)
Categories
(DevTools :: General, defect)
DevTools
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: julian.viereck, Assigned: julian.viereck)
References
Details
Attachments
(1 file, 3 obsolete files)
5.31 KB,
patch
|
Details | Diff | Splinter Review |
The console functions like console.log or console.info can take more then one argument. Also, a string passed to these functions containing a newline character (\n) should cause a new line in the console output. This is not supported yet.
Assignee | ||
Comment 1•14 years ago
|
||
Assignee | ||
Comment 2•14 years ago
|
||
Required patch for running later unit tests.
Attachment #456042 -
Attachment is obsolete: true
Attachment #456042 -
Flags: review?(ddahl)
Assignee | ||
Comment 3•14 years ago
|
||
Attachment #457547 -
Flags: review?(dietrich)
Comment 4•14 years ago
|
||
Comment on attachment 457547 [details] [diff] [review] Final Patch >+ let HUD = HUDService.hudWeakReferences[hudId].get(); >+ let jsterm = HUD.jsterm; >+ let outputLogNode = jsterm.outputNode; >+ ok(/foo bar/.test(outputLogNode.childNodes[0].childNodes[0].nodeValue), >+ "Emitted both console arguments"); wonky indent. r=me otherwise.
Attachment #457547 -
Flags: review?(dietrich) → review+
Updated•14 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Version: unspecified → Trunk
Assignee | ||
Comment 5•14 years ago
|
||
(In reply to comment #4) > Comment on attachment 457547 [details] [diff] [review] > >+ ok(/foo bar/.test(outputLogNode.childNodes[0].childNodes[0].nodeValue), > >+ "Emitted both console arguments"); > > wonky indent. > > r=me otherwise. What is the right version? ok(/foo bar/.test(outputLogNode.childNodes[0].childNodes[0].nodeValue), "Emitted both console arguments"); indent to the open bracket ?
Comment 6•14 years ago
|
||
yeah, or even just a single indent...
Assignee | ||
Comment 7•14 years ago
|
||
Same as 457547 but fixed indention as required by reviewer. Note: needs patch from bug 579073 applied.
Attachment #457546 -
Attachment is obsolete: true
Attachment #457547 -
Attachment is obsolete: true
Comment 8•14 years ago
|
||
Comment on attachment 457669 [details] [diff] [review] [checked-in] Final Patch v2 changeset: 47817:f120e7e60a16 user: Julian Viereck <jviereck@mozilla.com> date: Fri Jul 16 12:00:53 2010 -0300 summary: bug 576962 - console log/info etc. does handle multiple arguments + newline, r=dietrich
Attachment #457669 -
Attachment description: Final Patch v2 → [checked-in] Final Patch v2
Updated•14 years ago
|
Whiteboard: checkin-needed
Updated•14 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•