Closed
Bug 1360473
Opened 8 years ago
Closed 8 years ago
Add tests for network requests cookie-related filter options
Categories
(DevTools :: Netmonitor, enhancement, P3)
DevTools
Netmonitor
Tracking
(firefox55 fixed)
RESOLVED
FIXED
Firefox 55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: vkatsikaros, Assigned: vkatsikaros)
References
Details
Attachments
(1 file)
After https://bugzilla.mozilla.org/show_bug.cgi?id=1354507 it makes sense to add related tests for the set-cookie-* filter options
Updated•8 years ago
|
Priority: -- → P3
Comment 1•8 years ago
|
||
Tests for flag filtering are here:
https://dxr.mozilla.org/mozilla-central/source/devtools/client/netmonitor/test/browser_net_filter-flags.js
Comment hidden (mozreview-request) |
Assignee | ||
Comment 3•8 years ago
|
||
mozreview-review |
Comment on attachment 8865196 [details]
Bug 1360473 - Add tests for network requests cookie-related filter options.
https://reviewboard.mozilla.org/r/136864/#review139858
::: devtools/client/netmonitor/test/browser_net_filter-flags.js:141
(Diff revision 1)
> store.dispatch(Actions.setRequestFilterText(value));
> }
>
> info("Starting test... ");
>
> - let waitNetwork = waitForNetworkEvents(monitor, 8);
> + let waitNetwork = waitForNetworkEvents(monitor, REQUESTS.length);
I guess this doesn't really need to be hardcoded.
Assignee | ||
Updated•8 years ago
|
Status: NEW → ASSIGNED
Comment 4•8 years ago
|
||
mozreview-review |
Comment on attachment 8865196 [details]
Bug 1360473 - Add tests for network requests cookie-related filter options.
https://reviewboard.mozilla.org/r/136864/#review139996
LGTM!
> I guess this doesn't really need to be hardcoded.
I don't understand this comment. The number of requests needs to be passed into `waitForNetworkEvents`
You might want to look at:
http://searchfox.org/mozilla-central/rev/8b70b0a5038ef9472fe7c53e04a70c978bb06aed/devtools/client/netmonitor/test/head.js#280
Thanks for working on this!
Honza
Attachment #8865196 -
Flags: review?(odvarko) → review+
Comment 5•8 years ago
|
||
(In reply to Vangelis Katsikaros from comment #3)
> Comment on attachment 8865196 [details]
> Bug 1360473 - Add tests for network requests cookie-related filter options.
>
> https://reviewboard.mozilla.org/r/136864/#review139858
>
> ::: devtools/client/netmonitor/test/browser_net_filter-flags.js:141
> (Diff revision 1)
> > store.dispatch(Actions.setRequestFilterText(value));
> > }
> >
> > info("Starting test... ");
> >
> > - let waitNetwork = waitForNetworkEvents(monitor, 8);
> > + let waitNetwork = waitForNetworkEvents(monitor, REQUESTS.length);
>
> I guess this doesn't really need to be hardcoded.
Agreed, REQUESTS.length is better than 9. I think it was just a copy-paste leftover when I wrote the test.
Updated•8 years ago
|
Keywords: checkin-needed
Comment 6•8 years ago
|
||
has one open issue that need to be fixed first before we can land this
Flags: needinfo?(vkatsikaros)
Keywords: checkin-needed
Assignee | ||
Comment 7•8 years ago
|
||
mozreview-review-reply |
Comment on attachment 8865196 [details]
Bug 1360473 - Add tests for network requests cookie-related filter options.
https://reviewboard.mozilla.org/r/136864/#review139996
Honza, sorry for not being clearer. I saw that originally the number of requests was hardcoded to 8, but I changed it to REQUESTS.length (which would be 9 after this patch). I was wondering if there is a reason for this to be hardcoded.
Tim replied to that with
> Agreed, REQUESTS.length is better than 9. I think it was just a copy-paste leftover when I wrote the test.
Thanks for the input everyone!
Assignee | ||
Updated•8 years ago
|
Flags: needinfo?(vkatsikaros)
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/868098c2cffa
Add tests for network requests cookie-related filter options. r=Honza
Updated•8 years ago
|
Flags: needinfo?(cbook)
Comment 10•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•