Unreviewed, GTK css2.1 rebaseline after r101343.
[WebKit-https.git] / LayoutTests / inspector / report-protocol-errors.html
index 69e3af3..c52632c 100644 (file)
@@ -8,21 +8,36 @@ function test()
     var messages = [
         'some wrong string',
         '{}',
-        '{"command":1}',
-        '{"domain":"Network","command":"resourceContent"}',
-        '{"id":"not a number","domain":"Network","command":"resourceContent"}',
-        '{"id":1,"domain":"DOM","command":"test"}',
-        '{"id":2,"domain":"Network","command":"getResourceContent"}',
-        '{"id":3,"domain":"Network","command":"getResourceContent","arguments":[]}',
-        '{"id":4,"domain":"Network","command":"getResourceContent","arguments":{}}',
-        '{"id":5,"domain":"Network","command":"getResourceContent","arguments":{"identifier":"not a number"}}',
+        '{"id":"not a number"}',
+        '{"id":1,"method":1}',
+        '{"id":2,"method":"resourceContent"}',
+        '{"id":3,"method":"DOM.test"}',
+        '{"id":4,"method":"Page.getResourceContent"}',
+        '{"id":5,"method":"Page.getResourceContent","params":[]}',
+        '{"id":6,"method":"Page.getResourceContent","params":{}}',
+        '{"id":7,"method":"Page.getResourceContent","params":{"frameId":"not a number"}}',
+        '{"id":8,"method":"Page.test"}',
+        '{"id":9,"method":"Page.test" }',
+        '{"id":10,"method": "Page.test" }',
+        '{"id":11,"method" : "Page.test" }',
+        '{"id":12, "method" : "Page.test" }',
+        '{"id": 13, "method" : "Page.test" }',
+        '{"id" : 14, "method" : "Page.test" }',
+        '{ "id" : 15, "method" : "Page.test" }',
+        '{  "id"\n :\r 16,\t "method"\f :\v "Page.test" }',
     ];
     var numberOfReports = 0;
 
     InspectorBackend.reportProtocolError = function(message)
     {
-        if (numberOfReports < messages.length)
+
+        if (numberOfReports < messages.length) {
             InspectorTest.addObject(message);
+            InspectorTest.addResult("error.code: " + message.error.code);
+            InspectorTest.addResult("error.getMessage(): " + message.error.getMessage());
+            InspectorTest.addResult("error.toString(): " + message.error);
+            InspectorTest.addResult("-------------------------------------------------------");
+        }
 
         if (++numberOfReports === messages.length)
             InspectorTest.completeTest();