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:");
16 var node
= results
.createResult("Subtree");
18 // Make sure dumpObject() pushes stuff through before we continue.
19 evaluateOnFrontend("InspectorTest.runAfterPendingDispatches(reply)", function() {
23 var category
= webInspector
.audits
.addCategory("Extension audits");
24 category
.onAuditStarted
.addListener(onStartAuditCategory
);
25 output("Added audit category, result dump follows:");
27 extension_runAudits(nextTest
);
32 <body onload=
"runTest()">
33 <p>Tests audits support in WebInspector Extensions API
</p>