Title: [188455] releases/WebKitGTK/webkit-2.10/LayoutTests
- Revision
- 188455
- Author
- [email protected]
- Date
- 2015-08-14 03:42:51 -0700 (Fri, 14 Aug 2015)
Log Message
Merge r188426 - Web Inspector: Reduce flakiness of inspector/indexeddb/requestDatabaseNames
https://bugs.webkit.org/show_bug.cgi?id=148008
Reviewed by Timothy Hatcher.
* inspector/indexeddb/requestDatabaseNames.html:
Follow-up fix to reduce flakiness in the test caused by other tests
creating IndexedDB databases.
Modified Paths
Diff
Modified: releases/WebKitGTK/webkit-2.10/LayoutTests/ChangeLog (188454 => 188455)
--- releases/WebKitGTK/webkit-2.10/LayoutTests/ChangeLog 2015-08-14 10:41:46 UTC (rev 188454)
+++ releases/WebKitGTK/webkit-2.10/LayoutTests/ChangeLog 2015-08-14 10:42:51 UTC (rev 188455)
@@ -1,5 +1,16 @@
2015-08-13 Joseph Pecoraro <[email protected]>
+ Web Inspector: Reduce flakiness of inspector/indexeddb/requestDatabaseNames
+ https://bugs.webkit.org/show_bug.cgi?id=148008
+
+ Reviewed by Timothy Hatcher.
+
+ * inspector/indexeddb/requestDatabaseNames.html:
+ Follow-up fix to reduce flakiness in the test caused by other tests
+ creating IndexedDB databases.
+
+2015-08-13 Joseph Pecoraro <[email protected]>
+
Web Inspector: Watch Expressions
https://bugs.webkit.org/show_bug.cgi?id=147904
Modified: releases/WebKitGTK/webkit-2.10/LayoutTests/inspector/indexeddb/requestDatabaseNames.html (188454 => 188455)
--- releases/WebKitGTK/webkit-2.10/LayoutTests/inspector/indexeddb/requestDatabaseNames.html 2015-08-14 10:41:46 UTC (rev 188454)
+++ releases/WebKitGTK/webkit-2.10/LayoutTests/inspector/indexeddb/requestDatabaseNames.html 2015-08-14 10:42:51 UTC (rev 188455)
@@ -11,12 +11,28 @@
});
}
+function deleteDatabaseNames(names)
+{
+ for (let name of names)
+ window.indexedDB.deleteDatabase(name);
+}
+
function test()
{
var steps = [
{
action: function() {
+ // FIXME: Remove any existing IndexedDB databases that might exist to workaround:
+ // <https://webkit.org/b/148006> Each test should run with its own clean data store
IndexedDBAgent.requestDatabaseNames(WebInspector.frameResourceManager.mainFrame.securityOrigin, function(error, names) {
+ InspectorTest.evaluateInPage("deleteDatabaseNames(" + JSON.stringify(names) + ")");
+ next();
+ });
+ }
+ },
+ {
+ action: function() {
+ IndexedDBAgent.requestDatabaseNames(WebInspector.frameResourceManager.mainFrame.securityOrigin, function(error, names) {
InspectorTest.expectNoError(error);
InspectorTest.expectThat(names.length === 0, "No IndexedDB databases should exist initially");
InspectorTest.evaluateInPage("createDatabase('Database1')");
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes