Closed
Bug 1167181
Opened 9 years ago
Closed 9 years ago
Many computed view tests don't wait for rule update to finish before proceeding
Categories
(DevTools :: Inspector, defect)
DevTools
Inspector
Tracking
(firefox41 fixed)
RESOLVED
FIXED
Firefox 41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
Details
Attachments
(2 files)
(deleted),
patch
|
pbro
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
pbro
:
review+
|
Details | Diff | Splinter Review |
Bug 1161072 identified that some getOriginalLocation request were done after the tests was declared as done! That's because many browser_computer_*.js tests are not waiting for the SelectorView instances to be done loading, especially the updateSourceLink call in its constructor, which ends up dispatching a getOriginalLocation. We should ensure waiting for all stuff to be done with each test before proceeding to the next one!
Assignee | ||
Comment 1•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=083ed2d902f6
Assignee | ||
Comment 2•9 years ago
|
||
Comment on attachment 8608699 [details] [diff] [review] patch Review of attachment 8608699 [details] [diff] [review]: ----------------------------------------------------------------- computed-view-property-expanded was fired too early, before SelectorView finished initializing and especially finished its getOriginalLocation request.
Attachment #8608699 -
Flags: review?(pbrosset)
Comment 3•9 years ago
|
||
Comment on attachment 8608699 [details] [diff] [review] patch Review of attachment 8608699 [details] [diff] [review]: ----------------------------------------------------------------- Looks good.
Attachment #8608699 -
Flags: review?(pbrosset) → review+
Assignee | ||
Comment 5•9 years ago
|
||
This patch is not enough, browser/devtools/styleinspector/test/browser_computedview_matched-selectors_01.js still dispatch some getOriginalLocation requests on shutdown.
Keywords: leave-open
Assignee | ||
Comment 7•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=0965450679c4 Looks like I also need to delay the promise returned by refreshMatchedSelectors as it is being called by test without waiting for computed-view-property-expanded event.
Assignee | ||
Updated•9 years ago
|
Attachment #8610531 -
Flags: review?(pbrosset)
Updated•9 years ago
|
Attachment #8610531 -
Flags: review?(pbrosset) → review+
Assignee | ||
Updated•9 years ago
|
Keywords: leave-open
https://hg.mozilla.org/mozilla-central/rev/f78cdc1f29ed
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 41
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•