Changeset 80025 in webkit
- Timestamp:
- Mar 1, 2011 12:37:25 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r80023 r80025 1 2011-02-28 Jeremy Orlow <jorlow@chromium.org> 2 3 Reviewed by Steve Block. 4 5 Only IndexedDB's error event should be cancelable 6 https://bugs.webkit.org/show_bug.cgi?id=55413 7 8 Add checks to existing tests. 9 10 * storage/indexeddb/objectstore-basics.html: 11 * storage/indexeddb/transaction-basics.html: 12 1 13 2011-03-01 Jia Pu <jpu@apple.com> 2 14 -
trunk/LayoutTests/storage/indexeddb/objectstore-basics-expected.txt
r79458 r80025 75 75 store = transaction.objectStore('storeName') 76 76 store.add({x: null}, 'validkey') 77 PASS event.cancelable is true 77 78 addWithNullIndexFailure(): 78 79 PASS event.target.errorCode is webkitIDBDatabaseException.DATA_ERR -
trunk/LayoutTests/storage/indexeddb/objectstore-basics.html
r79458 r80025 209 209 function addWithNullIndexFailure() 210 210 { 211 shouldBeTrue("event.cancelable"); 211 212 debug("addWithNullIndexFailure():"); 212 213 shouldBe("event.target.errorCode", "webkitIDBDatabaseException.DATA_ERR"); -
trunk/LayoutTests/storage/indexeddb/transaction-basics-expected.txt
r79458 r80025 35 35 store = db.createObjectStore('storeFail', null) 36 36 index = store.createIndex('indexFail', 'x', false) 37 PASS event.cancelable is false 37 38 PASS window.db.objectStoreNames is [] 38 39 PASS window.db.objectStoreNames.length is 0 … … 67 68 PASS store.name is "storeName" 68 69 PASS complete event fired 70 PASS event.cancelable is false 69 71 PASS complete event fired 70 72 PASS oncomplete event had fired -
trunk/LayoutTests/storage/indexeddb/transaction-basics.html
r79458 r80025 93 93 function testSetVersionAbort3() 94 94 { 95 shouldBeFalse("event.cancelable"); 95 96 checkMetadataEmpty(); 96 97 request = evalAndLog("request = startSetVersion('version fail')"); … … 100 101 function addIDBObjects() 101 102 { 103 shouldBeFalse("event.cancelable"); 102 104 debug("addIDBObjects():"); 103 105 var trans = evalAndLog("trans = event.target.result"); … … 213 215 function completeCallback() 214 216 { 217 shouldBeFalse("event.cancelable"); 215 218 testPassed("complete event fired"); 216 219 window.completeEventFired = true; -
trunk/Source/WebCore/ChangeLog
r80023 r80025 1 2011-02-28 Jeremy Orlow <jorlow@chromium.org> 2 3 Reviewed by Steve Block. 4 5 Only IndexedDB's error event should be cancelable 6 https://bugs.webkit.org/show_bug.cgi?id=55413 7 8 * storage/IDBRequest.cpp: 9 (WebCore::createSuccessEvent): 10 * storage/IDBTransaction.cpp: 11 (WebCore::IDBTransaction::onAbort): 12 (WebCore::IDBTransaction::onComplete): 13 1 14 2011-03-01 Jia Pu <jpu@apple.com> 2 15 -
trunk/Source/WebCore/storage/IDBRequest.cpp
r78908 r80025 137 137 static PassRefPtr<Event> createSuccessEvent() 138 138 { 139 return Event::create(eventNames().successEvent, false, true);139 return Event::create(eventNames().successEvent, false, false); 140 140 } 141 141 -
trunk/Source/WebCore/storage/IDBTransaction.cpp
r78525 r80025 106 106 void IDBTransaction::onAbort() 107 107 { 108 enqueueEvent(Event::create(eventNames().abortEvent, true, true));108 enqueueEvent(Event::create(eventNames().abortEvent, true, false)); 109 109 } 110 110 111 111 void IDBTransaction::onComplete() 112 112 { 113 enqueueEvent(Event::create(eventNames().completeEvent, false, true));113 enqueueEvent(Event::create(eventNames().completeEvent, false, false)); 114 114 } 115 115
Note: See TracChangeset
for help on using the changeset viewer.