Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / inspector-backend-commands-generation.html
blobf6b0666d5cd0891e40cd1b6c3247fd13fae450e9
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <head>
4 <script src="../http/tests/inspector/inspector-test.js"></script>
5 <script>
6 function test()
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"}
20 "returns": [
21 {"name": "identifier", "type": "string"}
23 }],
24 "events": [{
25 "name": "domContentEventFired",
26 "parameters": [
27 {"name": "timestamp", "type": "number"}
30 }]};
31 var commands = InspectorBackendClass._generateCommands(inspectorJson);
32 InspectorTest.addResult(commands);
33 InspectorTest.completeTest();
35 </script>
36 </head>
37 <body onload="runTest()">
38 <p>Tests correctness of code generated by InspectorBackend.</p>
39 </body>
40 </html>