LayoutTests/inspector/indexeddb/requestDatabaseNames.html: Sort database names to...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Jun 2017 15:16:37 +0000 (15:16 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 22 Jun 2017 15:16:37 +0000 (15:16 +0000)
https://bugs.webkit.org/show_bug.cgi?id=173699

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2017-06-22
Reviewed by Alex Christensen.

* inspector/indexeddb/requestDatabaseNames.html:
Sort database names (when more than one) to ensure a consistent order.

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

LayoutTests/ChangeLog
LayoutTests/inspector/indexeddb/requestDatabaseNames.html

index ddb660a..64bc72e 100644 (file)
@@ -1,3 +1,13 @@
+2017-06-22  Joseph Pecoraro  <pecoraro@apple.com>
+
+        LayoutTests/inspector/indexeddb/requestDatabaseNames.html: Sort database names to prevent flakiness
+        https://bugs.webkit.org/show_bug.cgi?id=173699
+
+        Reviewed by Alex Christensen.
+
+        * inspector/indexeddb/requestDatabaseNames.html:
+        Sort database names (when more than one) to ensure a consistent order.
+
 2017-06-22  Claudio Saavedra  <csaavedra@igalia.com>
 
         [WPE] Skip js geolocation test.
index 7e80e0b..2bcf871 100644 (file)
@@ -58,6 +58,7 @@ function test()
             .then((event) => {
                 IndexedDBAgent.requestDatabaseNames(WebInspector.frameResourceManager.mainFrame.securityOrigin, (error, names) => {
                     InspectorTest.expectNoError(error);
+                    names.sort();
                     InspectorTest.expectThat(names.length === 2, "Two IndexedDB databases should exist.");
                     InspectorTest.log(JSON.stringify(names));
                     resolve();
@@ -76,6 +77,7 @@ function test()
             .then((event) => {
                 IndexedDBAgent.requestDatabaseNames(WebInspector.frameResourceManager.mainFrame.securityOrigin, (error, names) => {
                     InspectorTest.expectNoError(error);
+                    names.sort();
                     InspectorTest.expectThat(names.length === 3, "Three IndexedDB databases should exist.");
                     InspectorTest.log(JSON.stringify(names));
                     resolve();
@@ -94,6 +96,7 @@ function test()
             .then((event) => {
                 IndexedDBAgent.requestDatabaseNames(WebInspector.frameResourceManager.mainFrame.securityOrigin, (error, names) => {
                     InspectorTest.expectNoError(error);
+                    names.sort();
                     InspectorTest.expectThat(names.length === 4, "Four IndexedDB databases should exist.");
                     InspectorTest.log(JSON.stringify(names));
                     resolve();