Bug 104442 - Part 4: Update stub. r=nchevobbe
authorTooru Fujisawa <arai_a@mac.com>
Sat, 25 Feb 2017 12:52:33 +0900
changeset 373951 12c83a596d7b21cda79ee07c0d196139b5ddff3c
parent 373950 b90365c52f059c88f1a4ad8358781378da438f87
child 373952 01bd2d505daa10f606a06ed6103ddcb9c1df0ebf
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnchevobbe
bugs104442
milestone54.0a1
Bug 104442 - Part 4: Update stub. r=nchevobbe
devtools/client/webconsole/new-console-output/test/fixtures/stubs/pageError.js
--- a/devtools/client/webconsole/new-console-output/test/fixtures/stubs/pageError.js
+++ b/devtools/client/webconsole/new-console-output/test/fixtures/stubs/pageError.js
@@ -62,16 +62,60 @@ stubPreparedMessages.set("ReferenceError
     "column": 5
   },
   "groupId": null,
   "exceptionDocURL": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Errors/Not_defined?utm_source=mozilla&utm_medium=firefox-console-errors&utm_campaign=default",
   "userProvidedStyles": null,
   "notes": null
 }));
 
+stubPreparedMessages.set("SyntaxError: redeclaration of let a", new ConsoleMessage({
+  "id": "1",
+  "allowRepeating": true,
+  "source": "javascript",
+  "timeStamp": 1487992945524,
+  "type": "log",
+  "level": "error",
+  "messageText": "SyntaxError: redeclaration of let a",
+  "parameters": null,
+  "repeat": 1,
+  "repeatId": "{\"id\":null,\"allowRepeating\":true,\"source\":\"javascript\",\"timeStamp\":1487992945524,\"type\":\"log\",\"level\":\"error\",\"messageText\":\"SyntaxError: redeclaration of let a\",\"parameters\":null,\"repeatId\":null,\"stacktrace\":[{\"filename\":\"chrome://mochikit/content/tests/BrowserTestUtils/content-task.js line 52 > eval\",\"lineNumber\":6,\"columnNumber\":9,\"functionName\":null},{\"filename\":\"chrome://mochikit/content/tests/BrowserTestUtils/content-task.js\",\"lineNumber\":53,\"columnNumber\":20,\"functionName\":null}],\"frame\":{\"source\":\"http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-console-api.html\",\"line\":2,\"column\":9},\"groupId\":null,\"userProvidedStyles\":null,\"notes\":[{\"messageBody\":\"Previously declared at line 2, column 6\",\"frame\":{\"source\":\"http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-console-api.html\",\"line\":2,\"column\":6}}]}",
+  "stacktrace": [
+    {
+      "filename": "chrome://mochikit/content/tests/BrowserTestUtils/content-task.js line 52 > eval",
+      "lineNumber": 6,
+      "columnNumber": 9,
+      "functionName": null
+    },
+    {
+      "filename": "chrome://mochikit/content/tests/BrowserTestUtils/content-task.js",
+      "lineNumber": 53,
+      "columnNumber": 20,
+      "functionName": null
+    }
+  ],
+  "frame": {
+    "source": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-console-api.html",
+    "line": 2,
+    "column": 9
+  },
+  "groupId": null,
+  "userProvidedStyles": null,
+  "notes": [
+    {
+      "messageBody": "Previously declared at line 2, column 6",
+      "frame": {
+        "source": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-console-api.html",
+        "line": 2,
+        "column": 6
+      }
+    }
+  ]
+}));
+
 stubPackets.set("ReferenceError: asdf is not defined", {
   "from": "server1.conn0.child1/consoleActor2",
   "type": "pageError",
   "pageError": {
     "errorMessage": "ReferenceError: asdf is not defined",
     "errorMessageName": "JSMSG_NOT_DEFINED",
     "exceptionDocURL": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Errors/Not_defined?utm_source=mozilla&utm_medium=firefox-console-errors&utm_campaign=default",
     "sourceName": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-console-api.html",
@@ -117,12 +161,57 @@ stubPackets.set("ReferenceError: asdf is
         "columnNumber": 20,
         "functionName": null
       }
     ],
     "notes": null
   }
 });
 
+stubPackets.set("SyntaxError: redeclaration of let a", {
+  "from": "server1.conn0.child1/consoleActor2",
+  "type": "pageError",
+  "pageError": {
+    "errorMessage": "SyntaxError: redeclaration of let a",
+    "errorMessageName": "JSMSG_REDECLARED_VAR",
+    "sourceName": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-console-api.html",
+    "lineText": "  let a, a;\n",
+    "lineNumber": 2,
+    "columnNumber": 9,
+    "category": "content javascript",
+    "timeStamp": 1487992945524,
+    "warning": false,
+    "error": false,
+    "exception": true,
+    "strict": false,
+    "info": false,
+    "private": false,
+    "stacktrace": [
+      {
+        "filename": "chrome://mochikit/content/tests/BrowserTestUtils/content-task.js line 52 > eval",
+        "lineNumber": 6,
+        "columnNumber": 9,
+        "functionName": null
+      },
+      {
+        "filename": "chrome://mochikit/content/tests/BrowserTestUtils/content-task.js",
+        "lineNumber": 53,
+        "columnNumber": 20,
+        "functionName": null
+      }
+    ],
+    "notes": [
+      {
+        "messageBody": "Previously declared at line 2, column 6",
+        "frame": {
+          "source": "http://example.com/browser/devtools/client/webconsole/new-console-output/test/fixtures/stub-generators/test-console-api.html",
+          "line": 2,
+          "column": 6
+        }
+      }
+    ]
+  }
+});
+
 module.exports = {
   stubPreparedMessages,
   stubPackets,
 };