JavaScript Test - update test for bug 380237

This commit is contained in:
bclary%bclary.com 2007-05-31 19:46:36 +00:00
Родитель f61662abdd
Коммит 9e8861355f
1 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -88,13 +88,18 @@ function test()
actual = f + '';
compareSource(expect, actual, summary);
f = (function() { (1 for (w in []) if (x)) });
expect = 'function() { (1 for (w in []) if (x)); }';
actual = f + '';
compareSource(expect, actual, summary);
f = (function() { (1 for (w in []) if (1)) });
expect = 'function() { (1 for (w in []) if (1)); }';
expect = 'function() { (1 for (w in []) ); }';
actual = f + '';
compareSource(expect, actual, summary);
f = (function() { (x for ([{}, {}] in [])); });
expect = 'function() { (x for ([{}, {}] in [])); }';
expect = 'function() { (x for ([[], []] in [])); }';
actual = f + '';
compareSource(expect, actual, summary);
@ -132,7 +137,7 @@ function test()
reportCompare(expect, actual, summary + ': Do not Assert: *pc == JSOP_CALL');
f = (function() { ([yield] for (x in [])); });
expect = 'function() { ([(yield)] for (x in [])); }';
expect = 'function() { ([yield] for (x in [])); }';
actual = f + '';
compareSource(expect, actual, summary);