summaryrefslogtreecommitdiffstats
path: root/devtools
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-06-09 23:11:09 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:39 -0400
commitf4129b97ca53442d7789fa97ed022d612d12c037 (patch)
treee33ebec4c9637303ce9d3f968bd783fa54858451 /devtools
parentdab8877c10fcc9dd5d86e6fd3d1924e474076726 (diff)
downloadUXP-f4129b97ca53442d7789fa97ed022d612d12c037.tar
UXP-f4129b97ca53442d7789fa97ed022d612d12c037.tar.gz
UXP-f4129b97ca53442d7789fa97ed022d612d12c037.tar.lz
UXP-f4129b97ca53442d7789fa97ed022d612d12c037.tar.xz
UXP-f4129b97ca53442d7789fa97ed022d612d12c037.zip
104442 - Part 2: Add a testcase for devtools and note.
Diffstat (limited to 'devtools')
-rw-r--r--devtools/shared/webconsole/test/test_page_errors.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/devtools/shared/webconsole/test/test_page_errors.html b/devtools/shared/webconsole/test/test_page_errors.html
index 78138856e..b4c0fe885 100644
--- a/devtools/shared/webconsole/test/test_page_errors.html
+++ b/devtools/shared/webconsole/test/test_page_errors.html
@@ -112,6 +112,24 @@ function doPageErrors()
warning: true,
exception: false,
},
+ "let a, a;": {
+ errorMessage: /redeclaration of/,
+ errorMessageName: "JSMSG_REDECLARED_VAR",
+ sourceName: /test_page_errors/,
+ category: "chrome javascript",
+ timeStamp: /^\d+$/,
+ error: false,
+ warning: false,
+ exception: true,
+ notes: [
+ {
+ messageBody: /Previously declared at line/,
+ frame: {
+ source: /test_page_errors/,
+ }
+ }
+ ]
+ },
};
let container = document.createElement("script");