OLD | NEW |
1 /* -*- Mode: java; tab-width:8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ | 1 /* -*- Mode: java; tab-width:8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
2 | 2 |
3 /* ***** BEGIN LICENSE BLOCK ***** | 3 /* ***** BEGIN LICENSE BLOCK ***** |
4 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 4 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
5 * | 5 * |
6 * The contents of this file are subject to the Mozilla Public License Version | 6 * The contents of this file are subject to the Mozilla Public License Version |
7 * 1.1 (the "License"); you may not use this file except in compliance with | 7 * 1.1 (the "License"); you may not use this file except in compliance with |
8 * the License. You may obtain a copy of the License at | 8 * the License. You may obtain a copy of the License at |
9 * http://www.mozilla.org/MPL/ | 9 * http://www.mozilla.org/MPL/ |
10 * | 10 * |
(...skipping 20 matching lines...) Expand all Loading... |
31 * use your version of this file under the terms of the MPL, indicate your | 31 * use your version of this file under the terms of the MPL, indicate your |
32 * decision by deleting the provisions above and replace them with the notice | 32 * decision by deleting the provisions above and replace them with the notice |
33 * and other provisions required by the GPL or the LGPL. If you do not delete | 33 * and other provisions required by the GPL or the LGPL. If you do not delete |
34 * the provisions above, a recipient may use your version of this file under | 34 * the provisions above, a recipient may use your version of this file under |
35 * the terms of any one of the MPL, the GPL or the LGPL. | 35 * the terms of any one of the MPL, the GPL or the LGPL. |
36 * | 36 * |
37 * ***** END LICENSE BLOCK ***** */ | 37 * ***** END LICENSE BLOCK ***** */ |
38 | 38 |
39 gTestfile = 'regress-350531.js'; | 39 gTestfile = 'regress-350531.js'; |
40 | 40 |
41 var BUGNUMBER = 350351; | 41 var BUGNUMBER = 350531; |
42 var summary = "decompilation of function (){ return (@['a'])=='b'}"; | 42 var summary = "decompilation of function (){ return (@['a'])=='b'}"; |
43 var actual = ''; | 43 var actual = ''; |
44 var expect = ''; | 44 var expect = ''; |
45 | 45 |
46 printBugNumber(BUGNUMBER); | 46 printBugNumber(BUGNUMBER); |
47 START(summary); | 47 START(summary); |
48 | 48 |
49 var f; | 49 var f; |
50 | 50 |
51 f = function (){ return (@['a'])=='b'} | 51 f = function (){ return (@['a'])=='b'} |
52 expect = 'function () {\n return @["a"] == "b";\n}'; | 52 expect = 'function () {\n return @["a"] == "b";\n}'; |
53 actual = f + ''; | 53 actual = f + ''; |
54 compareSource(expect, actual, inSection(1) + summary); | 54 compareSource(expect, actual, inSection(1) + summary); |
55 | 55 |
56 f = function (){ return (@['a']).toXMLString() } | 56 f = function (){ return (@['a']).toXMLString() } |
57 expect = 'function () {\n return @["a"].toXMLString();\n}'; | 57 expect = 'function () {\n return @["a"].toXMLString();\n}'; |
58 actual = f + ''; | 58 actual = f + ''; |
59 compareSource(expect, actual, inSection(2) + summary); | 59 compareSource(expect, actual, inSection(2) + summary); |
60 | 60 |
61 END(); | 61 END(); |
OLD | NEW |