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 373949 175610403a4ebb73d3e99ef36762fc4e8d6f8efd
parent 373948 effa71064b2918dbab3f63716419e84264588f7b
child 373950 b90365c52f059c88f1a4ad8358781378da438f87
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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);