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

IDBCursorWithValue->IDBCursor #1

Closed
wants to merge 1 commit into from
Closed

Conversation

brettz9
Copy link
Owner

@brettz9 brettz9 commented Jun 15, 2016

According to the draft spec (as opposed to the Recommendation), only openKeyCursor could create a cursor which implements IDBCursorWithValue. Otherwise, it should be IDBCursor.

According to the draft spec (as opposed to the Recommendation), only `openKeyCursor` could create a cursor which implements `IDBCursorWithValue`. Otherwise, it should be `IDBCursor`.
brettz9 added a commit to brettz9/IndexedDBShim that referenced this pull request Jun 15, 2016
brettz9 added a commit to brettz9/IndexedDBShim that referenced this pull request Jun 16, 2016
…g fix: Fix test to reflect latest draft spec; see brettz9/web-platform-tests#1 ; Testing fix: Change example to expect `ConstraintError` (since object store already existing per test)--though perhaps should ensure it is not yet existing; Test scaffolding fix: Fix args to initionalSituation(); Test scaffolding fix: Fix test ok condition, typo; Adapt changes from wibimaster:Fix_Object_Type to allow object type encoding/decoding; Test scaffolding fix: assertions; Fix: Allow `__versionTransaction` not to exist (if user calling it wrong) and test it so it will return an `InvalidStateError`; Fix: Allow empty string keyPath for index to return value as is (for     handling non-object values as keys); Fix: Ensure "prev" cursor will iterate in descending order on primary key (sort by keyPath-indicated value then primary key); Fix: Ensure the error thrown for a count <=0 to `advance()` is a genuine `TypeError` - Fix: Ensure other bad counts passed to `advance()` (non-numbers or non-finite numbers); Fix: throw `TypeError` as per W3C tests (even though the spec is silent on bad counts except for count=0); Fix: Add transaction to `IDBCursor` request; Fix: Ensure will throw when "got value flag" is unset during call to `continue` or `advance`; Fix: For `advance`/`continue`, throw if the cursor source or effective object store has been deleted; Fix: Replace `instanceof` checks with `Array.isArray()` for arrays and with duck-typing otherwise (for reliability with cross-window/module data); Refactoring: Where safe, switch from typeof ... === 'undefined' to check against undefined (safe for strict mode implicit in modules); (Testing: W3C IDBCursor.advance.js tests now all passing); -Refactoring: Use spread operator in place of `arguments` where named args not needed (also may be more future-proof); Refactoring: minor, including ES6;
brettz9 added a commit to brettz9/IndexedDBShim that referenced this pull request Jun 16, 2016
-Fix: Adapt changes from wibimaster:Fix_Object_Type to allow object type encoding/decoding;
-Fix: Allow `__versionTransaction` not to exist (if user calling it wrong) and test it so it will return an `InvalidStateError`;
-Fix: Allow empty string keyPath for index to return value as is (for handling non-object values as keys);
-Fix: Ensure "prev" cursor will iterate in descending order on primary key (sort by keyPath-indicated value then primary key);
-Fix: Ensure the error thrown for a count <=0 to `advance()` is a genuine `TypeError`
-Fix: Ensure other bad counts passed to `advance()` (non-numbers or non-finite numbers);
-Fix: throw `TypeError` as per W3C tests (even though the spec is silent on bad counts except for count=0);
-Fix: Add transaction to `IDBCursor` request;
-Fix: Ensure will throw when "got value flag" is unset during call to `continue` or `advance`;
-Fix: For `advance`/`continue`, throw if the cursor source or effective object store has been deleted;
-Fix: Replace `instanceof` checks with `Array.isArray()` for arrays and with duck-typing otherwise (for reliability with cross-window/module data);
-Testing fix: Fix test to reflect latest draft spec -- see brettz9/web-platform-tests#1 ;
-Testing fix: Change example to expect `ConstraintError` (since object store already existing per test)--though perhaps should ensure it is not yet existing;
-Test scaffolding fix: Fix args to initionalSituation();
-Test scaffolding fix: Fix test ok condition, typo;
-Test scaffolding fix: assertions;
(Testing: W3C IDBCursor.advance.js tests now all passing);
-Refactoring: Where safe, switch from typeof ... === 'undefined' to check against undefined (safe for strict mode implicit in modules);
-Refactoring: Use spread operator in place of `arguments` where named args not needed (also may be more future-proof);
-Refactoring: minor, including ES6
@brettz9 brettz9 closed this Jan 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant