OLD | NEW |
1 Tests that InspectorBackendDispatcher is catching incorrect messages. | 1 Tests that InspectorBackendDispatcher is catching incorrect messages. |
2 | 2 |
3 { | 3 { |
4 error : { | 4 error : { |
5 code : -32700 | 5 code : -32700 |
6 message : "Message must be in JSON format" | 6 message : "Message must be a valid JSON" |
7 } | 7 } |
8 id : null | |
9 } | 8 } |
10 ------------------------------------------------------- | 9 ------------------------------------------------------- |
11 { | 10 { |
12 error : { | 11 error : { |
13 code : -32600 | 12 code : -32600 |
14 message : "The type of 'id' property must be number" | 13 message : "Message must have integer 'id' porperty" |
15 } | 14 } |
16 id : null | |
17 } | 15 } |
18 ------------------------------------------------------- | 16 ------------------------------------------------------- |
19 { | 17 { |
20 error : { | 18 error : { |
21 code : -32600 | 19 code : -32600 |
22 message : "The type of 'id' property must be number" | 20 message : "Message must have integer 'id' porperty" |
23 } | 21 } |
24 id : null | |
25 } | 22 } |
26 ------------------------------------------------------- | 23 ------------------------------------------------------- |
27 { | 24 { |
28 error : { | 25 error : { |
29 code : -32600 | 26 code : -32600 |
30 message : "The type of 'method' property must be string" | 27 message : "Message must have string 'method' porperty" |
31 } | 28 } |
32 id : 1 | 29 id : 1 |
33 } | 30 } |
34 ------------------------------------------------------- | 31 ------------------------------------------------------- |
35 { | 32 { |
36 error : { | 33 error : { |
37 code : -32601 | 34 code : -32601 |
38 message : "'resourceContent' wasn't found" | 35 message : "'resourceContent' wasn't found" |
39 } | 36 } |
40 id : 2 | 37 id : 2 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 ------------------------------------------------------- | 147 ------------------------------------------------------- |
151 { | 148 { |
152 error : { | 149 error : { |
153 code : -32601 | 150 code : -32601 |
154 message : "'DOM.test' wasn't found" | 151 message : "'DOM.test' wasn't found" |
155 } | 152 } |
156 id : 16 | 153 id : 16 |
157 } | 154 } |
158 ------------------------------------------------------- | 155 ------------------------------------------------------- |
159 | 156 |
OLD | NEW |