Changeset 240312 in webkit


Ignore:
Timestamp:
Jan 22, 2019 5:11:29 PM (5 years ago)
Author:
sihui_liu@apple.com
Message:

Layout test storage/indexeddb/open-during-transaction-private.html is failing
https://bugs.webkit.org/show_bug.cgi?id=193600

Reviewed by Brady Eidson.

Make sure the second request is finished before the third one so that test ends properly.

  • storage/indexeddb/open-during-transaction-expected.txt:
  • storage/indexeddb/open-during-transaction-private-expected.txt:
  • storage/indexeddb/resources/open-during-transaction.js:

(tryOpens.openreq3.onsuccess):
(tryOpens.openreq2.onsuccess):
(tryOpens):

Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r240309 r240312  
     12019-01-22  Sihui Liu  <sihui_liu@apple.com>
     2
     3        Layout test storage/indexeddb/open-during-transaction-private.html is failing
     4        https://bugs.webkit.org/show_bug.cgi?id=193600
     5
     6        Reviewed by Brady Eidson.
     7
     8        Make sure the second request is finished before the third one so that test ends properly.
     9
     10        * storage/indexeddb/open-during-transaction-expected.txt:
     11        * storage/indexeddb/open-during-transaction-private-expected.txt:
     12        * storage/indexeddb/resources/open-during-transaction.js:
     13        (tryOpens.openreq3.onsuccess):
     14        (tryOpens.openreq2.onsuccess):
     15        (tryOpens):
     16
    1172019-01-22  Devin Rousso  <drousso@apple.com>
    218
  • trunk/LayoutTests/storage/indexeddb/open-during-transaction-expected.txt

    r195181 r240312  
    1818trying to open the same database
    1919openreq2 = indexedDB.open(dbname)
    20 
    21 trying to open a different database
    22 openreq3 = indexedDB.open(dbname + '2')
    23 
    2420openreq2.onsuccess
    2521PASS state is "starting"
    2622state = 'open2complete'
    2723
     24trying to open a different database
     25openreq3 = indexedDB.open(dbname + '2')
    2826openreq3.onsuccess
    2927PASS state is "open2complete"
  • trunk/LayoutTests/storage/indexeddb/open-during-transaction-private-expected.txt

    r195247 r240312  
    1818trying to open the same database
    1919openreq2 = indexedDB.open(dbname)
    20 
    21 trying to open a different database
    22 openreq3 = indexedDB.open(dbname + '2')
    23 
    2420openreq2.onsuccess
    2521PASS state is "starting"
    2622state = 'open2complete'
    2723
     24trying to open a different database
     25openreq3 = indexedDB.open(dbname + '2')
    2826openreq3.onsuccess
    2927PASS state is "open2complete"
  • trunk/LayoutTests/storage/indexeddb/resources/open-during-transaction.js

    r163963 r240312  
    5656        evalAndLog("state = 'open2complete'");
    5757        debug("");
     58
     59        debug("trying to open a different database");
     60        evalAndLog("openreq3 = indexedDB.open(dbname + '2')");
     61        openreq3.onerror = unexpectedErrorCallback;
     62        openreq3.onsuccess = function (e) {
     63            debug("openreq3.onsuccess");
     64            shouldBeEqualToString("state", "open2complete");
     65            evalAndLog("state = 'open3complete'");
     66            debug("");
     67        };
    5868    };
    59     debug("");
    60 
    61     debug("trying to open a different database");
    62     evalAndLog("openreq3 = indexedDB.open(dbname + '2')");
    63     openreq3.onerror = unexpectedErrorCallback;
    64     openreq3.onsuccess = function (e) {
    65         debug("openreq3.onsuccess");
    66         shouldBeEqualToString("state", "open2complete");
    67         evalAndLog("state = 'open3complete'");
    68         debug("");
    69     };
    70     debug("");
    7169}
Note: See TracChangeset for help on using the changeset viewer.