зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1719835 - [devtools] Fix beta simulation perma fail on browser_webconsole_stubs_page_error.js. r=bomsy.
The error message seems to be different in Nighly and Beta, but I wasn't able to find any pref that is driving this. Since the error message itself isn't super relevant, and given that we're at the end of the cycle, this patch is only modifying the expression so we get a different error. Differential Revision: https://phabricator.services.mozilla.com/D119520
This commit is contained in:
Родитель
8261f88945
Коммит
905139f295
|
@ -244,7 +244,7 @@ function getCommands() {
|
|||
`Promise reject Error Object with error cause`,
|
||||
`Promise.resolve().then(() => {
|
||||
try {
|
||||
a.b.c
|
||||
unknownFunc();
|
||||
} catch(e) {
|
||||
throw new Error("something went wrong", { cause: e })
|
||||
}
|
||||
|
|
|
@ -375,7 +375,7 @@ describe("PageError component:", () => {
|
|||
expect(text).toBe(
|
||||
[
|
||||
`Uncaught (in promise) Error: something went wrong`,
|
||||
`Caused by: TypeError: can't access property "c", a.b is undefined`,
|
||||
`Caused by: ReferenceError: unknownFunc is not defined`,
|
||||
].join("\n")
|
||||
);
|
||||
expect(wrapper.hasClass("error")).toBe(true);
|
||||
|
|
|
@ -2447,7 +2447,7 @@ rawPackets.set(`Promise reject Error Object with error cause`, {
|
|||
"cause": {
|
||||
"type": "object",
|
||||
"actor": "server0.conn0.child4/obj83",
|
||||
"class": "TypeError",
|
||||
"class": "ReferenceError",
|
||||
"ownPropertyLength": 4,
|
||||
"extensible": true,
|
||||
"frozen": false,
|
||||
|
@ -2455,8 +2455,8 @@ rawPackets.set(`Promise reject Error Object with error cause`, {
|
|||
"isError": true,
|
||||
"preview": {
|
||||
"kind": "Error",
|
||||
"name": "TypeError",
|
||||
"message": "can't access property \"c\", a.b is undefined",
|
||||
"name": "ReferenceError",
|
||||
"message": "unknownFunc is not defined",
|
||||
"stack": "@http://example.com/browser/devtools/client/webconsole/test/browser/test-console-api.html:3:9\npromise callback*@http://example.com/browser/devtools/client/webconsole/test/browser/test-console-api.html:1:19\n",
|
||||
"fileName": "http://example.com/browser/devtools/client/webconsole/test/browser/test-console-api.html",
|
||||
"lineNumber": 3,
|
||||
|
|
Загрузка…
Ссылка в новой задаче