OLD | NEW |
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 /* ***** BEGIN LICENSE BLOCK ***** | 2 /* ***** BEGIN LICENSE BLOCK ***** |
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
4 * | 4 * |
5 * The contents of this file are subject to the Mozilla Public License Version | 5 * The contents of this file are subject to the Mozilla Public License Version |
6 * 1.1 (the "License"); you may not use this file except in compliance with | 6 * 1.1 (the "License"); you may not use this file except in compliance with |
7 * the License. You may obtain a copy of the License at | 7 * the License. You may obtain a copy of the License at |
8 * http://www.mozilla.org/MPL/ | 8 * http://www.mozilla.org/MPL/ |
9 * | 9 * |
10 * Software distributed under the License is distributed on an "AS IS" basis, | 10 * Software distributed under the License is distributed on an "AS IS" basis, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 { | 51 { |
52 enterFunc ('test'); | 52 enterFunc ('test'); |
53 printBugNumber(BUGNUMBER); | 53 printBugNumber(BUGNUMBER); |
54 printStatus (summary); | 54 printStatus (summary); |
55 | 55 |
56 var f; | 56 var f; |
57 | 57 |
58 f = function() { g(h) = (delete let (y) 3); } | 58 f = function() { g(h) = (delete let (y) 3); } |
59 actual = f + ''; | 59 actual = f + ''; |
60 expect = 'function () {\n g(h) = ((let (y) 3), true);\n}'; | 60 expect = 'function () {\n g(h) = ((let (y) 3), true);\n}'; |
61 compareSource(expect, actual, summary); | 61 compareSource(expect, actual, summary + ': 1'); |
62 | 62 |
63 f = function () { g(h) = ((let (y) 3), true);} | 63 f = function () { g(h) = ((let (y) 3), true);} |
64 actual = f + ''; | 64 actual = f + ''; |
65 expect = 'function () {\n g(h) = ((let (y) 3), true);\n}'; | 65 expect = 'function () {\n g(h) = ((let (y) 3), true);\n}'; |
66 compareSource(expect, actual, summary); | 66 compareSource(expect, actual, summary + ': 2'); |
67 | 67 |
68 exitFunc ('test'); | 68 exitFunc ('test'); |
69 } | 69 } |
OLD | NEW |