Closed
Bug 1264682
Opened 7 years ago
Closed 7 years ago
[rep tests] Add tests for event rep
Categories
(DevTools :: Shared Components, enhancement, P1)
DevTools
Shared Components
Tracking
(firefox50 fixed)
Tracking | Status | |
---|---|---|
firefox50 | --- | fixed |
People
(Reporter: linclark, Assigned: linclark)
References
Details
(Whiteboard: [devtools-html])
Attachments
(1 file, 2 obsolete files)
10.41 KB,
patch
|
miker
:
review+
|
Details | Diff | Splinter Review |
See Bug 1257552
Updated•7 years ago
|
Severity: normal → enhancement
Whiteboard: [devtools-html]
Updated•7 years ago
|
Blocks: devtools-html-2
Updated•7 years ago
|
Flags: qe-verify-
Priority: -- → P2
Assignee | ||
Comment 1•7 years ago
|
||
It looks like only a few events have detailed information displayed: MouseEvent, KeyboardEvent, and MessageEvent. What was the reason for choosing those three?
Flags: needinfo?(odvarko)
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → lclark
Updated•7 years ago
|
Status: NEW → ASSIGNED
Iteration: --- → 50.2
Priority: P2 → P1
Assignee | ||
Comment 2•7 years ago
|
||
I think we might want to handle events as an Object... that's what Chrome seems to do and it would come closer to the console's current output.
Attachment #8764983 -
Flags: review?(odvarko)
Assignee | ||
Comment 3•7 years ago
|
||
Attachment #8764983 -
Attachment is obsolete: true
Attachment #8764983 -
Flags: review?(odvarko)
Attachment #8765000 -
Flags: review?(odvarko)
Comment 4•7 years ago
|
||
Comment on attachment 8765000 [details] [diff] [review] Bug1264682.patch Review of attachment 8765000 [details] [diff] [review]: ----------------------------------------------------------------- I think we should also cover the MessageEvent. You can use window.postMessage("test data", "*") + window.addEventListener("message", msgEvent => {}, false); Honza ::: devtools/client/shared/components/test/mochitest/test_reps_event.html @@ +24,5 @@ > + is(renderedRep.type, Event.rep, `Rep correctly selects ${Event.rep.displayName}`); > + > + yield testEvent(); > + yield testMouseEvent(); > + yield testKeyboardEvent(); Can you please yet add: testMessageEvent();
Attachment #8765000 -
Flags: review?(odvarko) → review-
Comment 5•7 years ago
|
||
(In reply to Lin Clark [:linclark] from comment #1) > It looks like only a few events have detailed information displayed: > MouseEvent, KeyboardEvent, and MessageEvent. What was the reason for > choosing those three? I don't recall, perhaps they have been requested by users. But, not sure what would be the other event types we'd like to support. In any case we should support all of them. (In reply to Lin Clark [:linclark] from comment #2) > I think we might want to handle events as an Object... that's what Chrome > seems to do and it would come closer to the console's current output. Nice thing about this specific support is that the user doesn't have to inspect the event object (click open/expand etc.) to see the most important values: i.e. coordinates for mouse event, key code for key event, data for the MessageEvent. They are visible immediately without any explicit user action. In any case Event object should be clickable so, the user can inspect all props in VariablesView. I vote for supporting this, but if "keeping the same UX" has higher priority now, we might want to use special mode for rendering back-compatible markup (I can't remember what was the suggested name for this mode?) Honza
Flags: needinfo?(odvarko)
Updated•7 years ago
|
Iteration: 50.2 - Jul 4 → 50.3 - Jul 18
Updated•7 years ago
|
Iteration: 50.3 - Jul 18 → 50.4 - Aug 1
Assignee | ||
Updated•7 years ago
|
Attachment #8765000 -
Attachment is obsolete: true
Assignee | ||
Comment 6•7 years ago
|
||
Honza's on PTO, so can you review, Mike?
Attachment #8773754 -
Flags: review?(mratcliffe)
Attachment #8773754 -
Flags: review?(mratcliffe) → review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Pushed by cbook@mozilla.com: https://hg.mozilla.org/integration/fx-team/rev/b425256008f5 [rep tests] Add tests for event rep. r=mikeratcliffe
Keywords: checkin-needed
Comment 8•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b425256008f5
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 50
Updated•5 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•