Bug 1264085 - Use not-non-release-only warning in js/src/tests/shell/warning.js. r=shu
authorTooru Fujisawa <arai_a@mac.com>
Thu, 14 Apr 2016 16:41:37 +0900
changeset 293243 18ba8acba7902115a6f897d7d22b1cc33cb56008
parent 293242 c77b965d8c74749ddc17f3c5744c950c64df3a3a
child 293244 66c438e0cb1f0c3aefe1bedd1862eb206b766920
push id30178
push usercbook@mozilla.com
push dateFri, 15 Apr 2016 09:42:06 +0000
treeherdermozilla-central@afd82f887093 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersshu
bugs1264085
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1264085 - Use not-non-release-only warning in js/src/tests/shell/warning.js. r=shu
js/src/tests/shell/warning.js
--- a/js/src/tests/shell/warning.js
+++ b/js/src/tests/shell/warning.js
@@ -4,24 +4,24 @@ var BUGNUMBER = 1170716;
 var summary = 'Add js shell functions to get last warning';
 
 print(BUGNUMBER + ": " + summary);
 
 // Warning with JSEXN_NONE.
 
 enableLastWarning();
 
-eval(`(function() "This is an expression closure.")`);
+eval(`{ function f() {} function f() {} }`);
 
 var warning = getLastWarning();
 assertEq(warning !== null, true);
 assertEq(warning.name, "None");
-assertEq(warning.message.includes("expression closures are deprecated"), true);
+assertEq(warning.message.includes("deprecated"), true);
 assertEq(warning.lineNumber, 1);
-assertEq(warning.columnNumber, 12);
+assertEq(warning.columnNumber, 27);
 
 // Clear last warning.
 
 clearLastWarning();
 warning = getLastWarning();
 assertEq(warning, null);
 
 // Warning with JSEXN_SYNTAXERR.