Changeset 86363 in webkit


Ignore:
Timestamp:
May 12, 2011 11:28:09 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-05-12 David Grogan <dgrogan@chromium.org>

Reviewed by Nate Chapin.

IndexedDB: fix up database-quota.html layout test
https://bugs.webkit.org/show_bug.cgi?id=60519

Remove commitAndContinue idiom; translate some missed instances of
event.code to event.target.errorCode from bug 54331

  • storage/indexeddb/database-quota-expected.txt:
  • storage/indexeddb/database-quota.html:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r86360 r86363  
     12011-05-12  David Grogan  <dgrogan@chromium.org>
     2
     3        Reviewed by Nate Chapin.
     4
     5        IndexedDB: fix up database-quota.html layout test
     6        https://bugs.webkit.org/show_bug.cgi?id=60519
     7
     8        Remove commitAndContinue idiom; translate some missed instances of
     9        event.code to event.target.errorCode from bug 54331
     10
     11        * storage/indexeddb/database-quota-expected.txt:
     12        * storage/indexeddb/database-quota.html:
     13
    1142011-05-12  Ryosuke Niwa  <rniwa@webkit.org>
    215
  • trunk/LayoutTests/storage/indexeddb/database-quota-expected.txt

    r79458 r86363  
    2626PASS data.length is 65536
    2727store = trans.objectStore('test123')
    28 Error function called: (undefined) undefined
     28Error function called: (13) The transaction was aborted, so the request cannot be fulfilled.
    2929event.preventDefault()
    3030PASS Adding data failed due to quota error. Data added was about 5 MB
  • trunk/LayoutTests/storage/indexeddb/database-quota.html

    r79458 r86363  
    3737    shouldBeTrue("trans !== null");
    3838    trans.onabort = unexpectedAbortCallback;
     39    trans.oncomplete = checkQuotaEnforcing;
    3940
    4041    deleteAllObjectStores(db);
     
    4849    objectStore = evalAndLog('db.createObjectStore("test123")');
    4950    checkObjectStore();
    50     commitAndContinue();
    5151}
    5252
     
    5858    shouldBe("db.objectStoreNames.contains('test456')", "false");
    5959    shouldBe("db.objectStoreNames.contains('test123')", "true");
    60 }
    61 
    62 function commitAndContinue()
    63 {
    64     window.setTimeout(checkQuotaEnforcing, 0);
    6560}
    6661
     
    9893function logError()
    9994{
    100     debug("Error function called: (" + event.code + ") " + event.message);
     95    debug("Error function called: (" + event.target.errorCode + ") " + event.target.webkitErrorMessage);
    10196    evalAndLog("event.preventDefault()");
    10297}
Note: See TracChangeset for help on using the changeset viewer.