| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
g/TR/html4/loose.dtd"> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script src="../http/tests/inspector/inspector-test.js"></script> | |
| 5 <script> | |
| 6 function test() | |
| 7 { | |
| 8 var inspectorJson = {"domains": [{ | |
| 9 "domain": "Page", | |
| 10 "types": [{ | |
| 11 "id": "ResourceType", | |
| 12 "type": "string", | |
| 13 "enum": ["Document", "XHR", "console-api", "other"] | |
| 14 }], | |
| 15 "commands": [{ | |
| 16 "name": "addScriptToEvaluateOnLoad", | |
| 17 "parameters": [ | |
| 18 {"name": "scriptSource", "type": "string"} | |
| 19 ], | |
| 20 "returns": [ | |
| 21 {"name": "identifier", "type": "string"} | |
| 22 ] | |
| 23 }], | |
| 24 "events": [{ | |
| 25 "name": "domContentEventFired", | |
| 26 "parameters": [ | |
| 27 {"name": "timestamp", "type": "number"} | |
| 28 ] | |
| 29 }] | |
| 30 }]}; | |
| 31 var commands = WebInspector.InspectorBackendHostedMode.generateCommands(insp
ectorJson); | |
| 32 InspectorTest.addResult(commands); | |
| 33 InspectorTest.completeTest(); | |
| 34 } | |
| 35 </script> | |
| 36 </head> | |
| 37 <body onload="runTest()"> | |
| 38 <p>Tests correctness of code generated by InspectorBackend.</p> | |
| 39 </body> | |
| 40 </html> | |
| OLD | NEW |