Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/resources-test.js

Issue 2801723003: [DevTools] Do not reset storage tree items (Closed)
Patch Set: [DevTools] Do not reset storage tree items Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));
+}

Powered by Google App Engine
This is Rietveld 408576698