tests: Here's a very basic test for int access

This commit is contained in:
David Wendt 2021-03-08 20:44:35 -05:00 committed by kmeisthax
parent 686872812d
commit 9a3c4e6adb
5 changed files with 14 additions and 0 deletions

View File

@ -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.

View File

@ -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]);

View File

@ -0,0 +1,3 @@
a
b
c

Binary file not shown.

Binary file not shown.