Bug 104442 - Part 2: Add a testcase for devtools and note. r=nchevobbe
authorTooru Fujisawa <arai_a@mac.com>
Sat, 25 Feb 2017 12:52:33 +0900
changeset 489643 175610403a4ebb73d3e99ef36762fc4e8d6f8efd
parent 489642 effa71064b2918dbab3f63716419e84264588f7b
child 489644 b90365c52f059c88f1a4ad8358781378da438f87
push id46871
push userbmo:sledru@mozilla.com
push dateSat, 25 Feb 2017 12:16:21 +0000
reviewersnchevobbe
bugs104442
milestone54.0a1
Bug 104442 - Part 2: Add a testcase for devtools and note. r=nchevobbe
devtools/shared/webconsole/test/test_page_errors.html
--- a/devtools/shared/webconsole/test/test_page_errors.html
+++ b/devtools/shared/webconsole/test/test_page_errors.html
@@ -106,16 +106,34 @@ function doPageErrors() {
       errorMessageName: "JSMSG_STMT_AFTER_RETURN",
       sourceName: /test_page_errors/,
       category: "chrome javascript",
       timeStamp: /^\d+$/,
       error: false,
       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");
   for (let stmt of Object.keys(expectedPageErrors)) {
       if (expectedPageErrors[stmt].exception) {
           SimpleTest.expectUncaughtException();
       }
       info("starting stmt: " + stmt);