Fixed AS1/2 - spacing in with statement

This commit is contained in:
Jindra Petřík
2021-11-28 22:45:28 +01:00
parent 052049f695
commit 6ef57d66f5
5 changed files with 30 additions and 6 deletions

View File

@@ -2368,4 +2368,21 @@ public class ActionScript2Test extends ActionScript2TestBase {
+ "trace(\"E\");\r\n"
);
}
@Test
public void frame84_withTest() {
compareSrc(84, "trace(\"withTest\");\r\n"
+ "trace(\"before\");\r\n"
+ "with(_root.something)\r\n"
+ "{\r\n"
+ "somesub = 5;\r\n"
+ "with(subvar)\r\n"
+ "{\r\n"
+ "somesub2 = 4;\r\n"
+ "}\r\n"
+ "trace(\"after1\");\r\n"
+ "}\r\n"
+ "trace(\"after\");\r\n"
);
}
}