AS2 parsing tests fix, +new test

This commit is contained in:
Honfika
2014-03-02 10:46:14 +01:00
parent a10ebc8682
commit 8d89fcbc72
2 changed files with 18 additions and 3 deletions

View File

@@ -81,4 +81,19 @@ public class ActionScript2ParserTest extends ActionStript2TestBase {
" }\n" +
"}");
}
@Test
private void testAS2Parse5() {
parseAS2(
"if(!test.T1)\n" +
"{\n" +
" test.T1 = function()\n" +
" {\n" +
" super();\n" +
" }.Initialize = function(obj)\n" +
" {\n" +
" var x = 1;\n" +
" };\n" +
"}");
}
}