Closed
Bug 1145792
Opened 9 years ago
Closed 9 years ago
Add a test for the Cache.keys method
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file)
4.36 KB,
patch
|
bkelly
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8580893 -
Flags: review?(bkelly)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → ehsan
Blocks: cachetests
Comment 2•9 years ago
|
||
Comment on attachment 8580893 [details] [diff] [review] Add a test for the Cache.keys method Review of attachment 8580893 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/cache/test/mochitest/test_cache_keys.js @@ +19,5 @@ > +}).then(function(keys) { > + is(keys.length, tests.length, "Same number of elements"); > + keys.forEach(function(r, i) { > + ok(r instanceof Request, "Valid request object"); > + ok(r.url.indexOf(tests[i]) >= 0, "Valid URL"); Maybe indicate you are validating the order here as well. Note, if a particular addAll() entry is very slow to load its body, then we probably mis-order the addAll() entries in sqlite. This should be fixed when we implement bug 1110137.
Attachment #8580893 -
Flags: review?(bkelly) → review+
Assignee | ||
Comment 3•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/e30f28652715
Comment 4•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e30f28652715
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•