Changeset 85153 in webkit


Ignore:
Timestamp:
Apr 27, 2011 10:18:38 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-27 Mark Pilgrim <pilgrim@chromium.org>

Reviewed by Tony Chang.

Should call done() from unexpectedErrorCallback so failing IndexedDB tests don't time out
https://bugs.webkit.org/show_bug.cgi?id=59569

  • storage/indexeddb/exception-in-event-aborts-expected.txt:
  • storage/indexeddb/exception-in-event-aborts.html:
  • storage/indexeddb/resources/shared.js: (unexpectedSuccessCallback): (unexpectedErrorCallback): (unexpectedAbortCallback): (unexpectedCompleteCallback): (unexpectedBlockedCallback):
Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r85152 r85153  
     12011-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
    1172011-04-27  Mark Pilgrim  <pilgrim@chromium.org>
    218
  • trunk/LayoutTests/storage/indexeddb/exception-in-event-aborts-expected.txt

    r79458 r85153  
    5252store = trans.objectStore('storeName')
    5353store.add({x: 'value4', y: 'zzz4'}, 'key4')
    54 FAIL Success function called unexpectedly.
     54PASS key4 added
    5555
    5656PASS The transaction completed.
  • trunk/LayoutTests/storage/indexeddb/exception-in-event-aborts.html

    r79458 r85153  
    113113    store = evalAndLog("store = trans.objectStore('storeName')");
    114114    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;
    117117}
    118118
  • trunk/LayoutTests/storage/indexeddb/resources/shared.js

    r78908 r85153  
    99{
    1010    testFailed("Success function called unexpectedly.");
     11    done();
    1112}
    1213
     
    1415{
    1516    testFailed("Error function called unexpectedly: (" + event.target.errorCode + ") " + event.target.webkitErrorMessage);
     17    done();
    1618}
    1719
     
    1921{
    2022    testFailed("Abort function called unexpectedly!");
     23    done();
    2124}
    2225
     
    2427{
    2528    testFailed("oncomplete function called unexpectedly!");
     29    done();
    2630}
    2731
     
    2933{
    3034    testFailed("onblocked called unexpectedly");
     35    done();
    3136}
    3237
Note: See TracChangeset for help on using the changeset viewer.