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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file)

      No description provided.
Attachment #8580893 - Flags: review?(bkelly)
Assignee: nobody → ehsan
Blocks: cachetests
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+
https://hg.mozilla.org/mozilla-central/rev/e30f28652715
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: