Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / inspector-enabled / database-open.html
blob927a4908e35fdbe26450f3d4c3a689acd5913762
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../inspector/inspector-test.js"></script>
5 <script src="../inspector/resources-test.js"></script>
7 <script>
9 function onload()
11 if (window.testRunner)
12 testRunner.waitUntilDone();
14 var db = openDatabase("InspectorDatabaseTest", "1.0", "Test of database instrumentation", 1);
16 if (window.testRunner)
17 testRunner.showWebInspector();
18 runTest();
21 function test()
23 InspectorTest.databaseModel().enable();
24 function run()
26 var databases = InspectorTest.databaseModel().databases();
27 for (var i = 0; i < databases.length; ++i) {
28 InspectorTest.addResult("Name: " + databases[i].name);
29 InspectorTest.addResult("Version: " + databases[i].version);
30 InspectorTest.addResult("Domain: " + databases[i].domain);
32 InspectorTest.completeTest();
34 InspectorTest.runAfterPendingDispatches(run);
37 </script>
39 </head>
40 <body onload="onload()">
41 <p>Tests that Web Inspector gets populated with databases that were opened before inspector is shown.</p>
42 </body>
43 </html>