Closed
Bug 1307885
Opened 9 years ago
Closed 8 years ago
Test prepareMessage
Categories
(DevTools :: Console, enhancement)
DevTools
Console
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: linclark, Unassigned)
References
Details
Originally posted by:linclark
see https://github.com/devtools-html/gecko-dev/issues/152
We can test `prepareMessage` pretty easily by stubbing out the `ConsoleMessage`s that we expect for each line of input. This means that we can have confidence in the API that `ConsoleMessage` provides.
This is great because it means we could remove all of the packet fetching from the component tests.
| Reporter | ||
Updated•9 years ago
|
Priority: -- → P2
Whiteboard: new-console
Updated•9 years ago
|
Blocks: enable-new-console
Flags: qe-verify-
Priority: P2 → P3
Whiteboard: new-console → [reserve-new-console]
Updated•9 years ago
|
Whiteboard: [reserve-new-console] → [reserve-console-html]
Updated•8 years ago
|
Priority: P3 → P4
Updated•8 years ago
|
Flags: qe-verify-
Priority: P4 → P2
Whiteboard: [reserve-console-html] → [newconsole-mvp]
Comment 1•8 years ago
|
||
I started working on this, but felt like it is redundant with all the other mocha test we have + our stub generation setup.
Brian, what do you think of closing this (or at least removing it from the mvp) ?
The only thing would be able to test cached messages, but I'd rather do this by generating cached packet in stubs and compare the resulting message against a "live" packet message.
Flags: needinfo?(bgrinstead)
Comment 2•8 years ago
|
||
(In reply to Nicolas Chevobbe [:nchevobbe] from comment #1)
> I started working on this, but felt like it is redundant with all the other
> mocha test we have + our stub generation setup.
> Brian, what do you think of closing this (or at least removing it from the
> mvp) ?
> The only thing would be able to test cached messages, but I'd rather do this
> by generating cached packet in stubs and compare the resulting message
> against a "live" packet message.
Yeah, let's close this.
Flags: needinfo?(bgrinstead)
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Priority: P2 → --
Resolution: --- → INVALID
Whiteboard: [newconsole-mvp]
Updated•8 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•