Unreviewed, GTK css2.1 rebaseline after r101343.
[WebKit-https.git] / LayoutTests / inspector / report-protocol-errors.html
index 590e3e6..c52632c 100644 (file)
@@ -12,17 +12,32 @@ function test()
         '{"id":1,"method":1}',
         '{"id":2,"method":"resourceContent"}',
         '{"id":3,"method":"DOM.test"}',
-        '{"id":4,"method":"Network.getResourceContent"}',
-        '{"id":5,"method":"Network.getResourceContent","params":[]}',
-        '{"id":6,"method":"Network.getResourceContent","params":{}}',
-        '{"id":7,"method":"Network.getResourceContent","params":{"frameId":"not a number"}}',
+        '{"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();