storage/indexeddb/deletedatabase-delayed-by-open-and-versionchange.html flaky on...
authorbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Mar 2016 22:57:43 +0000 (22:57 +0000)
committerbeidson@apple.com <beidson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Mar 2016 22:57:43 +0000 (22:57 +0000)
https://bugs.webkit.org/show_bug.cgi?id=154748

Reviewed by Alex Christensen.

* platform/mac/TestExpectations:
* storage/indexeddb/deletedatabase-delayed-by-open-and-versionchange-expected.txt:
* storage/indexeddb/deletedatabase-delayed-by-open-and-versionchange-private-expected.txt:
* storage/indexeddb/resources/deletedatabase-delayed-by-open-and-versionchange.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@198504 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/platform/mac/TestExpectations
LayoutTests/storage/indexeddb/deletedatabase-delayed-by-open-and-versionchange-expected.txt
LayoutTests/storage/indexeddb/deletedatabase-delayed-by-open-and-versionchange-private-expected.txt
LayoutTests/storage/indexeddb/resources/deletedatabase-delayed-by-open-and-versionchange.js

index a7b0057..d78a436 100644 (file)
@@ -1,3 +1,15 @@
+2016-03-21  Brady Eidson  <beidson@apple.com>
+
+        storage/indexeddb/deletedatabase-delayed-by-open-and-versionchange.html flaky on mac-wk2.
+        https://bugs.webkit.org/show_bug.cgi?id=154748
+
+        Reviewed by Alex Christensen.
+
+        * platform/mac/TestExpectations:
+        * storage/indexeddb/deletedatabase-delayed-by-open-and-versionchange-expected.txt:
+        * storage/indexeddb/deletedatabase-delayed-by-open-and-versionchange-private-expected.txt:
+        * storage/indexeddb/resources/deletedatabase-delayed-by-open-and-versionchange.js:
+
 2016-03-21  Simon Fraser  <simon.fraser@apple.com>
 
         [iOS WK2] Use larger tiles when possible to reduce per-tile painting overhead
index 5286624..51a8c38 100644 (file)
@@ -1333,8 +1333,6 @@ webkit.org/b/154753 js/basic-map.html [ Skip ]
 accessibility/mac/selection-element-tabbing-to-link.html [ Pass Failure ]
 accessibility/mac/selection-notification-focus-change.html [ Pass Failure ]
 
-webkit.org/b/154748 storage/indexeddb/deletedatabase-delayed-by-open-and-versionchange.html [ Pass Failure ]
-
 webkit.org/b/152506 webgl/1.0.2/conformance/extensions/get-extension.html [ Pass Timeout ]
 
 webkit.org/b/154709 [ ElCapitan+ ] fast/text/crash-complex-text-surrogate.html [ Pass Failure ]
index 4e69d14..4b3aa2a 100644 (file)
@@ -11,7 +11,9 @@ indexedDB.open(dbname)
 prepareDatabase():
 versionChangeComplete = false
 h = event.target.result
+blockedCalled = false
 indexedDB.deleteDatabase(dbname)
+h.createObjectStore('testObjectStore').put('bar', 'foo')
 
 onVersionChange():
 PASS event.target.version is 1
index 4e69d14..4b3aa2a 100644 (file)
@@ -11,7 +11,9 @@ indexedDB.open(dbname)
 prepareDatabase():
 versionChangeComplete = false
 h = event.target.result
+blockedCalled = false
 indexedDB.deleteDatabase(dbname)
+h.createObjectStore('testObjectStore').put('bar', 'foo')
 
 onVersionChange():
 PASS event.target.version is 1
index beaece8..ca9187d 100644 (file)
@@ -12,7 +12,8 @@ function prepareDatabase(evt)
     preamble(evt);
     evalAndLog("versionChangeComplete = false");
     evalAndLog("h = event.target.result");
-
+    evalAndLog("blockedCalled = false");
+        
     h.onversionchange = function onVersionChange(evt) {
         preamble(evt);
         shouldBe("event.target.version", "1");
@@ -36,6 +37,9 @@ function prepareDatabase(evt)
         shouldBeTrue("versionChangeComplete");
         finishJSTest();
     };
+
+    // Make this upgrade transaction take longer so the deleteDatabase request will always have a chance to be blocked.
+    evalAndLog("h.createObjectStore('testObjectStore').put('bar', 'foo')");
 }
 
 function onOpenSuccess(evt)