Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox compatibility, IndexedDB fixes; batch remove fixes; issue #108. #130

Merged
merged 18 commits into from
Oct 17, 2012

Commits on Oct 17, 2012

  1. Firefox fixes for html5-filesystem adapter.

    Doesn't actually make this adapter work on Firefox, but at least keeps it
    from crashing the test suite.
    cscott committed Oct 17, 2012
    Configuration menu
    Copy the full SHA
    c6f8f33 View commit details
    Browse the repository at this point in the history
  2. Use the standard 'textContent' property instead of 'innerText' in tes…

    …t suite.
    
    This makes the new 'click to test an adapter' functionality work on Firefox.
    cscott committed Oct 17, 2012
    Configuration menu
    Copy the full SHA
    efba506 View commit details
    Browse the repository at this point in the history
  3. Remove explicit timeouts from test suite to avoid bogus failures.

    Firefox's IndexedDB implementation is significantly slower than webkit's,
    which causes sporadic failures of the test suite.
    cscott committed Oct 17, 2012
    Configuration menu
    Copy the full SHA
    88f9263 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9c6e3d1 View commit details
    Browse the repository at this point in the history
  5. IndexedDB: Manually unregister event handlers in adapter to prevent l…

    …eak.
    
    This prevents a leak in Chrome.  Granted, this is actually a bug in chrome:
    the request objects should get garbage collected which should also free up
    the event listeners.  But this doesn't appear to be happening (as shown
    in Chrome's memory tracing tools).
    cscott committed Oct 17, 2012
    Configuration menu
    Copy the full SHA
    a43c056 View commit details
    Browse the repository at this point in the history
  6. IndexedDB: Update READ_WRITE constant to match latest spec (Chrome 21).

    Numeric constants for transaction mode are deprecated.
    cscott committed Oct 17, 2012
    Configuration menu
    Copy the full SHA
    1706f70 View commit details
    Browse the repository at this point in the history
  7. IndexedDB: Workaround Firefox bug w/ openCursor method.

    Spec says that cursor is null if the range is empty, but firefox makes the
    cursor undefined instead.
    cscott committed Oct 17, 2012
    Configuration menu
    Copy the full SHA
    27fbbcb View commit details
    Browse the repository at this point in the history
  8. IndexedDB: Update 'versionchange' to match latest spec (Chrome 21, Fi…

    …refox).
    
    Transaction creation inside a versionchange transaction is disallowed.
    cscott committed Oct 17, 2012
    Configuration menu
    Copy the full SHA
    c09a3aa View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b704d49 View commit details
    Browse the repository at this point in the history
  10. IndexedDB: Add workaround for implementations that don't support auto…

    …Increment.
    
    Both Firefox and Webkit have issues with the autoIncrement feature of
    IndexedDB.  Let's assume that those bugs will be fixed by the time the
    spec becomes final and indexedDB is unprefixed -- but until that time,
    don't use the feature and use the same this.uuid() key-generator that the
    other implementations use.
    cscott committed Oct 17, 2012
    Configuration menu
    Copy the full SHA
    e334410 View commit details
    Browse the repository at this point in the history
  11. IndexedDB: remove races from implementations of batch() and get(array).

    The previous implementations suffered from race conditions: the order of
    the results was not guaranteed to match the order given in the parameters.
    cscott committed Oct 17, 2012
    Configuration menu
    Copy the full SHA
    a1352b7 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    ebdd3a3 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    04262ce View commit details
    Browse the repository at this point in the history
  14. Add tests for batch add, get, and delete.

    The webkit-sqlite, indexed-db, and dom adapters all fail this new test in
    various ways.
    cscott committed Oct 17, 2012
    Configuration menu
    Copy the full SHA
    023826f View commit details
    Browse the repository at this point in the history
  15. IndexedDB: implement batch remove.

    Implement batch remove.  While we're at it, make the "is this a key or
    an object containing a key" test consistent with that used in the other
    adapters.
    cscott committed Oct 17, 2012
    Configuration menu
    Copy the full SHA
    194bddf View commit details
    Browse the repository at this point in the history
  16. dom adapter: fix get(array) with nonexistent key; fix remove(array).

    Passing an array to get() could previously return a result array shorter
    than the parameter array, since keys not present in the lawnchair were missing
    from the result.  Add 'null' in the place of the missing result, to be
    consistent with other adapters.
    
    Implement batch remove (using code borrowed from the indexedDB adapter).
    cscott committed Oct 17, 2012
    Configuration menu
    Copy the full SHA
    1fd4e2f View commit details
    Browse the repository at this point in the history
  17. webkit-sqlite adapter: various fixes to batch(), get(), and remove().

    Update the batch() implementation to match that used in the other
    adapters.  Removes the need for setInterval() to poll for completion.
    
    Fix sql quoting issues in get() implementation, and ensure that the
    order of returned results matches the order of the keys provided as
    arguments in the batch get case.
    
    Implement batch remove.  Update the "is this a key or an object containing
    a key" test to match that used in the other adapters.
    cscott committed Oct 17, 2012
    Configuration menu
    Copy the full SHA
    530cca9 View commit details
    Browse the repository at this point in the history
  18. Fix 'independent data stores' failure in memory and window-name adapt…

    …ers.
    
    Also fixes issue brianleroux#108 with the nuke() method, while we're at it.
    
    In addition, a few minor changes to try to make memory and window-name more
    nearly identical, although a number of unnecessary whitespace diffs remain.
    cscott committed Oct 17, 2012
    Configuration menu
    Copy the full SHA
    01cf775 View commit details
    Browse the repository at this point in the history