summaryrefslogtreecommitdiffstats
path: root/devtools/client/webconsole/new-console-output
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-06-09 23:12:38 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:40 -0400
commit5d1f675acd1c8e92a12e9a59e229d36231f35311 (patch)
treefefcfc2258eec27502deed67ed2272c02859de4b /devtools/client/webconsole/new-console-output
parent4a14a7b3943e8173b2f75929c5e4a1bb6539b3c1 (diff)
downloadUXP-5d1f675acd1c8e92a12e9a59e229d36231f35311.tar
UXP-5d1f675acd1c8e92a12e9a59e229d36231f35311.tar.gz
UXP-5d1f675acd1c8e92a12e9a59e229d36231f35311.tar.lz
UXP-5d1f675acd1c8e92a12e9a59e229d36231f35311.tar.xz
UXP-5d1f675acd1c8e92a12e9a59e229d36231f35311.zip
104442 - Part 4: Update stub.
Diffstat (limited to 'devtools/client/webconsole/new-console-output')
-rw-r--r--devtools/client/webconsole/new-console-output/test/fixtures/stubs/pageError.js87
1 files changed, 87 insertions, 0 deletions
diff --git a/devtools/client/webconsole/new-console-output/test/fixtures/stubs/pageError.js b/devtools/client/webconsole/new-console-output/test/fixtures/stubs/pageError.js
index 8365d6742..80147e7dd 100644
--- a/devtools/client/webconsole/new-console-output/test/fixtures/stubs/pageError.js
+++ b/devtools/client/webconsole/new-console-output/test/fixtures/stubs/pageError.js
@@ -52,6 +52,49 @@ stubPreparedMessages.set("ReferenceError: asdf is not defined", new ConsoleMessa
"notes": null
}));
+stubPreparedMessages.set("SyntaxError: redeclaration of let a", new ConsoleMessage({
+ "id": "1",
+ "allowRepeating": true,
+ "source": "javascript",
+ "type": "log",
+ "level": "error",
+ "messageText": "SyntaxError: redeclaration of let a",
+ "parameters": null,
+ "repeat": 1,
+ "repeatId": "{\"id\":null,\"allowRepeating\":true,\"source\":\"javascript\",\"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",
@@ -95,6 +138,50 @@ stubPackets.set("ReferenceError: asdf is not defined", {
}
});
+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",
+ "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,