⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 201871 in webkit


Ignore:
Timestamp:
Jun 9, 2016, 10:31:08 AM (10 years ago)
Author:
beidson@apple.com
Message:

LayoutTest storage/indexeddb/modern/handle-user-delete.html is a flaky failure.
​https://bugs.webkit.org/show_bug.cgi?id=158501

Reviewed by Darin Adler.

The order in which the transaction abort happens doesn't matter; It only matters that it happens.

Update the test to reflect this.

  • storage/indexeddb/modern/handle-user-delete-expected.txt:
  • storage/indexeddb/modern/resources/handle-user-delete.js:
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r201868 r201871  
     12016-06-09  Brady Eidson  <beidson@apple.com>
     2
     3        LayoutTest storage/indexeddb/modern/handle-user-delete.html is a flaky failure.
     4        https://bugs.webkit.org/show_bug.cgi?id=158501
     5
     6        Reviewed by Darin Adler.
     7       
     8        The order in which the transaction abort happens doesn't matter; It only matters that it happens.
     9       
     10        Update the test to reflect this.
     11       
     12        * storage/indexeddb/modern/handle-user-delete-expected.txt:
     13        * storage/indexeddb/modern/resources/handle-user-delete.js:
     14
    1152016-06-09  Simon Fraser  <simon.fraser@apple.com>
    216
  • trunk/LayoutTests/storage/indexeddb/modern/handle-user-delete-expected.txt

    r201098 r201871  
    1111Started two spinning requests
    1212Requested clearAllDatabases
    13 Initial upgrade versionchange transaction aborted: [object DOMError]
    1413[PASS] Both requests hit a failure condition (Received onerror or failed to start a new request because the transaction was aborted)
    1514[PASS] Database received correct error.
     15[PASS] Transaction aborted.
    1616PASS successfullyParsed is true
    1717
  • trunk/LayoutTests/storage/indexeddb/modern/resources/handle-user-delete.js

    r201098 r201871  
    55var requestErrorCount = 0;
    66var databaseError = false;
     7var transactionAbort = false;
    78
    89function done()
    … …  
    1718    else
    1819        log("[FAIL] Database did not receive correct error.");
    19        
     20
     21    if (transactionAbort)
     22        log("[PASS] Transaction aborted.");
     23    else
     24        log("[FAIL] Transaction did not abort.");
     25
    2026    finishJSTest();
    2127}
    … …  
    2834function maybeFinish()
    2935{
    30     if (requestErrorCount == 2 && databaseError)
     36    if (requestErrorCount == 2 && databaseError && transactionAbort)
    3137        done();
    3238}
    … …  
    7884
    7985    versionTransaction.onabort = function(event) {
    80         log("Initial upgrade versionchange transaction aborted: " + versionTransaction.error);
     86        transactionAbort = true;
     87                maybeFinish();
    8188    }
    8289
Note: See TracChangeset for help on using the changeset viewer.