зеркало из https://github.com/mozilla/gecko-dev.git
Bug 104442 - Part 4: Update stub. r=nchevobbe
This commit is contained in:
Родитель
915f2f8c25
Коммит
c447cd8306
|
@ -67,6 +67,50 @@ 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",
|
||||
"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",
|
||||
|
@ -122,6 +166,51 @@ 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",
|
||||
"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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче