Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / extensions / extensions-audits-api.html
blob603eb6dc95fdbdc9f4ecd66861a360a5292a4a26
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>
8 <script type="text/javascript">
10 function extension_testAuditsAPI(nextTest)
12 function onStartAuditCategory(results)
14 output("category.onAuditStarted fired, results dump follows:");
15 dumpObject(results);
16 var node = results.createResult("Subtree");
17 dumpObject(node);
18 // Make sure dumpObject() pushes stuff through before we continue.
19 evaluateOnFrontend("InspectorTest.runAfterPendingDispatches(reply)", function() {
20 results.done();
21 });
23 var category = webInspector.audits.addCategory("Extension audits");
24 category.onAuditStarted.addListener(onStartAuditCategory);
25 output("Added audit category, result dump follows:");
26 dumpObject(category);
27 extension_runAudits(nextTest);
30 </script>
31 </head>
32 <body onload="runTest()">
33 <p>Tests audits support in WebInspector Extensions API</p>
34 </body>
35 </html>