avm2: Extend array_concat test with new cases
This commit is contained in:
parent
42347d7234
commit
19b4bfe5d3
|
@ -1,6 +1,11 @@
|
|||
package {
|
||||
public class Test {
|
||||
}
|
||||
// compiled with mxmlc
|
||||
|
||||
package {
|
||||
import flash.display.MovieClip;
|
||||
public class Test extends MovieClip {
|
||||
public function Test() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function assert_array(a: Array) {
|
||||
|
@ -33,4 +38,9 @@ assert_array(e);
|
|||
trace("//a.concat(b, b);");
|
||||
var f = a.concat(b, b);
|
||||
|
||||
assert_array(f);
|
||||
assert_array(f);
|
||||
|
||||
trace("//a.concat(null, undefined);");
|
||||
var g = a.concat(null, undefined);
|
||||
|
||||
assert_array(g);
|
||||
|
|
|
@ -33,3 +33,9 @@ f
|
|||
d
|
||||
e
|
||||
f
|
||||
//a.concat(null, undefined);
|
||||
a
|
||||
b
|
||||
c
|
||||
null
|
||||
undefined
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue