Changeset 85153 in webkit
- Timestamp:
- Apr 27, 2011 10:18:38 PM (13 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r85152 r85153 1 2011-04-27 Mark Pilgrim <pilgrim@chromium.org> 2 3 Reviewed by Tony Chang. 4 5 Should call done() from unexpectedErrorCallback so failing IndexedDB tests don't time out 6 https://bugs.webkit.org/show_bug.cgi?id=59569 7 8 * storage/indexeddb/exception-in-event-aborts-expected.txt: 9 * storage/indexeddb/exception-in-event-aborts.html: 10 * storage/indexeddb/resources/shared.js: 11 (unexpectedSuccessCallback): 12 (unexpectedErrorCallback): 13 (unexpectedAbortCallback): 14 (unexpectedCompleteCallback): 15 (unexpectedBlockedCallback): 16 1 17 2011-04-27 Mark Pilgrim <pilgrim@chromium.org> 2 18 -
trunk/LayoutTests/storage/indexeddb/exception-in-event-aborts-expected.txt
r79458 r85153 52 52 store = trans.objectStore('storeName') 53 53 store.add({x: 'value4', y: 'zzz4'}, 'key4') 54 FAIL Success function called unexpectedly. 54 PASS key4 added 55 55 56 56 PASS The transaction completed. -
trunk/LayoutTests/storage/indexeddb/exception-in-event-aborts.html
r79458 r85153 113 113 store = evalAndLog("store = trans.objectStore('storeName')"); 114 114 request = evalAndLog("store.add({x: 'value4', y: 'zzz4'}, 'key4')"); 115 request.onsuccess = unexpectedSuccessCallback;116 request.onerror = throwAndCatch;115 request.onsuccess = function() { testPassed("key4 added"); } 116 request.onerror = unexpectedErrorCallback; 117 117 } 118 118 -
trunk/LayoutTests/storage/indexeddb/resources/shared.js
r78908 r85153 9 9 { 10 10 testFailed("Success function called unexpectedly."); 11 done(); 11 12 } 12 13 … … 14 15 { 15 16 testFailed("Error function called unexpectedly: (" + event.target.errorCode + ") " + event.target.webkitErrorMessage); 17 done(); 16 18 } 17 19 … … 19 21 { 20 22 testFailed("Abort function called unexpectedly!"); 23 done(); 21 24 } 22 25 … … 24 27 { 25 28 testFailed("oncomplete function called unexpectedly!"); 29 done(); 26 30 } 27 31 … … 29 33 { 30 34 testFailed("onblocked called unexpectedly"); 35 done(); 31 36 } 32 37
Note: See TracChangeset
for help on using the changeset viewer.