Changeset 194413 in webkit
- Timestamp:
- Dec 23, 2015, 11:39:01 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/platform/mac-wk1/TestExpectations (modified) (1 diff)
-
LayoutTests/storage/indexeddb/modern/idbdatabase-transaction-failures-expected.txt (modified) (1 diff)
-
LayoutTests/storage/indexeddb/transaction-basics-expected.txt (modified) (4 diffs)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/Modules/indexeddb/client/IDBDatabaseImpl.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r194412 r194413 1 2015-12-23 Brady Eidson <beidson@apple.com> 2 3 Modern IDB: storage/indexeddb/transaction-basics.html fails. 4 https://bugs.webkit.org/show_bug.cgi?id=152481 5 6 Reviewed by Alex Christensen. 7 8 * platform/mac-wk1/TestExpectations: 9 * storage/indexeddb/modern/idbdatabase-transaction-failures-expected.txt: 10 * storage/indexeddb/transaction-basics-expected.txt: 11 1 12 2015-12-23 Gyuyoung Kim <gyuyoung.kim@webkit.org> 2 13 -
trunk/LayoutTests/platform/mac-wk1/TestExpectations
r194365 r194413 108 108 storage/indexeddb/properties-disabled-at-runtime.html [ Failure ] 109 109 storage/indexeddb/setversion-blocked-by-versionchange-close.html [ Failure ] 110 storage/indexeddb/transaction-basics.html [ Failure ]111 110 storage/indexeddb/transaction-scope-sequencing.html [ Failure ] 112 111 -
trunk/LayoutTests/storage/indexeddb/modern/idbdatabase-transaction-failures-expected.txt
r193494 r194413 4 4 ALERT: Failed to start a transaction with an empty set of object stores - Error: Failed to execute 'transaction' on 'IDBDatabase': The storeNames parameter was empty. 5 5 ALERT: Failed to start a transaction to a nonexistent object store - Error: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found. 6 ALERT: Failed to start a transaction with an invalid mode - TypeError: Failed to execute 'transaction' on 'IDBDatabase': The mode provided (' invalid-mode') is not one of 'readonly' or 'readwrite'.7 ALERT: Failed to explicitly start a versionchange transaction - TypeError: Failed to execute 'transaction' on 'IDBDatabase': The mode provided (' invalid-mode') is not one of 'readonly' or 'readwrite'.6 ALERT: Failed to start a transaction with an invalid mode - TypeError: Failed to execute 'transaction' on 'IDBDatabase': The mode provided ('blahblah') is not one of 'readonly' or 'readwrite'. 7 ALERT: Failed to explicitly start a versionchange transaction - TypeError: Failed to execute 'transaction' on 'IDBDatabase': The mode provided ('versionchange') is not one of 'readonly' or 'readwrite'. 8 8 ALERT: Failed to explicitly start a transaction with the close pending flag set - Error: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing. 9 9 ALERT: Done -
trunk/LayoutTests/storage/indexeddb/transaction-basics-expected.txt
r163963 r194413 24 24 PASS code is DOMException.INVALID_STATE_ERR 25 25 PASS ename is 'InvalidStateError' 26 Exception message: Failed to execute 'deleteIndex' on 'IDBObjectStore': The object store has been deleted.26 Exception message: An operation was called on an object on which it is not allowed or at a time when it is not allowed. 27 27 28 28 testSetVersionAbort2(): … … 42 42 PASS code is DOMException.INVALID_STATE_ERR 43 43 PASS ename is 'InvalidStateError' 44 Exception message: Failed to execute 'deleteIndex' on 'IDBObjectStore': The object store has been deleted.44 Exception message: An operation was called on an object on which it is not allowed or at a time when it is not allowed. 45 45 store = db.createObjectStore('storeFail', null) 46 46 index = store.createIndex('indexFail', 'x') … … 65 65 PASS code is 0 66 66 PASS ename is 'TransactionInactiveError' 67 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The transaction hasfinished.67 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The transaction is inactive or finished. 68 68 Expecting exception from index.openKeyCursor() 69 69 PASS Exception was thrown. 70 70 PASS code is 0 71 71 PASS ename is 'TransactionInactiveError' 72 Exception message: Failed to execute 'openKeyCursor' on 'IDBIndex': The transaction hasfinished.72 Exception message: Failed to execute 'openKeyCursor' on 'IDBIndex': The transaction is inactive or finished. 73 73 Expecting exception from index.get(0) 74 74 PASS Exception was thrown. 75 75 PASS code is 0 76 76 PASS ename is 'TransactionInactiveError' 77 Exception message: Failed to execute 'get' on 'IDBIndex': The transaction hasfinished.77 Exception message: Failed to execute 'get' on 'IDBIndex': The transaction is inactive or finished. 78 78 Expecting exception from index.getKey(0) 79 79 PASS Exception was thrown. 80 80 PASS code is 0 81 81 PASS ename is 'TransactionInactiveError' 82 Exception message: Failed to execute 'getKey' on 'IDBIndex': The transaction hasfinished.82 Exception message: Failed to execute 'getKey' on 'IDBIndex': The transaction is inactive or finished. 83 83 Expecting exception from index.count() 84 84 PASS Exception was thrown. 85 85 PASS code is 0 86 86 PASS ename is 'TransactionInactiveError' 87 Exception message: Failed to execute 'count' on 'IDBIndex': The transaction hasfinished.87 Exception message: Failed to execute 'count' on 'IDBIndex': The transaction is inactive or finished. 88 88 Expecting exception from store.put(0, 0) 89 89 PASS Exception was thrown. 90 90 PASS code is 0 91 91 PASS ename is 'TransactionInactiveError' 92 Exception message: Failed to execute 'put' on 'IDBObjectStore': The transaction hasfinished.92 Exception message: Failed to store record in an IDBObjectStore: The transaction is inactive or finished. 93 93 Expecting exception from store.add(0, 0) 94 94 PASS Exception was thrown. 95 95 PASS code is 0 96 96 PASS ename is 'TransactionInactiveError' 97 Exception message: Failed to execute 'add' on 'IDBObjectStore': The transaction hasfinished.97 Exception message: Failed to store record in an IDBObjectStore: The transaction is inactive or finished. 98 98 Expecting exception from store.delete(0) 99 99 PASS Exception was thrown. 100 100 PASS code is 0 101 101 PASS ename is 'TransactionInactiveError' 102 Exception message: Failed to execute 'delete' on 'IDBObjectStore': The transaction hasfinished.102 Exception message: Failed to execute 'delete' on 'IDBObjectStore': The transaction is inactive or finished. 103 103 Expecting exception from store.clear() 104 104 PASS Exception was thrown. 105 105 PASS code is 0 106 106 PASS ename is 'TransactionInactiveError' 107 Exception message: Failed to execute 'clear' on 'IDBObjectStore': The transaction hasfinished.107 Exception message: Failed to execute 'clear' on 'IDBObjectStore': The transaction is inactive or finished. 108 108 Expecting exception from store.get(0) 109 109 PASS Exception was thrown. 110 110 PASS code is 0 111 111 PASS ename is 'TransactionInactiveError' 112 Exception message: Failed to execute 'get' on 'IDBObjectStore': The transaction hasfinished.112 Exception message: Failed to execute 'get' on 'IDBObjectStore': The transaction is inactive or finished. 113 113 Expecting exception from store.openCursor() 114 114 PASS Exception was thrown. 115 115 PASS code is 0 116 116 PASS ename is 'TransactionInactiveError' 117 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The transaction hasfinished.117 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The transaction is inactive or finished. 118 118 119 119 testSetVersionAbort4(): … … 134 134 PASS code is 0 135 135 PASS ename is 'TransactionInactiveError' 136 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The transaction hasfinished.136 Exception message: Failed to execute 'openCursor' on 'IDBIndex': The transaction is inactive or finished. 137 137 Expecting exception from index.openKeyCursor() 138 138 PASS Exception was thrown. 139 139 PASS code is 0 140 140 PASS ename is 'TransactionInactiveError' 141 Exception message: Failed to execute 'openKeyCursor' on 'IDBIndex': The transaction hasfinished.141 Exception message: Failed to execute 'openKeyCursor' on 'IDBIndex': The transaction is inactive or finished. 142 142 Expecting exception from index.get(0) 143 143 PASS Exception was thrown. 144 144 PASS code is 0 145 145 PASS ename is 'TransactionInactiveError' 146 Exception message: Failed to execute 'get' on 'IDBIndex': The transaction hasfinished.146 Exception message: Failed to execute 'get' on 'IDBIndex': The transaction is inactive or finished. 147 147 Expecting exception from index.getKey(0) 148 148 PASS Exception was thrown. 149 149 PASS code is 0 150 150 PASS ename is 'TransactionInactiveError' 151 Exception message: Failed to execute 'getKey' on 'IDBIndex': The transaction hasfinished.151 Exception message: Failed to execute 'getKey' on 'IDBIndex': The transaction is inactive or finished. 152 152 Expecting exception from index.count() 153 153 PASS Exception was thrown. 154 154 PASS code is 0 155 155 PASS ename is 'TransactionInactiveError' 156 Exception message: Failed to execute 'count' on 'IDBIndex': The transaction hasfinished.156 Exception message: Failed to execute 'count' on 'IDBIndex': The transaction is inactive or finished. 157 157 Expecting exception from store.put(0, 0) 158 158 PASS Exception was thrown. 159 159 PASS code is 0 160 160 PASS ename is 'TransactionInactiveError' 161 Exception message: Failed to execute 'put' on 'IDBObjectStore': The transaction hasfinished.161 Exception message: Failed to store record in an IDBObjectStore: The transaction is inactive or finished. 162 162 Expecting exception from store.add(0, 0) 163 163 PASS Exception was thrown. 164 164 PASS code is 0 165 165 PASS ename is 'TransactionInactiveError' 166 Exception message: Failed to execute 'add' on 'IDBObjectStore': The transaction hasfinished.166 Exception message: Failed to store record in an IDBObjectStore: The transaction is inactive or finished. 167 167 Expecting exception from store.delete(0) 168 168 PASS Exception was thrown. 169 169 PASS code is 0 170 170 PASS ename is 'TransactionInactiveError' 171 Exception message: Failed to execute 'delete' on 'IDBObjectStore': The transaction hasfinished.171 Exception message: Failed to execute 'delete' on 'IDBObjectStore': The transaction is inactive or finished. 172 172 Expecting exception from store.clear() 173 173 PASS Exception was thrown. 174 174 PASS code is 0 175 175 PASS ename is 'TransactionInactiveError' 176 Exception message: Failed to execute 'clear' on 'IDBObjectStore': The transaction hasfinished.176 Exception message: Failed to execute 'clear' on 'IDBObjectStore': The transaction is inactive or finished. 177 177 Expecting exception from store.get(0) 178 178 PASS Exception was thrown. 179 179 PASS code is 0 180 180 PASS ename is 'TransactionInactiveError' 181 Exception message: Failed to execute 'get' on 'IDBObjectStore': The transaction hasfinished.181 Exception message: Failed to execute 'get' on 'IDBObjectStore': The transaction is inactive or finished. 182 182 Expecting exception from store.openCursor() 183 183 PASS Exception was thrown. 184 184 PASS code is 0 185 185 PASS ename is 'TransactionInactiveError' 186 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The transaction hasfinished.186 Exception message: Failed to execute 'openCursor' on 'IDBObjectStore': The transaction is inactive or finished. 187 187 188 188 testSetVersionAbort5(): -
trunk/Source/WebCore/ChangeLog
r194410 r194413 1 2015-12-23 Brady Eidson <beidson@apple.com> 2 3 Modern IDB: storage/indexeddb/transaction-basics.html fails. 4 https://bugs.webkit.org/show_bug.cgi?id=152481 5 6 Reviewed by Alex Christensen. 7 8 No new tests (Failing test now passes). 9 10 * Modules/indexeddb/client/IDBDatabaseImpl.cpp: 11 (WebCore::IDBClient::IDBDatabase::transaction): Include the invalid string argument 12 in the error message. 13 1 14 2015-12-23 Simon Fraser <simon.fraser@apple.com> 2 15 -
trunk/Source/WebCore/Modules/indexeddb/client/IDBDatabaseImpl.cpp
r193871 r194413 157 157 IndexedDB::TransactionMode mode = IDBTransaction::stringToMode(modeString, ec.code); 158 158 if (ec.code) { 159 ec.message = ASCIILiteral("Failed to execute 'transaction' on 'IDBDatabase': The mode provided ('invalid-mode') is not one of 'readonly' or 'readwrite'.");159 ec.message = makeString(ASCIILiteral("Failed to execute 'transaction' on 'IDBDatabase': The mode provided ('"), modeString, ASCIILiteral("') is not one of 'readonly' or 'readwrite'.")); 160 160 return nullptr; 161 161 }
Note:
See TracChangeset
for help on using the changeset viewer.