Bug 58560 - Port Mozilla's IndexedDB test cases to WebKit
Summary: Port Mozilla's IndexedDB test cases to WebKit
Status: RESOLVED DUPLICATE of bug 59492
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P3 Normal
Assignee: Nobody
URL:
Keywords:
: 58356 58368 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-04-14 11:49 PDT by Mark Pilgrim (Google)
Modified: 2011-04-27 14:40 PDT (History)
5 users (show)

See Also:


Attachments
first draft of tests (incomplete) (61.07 KB, patch)
2011-04-14 11:52 PDT, Mark Pilgrim (Google)
no flags Details | Formatted Diff | Diff
second draft of tests (incomplete) (80.72 KB, patch)
2011-04-14 17:57 PDT, Mark Pilgrim (Google)
no flags Details | Formatted Diff | Diff
third draft of tests (incomplete) (116.66 KB, patch)
2011-04-15 10:45 PDT, Mark Pilgrim (Google)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Pilgrim (Google) 2011-04-14 11:49:37 PDT
Specifically, these tests: http://mxr.mozilla.org/mozilla2.0/source/dom/indexedDB/test/
Comment 1 Mark Pilgrim (Google) 2011-04-14 11:52:29 PDT
Created attachment 89618 [details]
first draft of tests (incomplete)

For informal review only.
Comment 2 Mark Pilgrim (Google) 2011-04-14 11:54:10 PDT
*** Bug 58356 has been marked as a duplicate of this bug. ***
Comment 3 Mark Pilgrim (Google) 2011-04-14 11:54:33 PDT
*** Bug 58368 has been marked as a duplicate of this bug. ***
Comment 4 Darin Fisher (:fishd, Google) 2011-04-14 13:11:53 PDT
hans, david, andrei:  it'd be great if you could review this!
Comment 5 Mark Pilgrim (Google) 2011-04-14 17:57:38 PDT
Created attachment 89706 [details]
second draft of tests (incomplete)

Changed webkitIndexedDB to unprefixed + our prefix + Moz prefix, as per discussion with dgrogan. Also added several new tests (key-requirements-*)
Comment 6 Mark Pilgrim (Google) 2011-04-15 10:45:40 PDT
Created attachment 89809 [details]
third draft of tests (incomplete)

more tests added for versionchange event, getting put values, aborting setVersion, syntax variations in readonly and read/write transactions, and getting after an aborted transaction
Comment 7 David Grogan 2011-04-15 12:33:22 PDT
The stuff below is copy/pasted because I don't have permission to edit bugs.

Do I have to become a webkit committer before I can edit bugs?


View in context: https://bugs.webkit.org/attachment.cgi?id=89809&action=review

These look good.  Though I only know much about connection-related stuff like open, close, and setVersion.  Hans, do you want to quick-glance for objectstore, index, etc. suboptimalities?

> third_party/WebKit/LayoutTests/storage/indexeddb/mozilla/versionchange.html:45
> +    request.onblocked = unexpectedErrorCallback;

There's an unexpectedBlockCallback or unexpectedBlockedCallback (extra "ed") that you can use.
Comment 8 Mark Pilgrim (Google) 2011-04-27 14:40:05 PDT
Split into several bugs.

*** This bug has been marked as a duplicate of bug 59492 ***