OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/resource
s/inspector-protocol-test.js"></script> |
4 <script> | 4 <script> |
5 | 5 |
6 function test() | 6 function test() |
7 { | 7 { |
8 InspectorTest.eventHandler["Log.entryAdded"] = (message) => { | 8 InspectorTest.eventHandler["Log.entryAdded"] = (message) => { |
9 InspectorTest.logObject(message, '', ['timestamp', 'scriptId']); | 9 InspectorTest.logObject(message, '', ['timestamp', 'scriptId']); |
10 }; | 10 }; |
11 | 11 |
12 InspectorTest.sendCommand("Log.enable", {}); | 12 InspectorTest.sendCommand("Log.enable", {}); |
13 InspectorTest.sendCommand("Log.startViolationsReport", {config: [{name: 'dis
couragedAPIUse', threshold: -1}]}); | 13 InspectorTest.sendCommand("Log.startViolationsReport", {config: [{name: 'dis
couragedAPIUse', threshold: -1}]}); |
14 InspectorTest.sendCommand("Runtime.evaluate", { expression: "document.body.a
ddEventListener('DOMSubtreeModified', () => {})" }, | 14 InspectorTest.sendCommand("Runtime.evaluate", { expression: "document.body.a
ddEventListener('DOMSubtreeModified', () => {})" }, |
15 InspectorTest.completeTest.bind(InspectorTest)); | 15 InspectorTest.completeTest.bind(InspectorTest)); |
16 | 16 |
17 } | 17 } |
18 | 18 |
19 </script> | 19 </script> |
20 </head> | 20 </head> |
21 <body onload="runTest()"> | 21 <body onload="runTest()"> |
22 </body> | 22 </body> |
23 </html> | 23 </html> |
OLD | NEW |