tests: Here's a very basic test for int access
This commit is contained in:
parent
686872812d
commit
9a3c4e6adb
|
@ -630,6 +630,7 @@ swf_tests! {
|
|||
(as3_font_embedded, "avm2/font_embedded", 1),
|
||||
(as3_font_hasglyphs, "avm2/font_hasglyphs", 1),
|
||||
(as3_simplebutton_symbolclass, "avm2/simplebutton_symbolclass", 3),
|
||||
(as3_vector_int_access, "avm2/vector_int_access", 1),
|
||||
}
|
||||
|
||||
// TODO: These tests have some inaccuracies currently, so we use approx_eq to test that numeric values are close enough.
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
package {
|
||||
public class Test {
|
||||
}
|
||||
}
|
||||
|
||||
var a:Vector.<int> = new <int>[1,2,3,];
|
||||
|
||||
trace(a[0]);
|
||||
trace(a[1]);
|
||||
trace(a[2]);
|
|
@ -0,0 +1,3 @@
|
|||
a
|
||||
b
|
||||
c
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue