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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector-enabled/database-open.html

Issue 1880273002: [DevTools] Create last agents on attach, modify InspectorDatabaseAgent to support it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: two databases in the test Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector-enabled/database-open-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/inspector-enabled/database-open.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/database-open.html b/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/database-open.html
index 927a4908e35fdbe26450f3d4c3a689acd5913762..a99c9c6d31cedb79ff374d1f49dd4f4d097aae35 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/database-open.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/database-open.html
@@ -12,6 +12,7 @@ function onload()
testRunner.waitUntilDone();
var db = openDatabase("InspectorDatabaseTest", "1.0", "Test of database instrumentation", 1);
+ var db2 = openDatabase("InspectorDatabaseTest2", "1.0", "Test of database instrumentation 2", 1);
if (window.testRunner)
testRunner.showWebInspector();
@@ -23,7 +24,17 @@ function test()
InspectorTest.databaseModel().enable();
function run()
{
+ function compareByName(d1, d2)
+ {
+ if (d1.name < d2.name)
+ return -1;
+ if (d1.name > d2.name)
+ return 1;
+ return 0;
+ }
+
var databases = InspectorTest.databaseModel().databases();
+ databases.sort(compareByName);
for (var i = 0; i < databases.length; ++i) {
InspectorTest.addResult("Name: " + databases[i].name);
InspectorTest.addResult("Version: " + databases[i].version);
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector-enabled/database-open-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698