275901e4b91850fac13c2c143fe26a5bda5f594a
[WebKit-https.git] / LayoutTests / inspector / extensions / extensions-audits-api.html
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/extensions-test.js"></script>
5 <script src="../audits/audits-test.js"></script>
6 <script src="extensions-audits-tests.js"></script>
7
8 <script type="text/javascript">
9
10 function extension_testAuditsAPI(nextTest)
11 {
12     function onStartAuditCategory(results)
13     {
14         output("category.onAuditStarted fired, results dump follows:");
15         dumpObject(results);
16         var node = results.createResult("Subtree");
17         dumpObject(node);
18         results.done();
19     }
20     var category = webInspector.audits.addCategory("Extension audits", 20);
21     category.onAuditStarted.addListener(onStartAuditCategory);
22     output("Added audit category, result dump follows:");
23     dumpObject(category);
24     extension_runAudits(nextTest);
25 }
26
27 </script>
28 </head>
29 <body onload="runTest()">
30 <p>Tests audits support in WebInspector Extensions API</p>
31 </body>
32 </html>