tests fix 2

This commit is contained in:
Jindra Petřík
2021-03-04 19:41:02 +01:00
parent ae9f8db5f2
commit bcde71e7ec

View File

@@ -518,7 +518,7 @@ public class ActionScript2Test extends ActionScript2TestBase {
public void frame47_ternarTest() {
compareSrc(47, "trace(\"ternarTest\");\r\n"
+ "var a = 5;\r\n"
+ "var b = a != 4?3:2;\r\n"
+ "var b = a != 4 ? 3 : 2;\r\n"
+ "trace(b);\r\n"
);
}
@@ -1980,7 +1980,7 @@ public class ActionScript2Test extends ActionScript2TestBase {
+ "{\r\n"
+ "trace(_loc1_);\r\n"
+ "}\r\n"
+ "_loc3_.r1 = _loc2_ + 1 + \". \" + (!_loc4_?_loc3_.r2 = v1[_loc2_][0]:\"unk\");\r\n"
+ "_loc3_.r1 = _loc2_ + 1 + \". \" + (!_loc4_ ? _loc3_.r2 = v1[_loc2_][0] : \"unk\");\r\n"
+ "}\r\n"
+ "trace(\"chainedAfterForInTest\");\r\n"
+ "var v1 = {};\r\n"