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)

enhancement

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
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.
Status: NEW → ASSIGNED
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+
(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.
Keywords: checkin-needed
has one open issue that need to be fixed first before we can land this
Flags: needinfo?(vkatsikaros)
Keywords: checkin-needed
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!
Flags: needinfo?(vkatsikaros)
Carsten, all should be resolved now.
Flags: needinfo?(cbook)
Pushed by cbook@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/868098c2cffa Add tests for network requests cookie-related filter options. r=Honza
Flags: needinfo?(cbook)
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: