Bug 1416201 - update test fixtures for the Console panel; r=nchevobbe
authorJan Odvarko <odvarko@gmail.com>
Thu, 23 Nov 2017 13:35:23 +0100
changeset 438002 fb4dc6ac92a58616a1a1f5a00d996bcff22bf33b
parent 438001 6a93857a6568cda34cb090d09e6e322922c51116
child 438003 d81558109d84d2e4717ef76d9c09a017824ff087
push id117
push userfmarier@mozilla.com
push dateTue, 28 Nov 2017 20:17:16 +0000
reviewersnchevobbe
bugs1416201
milestone59.0a1
Bug 1416201 - update test fixtures for the Console panel; r=nchevobbe MozReview-Commit-ID: F67HMK7zyUn
devtools/client/webconsole/new-console-output/test/fixtures/stubs/networkEvent.js
--- a/devtools/client/webconsole/new-console-output/test/fixtures/stubs/networkEvent.js
+++ b/devtools/client/webconsole/new-console-output/test/fixtures/stubs/networkEvent.js
@@ -40,39 +40,17 @@ stubPreparedMessages.set("GET request", 
     "scheme": "http",
     "unicodeUrl": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
     "isLocal": null
   },
   "method": "GET",
   "cause": {
     "type": "img",
     "loadingDocumentUri": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-network-event.html",
-    "stacktrace": [
-      {
-        "filename": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-network-event.html",
-        "lineNumber": 3,
-        "columnNumber": 1,
-        "functionName": "triggerPacket",
-        "asyncCause": null
-      },
-      {
-        "filename": "resource://testing-common/content-task.js line 52 > eval",
-        "lineNumber": 8,
-        "columnNumber": 9,
-        "functionName": null,
-        "asyncCause": null
-      },
-      {
-        "filename": "resource://testing-common/content-task.js",
-        "lineNumber": 53,
-        "columnNumber": 20,
-        "functionName": null,
-        "asyncCause": null
-      }
-    ]
+    "stacktraceAvailable": true
   }
 }));
 
 stubPreparedMessages.set("GET request update", new NetworkEventMessage({
   "id": "1",
   "actor": "server1.conn0.child1/netEvent30",
   "level": "log",
   "request": {
@@ -140,39 +118,17 @@ stubPreparedMessages.set("XHR GET reques
     "scheme": "http",
     "unicodeUrl": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
     "isLocal": null
   },
   "method": "GET",
   "cause": {
     "type": "xhr",
     "loadingDocumentUri": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-network-event.html",
-    "stacktrace": [
-      {
-        "filename": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-network-event.html",
-        "lineNumber": 4,
-        "columnNumber": 1,
-        "functionName": "triggerPacket",
-        "asyncCause": null
-      },
-      {
-        "filename": "resource://testing-common/content-task.js line 52 > eval",
-        "lineNumber": 8,
-        "columnNumber": 9,
-        "functionName": null,
-        "asyncCause": null
-      },
-      {
-        "filename": "resource://testing-common/content-task.js",
-        "lineNumber": 53,
-        "columnNumber": 20,
-        "functionName": null,
-        "asyncCause": null
-      }
-    ]
+    "stacktraceAvailable": true
   }
 }));
 
 stubPreparedMessages.set("XHR GET request update", new NetworkEventMessage({
   "id": "1",
   "actor": "server1.conn0.child1/netEvent31",
   "level": "log",
   "request": {
@@ -240,39 +196,17 @@ stubPreparedMessages.set("XHR POST reque
     "scheme": "http",
     "unicodeUrl": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
     "isLocal": null
   },
   "method": "POST",
   "cause": {
     "type": "xhr",
     "loadingDocumentUri": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-network-event.html",
-    "stacktrace": [
-      {
-        "filename": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-network-event.html",
-        "lineNumber": 4,
-        "columnNumber": 1,
-        "functionName": "triggerPacket",
-        "asyncCause": null
-      },
-      {
-        "filename": "resource://testing-common/content-task.js line 52 > eval",
-        "lineNumber": 8,
-        "columnNumber": 9,
-        "functionName": null,
-        "asyncCause": null
-      },
-      {
-        "filename": "resource://testing-common/content-task.js",
-        "lineNumber": 53,
-        "columnNumber": 20,
-        "functionName": null,
-        "asyncCause": null
-      }
-    ]
+    "stacktraceAvailable": true
   }
 }));
 
 stubPreparedMessages.set("XHR POST request update", new NetworkEventMessage({
   "id": "1",
   "actor": "server1.conn0.child1/netEvent32",
   "level": "log",
   "request": {
@@ -324,39 +258,17 @@ stubPackets.set("GET request", {
   "request": {
     "url": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
     "method": "GET"
   },
   "isXHR": false,
   "cause": {
     "type": "img",
     "loadingDocumentUri": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-network-event.html",
-    "stacktrace": [
-      {
-        "filename": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-network-event.html",
-        "lineNumber": 3,
-        "columnNumber": 1,
-        "functionName": "triggerPacket",
-        "asyncCause": null
-      },
-      {
-        "filename": "resource://testing-common/content-task.js line 52 > eval",
-        "lineNumber": 8,
-        "columnNumber": 9,
-        "functionName": null,
-        "asyncCause": null
-      },
-      {
-        "filename": "resource://testing-common/content-task.js",
-        "lineNumber": 53,
-        "columnNumber": 20,
-        "functionName": null,
-        "asyncCause": null
-      }
-    ]
+    "stacktraceAvailable": true
   },
   "response": {},
   "timings": {},
   "updates": [],
   "private": false,
   "from": "server1.conn0.child1/consoleActor2"
 });
 
@@ -397,39 +309,17 @@ stubPackets.set("XHR GET request", {
   "request": {
     "url": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
     "method": "GET"
   },
   "isXHR": true,
   "cause": {
     "type": "xhr",
     "loadingDocumentUri": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-network-event.html",
-    "stacktrace": [
-      {
-        "filename": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-network-event.html",
-        "lineNumber": 4,
-        "columnNumber": 1,
-        "functionName": "triggerPacket",
-        "asyncCause": null
-      },
-      {
-        "filename": "resource://testing-common/content-task.js line 52 > eval",
-        "lineNumber": 8,
-        "columnNumber": 9,
-        "functionName": null,
-        "asyncCause": null
-      },
-      {
-        "filename": "resource://testing-common/content-task.js",
-        "lineNumber": 53,
-        "columnNumber": 20,
-        "functionName": null,
-        "asyncCause": null
-      }
-    ]
+    "stacktraceAvailable": true
   },
   "response": {},
   "timings": {},
   "updates": [],
   "private": false,
   "from": "server1.conn1.child1/consoleActor2"
 });
 
@@ -470,39 +360,17 @@ stubPackets.set("XHR POST request", {
   "request": {
     "url": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/inexistent.html",
     "method": "POST"
   },
   "isXHR": true,
   "cause": {
     "type": "xhr",
     "loadingDocumentUri": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-network-event.html",
-    "stacktrace": [
-      {
-        "filename": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-network-event.html",
-        "lineNumber": 4,
-        "columnNumber": 1,
-        "functionName": "triggerPacket",
-        "asyncCause": null
-      },
-      {
-        "filename": "resource://testing-common/content-task.js line 52 > eval",
-        "lineNumber": 8,
-        "columnNumber": 9,
-        "functionName": null,
-        "asyncCause": null
-      },
-      {
-        "filename": "resource://testing-common/content-task.js",
-        "lineNumber": 53,
-        "columnNumber": 20,
-        "functionName": null,
-        "asyncCause": null
-      }
-    ]
+    "stacktraceAvailable": true
   },
   "response": {},
   "timings": {},
   "updates": [],
   "private": false,
   "from": "server1.conn2.child1/consoleActor2"
 });