1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../inspector/inspector-test.js"></script>
5 <script src=
"../inspector/resources-test.js"></script>
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();
23 InspectorTest
.databaseModel().enable();
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
);
40 <body onload=
"onload()">
41 <p>Tests that Web Inspector gets populated with databases that were opened before inspector is shown.
</p>