diff options
author | Tooru Fujisawa <arai_a@mac.com> | 2019-02-03 08:21:19 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-02-03 08:21:19 +0100 |
commit | ae4af7b7e598b4fec037254a1fd03ac3495695a4 (patch) | |
tree | 98d5420a48042e47b0d9971d30774b8c82d11486 /js/src/jit-test/tests/latin1 | |
parent | 90f6b2704658a554a12ed3c37545cb6474fbcf51 (diff) | |
download | UXP-ae4af7b7e598b4fec037254a1fd03ac3495695a4.tar UXP-ae4af7b7e598b4fec037254a1fd03ac3495695a4.tar.gz UXP-ae4af7b7e598b4fec037254a1fd03ac3495695a4.tar.lz UXP-ae4af7b7e598b4fec037254a1fd03ac3495695a4.tar.xz UXP-ae4af7b7e598b4fec037254a1fd03ac3495695a4.zip |
Stage 1-4: Update tests
Diffstat (limited to 'js/src/jit-test/tests/latin1')
-rw-r--r-- | js/src/jit-test/tests/latin1/assorted.js | 6 | ||||
-rw-r--r-- | js/src/jit-test/tests/latin1/function.js | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/js/src/jit-test/tests/latin1/assorted.js b/js/src/jit-test/tests/latin1/assorted.js index cef79cb96..1389a1ada 100644 --- a/js/src/jit-test/tests/latin1/assorted.js +++ b/js/src/jit-test/tests/latin1/assorted.js @@ -12,18 +12,18 @@ var o = {}; Object.defineProperty(o, "prop", {get: function() { return 1; }, set: function() { return 2; }, enumerable: true, configurable: true}); -assertEq(o.toSource(), "({get prop () { return 1; }, set prop () { return 2; }})"); +assertEq(o.toSource(), "({get prop() { return 1; }, set prop() { return 2; }})"); // obj.toSource TwoByte Object.defineProperty(o, "prop", {get: function() { return "\u1200"; }, set: function() { return "\u1200"; }, enumerable: true}); -assertEq(o.toSource(), '({get prop () { return "\\u1200"; }, set prop () { return "\\u1200"; }})'); +assertEq(o.toSource(), '({get prop() { return "\\u1200"; }, set prop() { return "\\u1200"; }})'); var ff = function() { return 10; }; ff.toSource = function() { return "((11))"; } Object.defineProperty(o, "prop", {get: ff, set: ff, enumerable: true}); -assertEq(o.toSource(), "({prop:((11)), prop:((11))})"); +assertEq(o.toSource(), "({get prop(11), set prop(11)})"); // XDR load(libdir + 'bytecode-cache.js'); diff --git a/js/src/jit-test/tests/latin1/function.js b/js/src/jit-test/tests/latin1/function.js index a0dedf251..07a76733a 100644 --- a/js/src/jit-test/tests/latin1/function.js +++ b/js/src/jit-test/tests/latin1/function.js @@ -6,11 +6,11 @@ function test() { var f = Function(arg1TwoByte, arg2Latin1, bodyLatin1); assertEq(f(10, 20), 60); - assertEq(f.toSource().includes("arg1\u1200, arg2"), true); + assertEq(f.toSource().includes("arg1\u1200,arg2"), true); var bodyTwoByte = "return arg1\u1200 + arg2;"; f = Function(arg1TwoByte, arg2Latin1, bodyTwoByte); assertEq(f(30, 40), 70); - assertEq(f.toSource().includes("arg1\u1200, arg2"), true); + assertEq(f.toSource().includes("arg1\u1200,arg2"), true); } test(); |