зеркало из https://github.com/mozilla/pjs.git
JavaScript Test - update regression test for bug 345736, by Jesse Ruderman
This commit is contained in:
Родитель
c54d793957
Коммит
1e8efaa48a
|
@ -20,6 +20,7 @@
|
|||
* the Initial Developer. All Rights Reserved.
|
||||
*
|
||||
* Contributor(s): David Finch
|
||||
* Jesse Ruderman
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
|
@ -65,5 +66,13 @@ function test()
|
|||
actual = arr.toString();
|
||||
reportCompare(expect, actual, summary);
|
||||
|
||||
arr=[x+x for ([,x] in ["a","b","c"])];
|
||||
expect = 'aa,bb,cc';
|
||||
actual = arr.toString();
|
||||
|
||||
arr=[x+y for ([x,y] in ["a","b","c"])];
|
||||
expect = '0a,1b,2c';
|
||||
actual = arr.toString();
|
||||
|
||||
exitFunc ('test');
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче