mirror of
https://github.com/servo/servo.git
synced 2025-09-19 11:20:09 +01:00
script: Ensure autoincrement and keypath are passed in correctly from IDBTransaction (#38738)
Previously, the correct autoincremented and keypath parameters were only being passed if the object store is being created. This PR queries this info from the backend and passes it onto the constructor in IDBTransaction. Furthermore it exposes keypath and index_names from IDBObjectStore, mainly for WPT. Testing: WPT Fixes: None --------- Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
This commit is contained in:
parent
722b0de8d8
commit
97690b1cba
12 changed files with 84 additions and 170 deletions
|
@ -11,6 +11,9 @@
|
|||
[Index key path evaluations operate on a clone]
|
||||
expected: FAIL
|
||||
|
||||
[Key generator and key path validity check operates on a clone]
|
||||
expected: FAIL
|
||||
|
||||
|
||||
[clone-before-keypath-eval.any.serviceworker.html]
|
||||
expected: ERROR
|
||||
|
@ -28,6 +31,9 @@
|
|||
[Index key path evaluations operate on a clone]
|
||||
expected: FAIL
|
||||
|
||||
[Key generator and key path validity check operates on a clone]
|
||||
expected: FAIL
|
||||
|
||||
|
||||
[clone-before-keypath-eval.any.sharedworker.html]
|
||||
expected: ERROR
|
||||
|
|
|
@ -5,9 +5,6 @@
|
|||
[Both with empty name]
|
||||
expected: FAIL
|
||||
|
||||
[Object store 'name' and 'keyPath' properties are correctly set ]
|
||||
expected: FAIL
|
||||
|
||||
[Attempt to create an object store outside of a version change transaction ]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -22,9 +19,6 @@
|
|||
[Both with empty name]
|
||||
expected: FAIL
|
||||
|
||||
[Object store 'name' and 'keyPath' properties are correctly set ]
|
||||
expected: FAIL
|
||||
|
||||
[Attempt to create an object store outside of a version change transaction ]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -39,6 +39,3 @@
|
|||
|
||||
[Calling open() with version argument 9007199254740991 should not throw.]
|
||||
expected: FAIL
|
||||
|
||||
[Calling open() with version argument 1.5 should not throw.]
|
||||
expected: FAIL
|
||||
|
|
|
@ -68,9 +68,6 @@
|
|||
[Get all values with both options and count]
|
||||
expected: FAIL
|
||||
|
||||
[Get all values with invalid query keys]
|
||||
expected: FAIL
|
||||
|
||||
|
||||
[idbobjectstore_getAll-options.tentative.any.serviceworker.html]
|
||||
expected: ERROR
|
||||
|
@ -147,6 +144,3 @@
|
|||
|
||||
[Get all values with both options and count]
|
||||
expected: FAIL
|
||||
|
||||
[Get all values with invalid query keys]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
[idbobjectstore_getAll.any.html]
|
||||
[Single item get]
|
||||
expected: FAIL
|
||||
|
||||
[Single item get (generated key)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -17,12 +14,6 @@
|
|||
[Test maxCount]
|
||||
expected: FAIL
|
||||
|
||||
[Get bound range]
|
||||
expected: FAIL
|
||||
|
||||
[Get bound range with maxCount]
|
||||
expected: FAIL
|
||||
|
||||
[Get upper excluded]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -32,21 +23,12 @@
|
|||
[Get bound range (generated) with maxCount]
|
||||
expected: FAIL
|
||||
|
||||
[Non existent key]
|
||||
expected: FAIL
|
||||
|
||||
[zero maxCount]
|
||||
expected: FAIL
|
||||
|
||||
[Max value count]
|
||||
expected: FAIL
|
||||
|
||||
[Query with empty range where first key < upperBound]
|
||||
expected: FAIL
|
||||
|
||||
[Query with empty range where lowerBound < last key]
|
||||
expected: FAIL
|
||||
|
||||
[Get all values with transaction.commit()]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -58,9 +40,6 @@
|
|||
expected: ERROR
|
||||
|
||||
[idbobjectstore_getAll.any.worker.html]
|
||||
[Single item get]
|
||||
expected: FAIL
|
||||
|
||||
[Single item get (generated key)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -76,12 +55,6 @@
|
|||
[Test maxCount]
|
||||
expected: FAIL
|
||||
|
||||
[Get bound range]
|
||||
expected: FAIL
|
||||
|
||||
[Get bound range with maxCount]
|
||||
expected: FAIL
|
||||
|
||||
[Get upper excluded]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -91,21 +64,12 @@
|
|||
[Get bound range (generated) with maxCount]
|
||||
expected: FAIL
|
||||
|
||||
[Non existent key]
|
||||
expected: FAIL
|
||||
|
||||
[zero maxCount]
|
||||
expected: FAIL
|
||||
|
||||
[Max value count]
|
||||
expected: FAIL
|
||||
|
||||
[Query with empty range where first key < upperBound]
|
||||
expected: FAIL
|
||||
|
||||
[Query with empty range where lowerBound < last key]
|
||||
expected: FAIL
|
||||
|
||||
[Get all values with transaction.commit()]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -65,9 +65,6 @@
|
|||
[Get all keys with both options and count]
|
||||
expected: FAIL
|
||||
|
||||
[Get all keys with invalid query keys]
|
||||
expected: FAIL
|
||||
|
||||
|
||||
[idbobjectstore_getAllKeys-options.tentative.any.serviceworker.html]
|
||||
expected: ERROR
|
||||
|
@ -139,9 +136,6 @@
|
|||
[Get all keys with both options and count]
|
||||
expected: FAIL
|
||||
|
||||
[Get all keys with invalid query keys]
|
||||
expected: FAIL
|
||||
|
||||
|
||||
[idbobjectstore_getAllKeys-options.tentative.any.sharedworker.html]
|
||||
expected: ERROR
|
||||
|
|
|
@ -5,12 +5,6 @@
|
|||
expected: ERROR
|
||||
|
||||
[idbobjectstore_getAllKeys.any.worker.html]
|
||||
[Single item get]
|
||||
expected: FAIL
|
||||
|
||||
[Single item get (generated key)]
|
||||
expected: FAIL
|
||||
|
||||
[getAllKeys on empty object store]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -20,47 +14,23 @@
|
|||
[Test maxCount]
|
||||
expected: FAIL
|
||||
|
||||
[Get bound range]
|
||||
expected: FAIL
|
||||
|
||||
[Get bound range with maxCount]
|
||||
expected: FAIL
|
||||
|
||||
[Get upper excluded]
|
||||
expected: FAIL
|
||||
|
||||
[Get lower excluded]
|
||||
expected: FAIL
|
||||
|
||||
[Get bound range (generated) with maxCount]
|
||||
expected: FAIL
|
||||
|
||||
[Non existent key]
|
||||
expected: FAIL
|
||||
|
||||
[zero maxCount]
|
||||
expected: FAIL
|
||||
|
||||
[Max value count]
|
||||
expected: FAIL
|
||||
|
||||
[Query with empty range where first key < upperBound]
|
||||
expected: FAIL
|
||||
|
||||
[Query with empty range where lowerBound < last key]
|
||||
expected: FAIL
|
||||
|
||||
[Get all keys with invalid query keys]
|
||||
expected: FAIL
|
||||
|
||||
|
||||
[idbobjectstore_getAllKeys.any.html]
|
||||
[Single item get]
|
||||
expected: FAIL
|
||||
|
||||
[Single item get (generated key)]
|
||||
expected: FAIL
|
||||
|
||||
[getAllKeys on empty object store]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -70,35 +40,17 @@
|
|||
[Test maxCount]
|
||||
expected: FAIL
|
||||
|
||||
[Get bound range]
|
||||
expected: FAIL
|
||||
|
||||
[Get bound range with maxCount]
|
||||
expected: FAIL
|
||||
|
||||
[Get upper excluded]
|
||||
expected: FAIL
|
||||
|
||||
[Get lower excluded]
|
||||
expected: FAIL
|
||||
|
||||
[Get bound range (generated) with maxCount]
|
||||
expected: FAIL
|
||||
|
||||
[Non existent key]
|
||||
expected: FAIL
|
||||
|
||||
[zero maxCount]
|
||||
expected: FAIL
|
||||
|
||||
[Max value count]
|
||||
expected: FAIL
|
||||
|
||||
[Query with empty range where first key < upperBound]
|
||||
expected: FAIL
|
||||
|
||||
[Query with empty range where lowerBound < last key]
|
||||
expected: FAIL
|
||||
|
||||
[Get all keys with invalid query keys]
|
||||
expected: FAIL
|
||||
|
|
12
tests/wpt/meta/IndexedDB/idlharness.any.js.ini
vendored
12
tests/wpt/meta/IndexedDB/idlharness.any.js.ini
vendored
|
@ -5,12 +5,6 @@
|
|||
[IDBFactory interface: operation databases()]
|
||||
expected: FAIL
|
||||
|
||||
[IDBObjectStore interface: attribute keyPath]
|
||||
expected: FAIL
|
||||
|
||||
[IDBObjectStore interface: attribute indexNames]
|
||||
expected: FAIL
|
||||
|
||||
[IDBObjectStore interface: operation openCursor(optional any, optional IDBCursorDirection)]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -115,12 +109,6 @@
|
|||
[IDBFactory interface: operation databases()]
|
||||
expected: FAIL
|
||||
|
||||
[IDBObjectStore interface: attribute keyPath]
|
||||
expected: FAIL
|
||||
|
||||
[IDBObjectStore interface: attribute indexNames]
|
||||
expected: FAIL
|
||||
|
||||
[IDBObjectStore interface: operation openCursor(optional any, optional IDBCursorDirection)]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
[keypath-special-identifiers.any.html]
|
||||
expected: TIMEOUT
|
||||
[Type: String, identifier: length]
|
||||
expected: FAIL
|
||||
expected: TIMEOUT
|
||||
|
||||
[Type: Array, identifier: length]
|
||||
expected: FAIL
|
||||
expected: TIMEOUT
|
||||
|
||||
[Type: Blob, identifier: size]
|
||||
expected: FAIL
|
||||
expected: TIMEOUT
|
||||
|
||||
[Type: Blob, identifier: type]
|
||||
expected: FAIL
|
||||
expected: TIMEOUT
|
||||
|
||||
[Type: File, identifier: name]
|
||||
expected: FAIL
|
||||
|
@ -25,17 +26,18 @@
|
|||
expected: ERROR
|
||||
|
||||
[keypath-special-identifiers.any.worker.html]
|
||||
expected: TIMEOUT
|
||||
[Type: String, identifier: length]
|
||||
expected: FAIL
|
||||
expected: TIMEOUT
|
||||
|
||||
[Type: Array, identifier: length]
|
||||
expected: FAIL
|
||||
expected: TIMEOUT
|
||||
|
||||
[Type: Blob, identifier: size]
|
||||
expected: FAIL
|
||||
expected: TIMEOUT
|
||||
|
||||
[Type: Blob, identifier: type]
|
||||
expected: FAIL
|
||||
expected: TIMEOUT
|
||||
|
||||
[Type: File, identifier: name]
|
||||
expected: FAIL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue