diff --git a/tests/tests/swfs/avm2/vector_concat/Test.as b/tests/tests/swfs/avm2/vector_concat/Test.as index 73fdcc7d8..5583801ad 100644 --- a/tests/tests/swfs/avm2/vector_concat/Test.as +++ b/tests/tests/swfs/avm2/vector_concat/Test.as @@ -1,5 +1,10 @@ -package { - public class Test { +// compiled with mxmlc + +package { + import flash.display.MovieClip; + public class Test extends MovieClip { + public function Test(){ + } } } @@ -57,6 +62,12 @@ var c_class = a_class.concat(b_class); trace("/// (contents of c_class...)"); trace_vector(c_class); +trace("var c_class_flipped = b_class.concat(new[new Subclass()]);"); +var c_class_flipped = b_class.concat(new[new Subclass()]); + +trace("/// (contents of c_class_flipped...)"); +trace_vector(c_class_flipped); + interface Interface { } diff --git a/tests/tests/swfs/avm2/vector_concat/output.txt b/tests/tests/swfs/avm2/vector_concat/output.txt index a82209556..6602d6252 100644 --- a/tests/tests/swfs/avm2/vector_concat/output.txt +++ b/tests/tests/swfs/avm2/vector_concat/output.txt @@ -21,6 +21,11 @@ false [object Superclass] [object Subclass] [object Subclass] +var c_class_flipped = b_class.concat(new[new Subclass()]); +/// (contents of c_class_flipped...) +///length: 2 +[object Subclass] +[object Subclass] /// var a_iface: Vector. = new []; /// a_iface.length = 1; /// a_iface[0] = new Implementer(); diff --git a/tests/tests/swfs/avm2/vector_concat/test.fla b/tests/tests/swfs/avm2/vector_concat/test.fla deleted file mode 100644 index 658d800a1..000000000 Binary files a/tests/tests/swfs/avm2/vector_concat/test.fla and /dev/null differ diff --git a/tests/tests/swfs/avm2/vector_concat/test.swf b/tests/tests/swfs/avm2/vector_concat/test.swf index 68753fd99..f556b6133 100644 Binary files a/tests/tests/swfs/avm2/vector_concat/test.swf and b/tests/tests/swfs/avm2/vector_concat/test.swf differ