Index: third_party/WebKit/LayoutTests/http/tests/inspector/resources-test.js |
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/resources-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/resources-test.js |
index 43e4d966fcb12d7d604785d832525b65ae399b13..2aa4f591e97e882b405d3e0a7e03854c10dc3437 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/resources-test.js |
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/resources-test.js |
@@ -3,6 +3,11 @@ var initialize_ResourceTest = function() { |
InspectorTest.preloadPanel("sources"); |
InspectorTest.preloadPanel("resources"); |
+InspectorTest.createWebSQLDatabase = function(name) |
+{ |
+ return InspectorTest.evaluateInPageAsync(`_openWebSQLDatabase("${name}")`); |
+} |
+ |
InspectorTest.requestURLComparer = function(r1, r2) |
{ |
return r1.request.url.localeCompare(r2.request.url); |
@@ -93,3 +98,8 @@ InspectorTest.indexedDBModel = function() |
} |
} |
+ |
+function _openWebSQLDatabase(name) |
+{ |
+ return new Promise(resolve => openDatabase(name, "1.0", "", 1024 * 1024, resolve)); |
+} |