diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/BeginBitmapFill/output.expected.png b/tests/tests/swfs/from_gnash/misc-ming.all/BeginBitmapFill/output.expected.png new file mode 100644 index 000000000000..f96aae0b1b90 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/BeginBitmapFill/output.expected.png differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/BeginBitmapFill/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/BeginBitmapFill/output.txt new file mode 100644 index 000000000000..03d1239828a3 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/BeginBitmapFill/output.txt @@ -0,0 +1 @@ +PASSED: _root.mc9._width == 150 [BeginBitmapFill.c:222] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/BeginBitmapFill/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/BeginBitmapFill/test.swf new file mode 100644 index 000000000000..2f18b17289f6 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/BeginBitmapFill/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/BeginBitmapFill/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/BeginBitmapFill/test.toml new file mode 100644 index 000000000000..97481f0c8c6f --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/BeginBitmapFill/test.toml @@ -0,0 +1,9 @@ +num_frames = 30 +known_failure = true + +[image_comparisons.output] +tolerance = 50 +max_outliers = 100 + +[player_options] +with_renderer = { optional = true, sample_count = 1 } diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp11/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp11/output.txt new file mode 100644 index 000000000000..45d8d022bba9 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp11/output.txt @@ -0,0 +1,56 @@ +PASSED: b.width == 100 [BitmapDataDraw.c:113] +PASSED: b.height == 100 [BitmapDataDraw.c:114] +PASSED: b.getPixel(1, 1) == 0xffffff [BitmapDataDraw.c:122] +PASSED: b.getPixel(8, 8) == 0xffffff [BitmapDataDraw.c:123] +PASSED: b.getPixel(12, 12) == 0x00ffff [BitmapDataDraw.c:125] +PASSED: b.getPixel(12, 98) == 0x00ffff [BitmapDataDraw.c:126] +PASSED: b.getPixel(98, 12) == 0x00ffff [BitmapDataDraw.c:127] +PASSED: b.getPixel(82, 82) == 0xff00ff [BitmapDataDraw.c:129] +PASSED: b.width == 100 [BitmapDataDraw.c:141] +PASSED: b.height == 100 [BitmapDataDraw.c:142] +PASSED: b.getPixel(1, 1) == 0xffffff [BitmapDataDraw.c:146] +PASSED: b.getPixel(8, 8) == 0xffffff [BitmapDataDraw.c:147] +PASSED: b.getPixel(12, 12) == 0xffffff [BitmapDataDraw.c:150] +PASSED: b.getPixel(52, 52) == 0xffffff [BitmapDataDraw.c:151] +PASSED: b.getPixel(56, 56) == 0x00ffff [BitmapDataDraw.c:152] +PASSED: b.width == 400 [BitmapDataDraw.c:171] +PASSED: b.height == 400 [BitmapDataDraw.c:172] +PASSED: b.getPixel(1, 1) == 0xffffff [BitmapDataDraw.c:176] +PASSED: b.getPixel(8, 8) == 0xffffff [BitmapDataDraw.c:177] +PASSED: b.getPixel(12, 12) == 0x00ffff [BitmapDataDraw.c:179] +PASSED: b.getPixel(12, 98) == 0x00ffff [BitmapDataDraw.c:180] +PASSED: b.getPixel(98, 12) == 0x00ffff [BitmapDataDraw.c:181] +PASSED: b.getPixel(12, 102) == 0xffffff [BitmapDataDraw.c:182] +PASSED: b.getPixel(102, 12) == 0xffffff [BitmapDataDraw.c:183] +PASSED: b.getPixel(82, 82) == 0xff00ff [BitmapDataDraw.c:185] +PASSED: b.getPixel(128, 128) == 0xff00ff [BitmapDataDraw.c:186] +PASSED: b.getPixel(132, 132) == 0xffffff [BitmapDataDraw.c:187] +PASSED: b.getPixel(78, 78) == 0x00ffff [BitmapDataDraw.c:188] +PASSED: b.getPixel(1, 1) == 0xffffff [BitmapDataDraw.c:215] +PASSED: b.getPixel(8, 8) == 0xffffff [BitmapDataDraw.c:216] +PASSED: b.getPixel(25, 28) == 0x00ffff [BitmapDataDraw.c:218] +PASSED: b.getPixel(20, 30) == 0xffffff [BitmapDataDraw.c:219] +PASSED: b.getPixel(25, 25) == 0xffffff [BitmapDataDraw.c:220] +PASSED: b.getPixel(18, 68) == 0x00ffff [BitmapDataDraw.c:222] +PASSED: b.getPixel(64, 36) == 0x00ffff [BitmapDataDraw.c:224] +PASSED: b.getPixel(64, 32) == 0xffffff [BitmapDataDraw.c:225] +PASSED: b.getPixel(54, 71) == 0xff00ff [BitmapDataDraw.c:227] +PASSED: b.getPixel(54, 67) == 0x00ffff [BitmapDataDraw.c:228] +PASSED: b.getPixel(50, 71) == 0x00ffff [BitmapDataDraw.c:229] +PASSED: b.getPixel(74, 94) == 0xffffff [BitmapDataDraw.c:231] +PASSED: b.getPixel(70, 94) == 0xff00ff [BitmapDataDraw.c:232] +PASSED: b.getPixel(1, 1) == 0xffffff [BitmapDataDraw.c:275] +PASSED: b.getPixel(8, 8) == 0xffffff [BitmapDataDraw.c:276] +PASSED: b.getPixel(27, 30) == 0x00ff00 [BitmapDataDraw.c:280] +PASSED: b.getPixel(18, 68) == 0x00ffff [BitmapDataDraw.c:282] +FAILED: expected: 17408 obtained: 148481 [BitmapDataDraw.c:284] +PASSED: b.getPixel(62, 71) == 0x00ff00 [BitmapDataDraw.c:286] +PASSED: b.getPixel(50, 71) == 0x00ffff [BitmapDataDraw.c:287] +PASSED: b.getPixel(74, 94) == 0xffffff [BitmapDataDraw.c:289] +PASSED: b.getPixel(70, 94) == 0xff00ff [BitmapDataDraw.c:290] +(redMultiplier=0.5, greenMultiplier=0, blueMultiplier=0, alphaMultiplier=1, redOffset=-255, greenOffset=255, blueOffset=0, alphaOffset=0) +PASSED: b.getPixel(1, 1) == 0xffffff [BitmapDataDraw.c:306] +PASSED: b.getPixel(8, 8) == 0xffffff [BitmapDataDraw.c:307] +PASSED: b.getPixel(12, 12) == 0xffffff [BitmapDataDraw.c:309] +PASSED: b.getPixel(52, 52) == 0xffffff [BitmapDataDraw.c:310] +PASSED: b.getPixel(56, 56) == 0x00ff00 [BitmapDataDraw.c:311] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp11/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp11/test.swf new file mode 100644 index 000000000000..51261b5f44a7 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp11/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp11/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp11/test.toml new file mode 100644 index 000000000000..979d7dce32a1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp11/test.toml @@ -0,0 +1,5 @@ +num_frames = 30 +known_failure = true + +[player_options] +version = 11 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp15/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp15/output.txt new file mode 100644 index 000000000000..4224d1ed9e4d --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp15/output.txt @@ -0,0 +1,56 @@ +PASSED: b.width == 100 [BitmapDataDraw.c:113] +PASSED: b.height == 100 [BitmapDataDraw.c:114] +PASSED: b.getPixel(1, 1) == 0xffffff [BitmapDataDraw.c:122] +PASSED: b.getPixel(8, 8) == 0xffffff [BitmapDataDraw.c:123] +PASSED: b.getPixel(12, 12) == 0x00ffff [BitmapDataDraw.c:125] +PASSED: b.getPixel(12, 98) == 0x00ffff [BitmapDataDraw.c:126] +PASSED: b.getPixel(98, 12) == 0x00ffff [BitmapDataDraw.c:127] +PASSED: b.getPixel(82, 82) == 0xff00ff [BitmapDataDraw.c:129] +PASSED: b.width == 100 [BitmapDataDraw.c:141] +PASSED: b.height == 100 [BitmapDataDraw.c:142] +PASSED: b.getPixel(1, 1) == 0xffffff [BitmapDataDraw.c:146] +PASSED: b.getPixel(8, 8) == 0xffffff [BitmapDataDraw.c:147] +PASSED: b.getPixel(12, 12) == 0xffffff [BitmapDataDraw.c:150] +PASSED: b.getPixel(52, 52) == 0xffffff [BitmapDataDraw.c:151] +PASSED: b.getPixel(56, 56) == 0x00ffff [BitmapDataDraw.c:152] +PASSED: b.width == 400 [BitmapDataDraw.c:171] +PASSED: b.height == 400 [BitmapDataDraw.c:172] +PASSED: b.getPixel(1, 1) == 0xffffff [BitmapDataDraw.c:176] +PASSED: b.getPixel(8, 8) == 0xffffff [BitmapDataDraw.c:177] +PASSED: b.getPixel(12, 12) == 0x00ffff [BitmapDataDraw.c:179] +PASSED: b.getPixel(12, 98) == 0x00ffff [BitmapDataDraw.c:180] +PASSED: b.getPixel(98, 12) == 0x00ffff [BitmapDataDraw.c:181] +PASSED: b.getPixel(12, 102) == 0xffffff [BitmapDataDraw.c:182] +PASSED: b.getPixel(102, 12) == 0xffffff [BitmapDataDraw.c:183] +PASSED: b.getPixel(82, 82) == 0xff00ff [BitmapDataDraw.c:185] +PASSED: b.getPixel(128, 128) == 0xff00ff [BitmapDataDraw.c:186] +PASSED: b.getPixel(132, 132) == 0xffffff [BitmapDataDraw.c:187] +PASSED: b.getPixel(78, 78) == 0x00ffff [BitmapDataDraw.c:188] +PASSED: b.getPixel(1, 1) == 0xffffff [BitmapDataDraw.c:215] +PASSED: b.getPixel(8, 8) == 0xffffff [BitmapDataDraw.c:216] +PASSED: b.getPixel(25, 28) == 0x00ffff [BitmapDataDraw.c:218] +PASSED: b.getPixel(20, 30) == 0xffffff [BitmapDataDraw.c:219] +PASSED: b.getPixel(25, 25) == 0xffffff [BitmapDataDraw.c:220] +PASSED: b.getPixel(18, 68) == 0x00ffff [BitmapDataDraw.c:222] +PASSED: b.getPixel(64, 36) == 0x00ffff [BitmapDataDraw.c:224] +PASSED: b.getPixel(64, 32) == 0xffffff [BitmapDataDraw.c:225] +PASSED: b.getPixel(54, 71) == 0xff00ff [BitmapDataDraw.c:227] +PASSED: b.getPixel(54, 67) == 0x00ffff [BitmapDataDraw.c:228] +PASSED: b.getPixel(50, 71) == 0x00ffff [BitmapDataDraw.c:229] +PASSED: b.getPixel(74, 94) == 0xffffff [BitmapDataDraw.c:231] +PASSED: b.getPixel(70, 94) == 0xff00ff [BitmapDataDraw.c:232] +PASSED: b.getPixel(1, 1) == 0xffffff [BitmapDataDraw.c:275] +PASSED: b.getPixel(8, 8) == 0xffffff [BitmapDataDraw.c:276] +FAILED: expected: 0x00ff00 obtained: 65281 [BitmapDataDraw.c:280] +PASSED: b.getPixel(18, 68) == 0x00ffff [BitmapDataDraw.c:282] +FAILED: expected: 17408 obtained: 82944 [BitmapDataDraw.c:284] +FAILED: expected: 0x00ff00 obtained: 65281 [BitmapDataDraw.c:286] +PASSED: b.getPixel(50, 71) == 0x00ffff [BitmapDataDraw.c:287] +PASSED: b.getPixel(74, 94) == 0xffffff [BitmapDataDraw.c:289] +PASSED: b.getPixel(70, 94) == 0xff00ff [BitmapDataDraw.c:290] +(redMultiplier=0.5, greenMultiplier=0, blueMultiplier=0, alphaMultiplier=1, redOffset=-255, greenOffset=255, blueOffset=0, alphaOffset=0) +PASSED: b.getPixel(1, 1) == 0xffffff [BitmapDataDraw.c:306] +PASSED: b.getPixel(8, 8) == 0xffffff [BitmapDataDraw.c:307] +PASSED: b.getPixel(12, 12) == 0xffffff [BitmapDataDraw.c:309] +PASSED: b.getPixel(52, 52) == 0xffffff [BitmapDataDraw.c:310] +PASSED: b.getPixel(56, 56) == 0x00ff00 [BitmapDataDraw.c:311] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp15/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp15/test.swf new file mode 100644 index 000000000000..51261b5f44a7 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp15/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp15/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp15/test.toml new file mode 100644 index 000000000000..ac314262068c --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp15/test.toml @@ -0,0 +1,5 @@ +num_frames = 30 +known_failure = true + +[player_options] +version = 15 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp9/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp9/output.txt new file mode 100644 index 000000000000..4acd10cd6cbd --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp9/output.txt @@ -0,0 +1,56 @@ +PASSED: b.width == 100 [BitmapDataDraw.c:113] +PASSED: b.height == 100 [BitmapDataDraw.c:114] +PASSED: b.getPixel(1, 1) == 0xffffff [BitmapDataDraw.c:122] +PASSED: b.getPixel(8, 8) == 0xffffff [BitmapDataDraw.c:123] +PASSED: b.getPixel(12, 12) == 0x00ffff [BitmapDataDraw.c:125] +PASSED: b.getPixel(12, 98) == 0x00ffff [BitmapDataDraw.c:126] +PASSED: b.getPixel(98, 12) == 0x00ffff [BitmapDataDraw.c:127] +PASSED: b.getPixel(82, 82) == 0xff00ff [BitmapDataDraw.c:129] +PASSED: b.width == 100 [BitmapDataDraw.c:141] +PASSED: b.height == 100 [BitmapDataDraw.c:142] +PASSED: b.getPixel(1, 1) == 0xffffff [BitmapDataDraw.c:146] +PASSED: b.getPixel(8, 8) == 0xffffff [BitmapDataDraw.c:147] +PASSED: b.getPixel(12, 12) == 0xffffff [BitmapDataDraw.c:150] +PASSED: b.getPixel(52, 52) == 0xffffff [BitmapDataDraw.c:151] +PASSED: b.getPixel(56, 56) == 0x00ffff [BitmapDataDraw.c:152] +PASSED: b.width == 400 [BitmapDataDraw.c:171] +PASSED: b.height == 400 [BitmapDataDraw.c:172] +PASSED: b.getPixel(1, 1) == 0xffffff [BitmapDataDraw.c:176] +PASSED: b.getPixel(8, 8) == 0xffffff [BitmapDataDraw.c:177] +PASSED: b.getPixel(12, 12) == 0x00ffff [BitmapDataDraw.c:179] +PASSED: b.getPixel(12, 98) == 0x00ffff [BitmapDataDraw.c:180] +PASSED: b.getPixel(98, 12) == 0x00ffff [BitmapDataDraw.c:181] +PASSED: b.getPixel(12, 102) == 0xffffff [BitmapDataDraw.c:182] +PASSED: b.getPixel(102, 12) == 0xffffff [BitmapDataDraw.c:183] +PASSED: b.getPixel(82, 82) == 0xff00ff [BitmapDataDraw.c:185] +PASSED: b.getPixel(128, 128) == 0xff00ff [BitmapDataDraw.c:186] +PASSED: b.getPixel(132, 132) == 0xffffff [BitmapDataDraw.c:187] +PASSED: b.getPixel(78, 78) == 0x00ffff [BitmapDataDraw.c:188] +PASSED: b.getPixel(1, 1) == 0xffffff [BitmapDataDraw.c:215] +PASSED: b.getPixel(8, 8) == 0xffffff [BitmapDataDraw.c:216] +PASSED: b.getPixel(25, 28) == 0x00ffff [BitmapDataDraw.c:218] +PASSED: b.getPixel(20, 30) == 0xffffff [BitmapDataDraw.c:219] +PASSED: b.getPixel(25, 25) == 0xffffff [BitmapDataDraw.c:220] +PASSED: b.getPixel(18, 68) == 0x00ffff [BitmapDataDraw.c:222] +PASSED: b.getPixel(64, 36) == 0x00ffff [BitmapDataDraw.c:224] +PASSED: b.getPixel(64, 32) == 0xffffff [BitmapDataDraw.c:225] +PASSED: b.getPixel(54, 71) == 0xff00ff [BitmapDataDraw.c:227] +PASSED: b.getPixel(54, 67) == 0x00ffff [BitmapDataDraw.c:228] +PASSED: b.getPixel(50, 71) == 0x00ffff [BitmapDataDraw.c:229] +PASSED: b.getPixel(74, 94) == 0xffffff [BitmapDataDraw.c:231] +PASSED: b.getPixel(70, 94) == 0xff00ff [BitmapDataDraw.c:232] +PASSED: b.getPixel(1, 1) == 0xffffff [BitmapDataDraw.c:275] +PASSED: b.getPixel(8, 8) == 0xffffff [BitmapDataDraw.c:276] +PASSED: b.getPixel(27, 30) == 0x00ff00 [BitmapDataDraw.c:280] +PASSED: b.getPixel(18, 68) == 0x00ffff [BitmapDataDraw.c:282] +PASSED: b.getPixel(65, 36) == 17408 [BitmapDataDraw.c:284] +PASSED: b.getPixel(62, 71) == 0x00ff00 [BitmapDataDraw.c:286] +PASSED: b.getPixel(50, 71) == 0x00ffff [BitmapDataDraw.c:287] +PASSED: b.getPixel(74, 94) == 0xffffff [BitmapDataDraw.c:289] +PASSED: b.getPixel(70, 94) == 0xff00ff [BitmapDataDraw.c:290] +(redMultiplier=0.5, greenMultiplier=0, blueMultiplier=0, alphaMultiplier=1, redOffset=-255, greenOffset=255, blueOffset=0, alphaOffset=0) +PASSED: b.getPixel(1, 1) == 0xffffff [BitmapDataDraw.c:306] +PASSED: b.getPixel(8, 8) == 0xffffff [BitmapDataDraw.c:307] +PASSED: b.getPixel(12, 12) == 0xffffff [BitmapDataDraw.c:309] +PASSED: b.getPixel(52, 52) == 0xffffff [BitmapDataDraw.c:310] +PASSED: b.getPixel(56, 56) == 0x00ff00 [BitmapDataDraw.c:311] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp9/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp9/test.swf new file mode 100644 index 000000000000..51261b5f44a7 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp9/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp9/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp9/test.toml new file mode 100644 index 000000000000..3565afec1bad --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/BitmapDataDraw/fp9/test.toml @@ -0,0 +1,5 @@ +num_frames = 30 +known_failure = true + +[player_options] +version = 9 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/ButtonEventsTest/input.json b/tests/tests/swfs/from_gnash/misc-ming.all/ButtonEventsTest/input.json new file mode 100644 index 000000000000..ae6fb1c11092 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/ButtonEventsTest/input.json @@ -0,0 +1,262 @@ +[ + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 60, + 60 + ] + }, + { + "type": "MouseMove", + "pos": [ + 0, + 0 + ] + }, + { + "type": "MouseMove", + "pos": [ + 60, + 60 + ] + }, + { + "type": "MouseDown", + "pos": [ + 60, + 60 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 60, + 60 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 39, + 60 + ] + }, + { + "type": "MouseDown", + "pos": [ + 39, + 60 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 39, + 60 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 60, + 60 + ] + }, + { + "type": "MouseDown", + "pos": [ + 60, + 60 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 39, + 60 + ] + }, + { + "type": "MouseUp", + "pos": [ + 39, + 60 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 60, + 60 + ] + }, + { + "type": "MouseDown", + "pos": [ + 60, + 60 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 60, + 60 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 39, + 60 + ] + }, + { + "type": "MouseDown", + "pos": [ + 39, + 60 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 39, + 60 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 60, + 60 + ] + }, + { + "type": "MouseDown", + "pos": [ + 60, + 60 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 39, + 60 + ] + }, + { + "type": "MouseUp", + "pos": [ + 39, + 60 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 60, + 60 + ] + }, + { + "type": "MouseDown", + "pos": [ + 60, + 60 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 60, + 60 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 39, + 60 + ] + }, + { + "type": "MouseDown", + "pos": [ + 39, + 60 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 39, + 60 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 60, + 60 + ] + }, + { + "type": "MouseDown", + "pos": [ + 60, + 60 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 39, + 60 + ] + }, + { + "type": "MouseUp", + "pos": [ + 39, + 60 + ], + "btn": "Left" + }, + { + "type": "Wait" + } +] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/ButtonEventsTest/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/ButtonEventsTest/output.txt new file mode 100644 index 000000000000..df2bb833d384 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/ButtonEventsTest/output.txt @@ -0,0 +1,679 @@ +PASSED: typeof(square1.button) == 'object' [ButtonEventsTest.c:480] +PASSED: square1.button instanceOf Button [ButtonEventsTest.c:481] +PASSED: typeof(square1.button.useHandCursor) == 'boolean' [ButtonEventsTest.c:482] +PASSED: square1.button.useHandCursor == true [ButtonEventsTest.c:483] +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance6 +instance5 +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance6 +instance5 +PASSED: typeof(_root.buttonChild) == 'object' [ButtonEventsTest.c:563] +PASSED: _root.buttonChild instanceof Array [ButtonEventsTest.c:564] +PASSED: _root.buttonChild.realLength() == 2 [ButtonEventsTest.c:565] +PASSED: typeof(_root.buttonChild[10]) == 'object' [ButtonEventsTest.c:568] +PASSED: (_root.buttonChild[10].nam) == '_level0.square1.button.instance5' [ButtonEventsTest.c:569] +PASSED: (_root.buttonChild[10].exe) == 1 [ButtonEventsTest.c:570] +PASSED: (_root.buttonChild[10].uld) == 0 [ButtonEventsTest.c:571] +PASSED: typeof(_root.buttonChild[12]) == 'object' [ButtonEventsTest.c:574] +PASSED: (_root.buttonChild[12].nam) == '_level0.square1.button.instance6' [ButtonEventsTest.c:575] +PASSED: (_root.buttonChild[12].exe) == 1 [ButtonEventsTest.c:576] +PASSED: (_root.buttonChild[12].uld) == 0 [ButtonEventsTest.c:577] +PASSED: _level0.square1.button.instance6._name == 'instance6' [ButtonEventsTest.c:578] +PASSED: _level0.square1.button.instance6.getDepth() == -16371 [ButtonEventsTest.c:579] +PASSED: typeof(_root.buttonChild[11]) == 'undefined' [ButtonEventsTest.c:582] +PASSED: typeof(_root.buttonChild[13]) == 'undefined' [ButtonEventsTest.c:585] +0. Roll over and out the red square, not touching the small dark-red square in it. + The cursor should turn to an hand while on the square. +PASSED: _level0.square1.hitTest(60,60,true) [ButtonEventsTest.c:597] +1. Roll over the red square. +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance7 +instance5 +instance6 +PASSED: 3 == 3 +PASSED: object == object +PASSED: _level0.square1.button.instance7 == _level0.square1.button.instance7 +PASSED: 1 == 1 +PASSED: 0 == 0 +PASSED: 1 == 1 +PASSED: 1 == 1 +PASSED: movieclip == movieclip +PASSED: instance6 == instance6 +PASSED: -16398 == -16398 +PASSED: 1 == 1 +PASSED: 0 == 0 +PASSED: -0.05,-0.05 40.05,40.05 == -0.05,-0.05 40.05,40.05 +PASSED: /square1 == /square1 +PASSED: / == / +2. Press (and keep pressed) the mouse button inside the square. +PASSED: / == / +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance8 +instance5 +instance7 +PASSED: 4 == 4 +PASSED: object == object +PASSED: _level0.square1.button.instance8 == _level0.square1.button.instance8 +PASSED: 1 == 1 +PASSED: 0 == 0 +PASSED: 1 == 1 +PASSED: 1 == 1 +PASSED: 1 == 1 +PASSED: 0 == 0 +PASSED: -0.05,-0.05 40.05,40.05 == -0.05,-0.05 40.05,40.05 +PASSED: /square1 == /square1 +PASSED: square1 == square1 +PASSED: / == / +PASSED: string == string +PASSED: == +3. Depress the mouse button inside the square. +PASSED: / == / +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance9 +instance5 +instance8 +PASSED: -0.05,-0.05 40.05,40.05 == -0.05,-0.05 40.05,40.05 +PASSED: /square1 == /square1 +PASSED: / == / +4. Move the mouse pointer off the square. +PASSED: / == / +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance10 +instance5 +instance9 +PASSED: -0.05,-0.05 40.05,40.05 == -0.05,-0.05 40.05,40.05 +PASSED: /square1 == /square1 +PASSED: / == / +5. Press mouse button inside the square, and release it outside. +PASSED: / == / +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance11 +instance5 +instance10 +PASSED: / == / +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance12 +instance5 +instance11 +PASSED: / == / +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance13 +instance5 +instance12 +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance14 +instance5 +instance13 +PASSED: -0.05,-0.05 40.05,40.05 == -0.05,-0.05 40.05,40.05 +PASSED: /square1 == /square1 +PASSED: square1 == square1 +PASSED: / == / +PASSED: / == / +PASSED: printBounds(square1.getBounds()) == '-0.05,-0.05 40.05,40.05' [ButtonEventsTest.c:630] +PASSED: typeof(_root.buttonChild) == 'object' [ButtonEventsTest.c:633] +PASSED: _root.buttonChild instanceof Array [ButtonEventsTest.c:634] +PASSED: _root.buttonChild.realLength() == 4 [ButtonEventsTest.c:635] +PASSED: typeof(_root.buttonChild[10]) == 'object' [ButtonEventsTest.c:638] +PASSED: (_root.buttonChild[10].nam) == '_level0.square1.button.instance5' [ButtonEventsTest.c:639] +PASSED: (_root.buttonChild[10].exe) == 1 [ButtonEventsTest.c:640] +PASSED: (_root.buttonChild[10].uld) == 0 [ButtonEventsTest.c:641] +PASSED: typeof(_root.buttonChild[12]) == 'object' [ButtonEventsTest.c:644] +PASSED: (_root.buttonChild[12].nam) == '_level0.square1.button.instance6' [ButtonEventsTest.c:645] +PASSED: (_root.buttonChild[12].exe) == 3 [ButtonEventsTest.c:646] +PASSED: (_root.buttonChild[12].uld) == 2 [ButtonEventsTest.c:647] +PASSED: typeof(_root.buttonChild[13]) == 'object' [ButtonEventsTest.c:650] +PASSED: (_root.buttonChild[13].nam) == '_level0.square1.button.instance7' [ButtonEventsTest.c:651] +PASSED: (_root.buttonChild[13].exe) == 4 [ButtonEventsTest.c:652] +PASSED: (_root.buttonChild[13].uld) == 4 [ButtonEventsTest.c:653] +PASSED: typeof(_root.buttonChild[14]) == 'object' [ButtonEventsTest.c:656] +PASSED: (_root.buttonChild[14].nam) == '_level0.square1.button.instance8' [ButtonEventsTest.c:657] +PASSED: (_root.buttonChild[14].exe) == 2 [ButtonEventsTest.c:658] +PASSED: (_root.buttonChild[14].uld) == 2 [ButtonEventsTest.c:659] +PASSED: typeof(_root.buttonChild[11]) == 'undefined' [ButtonEventsTest.c:662] +-- Added shape at lower depth -- +6. Roll over the square. +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance15 +instance5 +instance14 +PASSED: -0.05,-0.05 40.05,40.05 == -0.05,-0.05 40.05,40.05 +PASSED: /square1 == /square1 +PASSED: / == / +7. Press (and keep pressed) the mouse button inside the square. +PASSED: / == / +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance16 +instance5 +instance15 +PASSED: -0.05,-0.05 40.05,40.05 == -0.05,-0.05 40.05,40.05 +PASSED: /square1 == /square1 +PASSED: square1 == square1 +PASSED: / == / +PASSED: string == string +PASSED: == +8. Depress the mouse button inside the square. +PASSED: / == / +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance17 +instance5 +instance16 +PASSED: -0.05,-0.05 40.05,40.05 == -0.05,-0.05 40.05,40.05 +PASSED: /square1 == /square1 +PASSED: / == / +9. Move the mouse pointer off the square. +PASSED: / == / +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance18 +instance5 +instance17 +PASSED: -0.05,-0.05 40.05,40.05 == -0.05,-0.05 40.05,40.05 +PASSED: /square1 == /square1 +PASSED: / == / +10. Press mouse button inside the square, and release it outside. +PASSED: / == / +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance19 +instance5 +instance18 +PASSED: / == / +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance20 +instance5 +instance19 +PASSED: / == / +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance21 +instance5 +instance20 +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance22 +instance5 +instance21 +PASSED: -0.05,-0.05 40.05,40.05 == -0.05,-0.05 40.05,40.05 +PASSED: /square1 == /square1 +PASSED: square1 == square1 +PASSED: / == / +PASSED: / == / +PASSED: typeof(_root.buttonChild) == 'object' [ButtonEventsTest.c:689] +PASSED: _root.buttonChild instanceof Array [ButtonEventsTest.c:690] +PASSED: _root.buttonChild.realLength() == 4 [ButtonEventsTest.c:691] +PASSED: typeof(_root.buttonChild[10]) == 'object' [ButtonEventsTest.c:694] +PASSED: (_root.buttonChild[10].nam) == '_level0.square1.button.instance5' [ButtonEventsTest.c:695] +PASSED: (_root.buttonChild[10].exe) == 1 [ButtonEventsTest.c:696] +PASSED: (_root.buttonChild[10].uld) == 0 [ButtonEventsTest.c:697] +PASSED: typeof(_root.buttonChild[12]) == 'object' [ButtonEventsTest.c:700] +PASSED: (_root.buttonChild[12].nam) == '_level0.square1.button.instance6' [ButtonEventsTest.c:701] +PASSED: (_root.buttonChild[12].exe) == 5 [ButtonEventsTest.c:702] +PASSED: (_root.buttonChild[12].uld) == 4 [ButtonEventsTest.c:703] +PASSED: typeof(_root.buttonChild[13]) == 'object' [ButtonEventsTest.c:706] +PASSED: (_root.buttonChild[13].nam) == '_level0.square1.button.instance7' [ButtonEventsTest.c:707] +PASSED: (_root.buttonChild[13].exe) == 8 [ButtonEventsTest.c:708] +PASSED: (_root.buttonChild[13].uld) == 8 [ButtonEventsTest.c:709] +PASSED: typeof(_root.buttonChild[14]) == 'object' [ButtonEventsTest.c:712] +PASSED: (_root.buttonChild[14].nam) == '_level0.square1.button.instance8' [ButtonEventsTest.c:713] +PASSED: (_root.buttonChild[14].exe) == 4 [ButtonEventsTest.c:714] +PASSED: (_root.buttonChild[14].uld) == 4 [ButtonEventsTest.c:715] +PASSED: typeof(_root.buttonChild[11]) == 'undefined' [ButtonEventsTest.c:718] +-- Added shape at higher depth -- +11. Roll over the square. +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance23 +instance5 +instance22 +PASSED: -0.05,-0.05 40.05,40.05 == -0.05,-0.05 40.05,40.05 +PASSED: /square1 == /square1 +PASSED: / == / +12. Press (and keep pressed) the mouse button inside the square. +PASSED: / == / +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance24 +instance5 +instance23 +PASSED: -0.05,-0.05 40.05,40.05 == -0.05,-0.05 40.05,40.05 +PASSED: /square1 == /square1 +PASSED: square1 == square1 +PASSED: / == / +PASSED: string == string +PASSED: == +13. Depress the mouse button inside the square. +PASSED: / == / +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance25 +instance5 +instance24 +PASSED: -0.05,-0.05 40.05,40.05 == -0.05,-0.05 40.05,40.05 +PASSED: /square1 == /square1 +PASSED: / == / +14. Move the mouse pointer off the square. +PASSED: / == / +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance26 +instance5 +instance25 +PASSED: -0.05,-0.05 40.05,40.05 == -0.05,-0.05 40.05,40.05 +PASSED: /square1 == /square1 +PASSED: / == / +15. Press mouse button inside the square, and release it outside. +PASSED: / == / +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance27 +instance5 +instance26 +PASSED: / == / +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance28 +instance5 +instance27 +PASSED: / == / +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance29 +instance5 +instance28 +tabIndex +blendMode +cacheAsBitmap +filters +scale9Grid +getDepth +enabled +useHandCursor +onKeyUp +onKeyDown +onSetFocus +onReleaseOutside +onRelease +onPress +onRollOut +onRollOver +instance30 +instance5 +instance29 +PASSED: -0.05,-0.05 40.05,40.05 == -0.05,-0.05 40.05,40.05 +PASSED: /square1 == /square1 +PASSED: square1 == square1 +PASSED: / == / +PASSED: / == / +PASSED: true == true +PASSED: 6 == 6 +PASSED: string == string +PASSED: string == string +#passed: 164 +#failed: 0 +#total tests run: 164 +-- Button disabled, try playing with it, nothing should happen -- diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/ButtonEventsTest/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/ButtonEventsTest/test.swf new file mode 100644 index 000000000000..75af649e813b Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/ButtonEventsTest/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/ButtonEventsTest/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/ButtonEventsTest/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/ButtonEventsTest/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/ButtonPropertiesTest/input.json b/tests/tests/swfs/from_gnash/misc-ming.all/ButtonPropertiesTest/input.json new file mode 100644 index 000000000000..dd3bbcf420d7 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/ButtonPropertiesTest/input.json @@ -0,0 +1,149 @@ +[ + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 45, + 35 + ] + }, + { + "type": "MouseDown", + "pos": [ + 45, + 35 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 45, + 35 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 100, + 200 + ] + }, + { + "type": "MouseMove", + "pos": [ + 45, + 35 + ] + }, + { + "type": "MouseMove", + "pos": [ + 100, + 200 + ] + }, + { + "type": "MouseMove", + "pos": [ + 45, + 35 + ] + }, + { + "type": "MouseMove", + "pos": [ + 100, + 200 + ] + }, + { + "type": "MouseMove", + "pos": [ + 45, + 35 + ] + }, + { + "type": "MouseMove", + "pos": [ + 100, + 200 + ] + }, + { + "type": "MouseMove", + "pos": [ + 45, + 35 + ] + }, + { + "type": "MouseMove", + "pos": [ + 100, + 200 + ] + }, + { + "type": "MouseMove", + "pos": [ + 45, + 35 + ] + }, + { + "type": "MouseDown", + "pos": [ + 45, + 35 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 45, + 35 + ], + "btn": "Left" + }, + { + "type": "MouseDown", + "pos": [ + 45, + 35 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 45, + 35 + ], + "btn": "Left" + }, + { + "type": "MouseDown", + "pos": [ + 45, + 35 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 45, + 35 + ], + "btn": "Left" + } +] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/ButtonPropertiesTest/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/ButtonPropertiesTest/output.txt new file mode 100644 index 000000000000..d59655a702fb --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/ButtonPropertiesTest/output.txt @@ -0,0 +1,23 @@ +This is a very simple test. Do anything you like with the buttons and you should get no failures +PASSED: instance2 == instance2 +PASSED: square1.button.getDepth() == -16383 [ButtonPropertiesTest.c:177] +PASSED: == +PASSED: instance3 == instance3 +PASSED: == +PASSED: instance4 == instance4 +PASSED: == +PASSED: instance5 == instance5 +PASSED: == +PASSED: instance6 == instance6 +PASSED: == +PASSED: instance7 == instance7 +PASSED: == +PASSED: instance8 == instance8 +PASSED: == +PASSED: instance9 == instance9 +PASSED: == +PASSED: instance10 == instance10 +PASSED: == +PASSED: instance11 == instance11 +PASSED: == +PASSED: instance12 == instance12 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/ButtonPropertiesTest/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/ButtonPropertiesTest/test.swf new file mode 100644 index 000000000000..da525dc416e1 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/ButtonPropertiesTest/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/ButtonPropertiesTest/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/ButtonPropertiesTest/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/ButtonPropertiesTest/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextTest/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextTest/output.txt new file mode 100644 index 000000000000..24c424876de6 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextTest/output.txt @@ -0,0 +1,153 @@ +PASSED: _root.getInstanceAtDepth(-16383) == _level0.instance1 [DefineEditTextTest.c:137] +PASSED: _level0.instance1._xtrace_win instanceof TextField [DefineEditTextTest.c:139] +PASSED: TextField.prototype.hasOwnProperty('background') [DefineEditTextTest.c:143] +PASSED: TextField.prototype.hasOwnProperty('backgroundColor') [DefineEditTextTest.c:144] +PASSED: TextField.prototype.hasOwnProperty('text') [DefineEditTextTest.c:145] +PASSED: TextField.prototype.hasOwnProperty('textColor') [DefineEditTextTest.c:146] +PASSED: dtext1.embedFonts == false [DefineEditTextTest.c:178] +PASSED: etext1.embedFonts == true [DefineEditTextTest.c:179] +PASSED: etext1.hasOwnProperty('embedFonts') == false [DefineEditTextTest.c:180] +FAILED: expected: false , obtained: true +PASSED: _level0.dtext1 == _level0.dtext1 +FAILED: expected: false , obtained: true +PASSED: _level0.etext1 == _level0.etext1 +FAILED: expected: false , obtained: true +PASSED: _level0.dynamictext1 == _level0.dynamictext1 +PASSED: dtext1.__proto__ == TextField.prototype [DefineEditTextTest.c:195] +PASSED: etext1.__proto__ == TextField.prototype [DefineEditTextTest.c:196] +PASSED: etext1.__proto__ == dynamictext1.__proto__ [DefineEditTextTest.c:197] +PASSED: TextField.prototype.hasOwnProperty('background') [DefineEditTextTest.c:200] +PASSED: TextField.prototype.hasOwnProperty('backgroundColor') [DefineEditTextTest.c:201] +PASSED: TextField.prototype.hasOwnProperty('text') [DefineEditTextTest.c:202] +PASSED: TextField.prototype.hasOwnProperty('textColor') [DefineEditTextTest.c:203] +PASSED: !TextField.prototype.hasOwnProperty('_parent') [DefineEditTextTest.c:204] +PASSED: !TextField.prototype.hasOwnProperty('_xmouse') [DefineEditTextTest.c:205] +PASSED: !TextField.prototype.hasOwnProperty('_ymouse') [DefineEditTextTest.c:206] +PASSED: !TextField.prototype.hasOwnProperty('_xscale') [DefineEditTextTest.c:207] +PASSED: !TextField.prototype.hasOwnProperty('_yscale') [DefineEditTextTest.c:208] +PASSED: typeof(dtext1) == 'object' [DefineEditTextTest.c:210] +PASSED: typeof(dtext1.text) == 'string' [DefineEditTextTest.c:211] +PASSED: typeof(dtext1.background) == 'boolean' [DefineEditTextTest.c:212] +PASSED: typeof(dtext1.backgroundColor) == 'number' [DefineEditTextTest.c:213] +PASSED: typeof(dtext1.textColor) == 'number' [DefineEditTextTest.c:214] +PASSED: typeof(dtext1._alpha) == 'number' [DefineEditTextTest.c:215] +PASSED: typeof(dtext1.type) == 'string' [DefineEditTextTest.c:216] +PASSED: dtext1.type == 'input' [DefineEditTextTest.c:217] +PASSED: typeof(dtext1.__proto__.text) == 'undefined' [DefineEditTextTest.c:219] +PASSED: typeof(dtext1.__proto__.background) == 'undefined' [DefineEditTextTest.c:220] +PASSED: typeof(dtext1.__proto__.backgroundColor) == 'undefined' [DefineEditTextTest.c:221] +PASSED: typeof(dtext1.__proto__.textColor) == 'undefined' [DefineEditTextTest.c:222] +PASSED: typeof(dtext1.__proto__._alpha) == 'undefined' [DefineEditTextTest.c:223] +PASSED: dtext1.hasOwnProperty('text') == false [DefineEditTextTest.c:225] +PASSED: dtext1.hasOwnProperty('background') == false [DefineEditTextTest.c:226] +PASSED: dtext1.hasOwnProperty('backgroundColor') == false [DefineEditTextTest.c:227] +PASSED: dtext1.hasOwnProperty('textColor') == false [DefineEditTextTest.c:228] +PASSED: dtext1.hasOwnProperty('_alpha') == false [DefineEditTextTest.c:229] +PASSED: !dtext1.hasOwnProperty('_parent') [DefineEditTextTest.c:230] +PASSED: !dtext1.hasOwnProperty('_xmouse') [DefineEditTextTest.c:231] +PASSED: !dtext1.hasOwnProperty('_ymouse') [DefineEditTextTest.c:232] +PASSED: !dtext1.hasOwnProperty('_xscale') [DefineEditTextTest.c:233] +PASSED: !dtext1.hasOwnProperty('_yscale') [DefineEditTextTest.c:234] +PASSED: !etext1.hasOwnProperty('_parent') [DefineEditTextTest.c:235] +PASSED: !etext1.hasOwnProperty('_xmouse') [DefineEditTextTest.c:236] +PASSED: !etext1.hasOwnProperty('_ymouse') [DefineEditTextTest.c:237] +PASSED: !etext1.hasOwnProperty('_xscale') [DefineEditTextTest.c:238] +PASSED: !etext1.hasOwnProperty('_yscale') [DefineEditTextTest.c:239] +PASSED: dtext1.__proto__.hasOwnProperty('text') [DefineEditTextTest.c:241] +PASSED: dtext1.__proto__.hasOwnProperty('background') == true [DefineEditTextTest.c:242] +PASSED: dtext1.__proto__.hasOwnProperty('backgroundColor') == true [DefineEditTextTest.c:243] +PASSED: dtext1.__proto__.hasOwnProperty('textColor') == true [DefineEditTextTest.c:244] +PASSED: dtext1.__proto__.hasOwnProperty('_alpha') == false [DefineEditTextTest.c:246] +PASSED: dtext1.text == 'Hello' [DefineEditTextTest.c:248] +PASSED: etext1.text == 'Hello' [DefineEditTextTest.c:249] +PASSED: dtext2.text == 'Hello' [DefineEditTextTest.c:250] +PASSED: dtext1.background == false [DefineEditTextTest.c:251] +PASSED: etext1.background == false [DefineEditTextTest.c:252] +PASSED: dtext2.background == false [DefineEditTextTest.c:253] +PASSED: dtext1.backgroundColor == 0xffffff [DefineEditTextTest.c:254] +PASSED: etext1.backgroundColor == 0xffffff [DefineEditTextTest.c:255] +PASSED: dtext2.backgroundColor == 0xffffff [DefineEditTextTest.c:256] +PASSED: dtext1.textColor == 6579558 [DefineEditTextTest.c:257] +PASSED: etext1.textColor == 7237488 [DefineEditTextTest.c:258] +PASSED: dtext2.textColor == 7895418 [DefineEditTextTest.c:259] +PASSED: dtext1._alpha == 100 [DefineEditTextTest.c:260] +PASSED: etext1._alpha == 100 [DefineEditTextTest.c:261] +PASSED: dtext2._alpha == 100 [DefineEditTextTest.c:262] +PASSED: etext1._parent == _root [DefineEditTextTest.c:263] +PASSED: dtext2._parent == _root [DefineEditTextTest.c:264] +PASSED: etext1._xscale == 100 [DefineEditTextTest.c:265] +PASSED: dtext2._xscale == 100 [DefineEditTextTest.c:266] +PASSED: etext1._yscale == 100 [DefineEditTextTest.c:267] +PASSED: dtext2._yscale == 100 [DefineEditTextTest.c:268] +PASSED: typeof(etext1._xmouse) == 'number' [DefineEditTextTest.c:269] +PASSED: typeof(dtext2._xmouse) == 'number' [DefineEditTextTest.c:270] +PASSED: typeof(etext1._ymouse) == 'number' [DefineEditTextTest.c:271] +PASSED: typeof(dtext2._ymouse) == 'number' [DefineEditTextTest.c:272] +PASSED: typeof(etext1.tf) == 'object' [DefineEditTextTest.c:279] +PASSED: typeof(dtext2.tf) == 'object' [DefineEditTextTest.c:280] +PASSED: etext1.tf.size == 12 [DefineEditTextTest.c:281] +PASSED: dtext2.tf.size == 12 [DefineEditTextTest.c:282] +PASSED: etext1.tf.font == 'Bitstream Vera Sans' [DefineEditTextTest.c:283] +PASSED: dtext2.tf.font == 'times' [DefineEditTextTest.c:284] +PASSED: typeof(etext1.tf.bold) == 'boolean' [DefineEditTextTest.c:285] +PASSED: typeof(dtext2.tf.bold) == 'boolean' [DefineEditTextTest.c:286] +PASSED: etext1.tf.bold == false [DefineEditTextTest.c:287] +PASSED: dtext2.tf.bold == false [DefineEditTextTest.c:288] +PASSED: typeof(etext1.tf.italic) == 'boolean' [DefineEditTextTest.c:289] +PASSED: typeof(dtext2.tf.italic) == 'boolean' [DefineEditTextTest.c:290] +PASSED: etext1.tf.italic == false [DefineEditTextTest.c:291] +PASSED: dtext2.tf.italic == false [DefineEditTextTest.c:292] +PASSED: typeof(etext1.tf.indent) == 'number' [DefineEditTextTest.c:293] +PASSED: typeof(dtext2.tf.indent) == 'number' [DefineEditTextTest.c:294] +PASSED: etext1.tf.indent == 4 [DefineEditTextTest.c:295] +PASSED: dtext2.tf.indent == 7 [DefineEditTextTest.c:296] +PASSED: typeof(etext1.tf.leftMargin) == 'number' [DefineEditTextTest.c:297] +PASSED: typeof(dtext2.tf.leftMargin) == 'number' [DefineEditTextTest.c:298] +PASSED: etext1.tf.leftMargin == 5 [DefineEditTextTest.c:299] +PASSED: dtext2.tf.leftMargin == 8 [DefineEditTextTest.c:300] +PASSED: typeof(etext1.tf.rightMargin) == 'number' [DefineEditTextTest.c:301] +PASSED: typeof(dtext2.tf.rightMargin) == 'number' [DefineEditTextTest.c:302] +PASSED: etext1.tf.rightMargin == 6 [DefineEditTextTest.c:303] +PASSED: dtext2.tf.rightMargin == 9 [DefineEditTextTest.c:304] +PASSED: typeof(etext1.tf.align) == 'string' [DefineEditTextTest.c:305] +PASSED: typeof(dtext2.tf.align) == 'string' [DefineEditTextTest.c:306] +PASSED: etext1.tf.align == 'center' [DefineEditTextTest.c:307] +PASSED: dtext2.tf.align == 'right' [DefineEditTextTest.c:308] +PASSED: typeof(etext1.tf.leading) == 'number' [DefineEditTextTest.c:309] +PASSED: typeof(dtext2.tf.leading) == 'number' [DefineEditTextTest.c:310] +PASSED: etext1.tf.leading == 11 [DefineEditTextTest.c:311] +PASSED: dtext2.tf.leading == 12 [DefineEditTextTest.c:312] +PASSED: typeof(etext1.tf.color) == 'number' [DefineEditTextTest.c:313] +PASSED: typeof(dtext2.tf.color) == 'number' [DefineEditTextTest.c:314] +PASSED: etext1.tf.color == 7237488 [DefineEditTextTest.c:315] +PASSED: dtext2.tf.color == 7895418 [DefineEditTextTest.c:316] +PASSED: typeof(etext1.tf.blockIndent) == 'number' [DefineEditTextTest.c:317] +PASSED: typeof(dtext2.tf.blockIndent) == 'number' [DefineEditTextTest.c:318] +PASSED: etext1.tf.blockIndent == 0 [DefineEditTextTest.c:319] +PASSED: dtext2.tf.blockIndent == 0 [DefineEditTextTest.c:320] +PASSED: typeof(etext1.tf.underline) == 'boolean' [DefineEditTextTest.c:321] +PASSED: typeof(dtext2.tf.underline) == 'boolean' [DefineEditTextTest.c:322] +PASSED: etext1.tf.underline == false [DefineEditTextTest.c:323] +PASSED: dtext2.tf.underline == false [DefineEditTextTest.c:324] +PASSED: etext1.getTextFormat().color == 0xff00ff [DefineEditTextTest.c:339] +PASSED: dtext2.getTextFormat().color == 0xffff00 [DefineEditTextTest.c:340] +PASSED: dtext1.text == 'Hello world' [DefineEditTextTest.c:342] +PASSED: etext1.text == 'Hello world' [DefineEditTextTest.c:343] +PASSED: dtext2.text == 'Hello world' [DefineEditTextTest.c:344] +PASSED: dtext1.background == true [DefineEditTextTest.c:345] +PASSED: etext1.background == true [DefineEditTextTest.c:346] +PASSED: dtext2.background == true [DefineEditTextTest.c:347] +PASSED: dtext1.backgroundColor == 0xff0000 [DefineEditTextTest.c:348] +PASSED: etext1.backgroundColor == 0x00ff00 [DefineEditTextTest.c:349] +PASSED: dtext2.backgroundColor == 0x0000ff [DefineEditTextTest.c:350] +PASSED: dtext1.textColor == 0x00ffff [DefineEditTextTest.c:351] +PASSED: etext1.textColor == 0xff00ff [DefineEditTextTest.c:352] +PASSED: dtext2.textColor == 0xffff00 [DefineEditTextTest.c:353] +PASSED: dtext1._alpha == 0 [DefineEditTextTest.c:359] +PASSED: etext1._alpha == 0 [DefineEditTextTest.c:360] +PASSED: dtext2._alpha == 0 [DefineEditTextTest.c:361] +PASSED: dtext1.embedFonts == true [DefineEditTextTest.c:368] +PASSED: etext1.embedFonts == false [DefineEditTextTest.c:369] +#passed: 147 +#failed: 3 +#total tests run: 150 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextTest/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextTest/test.swf new file mode 100644 index 000000000000..63e9e477685f Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextTest/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextTest/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextTest/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextTest/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextVariableNameTest/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextVariableNameTest/output.txt new file mode 100644 index 000000000000..9341915fdf68 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextVariableNameTest/output.txt @@ -0,0 +1,72 @@ +PASSED: mc1.textfield.text == 'Hello' [DefineEditTextVariableNameTest.c:164] +PASSED: _root.testName == 'Hello' [DefineEditTextVariableNameTest.c:165] +PASSED: mc1.textfield._x == 0 [DefineEditTextVariableNameTest.c:166] +PASSED: mc1._height == 16 [DefineEditTextVariableNameTest.c:167] +PASSED: mc1._width == 136 [DefineEditTextVariableNameTest.c:168] +PASSED: mc2._height == 16 [DefineEditTextVariableNameTest.c:169] +PASSED: mc2._width == 100 [DefineEditTextVariableNameTest.c:170] +PASSED: mc2.textfield.text == 'Hi' [DefineEditTextVariableNameTest.c:174] +PASSED: _root.mc3.testName == 'Hi' [DefineEditTextVariableNameTest.c:175] +PASSED: mc2.textfield._x == 150 [DefineEditTextVariableNameTest.c:176] +PASSED: mc2.textfield.variable == '_root.mc3.testName' [DefineEditTextVariableNameTest.c:178] +PASSED: mc1.textfield.text == 'World' [DefineEditTextVariableNameTest.c:184] +PASSED: _root.testName == 'World' [DefineEditTextVariableNameTest.c:185] +PASSED: mc1.textfield._x == 0 [DefineEditTextVariableNameTest.c:186] +PASSED: mc2.textfield.text == 'There' [DefineEditTextVariableNameTest.c:190] +PASSED: _root.mc3.testName == 'There' [DefineEditTextVariableNameTest.c:191] +PASSED: mc2.textfield._x == 150 [DefineEditTextVariableNameTest.c:192] +PASSED: mc1.textfield.text == '' [DefineEditTextVariableNameTest.c:198] +PASSED: _root.testName == '' [DefineEditTextVariableNameTest.c:199] +PASSED: mc1.textfield._x == 0 [DefineEditTextVariableNameTest.c:200] +PASSED: mc2.textfield.text == '' [DefineEditTextVariableNameTest.c:204] +PASSED: _root.mc3.testName == '' [DefineEditTextVariableNameTest.c:205] +PASSED: mc2.textfield._x == 150 [DefineEditTextVariableNameTest.c:206] +PASSED: mc1.textfield.text == 'Hello' [DefineEditTextVariableNameTest.c:164] +PASSED: _root.varName1bis == 'Hello' [DefineEditTextVariableNameTest.c:165] +PASSED: mc1.textfield._x == 0 [DefineEditTextVariableNameTest.c:166] +PASSED: mc1._height == 16 [DefineEditTextVariableNameTest.c:167] +PASSED: mc1._width == 136 [DefineEditTextVariableNameTest.c:168] +PASSED: mc2._height == 16 [DefineEditTextVariableNameTest.c:169] +PASSED: mc2._width == 100 [DefineEditTextVariableNameTest.c:170] +PASSED: mc2.textfield.text == 'Hi' [DefineEditTextVariableNameTest.c:174] +PASSED: _root.varName2bis == 'Hi' [DefineEditTextVariableNameTest.c:175] +PASSED: mc2.textfield._x == 150 [DefineEditTextVariableNameTest.c:176] +PASSED: mc2.textfield.variable == '_root.varName2bis' [DefineEditTextVariableNameTest.c:178] +PASSED: mc1.textfield.text == 'World' [DefineEditTextVariableNameTest.c:184] +PASSED: _root.varName1bis == 'World' [DefineEditTextVariableNameTest.c:185] +PASSED: mc1.textfield._x == 0 [DefineEditTextVariableNameTest.c:186] +PASSED: mc2.textfield.text == 'There' [DefineEditTextVariableNameTest.c:190] +PASSED: _root.varName2bis == 'There' [DefineEditTextVariableNameTest.c:191] +PASSED: mc2.textfield._x == 150 [DefineEditTextVariableNameTest.c:192] +PASSED: mc1.textfield.text == '' [DefineEditTextVariableNameTest.c:198] +PASSED: _root.varName1bis == '' [DefineEditTextVariableNameTest.c:199] +PASSED: mc1.textfield._x == 0 [DefineEditTextVariableNameTest.c:200] +PASSED: mc2.textfield.text == '' [DefineEditTextVariableNameTest.c:204] +PASSED: _root.varName2bis == '' [DefineEditTextVariableNameTest.c:205] +PASSED: mc2.textfield._x == 150 [DefineEditTextVariableNameTest.c:206] +PASSED: typeof(mc4.textfield) == 'object' [DefineEditTextVariableNameTest.c:332] +PASSED: typeof(mc4.uninitalized_text_var) == 'undefined' [DefineEditTextVariableNameTest.c:333] +PASSED: typeof(mc4.uninitalized_text_var) == 'undefined' [DefineEditTextVariableNameTest.c:336] +PASSED: typeof(mc4.uninitalized_text_var) == 'string' [DefineEditTextVariableNameTest.c:340] +PASSED: mc4.uninitalized_text_var == 100 [DefineEditTextVariableNameTest.c:341] +PASSED: typeof(mc5.textfield) == 'object' [DefineEditTextVariableNameTest.c:352] +PASSED: typeof(mc5.text_var5) == 'undefined' [DefineEditTextVariableNameTest.c:353] +PASSED: typeof(mc5.text_var5) == 'undefined' [DefineEditTextVariableNameTest.c:357] +PASSED: mc5.text_var5 == 'new_text' [DefineEditTextVariableNameTest.c:361] +PASSED: mc5.textfield.text == 'change back' [DefineEditTextVariableNameTest.c:363] +PASSED: typeof(mc6.textfield) == 'object' [DefineEditTextVariableNameTest.c:378] +PASSED: typeof(mc6.text_var6) == 'string' [DefineEditTextVariableNameTest.c:379] +PASSED: typeof(mc6.text_var6) == 'undefined' [DefineEditTextVariableNameTest.c:382] +PASSED: mc6.textfield.text == 'initial_text' [DefineEditTextVariableNameTest.c:383] +PASSED: mc6.text_var6 == 'new_text' [DefineEditTextVariableNameTest.c:387] +PASSED: mc6.textfield.text == 'change back' [DefineEditTextVariableNameTest.c:389] +PASSED: typeof(mc7.textfield) == 'object' [DefineEditTextVariableNameTest.c:400] +PASSED: typeof(mc7.text_var7) == 'string' [DefineEditTextVariableNameTest.c:401] +PASSED: mc7.text_var7 == 'initial_text' [DefineEditTextVariableNameTest.c:405] +PASSED: mc7.textfield.text == 'new_text' [DefineEditTextVariableNameTest.c:406] +#passed: 66 +#passed: 66 +#failed: 0 +#failed: 0 +#total tests run: 66 +#total tests run: 66 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextVariableNameTest/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextVariableNameTest/test.swf new file mode 100644 index 000000000000..8bc341927598 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextVariableNameTest/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextVariableNameTest/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextVariableNameTest/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextVariableNameTest/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextVariableNameTest2/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextVariableNameTest2/output.txt new file mode 100644 index 000000000000..ce1e1e76a7f6 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextVariableNameTest2/output.txt @@ -0,0 +1,39 @@ +PASSED: edit_text_var == 'Hello' [DefineEditTextVariableNameTest2.c:119] +PASSED: dtext1.text == 'Hello' [DefineEditTextVariableNameTest2.c:120] +PASSED: edit_text_var == 'Hello' [DefineEditTextVariableNameTest2.c:129] +PASSED: dtext1.text == 'Hello' [DefineEditTextVariableNameTest2.c:130] +PASSED: dtext2.text == 'Hello' [DefineEditTextVariableNameTest2.c:131] +PASSED: edit_text_var == 'Hello' [DefineEditTextVariableNameTest2.c:140] +PASSED: dtext1.text == 'Hello' [DefineEditTextVariableNameTest2.c:141] +PASSED: dtext2.text == 'Hello' [DefineEditTextVariableNameTest2.c:142] +PASSED: dtext3.text == 'Hello' [DefineEditTextVariableNameTest2.c:143] +PASSED: edit_text_var == 'Hahaha' [DefineEditTextVariableNameTest2.c:149] +PASSED: dtext1.text == 'Hahaha' [DefineEditTextVariableNameTest2.c:150] +PASSED: dtext2.text == 'Hahaha' [DefineEditTextVariableNameTest2.c:151] +PASSED: dtext3.text == 'Hahaha' [DefineEditTextVariableNameTest2.c:152] +PASSED: dtext1.text == 'Hello' [DefineEditTextVariableNameTest2.c:156] +PASSED: dtext1.text == 'Hahaha' [DefineEditTextVariableNameTest2.c:159] +PASSED: typeof(edit_text_var) == 'string' [DefineEditTextVariableNameTest2.c:165] +PASSED: edit_text_var == 'Hahaha' [DefineEditTextVariableNameTest2.c:166] +PASSED: typeof(edit_text_var) == 'string' [DefineEditTextVariableNameTest2.c:172] +PASSED: edit_text_var == 'Hahaha' [DefineEditTextVariableNameTest2.c:173] +PASSED: typeof(edit_text_var) == 'string' [DefineEditTextVariableNameTest2.c:179] +PASSED: edit_text_var == 'Hahaha' [DefineEditTextVariableNameTest2.c:180] +PASSED: edit_text_var == 'Hahaha' [DefineEditTextVariableNameTest2.c:188] +PASSED: dtext4.text == 'Hahaha' [DefineEditTextVariableNameTest2.c:189] +PASSED: typeof(edit_text_var) == 'object' [DefineEditTextVariableNameTest2.c:195] +PASSED: typeof(dtext4.text) == 'string' [DefineEditTextVariableNameTest2.c:196] +PASSED: dtext4.text == '[object Object]' [DefineEditTextVariableNameTest2.c:197] +PASSED: typeof(dtext4.text) == 'string' [DefineEditTextVariableNameTest2.c:203] +PASSED: dtext4.text == '[object Object]' [DefineEditTextVariableNameTest2.c:205] +PASSED: dtext4.text == 'TO_STRING' [DefineEditTextVariableNameTest2.c:207] +PASSED: typeof(dtext4.text.toString) == 'function' [DefineEditTextVariableNameTest2.c:208] +PASSED: dtext4.text.toString() == 'TO_STRING' [DefineEditTextVariableNameTest2.c:209] +PASSED: dtext4.text.valueOf() == 'TO_STRING' [DefineEditTextVariableNameTest2.c:210] +PASSED: edit_text_var.toString() == 'TO_STRING' [DefineEditTextVariableNameTest2.c:215] +PASSED: dtext4.text == 'TO_STRING' [DefineEditTextVariableNameTest2.c:216] +PASSED: edit_text_var.toString() == 'TO_STRING' [DefineEditTextVariableNameTest2.c:222] +PASSED: dtext4.text == 'TO_STRING' [DefineEditTextVariableNameTest2.c:223] +#passed: 36 +#failed: 0 +#total tests run: 36 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextVariableNameTest2/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextVariableNameTest2/test.swf new file mode 100644 index 000000000000..f5ec2556883e Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextVariableNameTest2/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextVariableNameTest2/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextVariableNameTest2/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/DefineEditTextVariableNameTest2/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DefineTextTest/input.json b/tests/tests/swfs/from_gnash/misc-ming.all/DefineTextTest/input.json new file mode 100644 index 000000000000..dfdab13bd6df --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/DefineTextTest/input.json @@ -0,0 +1,276 @@ +[ + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 21, + 330 + ] + }, + { + "type": "MouseDown", + "pos": [ + 21, + 330 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 21, + 330 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 77, + 327 + ] + }, + { + "type": "MouseDown", + "pos": [ + 77, + 327 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 77, + 327 + ], + "btn": "Left" + }, + { + "type": "MouseDown", + "pos": [ + 77, + 327 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 77, + 327 + ], + "btn": "Left" + }, + { + "type": "MouseDown", + "pos": [ + 77, + 327 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 77, + 327 + ], + "btn": "Left" + }, + { + "type": "MouseDown", + "pos": [ + 77, + 327 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 77, + 327 + ], + "btn": "Left" + }, + { + "type": "MouseDown", + "pos": [ + 77, + 327 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 77, + 327 + ], + "btn": "Left" + }, + { + "type": "MouseDown", + "pos": [ + 77, + 327 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 77, + 327 + ], + "btn": "Left" + }, + { + "type": "MouseDown", + "pos": [ + 77, + 327 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 77, + 327 + ], + "btn": "Left" + }, + { + "type": "MouseDown", + "pos": [ + 77, + 327 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 77, + 327 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 135, + 326 + ] + }, + { + "type": "MouseDown", + "pos": [ + 135, + 326 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 135, + 326 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 1, + 1 + ] + }, + { + "type": "MouseDown", + "pos": [ + 135, + 326 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 135, + 326 + ], + "btn": "Left" + }, + { + "type": "MouseDown", + "pos": [ + 135, + 326 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 135, + 326 + ], + "btn": "Left" + }, + { + "type": "MouseDown", + "pos": [ + 135, + 326 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 135, + 326 + ], + "btn": "Left" + }, + { + "type": "MouseDown", + "pos": [ + 135, + 326 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 135, + 326 + ], + "btn": "Left" + }, + { + "type": "MouseDown", + "pos": [ + 135, + 326 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 135, + 326 + ], + "btn": "Left" + } +] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DefineTextTest/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/DefineTextTest/output.txt new file mode 100644 index 000000000000..12d1c0d2f12c --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/DefineTextTest/output.txt @@ -0,0 +1,16 @@ +Follow the instructions. Click means press and release +Move the mouse onto the green O +PASSED: mc.stext1 == mc [DefineTextTest.c:150] +PASSED: typeof(mc.stext1) == 'movieclip' [DefineTextTest.c:151] +PASSED: mc.stext1._target == '/mc' [DefineTextTest.c:152] +PASSED: mc._width == 288.05 [DefineTextTest.c:154] +Click +Move the mouse to the centre of the O +Click as much as you like then move back onto the green O +Click +Move outside the green O +PASSED: _global.clicks == 2 [DefineTextTest.c:161] +PASSED: _global.mouseInOut == 4 [DefineTextTest.c:162] +#passed: 6 +#failed: 0 +#total tests run: 6 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DefineTextTest/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/DefineTextTest/test.swf new file mode 100644 index 000000000000..82a86a865a29 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/DefineTextTest/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DefineTextTest/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/DefineTextTest/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/DefineTextTest/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DepthLimitsTest/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/DepthLimitsTest/output.txt new file mode 100644 index 000000000000..375cabe5395e --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/DepthLimitsTest/output.txt @@ -0,0 +1,20 @@ +PASSED: d == -16 [DepthLimitsTest.c:111] +PASSED: d == -16384 [DepthLimitsTest.c:116] +PASSED: d == undefined [DepthLimitsTest.c:121] +PASSED: d == undefined [DepthLimitsTest.c:126] +PASSED: d == 1147483648 [DepthLimitsTest.c:131] +PASSED: d == 2130690044 [DepthLimitsTest.c:136] +PASSED: d == undefined [DepthLimitsTest.c:141] +PASSED: d == -1 [DepthLimitsTest.c:150] +PASSED: d == -1 [DepthLimitsTest.c:154] +PASSED: d == -16384 [DepthLimitsTest.c:158] +PASSED: d == -16384 [DepthLimitsTest.c:162] +PASSED: d == undefined [DepthLimitsTest.c:166] +PASSED: d == undefined [DepthLimitsTest.c:170] +PASSED: d == 2130690044 [DepthLimitsTest.c:174] +PASSED: d == 2130690044 [DepthLimitsTest.c:178] +PASSED: d == undefined [DepthLimitsTest.c:182] +PASSED: d == undefined [DepthLimitsTest.c:186] +#passed: 17 +#failed: 0 +#total tests run: 17 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DepthLimitsTest/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/DepthLimitsTest/test.swf new file mode 100644 index 000000000000..8ec6a54f1fa9 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/DepthLimitsTest/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DepthLimitsTest/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/DepthLimitsTest/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/DepthLimitsTest/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DragDropTest/DragDropTestLoaded.swf b/tests/tests/swfs/from_gnash/misc-ming.all/DragDropTest/DragDropTestLoaded.swf new file mode 100644 index 000000000000..88a43ea26dc0 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/DragDropTest/DragDropTestLoaded.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DragDropTest/input.json b/tests/tests/swfs/from_gnash/misc-ming.all/DragDropTest/input.json new file mode 100644 index 000000000000..b50523ca09e9 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/DragDropTest/input.json @@ -0,0 +1,290 @@ +[ + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 350, + 100 + ] + }, + { + "type": "MouseDown", + "pos": [ + 350, + 100 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 350, + 100 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 50, + 50 + ] + }, + { + "type": "MouseDown", + "pos": [ + 50, + 50 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 50, + 50 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 100, + 50 + ] + }, + { + "type": "MouseDown", + "pos": [ + 100, + 50 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 100, + 50 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 70, + 100 + ] + }, + { + "type": "MouseDown", + "pos": [ + 70, + 100 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 70, + 100 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 150, + 50 + ] + }, + { + "type": "MouseDown", + "pos": [ + 150, + 50 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 150, + 50 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 200, + 50 + ] + }, + { + "type": "MouseDown", + "pos": [ + 200, + 50 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 200, + 50 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 170, + 100 + ] + }, + { + "type": "MouseDown", + "pos": [ + 170, + 100 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 170, + 100 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 250, + 50 + ] + }, + { + "type": "MouseDown", + "pos": [ + 250, + 50 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 250, + 50 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 300, + 50 + ] + }, + { + "type": "MouseDown", + "pos": [ + 300, + 50 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 300, + 50 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 270, + 100 + ] + }, + { + "type": "MouseDown", + "pos": [ + 270, + 100 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 270, + 100 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 200, + 50 + ] + }, + { + "type": "Wait" + }, + { + "type": "MouseDown", + "pos": [ + 200, + 50 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 200, + 50 + ], + "btn": "Left" + }, + { + "type": "MouseMove", + "pos": [ + 50, + 50 + ] + }, + { + "type": "MouseDown", + "pos": [ + 50, + 50 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 50, + 50 + ], + "btn": "Left" + } +] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DragDropTest/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/DragDropTest/output.txt new file mode 100644 index 000000000000..d49b4466cae7 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/DragDropTest/output.txt @@ -0,0 +1,44 @@ +[ debug-22403-05c7ba106] +- This test is for drag&drop operations. Follow the instructions - +1. Click OUTSIDE of any drawing. +PASSED: _root.draggable50._droptarget == "" [./DragDropTest.as:203] +PASSED: eval(_root.draggable50._droptarget) == undefined [./DragDropTest.as:204] +2. Click on the FIRST RED circle. +PASSED: _root.draggable50._droptarget == "/target10" [./DragDropTest.as:214] +PASSED: eval(_root.draggable50._droptarget) == _level0.target10 [./DragDropTest.as:215] +3. Click on the FIRST GREEN circle. +PASSED: _root.draggable50._droptarget == "/target20" [./DragDropTest.as:225] +PASSED: eval(_root.draggable50._droptarget) == _level0.target20 [./DragDropTest.as:226] +4. Click on the FIRST BLUE circle. +PASSED: _root.draggable50._droptarget == "/target100" [./DragDropTest.as:236] +PASSED: eval(_root.draggable50._droptarget) == _level0.target100 [./DragDropTest.as:237] +5. Click on the SECOND RED circle. +PASSED: _root.draggable50._droptarget == "_level50/target10" [./DragDropTest.as:247] +PASSED: eval(_root.draggable50._droptarget) == _level50.target10 [./DragDropTest.as:248] +6. Click on the SECOND GREEN circle. +PASSED: _root.draggable50._droptarget == "_level50/target20" [./DragDropTest.as:258] +PASSED: eval(_root.draggable50._droptarget) == _level50.target20 [./DragDropTest.as:259] +7. Click on the SECOND BLUE circle. +PASSED: _root.draggable50._droptarget == "_level50/target100" [./DragDropTest.as:269] +PASSED: eval(_root.draggable50._droptarget) == _level50.target100 [./DragDropTest.as:270] +8. Click on the THIRD RED circle. +PASSED: _root.draggable50._droptarget == "/loadedTarget/target10" [./DragDropTest.as:280] +PASSED: eval(_root.draggable50._droptarget) == _level0.loadedTarget.target10 [./DragDropTest.as:281] +9. Click on the THIRD GREEN circle. +PASSED: _root.draggable50._droptarget == "/loadedTarget/target20" [./DragDropTest.as:291] +PASSED: eval(_root.draggable50._droptarget) == _level0.loadedTarget.target20 [./DragDropTest.as:292] +10. Click on the THIRD BLUE circle. +PASSED: _root.draggable50._droptarget == "/loadedTarget/target100" [./DragDropTest.as:302] +PASSED: eval(_root.draggable50._droptarget) == _level0.loadedTarget.target100 [./DragDropTest.as:303] +11. Click on the SECOND GREEN circle. +PASSED: _root.tf._x == 0 [./DragDropTest.as:323] +PASSED: _root.tf._y == 100 [./DragDropTest.as:324] +PASSED: _root.draggable50._droptarget == "/loadedTarget/target100" [./DragDropTest.as:330] +PASSED: _root.tf._x != 0 [./DragDropTest.as:331] +PASSED: _root.tf._y != 100 [./DragDropTest.as:332] +12. Click ANYWHERE OUT of the THIRD BLUE circle (on another circle makes a better test) +PASSED: _root.draggable50._droptarget == "/loadedTarget/target100" [./DragDropTest.as:342] +END OF TEST +#passed: 26 +#failed: 0 +#total tests run: 26 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DragDropTest/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/DragDropTest/test.swf new file mode 100644 index 000000000000..0cd8732363a8 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/DragDropTest/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DragDropTest/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/DragDropTest/test.toml new file mode 100644 index 000000000000..a276e4d21027 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/DragDropTest/test.toml @@ -0,0 +1,2 @@ +num_ticks = 50 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DrawingApiTest/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/DrawingApiTest/output.txt new file mode 100644 index 000000000000..a3430963a192 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/DrawingApiTest/output.txt @@ -0,0 +1,93 @@ +[ debug-22403-05c7ba106] +SWF + +PASSED: getBounds() returns 6710886.35,6710886.35 6710886.35,6710886.35 after clear +PASSED: bnd == "6710886.35,6710886.35 6710886.35,6710886.35" [./DrawingApiTest.as:84] +PASSED: bnd == "80,80 220,220" [./DrawingApiTest.as:89] +PASSED: bnd == "80,80 220,220" [./DrawingApiTest.as:96] +PASSED: bnd == "80,80 280,220" [./DrawingApiTest.as:101] +PASSED: bnd == "80,80 280,220" [./DrawingApiTest.as:108] +PASSED: bnd == "80,80 280,255" [./DrawingApiTest.as:113] +PASSED: bnd == "80,80 410,260" [./DrawingApiTest.as:120] +PASSED: ! hitTest(376, 180, true) [./DrawingApiTest.as:125] +PASSED: hitTest(376, 139, true) [./DrawingApiTest.as:126] +PASSED: bnd == "80,80 410,260" [./DrawingApiTest.as:129] +PASSED: bnd == "60,80 410,260" [./DrawingApiTest.as:140] +PASSED: bnd == "48,80 410,260" [./DrawingApiTest.as:149] +PASSED: bnd == "18,80 410,260" [./DrawingApiTest.as:154] +PASSED: bnd == "18,80 410,260" [./DrawingApiTest.as:172] +PASSED: bnd == "18,80 410,260" [./DrawingApiTest.as:201] +PASSED: bnd == "219,141 277,169" [./DrawingApiTest.as:224] +PASSED: typeof(zshape.hitTest) == 'function' [./DrawingApiTest.as:226] +PASSED: zshape.hitTest(223, 145, true) [./DrawingApiTest.as:227] +PASSED: zshape.hitTest((223+10), (145+0), true) [./DrawingApiTest.as:228] +PASSED: zshape.hitTest((223+20), (145+5), true) [./DrawingApiTest.as:229] +PASSED: zshape.hitTest((223+25), (145+20), true) [./DrawingApiTest.as:230] +PASSED: zshape.hitTest(273, 165, true) [./DrawingApiTest.as:231] +PASSED: x.hitTest(126, 168, true) [./DrawingApiTest.as:256] +PASSED: x.hitTest(112, 158, true) [./DrawingApiTest.as:257] +FAILED: x.hitTest(122, 157, true) [./DrawingApiTest.as:261] +PASSED: ! x.hitTest(120, 155, true) [./DrawingApiTest.as:263] +PASSED: x.hitTest(120, 155, false) [./DrawingApiTest.as:264] +PASSED: ! x.hitTest(116, 177, true) [./DrawingApiTest.as:265] +PASSED: x.hitTest(116, 177, false) [./DrawingApiTest.as:266] +PASSED: inv3.hitTest((8*4), 100 + (18*4), true) [./DrawingApiTest.as:364] +PASSED: !inv3.hitTest((4*4), 100 + (10*4), true) [./DrawingApiTest.as:365] +PASSED: inv3.hitTest((4*4), 100 + (10*4), false) [./DrawingApiTest.as:366] +PASSED: inv3.hitTest((20*4), 100 + (18*4), true) [./DrawingApiTest.as:368] +PASSED: !inv3.hitTest((24*4), 100 + (10*4), true) [./DrawingApiTest.as:369] +PASSED: inv3.hitTest((24*4), 100 + (10*4), false) [./DrawingApiTest.as:370] +PASSED: ! inv4.hitTest(100 + (15*4), 100 + (15*4), true) [./DrawingApiTest.as:398] +PASSED: inv4.hitTest(100 + (11*4), 100 + (11*4), true) [./DrawingApiTest.as:401] +PASSED: inv4.hitTest(100 + (11*4), 100 + (14*4), true) [./DrawingApiTest.as:402] +PASSED: inv4.hitTest(100 + (11*4), 100 + (19*4), true) [./DrawingApiTest.as:403] +PASSED: inv4.hitTest(100 + (14*4), 100 + (19*4), true) [./DrawingApiTest.as:404] +PASSED: inv4.hitTest(100 + (19*4), 100 + (19*4), true) [./DrawingApiTest.as:405] +PASSED: inv4.hitTest(100 + (19*4), 100 + (14*4), true) [./DrawingApiTest.as:406] +PASSED: inv4.hitTest(100 + (19*4), 100 + (11*4), true) [./DrawingApiTest.as:407] +PASSED: inv4.hitTest(100 + (14*4), 100 + (11*4), true) [./DrawingApiTest.as:408] +PASSED: ! inv5.hitTest(150 + (15*4), 100 + (15*4), true) [./DrawingApiTest.as:437] +PASSED: inv5.hitTest(150 + (11*4), 100 + (11*4), true) [./DrawingApiTest.as:440] +PASSED: inv5.hitTest(150 + (11*4), 100 + (14*4), true) [./DrawingApiTest.as:441] +PASSED: inv5.hitTest(150 + (11*4), 100 + (19*4), true) [./DrawingApiTest.as:442] +PASSED: inv5.hitTest(150 + (14*4), 100 + (19*4), true) [./DrawingApiTest.as:443] +PASSED: inv5.hitTest(150 + (19*4), 100 + (19*4), true) [./DrawingApiTest.as:444] +PASSED: inv5.hitTest(150 + (19*4), 100 + (14*4), true) [./DrawingApiTest.as:445] +PASSED: inv5.hitTest(150 + (19*4), 100 + (11*4), true) [./DrawingApiTest.as:446] +PASSED: inv5.hitTest(150 + (14*4), 100 + (11*4), true) [./DrawingApiTest.as:447] +PASSED: inv6.hitTest(200 + (15*4), 100 + (15*4), true) [./DrawingApiTest.as:478] +PASSED: inv6.hitTest(200 + (11*4), 100 + (11*4), true) [./DrawingApiTest.as:480] +PASSED: inv6.hitTest(200 + (11*4), 100 + (14*4), true) [./DrawingApiTest.as:481] +PASSED: inv6.hitTest(200 + (11*4), 100 + (19*4), true) [./DrawingApiTest.as:482] +PASSED: inv6.hitTest(200 + (14*4), 100 + (19*4), true) [./DrawingApiTest.as:483] +PASSED: inv6.hitTest(200 + (19*4), 100 + (19*4), true) [./DrawingApiTest.as:484] +PASSED: inv6.hitTest(200 + (19*4), 100 + (14*4), true) [./DrawingApiTest.as:485] +PASSED: inv6.hitTest(200 + (19*4), 100 + (11*4), true) [./DrawingApiTest.as:486] +PASSED: inv6.hitTest(200 + (14*4), 100 + (11*4), true) [./DrawingApiTest.as:487] +PASSED: inv7.hitTest(250 + (15*4), 100 + (15*4), true) [./DrawingApiTest.as:518] +PASSED: inv7.hitTest(250 + (11*4), 100 + (11*4), true) [./DrawingApiTest.as:520] +PASSED: inv7.hitTest(250 + (11*4), 100 + (14*4), true) [./DrawingApiTest.as:521] +PASSED: inv7.hitTest(250 + (11*4), 100 + (19*4), true) [./DrawingApiTest.as:522] +PASSED: inv7.hitTest(250 + (14*4), 100 + (19*4), true) [./DrawingApiTest.as:523] +PASSED: inv7.hitTest(250 + (19*4), 100 + (19*4), true) [./DrawingApiTest.as:524] +PASSED: inv7.hitTest(250 + (19*4), 100 + (14*4), true) [./DrawingApiTest.as:525] +PASSED: inv7.hitTest(250 + (19*4), 100 + (11*4), true) [./DrawingApiTest.as:526] +PASSED: inv7.hitTest(250 + (14*4), 100 + (11*4), true) [./DrawingApiTest.as:527] +PASSED: inv8.hitTest(200 + (15*2), 0 + (15*2), true) [./DrawingApiTest.as:570] +PASSED: inv8.hitTest(200 + (25*2), 0 + (15*2), true) [./DrawingApiTest.as:571] +PASSED: inv8.hitTest(200 + (35*2), 0 + (15*2), true) [./DrawingApiTest.as:572] +PASSED: !inv8.hitTest(200 + (15*2), 0 + (25*2), true) [./DrawingApiTest.as:574] +PASSED: !inv8.hitTest(200 + (25*2), 0 + (25*2), true) [./DrawingApiTest.as:575] +PASSED: inv8.hitTest(200 + (35*2), 0 + (25*2), true) [./DrawingApiTest.as:576] +PASSED: !inv8.hitTest(200 + (15*2), 0 + (35*2), true) [./DrawingApiTest.as:578] +PASSED: inv8.hitTest(200 + (25*2), 0 + (35*2), true) [./DrawingApiTest.as:579] +PASSED: inv8.hitTest(200 + (35*2), 0 + (35*2), true) [./DrawingApiTest.as:580] +PASSED: !inv8.hitTest(200 + (20*2), 0 + (25*2), true) [./DrawingApiTest.as:582] +PASSED: !e.hitTest(x + 30, y + 30, true) [./DrawingApiTest.as:680] +PASSED: e.hitTest(x, y, true) [./DrawingApiTest.as:683] +PASSED: f.hitTest(x + 30, y + 30, true) [./DrawingApiTest.as:703] +PASSED: g.hitTest(x + 20, y + 80, true) [./DrawingApiTest.as:726] +FAILED: g.hitTest(x + 80, y + 20, true) [./DrawingApiTest.as:737] +PASSED: line.hitTest(270, 40, true) [./DrawingApiTest.as:744] +PASSED: line.hitTest(230, 80, true) [./DrawingApiTest.as:747] +PASSED: delete this.onEnterFrame returned true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DrawingApiTest/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/DrawingApiTest/test.swf new file mode 100644 index 000000000000..095e6feeb91c Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/DrawingApiTest/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/DrawingApiTest/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/DrawingApiTest/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/DrawingApiTest/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/EmbeddedFontTest/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/EmbeddedFontTest/output.txt new file mode 100644 index 000000000000..ba9dbeac8682 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/EmbeddedFontTest/output.txt @@ -0,0 +1,87 @@ +PASSED: tf1._width == 84 [EmbeddedFontTest.c:225] +PASSED: tf1._height == 20 [EmbeddedFontTest.c:226] +PASSED: tf1._x == 48 [EmbeddedFontTest.c:227] +PASSED: tf1._y == 28 [EmbeddedFontTest.c:228] +PASSED: tf1.textHeight == 23 [EmbeddedFontTest.c:229] +46 +PASSED: tf1.textWidth >= 44 && tf1.textWidth <= 48 [EmbeddedFontTest.c:232] +PASSED: tf2._width == 84 [EmbeddedFontTest.c:234] +PASSED: tf2._height == 20 [EmbeddedFontTest.c:235] +PASSED: tf2._x == 48 [EmbeddedFontTest.c:236] +PASSED: tf2._y == 58 [EmbeddedFontTest.c:237] +PASSED: tf2.textHeight == 23 [EmbeddedFontTest.c:238] +78 +PASSED: tf2.textWidth >= 76 && tf2.textWidth <= 80 [EmbeddedFontTest.c:241] +PASSED: tf3._width == 1344 [EmbeddedFontTest.c:243] +PASSED: tf3._height == 20 [EmbeddedFontTest.c:244] +PASSED: tf3._x == 18 [EmbeddedFontTest.c:245] +PASSED: tf3._y == 88 [EmbeddedFontTest.c:246] +PASSED: tf3.textHeight == 23 [EmbeddedFontTest.c:247] +230 +PASSED: tf3.textWidth >= 225 && tf3.textWidth <= 235 [EmbeddedFontTest.c:250] +PASSED: tf4._width == 1344 [EmbeddedFontTest.c:252] +PASSED: tf4._height == 20 [EmbeddedFontTest.c:253] +PASSED: tf4._x == 18 [EmbeddedFontTest.c:254] +PASSED: tf4._y == 118 [EmbeddedFontTest.c:255] +PASSED: tf4.textHeight == 23 [EmbeddedFontTest.c:256] +156 +PASSED: tf4.textWidth >= 153 && tf4.textWidth <= 159 [EmbeddedFontTest.c:259] +PASSED: tf5._width == 1344 [EmbeddedFontTest.c:261] +PASSED: tf5._height == 20 [EmbeddedFontTest.c:262] +PASSED: tf5._x == 18 [EmbeddedFontTest.c:263] +PASSED: tf5._y == 148 [EmbeddedFontTest.c:264] +PASSED: tf5.textHeight == 23 [EmbeddedFontTest.c:265] +186 +PASSED: tf5.textWidth >= 183 && tf5.textWidth <= 189 [EmbeddedFontTest.c:268] +PASSED: tf6._width == 1344 [EmbeddedFontTest.c:270] +PASSED: tf6._height == 20 [EmbeddedFontTest.c:271] +PASSED: tf6._x == 18 [EmbeddedFontTest.c:272] +PASSED: tf6._y == 178 [EmbeddedFontTest.c:273] +PASSED: tf6.textHeight == 23 [EmbeddedFontTest.c:274] +194 +PASSED: tf6.textWidth >= 189 && tf6.textWidth <= 199 [EmbeddedFontTest.c:277] +PASSED: tf7._width == 1344 [EmbeddedFontTest.c:279] +PASSED: tf7._height == 20 [EmbeddedFontTest.c:280] +PASSED: tf7._x == 18 [EmbeddedFontTest.c:281] +PASSED: tf7._y == 208 [EmbeddedFontTest.c:282] +PASSED: tf7.textHeight == 23 [EmbeddedFontTest.c:283] +247 +PASSED: tf7.textWidth >= 240 && tf7.textWidth <= 254 [EmbeddedFontTest.c:286] +PASSED: tf8._width == 672 [EmbeddedFontTest.c:288] +PASSED: tf8._height == 20 [EmbeddedFontTest.c:289] +PASSED: tf8._x == 34 [EmbeddedFontTest.c:290] +PASSED: tf8._y == 238 [EmbeddedFontTest.c:291] +PASSED: tf8.textHeight == 23 [EmbeddedFontTest.c:292] +222 +PASSED: tf8.textWidth >= 217 && tf8.textWidth <= 227 [EmbeddedFontTest.c:295] +PASSED: tf9._width == 672 [EmbeddedFontTest.c:297] +PASSED: tf9._height == 20 [EmbeddedFontTest.c:298] +PASSED: tf9._x == 34 [EmbeddedFontTest.c:299] +PASSED: tf9._y == 268 [EmbeddedFontTest.c:300] +PASSED: tf9.textHeight == 23 [EmbeddedFontTest.c:301] +148 +PASSED: tf9.textWidth >= 144 && tf9.textWidth <= 152 [EmbeddedFontTest.c:304] +PASSED: tf10._width == 16.8 [EmbeddedFontTest.c:306] +PASSED: tf10._height == 20 [EmbeddedFontTest.c:307] +PASSED: tf10._x == 49.6 [EmbeddedFontTest.c:308] +PASSED: tf10._y == 298 [EmbeddedFontTest.c:309] +PASSED: tf10.textHeight == 23 [EmbeddedFontTest.c:310] +99 +PASSED: tf10.textWidth >= 95 && tf10.textWidth <= 103 [EmbeddedFontTest.c:313] +PASSED: tf11._width == 84 [EmbeddedFontTest.c:316] +PASSED: tf11._height == 80 [EmbeddedFontTest.c:317] +PASSED: tf11._x == 48 [EmbeddedFontTest.c:318] +PASSED: tf11._y == 322 [EmbeddedFontTest.c:319] +PASSED: tf11.textHeight == 23 [EmbeddedFontTest.c:320] +86 +PASSED: tf11.textWidth >= 84 && tf11.textWidth <= 88 [EmbeddedFontTest.c:323] +PASSED: tf12._width == 84 [EmbeddedFontTest.c:325] +PASSED: tf12._height == 160 [EmbeddedFontTest.c:326] +PASSED: tf12._x == 48 [EmbeddedFontTest.c:327] +PASSED: tf12._y == 404 [EmbeddedFontTest.c:328] +PASSED: tf12.textHeight == 23 [EmbeddedFontTest.c:329] +86 +PASSED: tf12.textWidth >= 84 && tf12.textWidth <= 88 [EmbeddedFontTest.c:332] +#passed: 72 +#failed: 0 +#total tests run: 72 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/EmbeddedFontTest/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/EmbeddedFontTest/test.swf new file mode 100644 index 000000000000..d24bd2fc3a3f Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/EmbeddedFontTest/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/EmbeddedFontTest/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/EmbeddedFontTest/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/EmbeddedFontTest/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp10/output.expected.png b/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp10/output.expected.png new file mode 100644 index 000000000000..2569c04ad249 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp10/output.expected.png differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp10/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp10/output.txt new file mode 100644 index 000000000000..cd08d3e2042a --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp10/output.txt @@ -0,0 +1,278 @@ +[undefined debug-22403-05c7ba106] +SWFundefined + +Checking square at 0x0 +0x8080ff,0x8080ff,0x8080ff,0x8787ff,0x8787ff,0x8787ff,0x8d8dff,0x8d8dff,0x8d8dff +PASSED: 0x8080ff is near to 0x8080ff +PASSED: 0x8080ff is near to 0x8080ff +PASSED: 0x8080ff is near to 0x8080ff +PASSED: 0x8787ff is near to 0x8787ff +PASSED: 0x8787ff is near to 0x8787ff +PASSED: 0x8787ff is near to 0x8787ff +PASSED: 0x8d8dff is near to 0x8d8dff +PASSED: 0x8d8dff is near to 0x8d8dff +PASSED: 0x8d8dff is near to 0x8d8dff +Checking square at 100x0 +0xb0bff,0xb0bff,0xb0bff,0x7f7fff,0x7f7fff,0x7f7fff,0xf4f4ff,0xf4f4ff,0xf4f4ff +PASSED: 0xb0bff is near to 0xb0bff +PASSED: 0xb0bff is near to 0xb0bff +PASSED: 0xb0bff is near to 0xb0bff +PASSED: 0x7f7fff is near to 0x7f7fff +PASSED: 0x7f7fff is near to 0x7f7fff +PASSED: 0x7f7fff is near to 0x7f7fff +PASSED: 0xf4f4ff is near to 0xf4f4ff +PASSED: 0xf4f4ff is near to 0xf4f4ff +PASSED: 0xf4f4ff is near to 0xf4f4ff +Checking square at 200x0 +0xff,0x5a5aff,0xfffdff,0x5a5aff,0xffffff,0xff59ff,0xffffff,0xff59ff,0xff00ff +PASSED: 0xff is near to 0xff +PASSED: 0x5a5aff is near to 0x5a5aff +PASSED: 0xfffdff is near to 0xfffdff +PASSED: 0x5a5aff is near to 0x5a5aff +PASSED: 0xffffff is near to 0xffffff +PASSED: 0xff59ff is near to 0xff59ff +PASSED: 0xffffff is near to 0xffffff +PASSED: 0xff59ff is near to 0xff59ff +PASSED: 0xff00ff is near to 0xff00ff +Checking square at 300x0 +0xff,0xff,0x4a4aff,0xff,0x4a4aff,0x9c9cff,0x4a4aff,0x9c9cff,0xeeeeff +PASSED: 0xff is near to 0xff +PASSED: 0xff is near to 0xff +PASSED: 0x4a4aff is near to 0x4a4aff +PASSED: 0xff is near to 0xff +PASSED: 0x4a4aff is near to 0x4a4aff +PASSED: 0x9c9cff is near to 0x9c9cff +PASSED: 0x4a4aff is near to 0x4a4aff +PASSED: 0x9c9cff is near to 0x9c9cff +PASSED: 0xeeeeff is near to 0xeeeeff +Checking square at 400x0 +0xffffff,0xabffab,0x59ff59,0xacacff,0xffffff,0xabffab,0x5a5aff,0xacacff,0xffffff +PASSED: 0xffffff is near to 0xffffff +PASSED: 0xabffab is near to 0xabffab +PASSED: 0x59ff59 is near to 0x59ff59 +PASSED: 0xacacff is near to 0xacacff +PASSED: 0xffffff is near to 0xffffff +PASSED: 0xabffab is near to 0xabffab +PASSED: 0x5a5aff is near to 0x5a5aff +PASSED: 0xacacff is near to 0xacacff +PASSED: 0xffffff is near to 0xffffff +Checking square at 500x0 +0x3737ff,0xa29ea2,0xd1ff57,0x3737ff,0xa29ea2,0xd1ff57,0x3737ff,0xa29ea2,0xd1ff57 +PASSED: 0x3737ff is near to 0x3737ff +PASSED: 0xa29ea2 is near to 0xa29ea2 +PASSED: 0xd1ff57 is near to 0xd1ff57 +PASSED: 0x3737ff is near to 0x3737ff +PASSED: 0xa29ea2 is near to 0xa29ea2 +PASSED: 0xd1ff57 is near to 0xd1ff57 +PASSED: 0x3737ff is near to 0x3737ff +PASSED: 0xa29ea2 is near to 0xa29ea2 +PASSED: 0xd1ff57 is near to 0xd1ff57 +Checking square at 0x100 +0x2020ff,0x2d2dff,0x3a3aff,0x2323ff,0x2f2fff,0x3b3bff,0x2a2aff,0x3434ff,0x4040ff +PASSED: 0x2020ff is near to 0x2020ff +PASSED: 0x2d2dff is near to 0x2d2dff +PASSED: 0x3a3aff is near to 0x3a3aff +PASSED: 0x2323ff is near to 0x2323ff +PASSED: 0x2f2fff is near to 0x2f2fff +PASSED: 0x3b3bff is near to 0x3b3bff +PASSED: 0x2a2aff is near to 0x2a2aff +PASSED: 0x3434ff is near to 0x3434ff +PASSED: 0x4040ff is near to 0x4040ff +Checking square at 100x100 +0xffffff,0xe9e9ff,0xffffff,0xe9e9ff,0xff,0xe9e9ff,0xffffff,0xe9e9ff,0xffffff +PASSED: 0xffffff is near to 0xffffff +PASSED: 0xe9e9ff is near to 0xe9e9ff +PASSED: 0xffffff is near to 0xffffff +PASSED: 0xe9e9ff is near to 0xe9e9ff +PASSED: 0xff is near to 0xff +PASSED: 0xe9e9ff is near to 0xe9e9ff +PASSED: 0xffffff is near to 0xffffff +PASSED: 0xe9e9ff is near to 0xe9e9ff +PASSED: 0xffffff is near to 0xffffff +Checking square at 200x100 +0xff00ff,0xff2bff,0xff00ff,0xff2bff,0xff,0xff2bff,0xff00ff,0xff2bff,0xff00ff +PASSED: 0xff00ff is near to 0xff00ff +PASSED: 0xff2bff is near to 0xff2bff +PASSED: 0xff00ff is near to 0xff00ff +PASSED: 0xff2bff is near to 0xff2bff +PASSED: 0xff is near to 0xff +PASSED: 0xff2bff is near to 0xff2bff +PASSED: 0xff00ff is near to 0xff00ff +PASSED: 0xff2bff is near to 0xff2bff +PASSED: 0xff00ff is near to 0xff00ff +Checking square at 300x100 +0xff00ff,0xff00ff,0xff15ff,0xff00ff,0xff93ff,0xfffdff,0xff15ff,0xfffdff,0x2020ff +PASSED: 0xff00ff is near to 0xff00ff +PASSED: 0xff00ff is near to 0xff00ff +PASSED: 0xff15ff is near to 0xff15ff +PASSED: 0xff00ff is near to 0xff00ff +PASSED: 0xff93ff is near to 0xff93ff +PASSED: 0xfffdff is near to 0xfffdff +PASSED: 0xff15ff is near to 0xff15ff +PASSED: 0xfffdff is near to 0xfffdff +PASSED: 0x2020ff is near to 0x2020ff +Checking square at 400x100 +0x2020ff,0xfdfffd,0x15ff15,0xfdfffd,0x93ff93,0xff00,0x15ff15,0xff00,0xff00 +PASSED: 0x2020ff is near to 0x2020ff +PASSED: 0xfdfffd is near to 0xfdfffd +PASSED: 0x15ff15 is near to 0x15ff15 +PASSED: 0xfdfffd is near to 0xfdfffd +PASSED: 0x93ff93 is near to 0x93ff93 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0x15ff15 is near to 0x15ff15 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +Checking square at 500x100 +0xffff00,0xb4ff9d,0xffff00,0xb4ff9d,0xff,0xb4ff9d,0xffff00,0xb4ff9d,0xffff00 +PASSED: 0xffff00 is near to 0xffff00 +PASSED: 0xb4ff9d is near to 0xb4ff9d +PASSED: 0xffff00 is near to 0xffff00 +PASSED: 0xb4ff9d is near to 0xb4ff9d +PASSED: 0xff is near to 0xff +PASSED: 0xb4ff9d is near to 0xb4ff9d +PASSED: 0xffff00 is near to 0xffff00 +PASSED: 0xb4ff9d is near to 0xb4ff9d +PASSED: 0xffff00 is near to 0xffff00 +Checking square at 0x200 +0xafafff,0xafafff,0xafafff,0xff00,0xff00,0xff00,0xff00,0xff00,0xff00 +PASSED: 0xafafff is near to 0xafafff +PASSED: 0xafafff is near to 0xafafff +PASSED: 0xafafff is near to 0xafafff +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +Checking square at 100x200 +0xff0000,0xff0000,0xff0000,0xff0000,0xff0000,0xff0000,0xff0000,0xff0000,0xff0000 +PASSED: 0xff0000 is near to 0xff0000 +PASSED: 0xff0000 is near to 0xff0000 +PASSED: 0xff0000 is near to 0xff0000 +PASSED: 0xff0000 is near to 0xff0000 +PASSED: 0xff0000 is near to 0xff0000 +PASSED: 0xff0000 is near to 0xff0000 +PASSED: 0xff0000 is near to 0xff0000 +PASSED: 0xff0000 is near to 0xff0000 +PASSED: 0xff0000 is near to 0xff0000 +Checking square at 200x200 +0xff00,0xff00,0xff00,0xff00,0xff00,0xff00,0xff00,0xff00,0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +Checking square at 300x200 +0xffff,0xc3ff,0xffff,0xc3ff,0xffff00,0xc3ff,0xffff,0xc3ff,0xffff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff00 is near to 0xffff00 +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +Checking square at 400x200 +0x55ff,0xa9ff,0x43ff,0xb6ff,0xeded11,0xd1ff,0x30ff,0xdeff,0x1dff +PASSED: 0x55ff is near to 0x55ff +PASSED: 0xa9ff is near to 0xa9ff +PASSED: 0x43ff is near to 0x43ff +PASSED: 0xb6ff is near to 0xb6ff +PASSED: 0xeded11 is near to 0xeded11 +PASSED: 0xd1ff is near to 0xd1ff +PASSED: 0x30ff is near to 0x30ff +PASSED: 0xdeff is near to 0xdeff +PASSED: 0x1dff is near to 0x1dff +Checking square at 500x200 +0x9d9d61,0xa3ff,0x91916d,0xb6ff,0xeaea14,0xd1ff,0x82827c,0xe4ff,0x757589 +PASSED: 0x9d9d61 is near to 0x9d9d61 +PASSED: 0xa3ff is near to 0xa3ff +PASSED: 0x91916d is near to 0x91916d +PASSED: 0xb6ff is near to 0xb6ff +PASSED: 0xeaea14 is near to 0xeaea14 +PASSED: 0xd1ff is near to 0xd1ff +PASSED: 0x82827c is near to 0x82827c +PASSED: 0xe4ff is near to 0xe4ff +PASSED: 0x757589 is near to 0x757589 +Checking square at 0x300 +0xffff,0xc3ff,0xffff,0xc3ff,0xffff00,0xc3ff,0xffff,0xc3ff,0xffff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff00 is near to 0xffff00 +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +Checking square at 100x300 +0xffff,0xc3ff,0xffff,0xc3ff,0xffff00,0xc3ff,0xffff,0xc3ff,0xffff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff00 is near to 0xffff00 +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +Checking square at 200x300 +0xfefe,0xe2fe,0xfefe,0xe2fe,0xfefe00,0xe2fe,0xfefe,0xe2fe,0xfefe +PASSED: 0xfefe is near to 0xfefe +PASSED: 0xe2fe is near to 0xe2fe +PASSED: 0xfefe is near to 0xfefe +PASSED: 0xe2fe is near to 0xe2fe +PASSED: 0xfefe00 is near to 0xfefe00 +PASSED: 0xe2fe is near to 0xe2fe +PASSED: 0xfefe is near to 0xfefe +PASSED: 0xe2fe is near to 0xe2fe +PASSED: 0xfefe is near to 0xfefe +Checking square at 300x300 +0xffff,0xc3ff,0xffff,0xc3ff,0xffff00,0xc3ff,0xffff,0xc3ff,0xffff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff00 is near to 0xffff00 +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +Checking square at 400x300 +0xffff,0xe1ff,0xffff,0xc6ff,0x3636c8,0xc6ff,0xffff,0xf2f20c,0xffff +PASSED: 0xffff is near to 0xffff +PASSED: 0xe1ff is near to 0xe1ff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc6ff is near to 0xc6ff +PASSED: 0x3636c8 is near to 0x3636c8 +PASSED: 0xc6ff is near to 0xc6ff +PASSED: 0xffff is near to 0xffff +PASSED: 0xf2f20c is near to 0xf2f20c +PASSED: 0xffff is near to 0xffff +Checking square at 500x300 +0xfa3a00,0xfa3a00,0xfa3a00,0xbbbb00,0xbbbb00,0xbbbb00,0x3afa00,0x3afa00,0x3afa00 +PASSED: 0xfa3a00 is near to 0xfa3a00 +PASSED: 0xfa3a00 is near to 0xfa3a00 +PASSED: 0xfa3a00 is near to 0xfa3a00 +PASSED: 0xbbbb00 is near to 0xbbbb00 +PASSED: 0xbbbb00 is near to 0xbbbb00 +PASSED: 0xbbbb00 is near to 0xbbbb00 +PASSED: 0x3afa00 is near to 0x3afa00 +PASSED: 0x3afa00 is near to 0x3afa00 +PASSED: 0x3afa00 is near to 0x3afa00 +Checking square at 0x400 +0xfa420b,0xfa420b,0xfa420b,0xdddd7f,0xdddd7f,0xdddd7f,0xf6fff4,0xf6fff4,0xf6fff4 +PASSED: 0xfa420b is near to 0xfa420b +PASSED: 0xfa420b is near to 0xfa420b +PASSED: 0xfa420b is near to 0xfa420b +PASSED: 0xdddd7f is near to 0xdddd7f +PASSED: 0xdddd7f is near to 0xdddd7f +PASSED: 0xdddd7f is near to 0xdddd7f +PASSED: 0xf6fff4 is near to 0xf6fff4 +PASSED: 0xf6fff4 is near to 0xf6fff4 +PASSED: 0xf6fff4 is near to 0xf6fff4 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp10/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp10/test.swf new file mode 100644 index 000000000000..e9cc3d341cd3 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp10/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp10/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp10/test.toml new file mode 100644 index 000000000000..519193396df1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp10/test.toml @@ -0,0 +1,10 @@ +num_frames = 30 +known_failure = true + +[image_comparisons.output] +tolerance = 50 +max_outliers = 200 + +[player_options] +version = 10 +with_renderer = { optional = true, sample_count = 1 } diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp9/output.expected.png b/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp9/output.expected.png new file mode 100644 index 000000000000..2569c04ad249 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp9/output.expected.png differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp9/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp9/output.txt new file mode 100644 index 000000000000..048f901ae877 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp9/output.txt @@ -0,0 +1,278 @@ +[undefined debug-22403-05c7ba106] +SWFundefined + +Checking square at 0x0 +0x8080ff,0x8080ff,0x8080ff,0x8787ff,0x8787ff,0x8787ff,0x8d8dff,0x8d8dff,0x8d8dff +PASSED: 0x8080ff is near to 0x8080ff +PASSED: 0x8080ff is near to 0x8080ff +PASSED: 0x8080ff is near to 0x8080ff +PASSED: 0x8787ff is near to 0x8787ff +PASSED: 0x8787ff is near to 0x8787ff +PASSED: 0x8787ff is near to 0x8787ff +PASSED: 0x8d8dff is near to 0x8d8dff +PASSED: 0x8d8dff is near to 0x8d8dff +PASSED: 0x8d8dff is near to 0x8d8dff +Checking square at 100x0 +0xb0bff,0xb0bff,0xb0bff,0x7f7fff,0x7f7fff,0x7f7fff,0xf4f4ff,0xf4f4ff,0xf4f4ff +PASSED: 0xb0bff is near to 0xb0bff +PASSED: 0xb0bff is near to 0xb0bff +PASSED: 0xb0bff is near to 0xb0bff +PASSED: 0x7f7fff is near to 0x7f7fff +PASSED: 0x7f7fff is near to 0x7f7fff +PASSED: 0x7f7fff is near to 0x7f7fff +PASSED: 0xf4f4ff is near to 0xf4f4ff +PASSED: 0xf4f4ff is near to 0xf4f4ff +PASSED: 0xf4f4ff is near to 0xf4f4ff +Checking square at 200x0 +0xff,0x5a5aff,0xfffdff,0x5a5aff,0xffffff,0xff59ff,0xffffff,0xff59ff,0xff00ff +PASSED: 0xff is near to 0xff +PASSED: 0x5a5aff is near to 0x5a5aff +PASSED: 0xfffdff is near to 0xfffdff +PASSED: 0x5a5aff is near to 0x5a5aff +PASSED: 0xffffff is near to 0xffffff +PASSED: 0xff59ff is near to 0xff59ff +PASSED: 0xffffff is near to 0xffffff +PASSED: 0xff59ff is near to 0xff59ff +PASSED: 0xff00ff is near to 0xff00ff +Checking square at 300x0 +0xff,0xff,0x4a4aff,0xff,0x4a4aff,0x9c9cff,0x4a4aff,0x9c9cff,0xeeeeff +PASSED: 0xff is near to 0xff +PASSED: 0xff is near to 0xff +PASSED: 0x4a4aff is near to 0x4a4aff +PASSED: 0xff is near to 0xff +PASSED: 0x4a4aff is near to 0x4a4aff +PASSED: 0x9c9cff is near to 0x9c9cff +PASSED: 0x4a4aff is near to 0x4a4aff +PASSED: 0x9c9cff is near to 0x9c9cff +PASSED: 0xeeeeff is near to 0xeeeeff +Checking square at 400x0 +0xffffff,0xabffab,0x59ff59,0xacacff,0xffffff,0xabffab,0x5a5aff,0xacacff,0xffffff +PASSED: 0xffffff is near to 0xffffff +PASSED: 0xabffab is near to 0xabffab +PASSED: 0x59ff59 is near to 0x59ff59 +PASSED: 0xacacff is near to 0xacacff +PASSED: 0xffffff is near to 0xffffff +PASSED: 0xabffab is near to 0xabffab +PASSED: 0x5a5aff is near to 0x5a5aff +PASSED: 0xacacff is near to 0xacacff +PASSED: 0xffffff is near to 0xffffff +Checking square at 500x0 +0x3737ff,0xa29ea2,0xd1ff57,0x3737ff,0xa29ea2,0xd1ff57,0x3737ff,0xa29ea2,0xd1ff57 +PASSED: 0x3737ff is near to 0x3737ff +PASSED: 0xa29ea2 is near to 0xa29ea2 +PASSED: 0xd1ff57 is near to 0xd1ff57 +PASSED: 0x3737ff is near to 0x3737ff +PASSED: 0xa29ea2 is near to 0xa29ea2 +PASSED: 0xd1ff57 is near to 0xd1ff57 +PASSED: 0x3737ff is near to 0x3737ff +PASSED: 0xa29ea2 is near to 0xa29ea2 +PASSED: 0xd1ff57 is near to 0xd1ff57 +Checking square at 0x100 +0x2020ff,0x2d2dff,0x3a3aff,0x2323ff,0x2f2fff,0x3b3bff,0x2a2aff,0x3434ff,0x4040ff +PASSED: 0x2020ff is near to 0x2020ff +PASSED: 0x2d2dff is near to 0x2d2dff +PASSED: 0x3a3aff is near to 0x3a3aff +PASSED: 0x2323ff is near to 0x2323ff +PASSED: 0x2f2fff is near to 0x2f2fff +PASSED: 0x3b3bff is near to 0x3b3bff +PASSED: 0x2a2aff is near to 0x2a2aff +PASSED: 0x3434ff is near to 0x3434ff +PASSED: 0x4040ff is near to 0x4040ff +Checking square at 100x100 +0xffffff,0xe9e9ff,0xffffff,0xe9e9ff,0xff,0xe9e9ff,0xffffff,0xe9e9ff,0xffffff +PASSED: 0xffffff is near to 0xffffff +PASSED: 0xe9e9ff is near to 0xe9e9ff +PASSED: 0xffffff is near to 0xffffff +PASSED: 0xe9e9ff is near to 0xe9e9ff +PASSED: 0xff is near to 0xff +PASSED: 0xe9e9ff is near to 0xe9e9ff +PASSED: 0xffffff is near to 0xffffff +PASSED: 0xe9e9ff is near to 0xe9e9ff +PASSED: 0xffffff is near to 0xffffff +Checking square at 200x100 +0xff00ff,0xff2bff,0xff00ff,0xff2bff,0xff,0xff2bff,0xff00ff,0xff2bff,0xff00ff +PASSED: 0xff00ff is near to 0xff00ff +PASSED: 0xff2bff is near to 0xff2bff +PASSED: 0xff00ff is near to 0xff00ff +PASSED: 0xff2bff is near to 0xff2bff +PASSED: 0xff is near to 0xff +PASSED: 0xff2bff is near to 0xff2bff +PASSED: 0xff00ff is near to 0xff00ff +PASSED: 0xff2bff is near to 0xff2bff +PASSED: 0xff00ff is near to 0xff00ff +Checking square at 300x100 +0xff00ff,0xff00ff,0xff15ff,0xff00ff,0xff93ff,0xfffdff,0xff15ff,0xfffdff,0x2020ff +PASSED: 0xff00ff is near to 0xff00ff +PASSED: 0xff00ff is near to 0xff00ff +PASSED: 0xff15ff is near to 0xff15ff +PASSED: 0xff00ff is near to 0xff00ff +PASSED: 0xff93ff is near to 0xff93ff +PASSED: 0xfffdff is near to 0xfffdff +PASSED: 0xff15ff is near to 0xff15ff +PASSED: 0xfffdff is near to 0xfffdff +PASSED: 0x2020ff is near to 0x2020ff +Checking square at 400x100 +0x2020ff,0xfdfffd,0x15ff15,0xfdfffd,0x93ff93,0xff00,0x15ff15,0xff00,0xff00 +PASSED: 0x2020ff is near to 0x2020ff +PASSED: 0xfdfffd is near to 0xfdfffd +PASSED: 0x15ff15 is near to 0x15ff15 +PASSED: 0xfdfffd is near to 0xfdfffd +PASSED: 0x93ff93 is near to 0x93ff93 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0x15ff15 is near to 0x15ff15 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +Checking square at 500x100 +0xffff00,0xb4ff9d,0xffff00,0xb4ff9d,0xff,0xb4ff9d,0xffff00,0xb4ff9d,0xffff00 +PASSED: 0xffff00 is near to 0xffff00 +PASSED: 0xb4ff9d is near to 0xb4ff9d +PASSED: 0xffff00 is near to 0xffff00 +PASSED: 0xb4ff9d is near to 0xb4ff9d +PASSED: 0xff is near to 0xff +PASSED: 0xb4ff9d is near to 0xb4ff9d +PASSED: 0xffff00 is near to 0xffff00 +PASSED: 0xb4ff9d is near to 0xb4ff9d +PASSED: 0xffff00 is near to 0xffff00 +Checking square at 0x200 +0xafafff,0xafafff,0xafafff,0xff00,0xff00,0xff00,0xff00,0xff00,0xff00 +PASSED: 0xafafff is near to 0xafafff +PASSED: 0xafafff is near to 0xafafff +PASSED: 0xafafff is near to 0xafafff +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +Checking square at 100x200 +0xff0000,0xff0000,0xff0000,0xff0000,0xff0000,0xff0000,0xff0000,0xff0000,0xff0000 +PASSED: 0xff0000 is near to 0xff0000 +PASSED: 0xff0000 is near to 0xff0000 +PASSED: 0xff0000 is near to 0xff0000 +PASSED: 0xff0000 is near to 0xff0000 +PASSED: 0xff0000 is near to 0xff0000 +PASSED: 0xff0000 is near to 0xff0000 +PASSED: 0xff0000 is near to 0xff0000 +PASSED: 0xff0000 is near to 0xff0000 +PASSED: 0xff0000 is near to 0xff0000 +Checking square at 200x200 +0xff00,0xff00,0xff00,0xff00,0xff00,0xff00,0xff00,0xff00,0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +PASSED: 0xff00 is near to 0xff00 +Checking square at 300x200 +0xffff,0xc3ff,0xffff,0xc3ff,0xffff00,0xc3ff,0xffff,0xc3ff,0xffff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff00 is near to 0xffff00 +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +Checking square at 400x200 +0x55ff,0xa9ff,0x43ff,0xb6ff,0xeded11,0xd1ff,0x30ff,0xdeff,0x1dff +PASSED: 0x55ff is near to 0x55ff +PASSED: 0xa9ff is near to 0xa9ff +PASSED: 0x43ff is near to 0x43ff +PASSED: 0xb6ff is near to 0xb6ff +PASSED: 0xeded11 is near to 0xeded11 +PASSED: 0xd1ff is near to 0xd1ff +PASSED: 0x30ff is near to 0x30ff +PASSED: 0xdeff is near to 0xdeff +PASSED: 0x1dff is near to 0x1dff +Checking square at 500x200 +0x9d9d61,0xa3ff,0x91916d,0xb6ff,0xeaea14,0xd1ff,0x82827c,0xe4ff,0x757589 +PASSED: 0x9d9d61 is near to 0x9d9d61 +PASSED: 0xa3ff is near to 0xa3ff +PASSED: 0x91916d is near to 0x91916d +PASSED: 0xb6ff is near to 0xb6ff +PASSED: 0xeaea14 is near to 0xeaea14 +PASSED: 0xd1ff is near to 0xd1ff +PASSED: 0x82827c is near to 0x82827c +PASSED: 0xe4ff is near to 0xe4ff +PASSED: 0x757589 is near to 0x757589 +Checking square at 0x300 +0xffff,0xc3ff,0xffff,0xc3ff,0xffff00,0xc3ff,0xffff,0xc3ff,0xffff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff00 is near to 0xffff00 +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +Checking square at 100x300 +0xffff,0xc3ff,0xffff,0xc3ff,0xffff00,0xc3ff,0xffff,0xc3ff,0xffff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff00 is near to 0xffff00 +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +Checking square at 200x300 +0xfefe,0xe2fe,0xfefe,0xe2fe,0xfffe00,0xe2fe,0xfefe,0xe2fe,0xfefe +PASSED: 0xfefe is near to 0xfefe +PASSED: 0xe2fe is near to 0xe2fe +PASSED: 0xfefe is near to 0xfefe +PASSED: 0xe2fe is near to 0xe2fe +PASSED: 0xfefe00 is near to 0xfffe00 +PASSED: 0xe2fe is near to 0xe2fe +PASSED: 0xfefe is near to 0xfefe +PASSED: 0xe2fe is near to 0xe2fe +PASSED: 0xfefe is near to 0xfefe +Checking square at 300x300 +0xffff,0xc3ff,0xffff,0xc3ff,0xffff00,0xc3ff,0xffff,0xc3ff,0xffff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff00 is near to 0xffff00 +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc3ff is near to 0xc3ff +PASSED: 0xffff is near to 0xffff +Checking square at 400x300 +0xffff,0xe1ff,0xffff,0xc6ff,0x3636c8,0xc6ff,0xffff,0xf2f20c,0xffff +PASSED: 0xffff is near to 0xffff +PASSED: 0xe1ff is near to 0xe1ff +PASSED: 0xffff is near to 0xffff +PASSED: 0xc6ff is near to 0xc6ff +PASSED: 0x3636c8 is near to 0x3636c8 +PASSED: 0xc6ff is near to 0xc6ff +PASSED: 0xffff is near to 0xffff +PASSED: 0xf2f20c is near to 0xf2f20c +PASSED: 0xffff is near to 0xffff +Checking square at 500x300 +0xfa3a00,0xfa3a00,0xfa3a00,0xbbbb00,0xbbbb00,0xbbbb00,0x3afa00,0x3afa00,0x3afa00 +PASSED: 0xfa3a00 is near to 0xfa3a00 +PASSED: 0xfa3a00 is near to 0xfa3a00 +PASSED: 0xfa3a00 is near to 0xfa3a00 +PASSED: 0xbbbb00 is near to 0xbbbb00 +PASSED: 0xbbbb00 is near to 0xbbbb00 +PASSED: 0xbbbb00 is near to 0xbbbb00 +PASSED: 0x3afa00 is near to 0x3afa00 +PASSED: 0x3afa00 is near to 0x3afa00 +PASSED: 0x3afa00 is near to 0x3afa00 +Checking square at 0x400 +0xfa420b,0xfa420b,0xfa420b,0xdddd7f,0xdddd7f,0xdddd7f,0xf6fff4,0xf6fff4,0xf6fff4 +PASSED: 0xfa420b is near to 0xfa420b +PASSED: 0xfa420b is near to 0xfa420b +PASSED: 0xfa420b is near to 0xfa420b +PASSED: 0xdddd7f is near to 0xdddd7f +PASSED: 0xdddd7f is near to 0xdddd7f +PASSED: 0xdddd7f is near to 0xdddd7f +PASSED: 0xf6fff4 is near to 0xf6fff4 +PASSED: 0xf6fff4 is near to 0xf6fff4 +PASSED: 0xf6fff4 is near to 0xf6fff4 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp9/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp9/test.swf new file mode 100644 index 000000000000..e9cc3d341cd3 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp9/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp9/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp9/test.toml new file mode 100644 index 000000000000..8bae704577db --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/GradientFillTest/fp9/test.toml @@ -0,0 +1,10 @@ +num_frames = 30 +known_failure = true + +[image_comparisons.output] +tolerance = 50 +max_outliers = 200 + +[player_options] +version = 9 +with_renderer = { optional = true, sample_count = 1 } diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/KeyEventOrder/input.json b/tests/tests/swfs/from_gnash/misc-ming.all/KeyEventOrder/input.json new file mode 100644 index 000000000000..b992dcc697c0 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/KeyEventOrder/input.json @@ -0,0 +1,74 @@ +[ + { + "type": "Wait" + }, + { + "type": "KeyDown", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "KeyUp", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "KeyDown", + "key": { + "Char": "b" + } + }, + { + "type": "Wait" + }, + { + "type": "KeyUp", + "key": { + "Char": "b" + } + }, + { + "type": "Wait" + }, + { + "type": "KeyDown", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "KeyUp", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "KeyDown", + "key": { + "Char": "b" + } + }, + { + "type": "Wait" + }, + { + "type": "KeyUp", + "key": { + "Char": "b" + } + } +] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/KeyEventOrder/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/KeyEventOrder/output.txt new file mode 100644 index 000000000000..0ce232d91b8c --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/KeyEventOrder/output.txt @@ -0,0 +1,26 @@ +Press "a" then "b" +Do not press any other keys! +mc2 +mc1 +o1 +o2 +button1 +mc2 +mc1 +o1 +o2 +button3 +PASSED: _root.order == 'mc2,mc1,o1,o2,button1,mc2,mc1,o1,o2,button3,' [KeyEventOrder.c:199] +Press "a" then "b" again +Do not press any other keys! +mc2 +mc1 +o1 +o2 +button1 +mc2 +mc1 +o1 +o2 +button3 +PASSED: _root.order == 'mc2,mc1,o1,o2,button1,mc2,mc1,o1,o2,button3,' [KeyEventOrder.c:217] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/KeyEventOrder/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/KeyEventOrder/test.swf new file mode 100644 index 000000000000..d7fb3e84ddbb Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/KeyEventOrder/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/KeyEventOrder/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/KeyEventOrder/test.toml new file mode 100644 index 000000000000..1d61a3b10025 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/KeyEventOrder/test.toml @@ -0,0 +1,2 @@ +num_ticks = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/NetStream-SquareTest/audio_timewarp.flv b/tests/tests/swfs/from_gnash/misc-ming.all/NetStream-SquareTest/audio_timewarp.flv new file mode 100644 index 000000000000..8dff2729ca50 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/NetStream-SquareTest/audio_timewarp.flv differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/NetStream-SquareTest/input.json b/tests/tests/swfs/from_gnash/misc-ming.all/NetStream-SquareTest/input.json new file mode 100644 index 000000000000..8f50333db643 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/NetStream-SquareTest/input.json @@ -0,0 +1,34 @@ +[ + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "KeyDown", + "key": { + "Char": "p" + } + }, + { + "type": "KeyUp", + "key": { + "Char": "p" + } + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "KeyDown", + "key": "Space" + }, + { + "type": "KeyUp", + "key": "Space" + } +] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/NetStream-SquareTest/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/NetStream-SquareTest/output.txt new file mode 100644 index 000000000000..184af71afa04 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/NetStream-SquareTest/output.txt @@ -0,0 +1,216 @@ +SWF version 7 +PASSED: newly created NetConnection is not connected +PASSED: NetConnection is connected after .connect(null) +PASSED: true +PASSED: true +PASSED: undefined == undefined +PASSED: number == number +PASSED: number == number +PASSED: NetStream.prototype.hasOwnProperty('currentFps') [NetStream-SquareTest.c:223] +PASSED: NetStream.prototype.hasOwnProperty('bufferLength') [NetStream-SquareTest.c:224] +PASSED: NetStream.prototype.hasOwnProperty('bufferTime') [NetStream-SquareTest.c:225] +PASSED: NetStream.prototype.hasOwnProperty('liveDelay') [NetStream-SquareTest.c:226] +PASSED: NetStream.prototype.hasOwnProperty('time') [NetStream-SquareTest.c:227] +PASSED: NetStream.prototype.hasOwnProperty('bytesLoaded') [NetStream-SquareTest.c:228] +PASSED: NetStream.prototype.hasOwnProperty('bytesTotal') [NetStream-SquareTest.c:229] +PASSED: s1.getVolume() == 100 [NetStream-SquareTest.c:241] +PASSED: s1.getVolume() == 1000 [NetStream-SquareTest.c:245] +PASSED: s2.getVolume() == 1000 [NetStream-SquareTest.c:250] +PASSED: s2.getVolume() == 5 [NetStream-SquareTest.c:256] +PASSED: s1.getVolume() == 5 [NetStream-SquareTest.c:257] +PASSED: s2.getVolume() == 80 [NetStream-SquareTest.c:259] +PASSED: s1.getVolume() == 80 [NetStream-SquareTest.c:260] +PASSED: s2.getVolume() == -20 [NetStream-SquareTest.c:263] +PASSED: s1.getVolume() == -20 [NetStream-SquareTest.c:264] +PASSED: typeof(s2.getVolume()) == 'undefined' [NetStream-SquareTest.c:269] +PASSED: typeof(s1.getVolume()) == 'undefined' [NetStream-SquareTest.c:270] +PASSED: typeof(s2.getVolume()) == 'undefined' [NetStream-SquareTest.c:273] +PASSED: typeof(s1.getVolume()) == 'undefined' [NetStream-SquareTest.c:274] +PASSED: s2.getVolume() == 100 [NetStream-SquareTest.c:277] +PASSED: s1.getVolume() == 100 [NetStream-SquareTest.c:278] +PASSED: s2.getVolume() == 80 [NetStream-SquareTest.c:280] +PASSED: s1.getVolume() == 80 [NetStream-SquareTest.c:281] +PASSED: s2.getVolume() == 100 [NetStream-SquareTest.c:287] +PASSED: s1.getVolume() == 100 [NetStream-SquareTest.c:288] +PASSED: s2.getVolume() == 80 [NetStream-SquareTest.c:290] +PASSED: s1.getVolume() == 80 [NetStream-SquareTest.c:291] +PASSED: Video.prototype.hasOwnProperty('attachVideo') [NetStream-SquareTest.c:312] +PASSED: Video.prototype.hasOwnProperty('smoothing') [NetStream-SquareTest.c:313] +PASSED: Video.prototype.hasOwnProperty('deblocking') [NetStream-SquareTest.c:314] +PASSED: Video.prototype.hasOwnProperty('clear') [NetStream-SquareTest.c:315] +PASSED: Video.prototype.hasOwnProperty('height') [NetStream-SquareTest.c:316] +PASSED: Video.prototype.hasOwnProperty('width') [NetStream-SquareTest.c:317] +PASSED: video.height == 0 [NetStream-SquareTest.c:318] +PASSED: video.width == 0 [NetStream-SquareTest.c:319] +PASSED: video2.height == 0 [NetStream-SquareTest.c:320] +PASSED: video2.width == 0 [NetStream-SquareTest.c:321] +PASSED: video.height == 0 [NetStream-SquareTest.c:327] +PASSED: video.width == 0 [NetStream-SquareTest.c:328] +PASSED: video2.height == 0 [NetStream-SquareTest.c:329] +PASSED: video2.width == 0 [NetStream-SquareTest.c:330] +PASSED: typeof(stream.currentFps) == 'number' [NetStream-SquareTest.c:333] +PASSED: typeof(stream.currentFps) == 'number' [NetStream-SquareTest.c:335] +PASSED: typeof(stream.currentFps) == 'number' [NetStream-SquareTest.c:337] +PASSED: typeof(stream.bufferLength) == 'number' [NetStream-SquareTest.c:340] +PASSED: typeof(stream.bufferLength) == 'number' [NetStream-SquareTest.c:342] +PASSED: typeof(stream.bufferLength) == 'number' [NetStream-SquareTest.c:344] +PASSED: typeof(stream.bufferTime) == 'number' [NetStream-SquareTest.c:347] +PASSED: stream.bufferTime == 2 [NetStream-SquareTest.c:349] +PASSED: stream.bufferTime == 2 [NetStream-SquareTest.c:351] +PASSED: stream.bufferTime == 2 [NetStream-SquareTest.c:353] +PASSED: stream.bufferTime == 2 [NetStream-SquareTest.c:355] +PASSED: stream.bufferTime == 2 [NetStream-SquareTest.c:357] +PASSED: stream.bufferTime == 2 [NetStream-SquareTest.c:359] +PASSED: stream.bufferTime == 2 [NetStream-SquareTest.c:361] +PASSED: typeof(stream.liveDelay) == 'number' [NetStream-SquareTest.c:364] +PASSED: typeof(stream.liveDelay) == 'number' [NetStream-SquareTest.c:366] +PASSED: typeof(stream.time) == 'number' [NetStream-SquareTest.c:369] +PASSED: typeof(stream.time) == 'number' [NetStream-SquareTest.c:371] +PASSED: typeof(stream.bytesLoaded) == 'number' [NetStream-SquareTest.c:374] +PASSED: typeof(stream.bytesLoaded) == 'number' [NetStream-SquareTest.c:376] +PASSED: stream.currentFps == 0 [NetStream-SquareTest.c:378] +PASSED: stream.currentFps == 0 [NetStream-SquareTest.c:388] +PASSED: typeof(stream.attachAudio()) == 'undefined' [NetStream-SquareTest.c:398] +PASSED: typeof(stream.attachVideo()) == 'undefined' [NetStream-SquareTest.c:399] +PASSED: typeof(stream.publish()) == 'undefined' [NetStream-SquareTest.c:400] +PASSED: typeof(stream.send()) == 'undefined' [NetStream-SquareTest.c:401] +PASSED: typeof(stream.receiveAudio()) == 'undefined' [NetStream-SquareTest.c:402] +PASSED: typeof(stream.receiveVideo()) == 'undefined' [NetStream-SquareTest.c:403] +PASSED: video._xscale == 100 [NetStream-SquareTest.c:407] +PASSED: video._yscale == 100 [NetStream-SquareTest.c:408] +PASSED: video._rotation == 0 [NetStream-SquareTest.c:409] +PASSED: video._target == '/video' [NetStream-SquareTest.c:410] +PASSED: video.height == 0 [NetStream-SquareTest.c:411] +PASSED: video.width == 0 [NetStream-SquareTest.c:412] +PASSED: video2.height == 0 [NetStream-SquareTest.c:413] +PASSED: video2.width == 0 [NetStream-SquareTest.c:414] +PASSED: Video.prototype.hasOwnProperty('attachVideo') [NetStream-SquareTest.c:416] +PASSED: Video.prototype.hasOwnProperty('smoothing') [NetStream-SquareTest.c:417] +PASSED: Video.prototype.hasOwnProperty('deblocking') [NetStream-SquareTest.c:418] +PASSED: Video.prototype.hasOwnProperty('clear') [NetStream-SquareTest.c:419] +PASSED: Video.prototype.hasOwnProperty('height') [NetStream-SquareTest.c:420] +PASSED: Video.prototype.hasOwnProperty('width') [NetStream-SquareTest.c:421] +PASSED: !Video.prototype.hasOwnProperty('_alpha') [NetStream-SquareTest.c:423] +PASSED: !Video.prototype.hasOwnProperty('_height') [NetStream-SquareTest.c:424] +PASSED: !Video.prototype.hasOwnProperty('_name') [NetStream-SquareTest.c:425] +PASSED: !Video.prototype.hasOwnProperty('_parent') [NetStream-SquareTest.c:426] +PASSED: !Video.prototype.hasOwnProperty('_rotation') [NetStream-SquareTest.c:427] +PASSED: !Video.prototype.hasOwnProperty('_visible') [NetStream-SquareTest.c:428] +PASSED: !Video.prototype.hasOwnProperty('_width') [NetStream-SquareTest.c:429] +PASSED: !Video.prototype.hasOwnProperty('_x') [NetStream-SquareTest.c:430] +PASSED: !Video.prototype.hasOwnProperty('_xmouse') [NetStream-SquareTest.c:431] +PASSED: !Video.prototype.hasOwnProperty('_xscale') [NetStream-SquareTest.c:432] +PASSED: !Video.prototype.hasOwnProperty('_y') [NetStream-SquareTest.c:433] +PASSED: !Video.prototype.hasOwnProperty('_ymouse') [NetStream-SquareTest.c:434] +PASSED: !Video.prototype.hasOwnProperty('_yscale') [NetStream-SquareTest.c:435] +PASSED: !Video.prototype.hasOwnProperty('_xmouse') [NetStream-SquareTest.c:436] +PASSED: !video.hasOwnProperty('_alpha') [NetStream-SquareTest.c:438] +PASSED: !video.hasOwnProperty('_height') [NetStream-SquareTest.c:439] +PASSED: !video.hasOwnProperty('_name') [NetStream-SquareTest.c:440] +PASSED: !video.hasOwnProperty('_parent') [NetStream-SquareTest.c:441] +PASSED: !video.hasOwnProperty('_rotation') [NetStream-SquareTest.c:442] +PASSED: !video.hasOwnProperty('_visible') [NetStream-SquareTest.c:443] +PASSED: !video.hasOwnProperty('_width') [NetStream-SquareTest.c:444] +PASSED: !video.hasOwnProperty('_x') [NetStream-SquareTest.c:445] +PASSED: !video.hasOwnProperty('_xmouse') [NetStream-SquareTest.c:446] +PASSED: !video.hasOwnProperty('_xscale') [NetStream-SquareTest.c:447] +PASSED: !video.hasOwnProperty('_y') [NetStream-SquareTest.c:448] +PASSED: !video.hasOwnProperty('_ymouse') [NetStream-SquareTest.c:449] +PASSED: !video.hasOwnProperty('_yscale') [NetStream-SquareTest.c:450] +PASSED: !video.hasOwnProperty('_xmouse') [NetStream-SquareTest.c:451] +PASSED: video._x == 100 [NetStream-SquareTest.c:464] +PASSED: Math.round(video._xscale*100)/100 == 120 [NetStream-SquareTest.c:465] +PASSED: Math.round(video._yscale*100)/100 == 120 [NetStream-SquareTest.c:466] +PASSED: Math.round(video._rotation*100)/100 == 45 [NetStream-SquareTest.c:467] +PASSED: typeof(video.hitTest) == 'undefined' [NetStream-SquareTest.c:471] +PASSED: typeof(video.getBounds) == 'undefined' [NetStream-SquareTest.c:472] +The video on the right is an OGG theora stream. It will appear in Gnash, but not the Adobe player +PASSED: true +PASSED: true +PASSED: 2 == 2 +PASSED: code == code +PASSED: level == level +PASSED: 65 == 65 +PASSED: true +PASSED: undefined == undefined +PASSED: 66 == 66 +PASSED: true +PASSED: undefined == undefined +onStatus(NetStream.Play.Start) called +PASSED: No duplicated Play.Start notification +onMetaData: filesize:21482 audiocodecid:2 stereo:false audiosamplesize:16 audiosamplerate:44100 videocodecid:2 framerate:5 videodatarate:0 height:96 width:128 duration:2.299 +PASSED: onMetaData should be notified after Play.Start +PASSED: 1 == 1 (single argument) +PASSED: onMetaData argument sent from square.flv should be instanceof Array +PASSED: 11 == 11 +PASSED: 11 == 11 +PASSED: metadata has length +PASSED: metadata has filesize +PASSED: number == number (filesize is a number) +PASSED: 21482 == 21482 (actual filesize) +PASSED: changed == changed +PASSED: metadata filesize can be deleted +PASSED: metadata has audiocodecid +PASSED: number == number (audiocodecid is a number) +PASSED: 2 == 2 (actual audiocodecid) +PASSED: changed == changed +PASSED: metadata audiocodecid can be deleted +PASSED: metadata has stereo +PASSED: boolean == boolean (stereo is boolean) +PASSED: false == false (actual stereo) +PASSED: changed == changed +PASSED: metadata stereo can be deleted +PASSED: metadata has audiosamplesize +PASSED: number == number (audiosamplesize is a number) +PASSED: 16 == 16 (actual audiosamplesize) +PASSED: changed == changed +PASSED: metadata audiosamplesize can be deleted +PASSED: metadata has audiosamplerate +PASSED: number == number (audiosamplerate is a number) +PASSED: 44100 == 44100 (actual audiosamplerate) +PASSED: changed == changed +PASSED: metadata audiosamplerate can be deleted +PASSED: metadata has videocodecid +PASSED: number == number (videocodecid is a number) +PASSED: 2 == 2 (actual videocodecid) +PASSED: changed == changed +PASSED: metadata videocodecid can be deleted +PASSED: metadata has height +PASSED: number == number (height is a number) +PASSED: 96 == 96 (actual height) +PASSED: changed == changed +PASSED: metadata height can be deleted +PASSED: metadata has width +PASSED: number == number (width is a number) +PASSED: 128 == 128 (actual width) +PASSED: changed == changed +PASSED: metadata width can be deleted +PASSED: metadata has duration +PASSED: number == number (duration is a number) +PASSED: 2.299 == 2.299 (actual duration) +PASSED: changed == changed +PASSED: metadata duration can be deleted +1. Press "p" key + bufferLength:2.273 bytesLoaded:21482 currentFps:0 time:0 +Key down: 112 +2. Verify video hasn't started, then press space to continue. + bufferLength:2.273 bytesLoaded:21482 currentFps:0 time:0 +Key down: 32 +onStatus(NetStream.Buffer.Full) called +onStatus(NetStream.Play.Stop) called +onStatus(NetStream.Buffer.Full) called +onStatus(NetStream.Seek.Complete) called +onStatus(NetStream.Play.Stop) called +PASSED: true +PASSED: 2 == 2 +PASSED: 21482 == 21482 +PASSED: video.height == 96 [NetStream-SquareTest.c:693] +PASSED: video.width == 128 [NetStream-SquareTest.c:694] +PASSED: stream3.time 4151.263 > 4150 +PASSED: metadataNotified == 1 [NetStream-SquareTest.c:710] +PASSED: stopNotified == 2 [NetStream-SquareTest.c:711] +PASSED: startNotified == 1 [NetStream-SquareTest.c:712] +#passed: 197 +#failed: 0 +#total tests run: 197 +onStatus(NetStream.Buffer.Empty) called diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/NetStream-SquareTest/square.flv b/tests/tests/swfs/from_gnash/misc-ming.all/NetStream-SquareTest/square.flv new file mode 100644 index 000000000000..c557b755f9dd Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/NetStream-SquareTest/square.flv differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/NetStream-SquareTest/square.ogg b/tests/tests/swfs/from_gnash/misc-ming.all/NetStream-SquareTest/square.ogg new file mode 100644 index 000000000000..e16b7c633c37 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/NetStream-SquareTest/square.ogg differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/NetStream-SquareTest/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/NetStream-SquareTest/test.swf new file mode 100644 index 000000000000..f0bc48095c54 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/NetStream-SquareTest/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/NetStream-SquareTest/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/NetStream-SquareTest/test.toml new file mode 100644 index 000000000000..33ffb6e70bc7 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/NetStream-SquareTest/test.toml @@ -0,0 +1,3 @@ +# This test has been modified to remove absolute paths +num_ticks = 100 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/PlaceObject2Test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/PlaceObject2Test/output.txt new file mode 100644 index 000000000000..54cb18d0f695 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/PlaceObject2Test/output.txt @@ -0,0 +1,9 @@ +PASSED: Mc1.getDepth() == 0 [PlaceObject2Test.c:96] +PASSED: Mc2.getDepth() == 49151 [PlaceObject2Test.c:97] +PASSED: Mc1._y == 100 [PlaceObject2Test.c:103] +PASSED: Mc2._y == 200 [PlaceObject2Test.c:104] +PASSED: Mc1 == undefined [PlaceObject2Test.c:110] +PASSED: Mc2 == undefined [PlaceObject2Test.c:111] +#passed: 6 +#failed: 0 +#total tests run: 6 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/PlaceObject2Test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/PlaceObject2Test/test.swf new file mode 100644 index 000000000000..201ff5649db4 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/PlaceObject2Test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/PlaceObject2Test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/PlaceObject2Test/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/PlaceObject2Test/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp10/input.json b/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp10/input.json new file mode 100644 index 000000000000..75d1b3a905b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp10/input.json @@ -0,0 +1,84 @@ +[ + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 61.0, + 61.0 + ] + }, + { + "type": "Wait" + }, + { + "type": "MouseDown", + "pos": [ + 61.0, + 61.0 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseUp", + "pos": [ + 61.0, + 61.0 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 61.0, + 61.0 + ] + }, + { + "type": "Wait" + }, + { + "type": "MouseDown", + "pos": [ + 61.0, + 61.0 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseUp", + "pos": [ + 61.0, + 61.0 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "KeyDown", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "KeyUp", + "key": { + "Char": "a" + } + } +] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp10/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp10/output.txt new file mode 100644 index 000000000000..9d923bc0ead8 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp10/output.txt @@ -0,0 +1,25 @@ +1. Click the mouse anywhere! +_level0.clip2.onMouseDown +PASSED: typeof(this) == "movieclip" [./PrototypeEventListeners.as:24] +_level0.clip1.onMouseDown +PASSED: typeof(this) == "movieclip" [./PrototypeEventListeners.as:24] +_level0.Dejagnu.instance1.onMouseDown +PASSED: typeof(this) == "movieclip" [./PrototypeEventListeners.as:24] +_level0.Dejagnu.onMouseDown +PASSED: typeof(this) == "movieclip" [./PrototypeEventListeners.as:24] +PASSED: countMC == 4 [./PrototypeEventListeners.as:66] +2. Click the mouse anywhere! +_level0.clip2.onMouseDown +PASSED: typeof(this) == "movieclip" [./PrototypeEventListeners.as:24] +_level0.Dejagnu.instance1.onMouseDown +PASSED: typeof(this) == "movieclip" [./PrototypeEventListeners.as:24] +_level0.Dejagnu.onMouseDown +PASSED: typeof(this) == "movieclip" [./PrototypeEventListeners.as:24] +PASSED: countMC == 3 [./PrototypeEventListeners.as:80] +3. Press a key! +PASSED: countMC == 0 [./PrototypeEventListeners.as:111] +PASSED: countOtherFunctions == 0 [./PrototypeEventListeners.as:112] +#passed: 11 +#failed: 0 +#total tests run: 11 +END OF TEST diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp10/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp10/test.swf new file mode 100644 index 000000000000..9747fabadb3c Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp10/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp10/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp10/test.toml new file mode 100644 index 000000000000..001ceb14e8ad --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp10/test.toml @@ -0,0 +1,5 @@ +num_frames = 30 +known_failure = true + +[player_options] +version = 10 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp11/input.json b/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp11/input.json new file mode 100644 index 000000000000..75d1b3a905b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp11/input.json @@ -0,0 +1,84 @@ +[ + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 61.0, + 61.0 + ] + }, + { + "type": "Wait" + }, + { + "type": "MouseDown", + "pos": [ + 61.0, + 61.0 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseUp", + "pos": [ + 61.0, + 61.0 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 61.0, + 61.0 + ] + }, + { + "type": "Wait" + }, + { + "type": "MouseDown", + "pos": [ + 61.0, + 61.0 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseUp", + "pos": [ + 61.0, + 61.0 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "KeyDown", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "KeyUp", + "key": { + "Char": "a" + } + } +] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp11/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp11/output.txt new file mode 100644 index 000000000000..9d923bc0ead8 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp11/output.txt @@ -0,0 +1,25 @@ +1. Click the mouse anywhere! +_level0.clip2.onMouseDown +PASSED: typeof(this) == "movieclip" [./PrototypeEventListeners.as:24] +_level0.clip1.onMouseDown +PASSED: typeof(this) == "movieclip" [./PrototypeEventListeners.as:24] +_level0.Dejagnu.instance1.onMouseDown +PASSED: typeof(this) == "movieclip" [./PrototypeEventListeners.as:24] +_level0.Dejagnu.onMouseDown +PASSED: typeof(this) == "movieclip" [./PrototypeEventListeners.as:24] +PASSED: countMC == 4 [./PrototypeEventListeners.as:66] +2. Click the mouse anywhere! +_level0.clip2.onMouseDown +PASSED: typeof(this) == "movieclip" [./PrototypeEventListeners.as:24] +_level0.Dejagnu.instance1.onMouseDown +PASSED: typeof(this) == "movieclip" [./PrototypeEventListeners.as:24] +_level0.Dejagnu.onMouseDown +PASSED: typeof(this) == "movieclip" [./PrototypeEventListeners.as:24] +PASSED: countMC == 3 [./PrototypeEventListeners.as:80] +3. Press a key! +PASSED: countMC == 0 [./PrototypeEventListeners.as:111] +PASSED: countOtherFunctions == 0 [./PrototypeEventListeners.as:112] +#passed: 11 +#failed: 0 +#total tests run: 11 +END OF TEST diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp11/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp11/test.swf new file mode 100644 index 000000000000..9747fabadb3c Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp11/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp11/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp11/test.toml new file mode 100644 index 000000000000..001ceb14e8ad --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/PrototypeEventListeners/fp11/test.toml @@ -0,0 +1,5 @@ +num_frames = 30 +known_failure = true + +[player_options] +version = 10 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/ResolveEventsTest/input.json b/tests/tests/swfs/from_gnash/misc-ming.all/ResolveEventsTest/input.json new file mode 100644 index 000000000000..bc5685e231a2 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/ResolveEventsTest/input.json @@ -0,0 +1,128 @@ +[ + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 155.0, + 155.0 + ] + }, + { + "type": "Wait" + }, + { + "type": "MouseDown", + "pos": [ + 155.0, + 155.0 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseUp", + "pos": [ + 155.0, + 155.0 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 65.0, + 140.0 + ] + }, + { + "type": "Wait" + }, + { + "type": "MouseDown", + "pos": [ + 65.0, + 140.0 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseUp", + "pos": [ + 65.0, + 140.0 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 100.0, + 140.0 + ] + }, + { + "type": "Wait" + }, + { + "type": "MouseDown", + "pos": [ + 100.0, + 140.0 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseUp", + "pos": [ + 100.0, + 140.0 + ], + "btn": "Left" + }, + { + "type": "Wait" + } +] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/ResolveEventsTest/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/ResolveEventsTest/output.txt new file mode 100644 index 000000000000..b7b49799b7c5 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/ResolveEventsTest/output.txt @@ -0,0 +1,15 @@ +Do not touch anything! +PASSED: events.toString() == 'func,onEnterFrame,onRollOver' [ResolveEventsTest.c:139] +PASSED: resolveevents.toString() == 'func,onEnterFrame,onRollOver' [ResolveEventsTest.c:141] +PASSED: events.toString() == 'func,onEnterFrame,onRollOver,onEnterFrame' [ResolveEventsTest.c:146] +PASSED: resolveevents.toString() == 'func,onEnterFrame,onRollOver' [ResolveEventsTest.c:148] +Move over square, click and release! +PASSED: events.toString() == 'func,onEnterFrame,onRollOver,onEnterFrame,onRollOver,onMouseDown,onPress,onMouseUp,onRelease' [ResolveEventsTest.c:161] +PASSED: resolveevents.toString() == 'func,onEnterFrame,onRollOver' [ResolveEventsTest.c:163] +Move out of square, click and release! +PASSED: events.toString() == 'func,onEnterFrame,onRollOver,onEnterFrame,onRollOver,onMouseDown,onPress,onMouseUp,onRelease,onRollOut,onMouseDown,onMouseUp' [ResolveEventsTest.c:172] +PASSED: resolveevents.toString() == 'func,onEnterFrame,onRollOver' [ResolveEventsTest.c:174] +Move the mouse about, then click +PASSED: mevents[0] == 'onMouseMove' [ResolveEventsTest.c:187] +PASSED: resolveevents.length == ressiz [ResolveEventsTest.c:188] +End of test! diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/ResolveEventsTest/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/ResolveEventsTest/test.swf new file mode 100644 index 000000000000..16ba3becdc75 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/ResolveEventsTest/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/ResolveEventsTest/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/ResolveEventsTest/test.toml new file mode 100644 index 000000000000..f37b5d7c925d --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/ResolveEventsTest/test.toml @@ -0,0 +1,4 @@ +num_frames = 30 +known_failure = true +# [NA] The input.json _may_ have wrong "Wait"s here, but we're so wrong that it's hard to be sure. +# It's definitely failing in Ruffle at the time of writing, but the full extent will need to be investigated once the initial failure is fixed diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/RollOverOutTest/input.json b/tests/tests/swfs/from_gnash/misc-ming.all/RollOverOutTest/input.json new file mode 100644 index 000000000000..1d6c9599e8f3 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/RollOverOutTest/input.json @@ -0,0 +1,57 @@ +[ + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 61.0, + 61.0 + ] + }, + { + "type": "Wait" + }, + { + "type": "MouseDown", + "pos": [ + 61.0, + 61.0 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseUp", + "pos": [ + 61.0, + 61.0 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 80.0, + 120.0 + ] + }, + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 80.0, + 270.0 + ] + }, + { + "type": "Wait" + } +] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/RollOverOutTest/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/RollOverOutTest/output.txt new file mode 100644 index 000000000000..1d9189b47506 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/RollOverOutTest/output.txt @@ -0,0 +1,5 @@ +PASSED: visible_mc.hitTest(80, 120, true) [RollOverOutTest.c:244] +PASSED: invisible_mc.hitTest(80, 180, true) [RollOverOutTest.c:246] +PASSED: static_mask.hitTest(80, 240, true) [RollOverOutTest.c:248] +PASSED: ! dynamic_mask.hitTest(80, 280, true) [RollOverOutTest.c:250] +PASSED: maskee.hitTest(80, 280, true) [RollOverOutTest.c:252] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/RollOverOutTest/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/RollOverOutTest/test.swf new file mode 100644 index 000000000000..82a428098a69 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/RollOverOutTest/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/RollOverOutTest/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/RollOverOutTest/test.toml new file mode 100644 index 000000000000..ebfdaa87317b --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/RollOverOutTest/test.toml @@ -0,0 +1 @@ +num_ticks = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/TextSnapshotTest/fp10/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/TextSnapshotTest/fp10/output.txt new file mode 100644 index 000000000000..053f18ddde8d --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/TextSnapshotTest/fp10/output.txt @@ -0,0 +1,132 @@ +PASSED: ts instanceof TextSnapshot [TextSnapshotTest.c:128] +PASSED: ts.getCount() == 64 [TextSnapshotTest.c:129] +PASSED: ts.getText(0, 1) == 'F' [TextSnapshotTest.c:131] +PASSED: ts.getText(3, 3) == 's' [TextSnapshotTest.c:132] +PASSED: ts.getText(-5, 5) == 'First' [TextSnapshotTest.c:133] +PASSED: ts.getText(10, 6) == 'Z' [TextSnapshotTest.c:134] +PASSED: ts.getText(0, 100) == 'First textZweites TextfeldSome more static text here... abcdefgh' [TextSnapshotTest.c:136] +PASSED: typeof(ss) == 'string' [TextSnapshotTest.c:138] +PASSED: ss == 'h' [TextSnapshotTest.c:139] +PASSED: ss.length == 1 [TextSnapshotTest.c:140] +PASSED: ts.getText(0, 100, true) == 'First text +Zweites Textfeld +Some more static text here... abcdefgh' [TextSnapshotTest.c:144] +PASSED: ts.getText(0, 14, true) == 'First text +Zwei' [TextSnapshotTest.c:146] +PASSED: ts.findText(0, '', false) == -1 [TextSnapshotTest.c:148] +PASSED: ts.findText(0, 'f', false) == 0 [TextSnapshotTest.c:149] +PASSED: ts.findText(0, 'f', true) == 22 [TextSnapshotTest.c:150] +PASSED: ts.findText(1, 'Rst', false) == 2 [TextSnapshotTest.c:151] +PASSED: ts.findText(3, 'RSt', false) == -1 [TextSnapshotTest.c:152] +PASSED: ts.findText(100, 'h', false) == -1 [TextSnapshotTest.c:153] +PASSED: ts.findText(64, 'h', false) == -1 [TextSnapshotTest.c:154] +PASSED: ts.findText(-5, 'Zwei', true) == -1 [TextSnapshotTest.c:155] +PASSED: ts.findText(-5, 'gh', true) == -1 [TextSnapshotTest.c:156] +PASSED: ts.getSelectedText() == ' textZweites TextfeldSome' [TextSnapshotTest.c:159] +PASSED: ts.getSelectedText(true) == ' text +Zweites Textfeld +Some' [TextSnapshotTest.c:161] +PASSED: ts.getSelectedText(false) == ' textZweites TextfeldSome' [TextSnapshotTest.c:162] +PASSED: ts.getSelected(0, 4) == false [TextSnapshotTest.c:163] +PASSED: ts.getSelected(1, 9) == true [TextSnapshotTest.c:164] +PASSED: ts.getSelected(-4, 10) == true [TextSnapshotTest.c:165] +PASSED: ts.getSelected(-4, 6) == true [TextSnapshotTest.c:166] +PASSED: ts.getSelected(28, 23) == true [TextSnapshotTest.c:167] +PASSED: ts.getSelected(20, 20) == true [TextSnapshotTest.c:168] +PASSED: ts.getSelected(20, 27) == true [TextSnapshotTest.c:169] +PASSED: ts.getSelected(-3, -1) == false [TextSnapshotTest.c:170] +PASSED: ts.getSelected(30, 31) == false [TextSnapshotTest.c:171] +PASSED: ts.getSelected(0, 5) == false [TextSnapshotTest.c:172] +PASSED: ts.getSelected(40, 45) == false [TextSnapshotTest.c:173] +PASSED: ts.getSelected(31, 34) == false [TextSnapshotTest.c:174] +PASSED: ts.getSelected(0) == undefined [TextSnapshotTest.c:176] +PASSED: ts.getSelected(1) == undefined [TextSnapshotTest.c:177] +PASSED: ts.getSelected(-4) == undefined [TextSnapshotTest.c:178] +PASSED: ts.getSelected(-4) == undefined [TextSnapshotTest.c:179] +PASSED: ts.getSelected(28) == undefined [TextSnapshotTest.c:180] +PASSED: ts.getSelected(20) == undefined [TextSnapshotTest.c:181] +PASSED: ts.getSelectedText(false) == '' [TextSnapshotTest.c:186] +PASSED: ts2.getCount() == 64 [TextSnapshotTest.c:187] +PASSED: ts2.getSelectedText() == '' [TextSnapshotTest.c:188] +PASSED: ts2.getCount() == 64 [TextSnapshotTest.c:190] +PASSED: ts2.getSelectedText() == '' [TextSnapshotTest.c:191] +PASSED: ts2.getSelectedText(false).length == 7 [TextSnapshotTest.c:194] +PASSED: ts.getSelectedText(false).length == 7 [TextSnapshotTest.c:195] +PASSED: ts.getSelectedText(false) == 'st text' [TextSnapshotTest.c:200] +PASSED: typeof(ri) == 'object' [TextSnapshotTest.c:202] +PASSED: ri instanceof Array [TextSnapshotTest.c:203] +PASSED: ri.length == 7 [TextSnapshotTest.c:204] +PASSED: typeof(el) == 'object' [TextSnapshotTest.c:207] +PASSED: !el.hasOwnProperty('indexInRun') [TextSnapshotTest.c:208] +PASSED: el.indexInRun == 5 [TextSnapshotTest.c:209] +PASSED: el.selected == true [TextSnapshotTest.c:210] +PASSED: el.font == 'Bitstream Vera Sans' [TextSnapshotTest.c:211] +PASSED: el.color == 0 [TextSnapshotTest.c:212] +PASSED: el.height == 12 [TextSnapshotTest.c:213] +PASSED: el.matrix_a == 1 [TextSnapshotTest.c:214] +PASSED: el.matrix_b == 0 [TextSnapshotTest.c:215] +PASSED: el.matrix_c == 0 [TextSnapshotTest.c:216] +PASSED: el.matrix_d == 1 [TextSnapshotTest.c:217] +PASSED: el.matrix_tx == 25.95 [TextSnapshotTest.c:218] +PASSED: el.matrix_ty == 200 [TextSnapshotTest.c:219] +PASSED: el.corner0x == 25.95 [TextSnapshotTest.c:220] +PASSED: el.corner0y == 202.8 [TextSnapshotTest.c:221] +PASSED: el.corner1x == 29.75 [TextSnapshotTest.c:222] +PASSED: el.corner1y == 202.8 [TextSnapshotTest.c:223] +PASSED: el.corner2x == 29.75 [TextSnapshotTest.c:224] +PASSED: el.corner2y == 188.85 [TextSnapshotTest.c:225] +PASSED: el.corner3x == 25.95 [TextSnapshotTest.c:226] +PASSED: el.corner3y == 188.85 [TextSnapshotTest.c:227] +PASSED: ri[2].height == 12 [TextSnapshotTest.c:230] +PASSED: ri[3].height == 12 [TextSnapshotTest.c:231] +PASSED: ri[4].height == 12 [TextSnapshotTest.c:232] +PASSED: ri[5].height == 12 [TextSnapshotTest.c:233] +PASSED: ri[6].height == 12 [TextSnapshotTest.c:234] +PASSED: ri[2].selected == true [TextSnapshotTest.c:236] +PASSED: ri[3].selected == true [TextSnapshotTest.c:237] +PASSED: ri[4].selected == true [TextSnapshotTest.c:238] +PASSED: ri[5].selected == true [TextSnapshotTest.c:239] +PASSED: ri[6].selected == false [TextSnapshotTest.c:240] +PASSED: ri[2].matrix_tx == 29.75 [TextSnapshotTest.c:242] +PASSED: ri[2].matrix_ty == 200 [TextSnapshotTest.c:243] +PASSED: ri[3].matrix_tx == 34.4 [TextSnapshotTest.c:244] +PASSED: ri[3].matrix_ty == 200 [TextSnapshotTest.c:245] +PASSED: ri[4].matrix_tx == 41.75 [TextSnapshotTest.c:246] +PASSED: ri[4].matrix_ty == 200 [TextSnapshotTest.c:247] +PASSED: ri[2].corner0x == 29.75 [TextSnapshotTest.c:249] +PASSED: ri[2].corner0y == 202.8 [TextSnapshotTest.c:250] +PASSED: ri[3].corner0x == 34.4 [TextSnapshotTest.c:251] +PASSED: ri[3].corner0y == 202.8 [TextSnapshotTest.c:252] +PASSED: ri[4].corner0x == 41.75 [TextSnapshotTest.c:253] +PASSED: ri[4].corner0y == 202.8 [TextSnapshotTest.c:254] +PASSED: ri[2].corner2y == 188.85 [TextSnapshotTest.c:256] +PASSED: ri[3].corner2y == 188.85 [TextSnapshotTest.c:257] +PASSED: ri[4].corner2y == 188.85 [TextSnapshotTest.c:258] +PASSED: ts2.getSelectedText().length == 10 [TextSnapshotTest.c:262] +PASSED: ri2[0].selected == true [TextSnapshotTest.c:266] +PASSED: ri2[1].selected == true [TextSnapshotTest.c:267] +PASSED: ri2[2].selected == true [TextSnapshotTest.c:268] +PASSED: ri2[3].selected == true [TextSnapshotTest.c:269] +PASSED: ri2[4].selected == true [TextSnapshotTest.c:270] +PASSED: ri2[5].selected == true [TextSnapshotTest.c:271] +PASSED: ri2[6].selected == true [TextSnapshotTest.c:272] +PASSED: ri2[15].selected == false [TextSnapshotTest.c:273] +PASSED: ri2[16].selected == false [TextSnapshotTest.c:274] +PASSED: ri2[17].selected == false [TextSnapshotTest.c:275] +PASSED: ri2[18].selected == false [TextSnapshotTest.c:276] +PASSED: ri2[50].corner2y == 388.85 [TextSnapshotTest.c:278] +PASSED: ri2[50].corner2x == 156.6 [TextSnapshotTest.c:279] +PASSED: ri2[51].corner2y == 388.85 [TextSnapshotTest.c:280] +PASSED: ri2[51].corner2x == 163.95 [TextSnapshotTest.c:281] +PASSED: ri2[50].matrix_tx == 151.65 [TextSnapshotTest.c:283] +PASSED: ri2[51].matrix_tx == 156.55 [TextSnapshotTest.c:284] +PASSED: typeof(ts) == 'object' [TextSnapshotTest.c:287] +PASSED: typeof(t) == 'undefined' [TextSnapshotTest.c:291] +PASSED: typeof(TextSnapshot) == 'undefined' [TextSnapshotTest.c:293] +PASSED: typeof(ts) == 'undefined' [TextSnapshotTest.c:295] +PASSED: typeof(ts) == 'object' [TextSnapshotTest.c:298] +PASSED: typeof(ts) == 'object' [TextSnapshotTest.c:303] +PASSED: typeof(ts) == 'object' [TextSnapshotTest.c:306] +#passed: 124 +#failed: 0 +#total tests run: 124 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/TextSnapshotTest/fp10/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/TextSnapshotTest/fp10/test.swf new file mode 100644 index 000000000000..84a338780310 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/TextSnapshotTest/fp10/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/TextSnapshotTest/fp10/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/TextSnapshotTest/fp10/test.toml new file mode 100644 index 000000000000..001ceb14e8ad --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/TextSnapshotTest/fp10/test.toml @@ -0,0 +1,5 @@ +num_frames = 30 +known_failure = true + +[player_options] +version = 10 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/TextSnapshotTest/fp9/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/TextSnapshotTest/fp9/output.txt new file mode 100644 index 000000000000..af8048bf998c --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/TextSnapshotTest/fp9/output.txt @@ -0,0 +1,132 @@ +PASSED: ts instanceof TextSnapshot [TextSnapshotTest.c:128] +PASSED: ts.getCount() == 64 [TextSnapshotTest.c:129] +PASSED: ts.getText(0, 1) == 'F' [TextSnapshotTest.c:131] +PASSED: ts.getText(3, 3) == 's' [TextSnapshotTest.c:132] +PASSED: ts.getText(-5, 5) == 'First' [TextSnapshotTest.c:133] +PASSED: ts.getText(10, 6) == 'Z' [TextSnapshotTest.c:134] +PASSED: ts.getText(0, 100) == 'First textZweites TextfeldSome more static text here... abcdefgh' [TextSnapshotTest.c:136] +PASSED: typeof(ss) == 'string' [TextSnapshotTest.c:138] +PASSED: ss == 'h' [TextSnapshotTest.c:139] +PASSED: ss.length == 1 [TextSnapshotTest.c:140] +PASSED: ts.getText(0, 100, true) == 'First text +Zweites Textfeld +Some more static text here... abcdefgh' [TextSnapshotTest.c:144] +PASSED: ts.getText(0, 14, true) == 'First text +Zwei' [TextSnapshotTest.c:146] +PASSED: ts.findText(0, '', false) == -1 [TextSnapshotTest.c:148] +PASSED: ts.findText(0, 'f', false) == 0 [TextSnapshotTest.c:149] +PASSED: ts.findText(0, 'f', true) == 22 [TextSnapshotTest.c:150] +PASSED: ts.findText(1, 'Rst', false) == 2 [TextSnapshotTest.c:151] +PASSED: ts.findText(3, 'RSt', false) == -1 [TextSnapshotTest.c:152] +PASSED: ts.findText(100, 'h', false) == -1 [TextSnapshotTest.c:153] +PASSED: ts.findText(64, 'h', false) == -1 [TextSnapshotTest.c:154] +PASSED: ts.findText(-5, 'Zwei', true) == -1 [TextSnapshotTest.c:155] +PASSED: ts.findText(-5, 'gh', true) == -1 [TextSnapshotTest.c:156] +PASSED: ts.getSelectedText() == ' textZweites TextfeldSome' [TextSnapshotTest.c:159] +PASSED: ts.getSelectedText(true) == ' text +Zweites Textfeld +Some' [TextSnapshotTest.c:161] +PASSED: ts.getSelectedText(false) == ' textZweites TextfeldSome' [TextSnapshotTest.c:162] +PASSED: ts.getSelected(0, 4) == false [TextSnapshotTest.c:163] +PASSED: ts.getSelected(1, 9) == true [TextSnapshotTest.c:164] +PASSED: ts.getSelected(-4, 10) == true [TextSnapshotTest.c:165] +PASSED: ts.getSelected(-4, 6) == true [TextSnapshotTest.c:166] +PASSED: ts.getSelected(28, 23) == true [TextSnapshotTest.c:167] +PASSED: ts.getSelected(20, 20) == true [TextSnapshotTest.c:168] +PASSED: ts.getSelected(20, 27) == true [TextSnapshotTest.c:169] +PASSED: ts.getSelected(-3, -1) == false [TextSnapshotTest.c:170] +PASSED: ts.getSelected(30, 31) == false [TextSnapshotTest.c:171] +PASSED: ts.getSelected(0, 5) == false [TextSnapshotTest.c:172] +PASSED: ts.getSelected(40, 45) == false [TextSnapshotTest.c:173] +PASSED: ts.getSelected(31, 34) == false [TextSnapshotTest.c:174] +PASSED: ts.getSelected(0) == undefined [TextSnapshotTest.c:176] +PASSED: ts.getSelected(1) == undefined [TextSnapshotTest.c:177] +PASSED: ts.getSelected(-4) == undefined [TextSnapshotTest.c:178] +PASSED: ts.getSelected(-4) == undefined [TextSnapshotTest.c:179] +PASSED: ts.getSelected(28) == undefined [TextSnapshotTest.c:180] +PASSED: ts.getSelected(20) == undefined [TextSnapshotTest.c:181] +PASSED: ts.getSelectedText(false) == '' [TextSnapshotTest.c:186] +PASSED: ts2.getCount() == 64 [TextSnapshotTest.c:187] +PASSED: ts2.getSelectedText() == '' [TextSnapshotTest.c:188] +PASSED: ts2.getCount() == 64 [TextSnapshotTest.c:190] +PASSED: ts2.getSelectedText() == '' [TextSnapshotTest.c:191] +PASSED: ts2.getSelectedText(false).length == 7 [TextSnapshotTest.c:194] +PASSED: ts.getSelectedText(false).length == 7 [TextSnapshotTest.c:195] +PASSED: ts.getSelectedText(false) == 'st text' [TextSnapshotTest.c:200] +PASSED: typeof(ri) == 'object' [TextSnapshotTest.c:202] +PASSED: ri instanceof Array [TextSnapshotTest.c:203] +PASSED: ri.length == 7 [TextSnapshotTest.c:204] +PASSED: typeof(el) == 'object' [TextSnapshotTest.c:207] +PASSED: !el.hasOwnProperty('indexInRun') [TextSnapshotTest.c:208] +PASSED: el.indexInRun == 5 [TextSnapshotTest.c:209] +PASSED: el.selected == true [TextSnapshotTest.c:210] +PASSED: el.font == 'Bitstream Vera Sans' [TextSnapshotTest.c:211] +PASSED: el.color == 0 [TextSnapshotTest.c:212] +PASSED: el.height == 12 [TextSnapshotTest.c:213] +PASSED: el.matrix_a == 1 [TextSnapshotTest.c:214] +PASSED: el.matrix_b == 0 [TextSnapshotTest.c:215] +PASSED: el.matrix_c == 0 [TextSnapshotTest.c:216] +PASSED: el.matrix_d == 1 [TextSnapshotTest.c:217] +FAILED: expected: 25.95 obtained: 25.95 [TextSnapshotTest.c:218] +PASSED: el.matrix_ty == 200 [TextSnapshotTest.c:219] +FAILED: expected: 25.95 obtained: 25.95 [TextSnapshotTest.c:220] +PASSED: el.corner0y == 202.8 [TextSnapshotTest.c:221] +PASSED: el.corner1x == 29.75 [TextSnapshotTest.c:222] +PASSED: el.corner1y == 202.8 [TextSnapshotTest.c:223] +PASSED: el.corner2x == 29.75 [TextSnapshotTest.c:224] +FAILED: expected: 188.85 obtained: 188.85 [TextSnapshotTest.c:225] +FAILED: expected: 25.95 obtained: 25.95 [TextSnapshotTest.c:226] +FAILED: expected: 188.85 obtained: 188.85 [TextSnapshotTest.c:227] +PASSED: ri[2].height == 12 [TextSnapshotTest.c:230] +PASSED: ri[3].height == 12 [TextSnapshotTest.c:231] +PASSED: ri[4].height == 12 [TextSnapshotTest.c:232] +PASSED: ri[5].height == 12 [TextSnapshotTest.c:233] +PASSED: ri[6].height == 12 [TextSnapshotTest.c:234] +PASSED: ri[2].selected == true [TextSnapshotTest.c:236] +PASSED: ri[3].selected == true [TextSnapshotTest.c:237] +PASSED: ri[4].selected == true [TextSnapshotTest.c:238] +PASSED: ri[5].selected == true [TextSnapshotTest.c:239] +PASSED: ri[6].selected == false [TextSnapshotTest.c:240] +PASSED: ri[2].matrix_tx == 29.75 [TextSnapshotTest.c:242] +PASSED: ri[2].matrix_ty == 200 [TextSnapshotTest.c:243] +PASSED: ri[3].matrix_tx == 34.4 [TextSnapshotTest.c:244] +PASSED: ri[3].matrix_ty == 200 [TextSnapshotTest.c:245] +PASSED: ri[4].matrix_tx == 41.75 [TextSnapshotTest.c:246] +PASSED: ri[4].matrix_ty == 200 [TextSnapshotTest.c:247] +PASSED: ri[2].corner0x == 29.75 [TextSnapshotTest.c:249] +PASSED: ri[2].corner0y == 202.8 [TextSnapshotTest.c:250] +PASSED: ri[3].corner0x == 34.4 [TextSnapshotTest.c:251] +PASSED: ri[3].corner0y == 202.8 [TextSnapshotTest.c:252] +PASSED: ri[4].corner0x == 41.75 [TextSnapshotTest.c:253] +PASSED: ri[4].corner0y == 202.8 [TextSnapshotTest.c:254] +FAILED: expected: 188.85 obtained: 188.85 [TextSnapshotTest.c:256] +FAILED: expected: 188.85 obtained: 188.85 [TextSnapshotTest.c:257] +FAILED: expected: 188.85 obtained: 188.85 [TextSnapshotTest.c:258] +PASSED: ts2.getSelectedText().length == 10 [TextSnapshotTest.c:262] +PASSED: ri2[0].selected == true [TextSnapshotTest.c:266] +PASSED: ri2[1].selected == true [TextSnapshotTest.c:267] +PASSED: ri2[2].selected == true [TextSnapshotTest.c:268] +PASSED: ri2[3].selected == true [TextSnapshotTest.c:269] +PASSED: ri2[4].selected == true [TextSnapshotTest.c:270] +PASSED: ri2[5].selected == true [TextSnapshotTest.c:271] +PASSED: ri2[6].selected == true [TextSnapshotTest.c:272] +PASSED: ri2[15].selected == false [TextSnapshotTest.c:273] +PASSED: ri2[16].selected == false [TextSnapshotTest.c:274] +PASSED: ri2[17].selected == false [TextSnapshotTest.c:275] +PASSED: ri2[18].selected == false [TextSnapshotTest.c:276] +PASSED: ri2[50].corner2y == 388.85 [TextSnapshotTest.c:278] +FAILED: expected: 156.6 obtained: 156.6 [TextSnapshotTest.c:279] +PASSED: ri2[51].corner2y == 388.85 [TextSnapshotTest.c:280] +FAILED: expected: 163.95 obtained: 163.95 [TextSnapshotTest.c:281] +PASSED: ri2[50].matrix_tx == 151.65 [TextSnapshotTest.c:283] +PASSED: ri2[51].matrix_tx == 156.55 [TextSnapshotTest.c:284] +PASSED: typeof(ts) == 'object' [TextSnapshotTest.c:287] +PASSED: typeof(t) == 'undefined' [TextSnapshotTest.c:291] +PASSED: typeof(TextSnapshot) == 'undefined' [TextSnapshotTest.c:293] +PASSED: typeof(ts) == 'undefined' [TextSnapshotTest.c:295] +PASSED: typeof(ts) == 'object' [TextSnapshotTest.c:298] +PASSED: typeof(ts) == 'object' [TextSnapshotTest.c:303] +PASSED: typeof(ts) == 'object' [TextSnapshotTest.c:306] +#passed: 114 +#failed: 10 +#total tests run: 124 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/TextSnapshotTest/fp9/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/TextSnapshotTest/fp9/test.swf new file mode 100644 index 000000000000..84a338780310 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/TextSnapshotTest/fp9/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/TextSnapshotTest/fp9/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/TextSnapshotTest/fp9/test.toml new file mode 100644 index 000000000000..3565afec1bad --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/TextSnapshotTest/fp9/test.toml @@ -0,0 +1,5 @@ +num_frames = 30 +known_failure = true + +[player_options] +version = 9 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/VarAndCharClashTest/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/VarAndCharClashTest/output.txt new file mode 100644 index 000000000000..9a8967da39ea --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/VarAndCharClashTest/output.txt @@ -0,0 +1,13 @@ +PASSED: true +PASSED: movieclip == movieclip +PASSED: movieclip == movieclip +PASSED: true +PASSED: object == object +PASSED: == +PASSED: movieclip == movieclip +PASSED: movieclip == movieclip +PASSED: movieclip == movieclip +PASSED: number == number +#passed: 10 +#failed: 0 +#total tests run: 10 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/VarAndCharClashTest/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/VarAndCharClashTest/test.swf new file mode 100644 index 000000000000..709e961ca363 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/VarAndCharClashTest/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/VarAndCharClashTest/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/VarAndCharClashTest/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/VarAndCharClashTest/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/Version4Loader/Version5Loaded.swf b/tests/tests/swfs/from_gnash/misc-ming.all/Version4Loader/Version5Loaded.swf new file mode 100644 index 000000000000..b461fea1bc63 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/Version4Loader/Version5Loaded.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/Version4Loader/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/Version4Loader/output.txt new file mode 100644 index 000000000000..a2a301cbdc8b --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/Version4Loader/output.txt @@ -0,0 +1,11 @@ +[ debug-22403-05c7ba106] +SWF + +PASSED: typeof(unescape) == "function" [./Version5Loaded.as:5] +PASSED: typeof(escape) == "function" [./Version5Loaded.as:6] +PASSED: typeof(isNaN) == "function" [./Version5Loaded.as:7] +PASSED: typeof(isFinite) == "function" [./Version5Loaded.as:8] +PASSED: typeof(parseFloat) == "function" [./Version5Loaded.as:9] +PASSED: typeof(parseInt) == "function" [./Version5Loaded.as:10] +PASSED: typeof(NaN) == "number" [./Version5Loaded.as:11] +PASSED: typeof(Infinity) == "number" [./Version5Loaded.as:12] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/Version4Loader/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/Version4Loader/test.swf new file mode 100644 index 000000000000..5c8f4a0263af Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/Version4Loader/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/Version4Loader/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/Version4Loader/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/Version4Loader/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/Video-EmbedSquareTest/output.expected.png b/tests/tests/swfs/from_gnash/misc-ming.all/Video-EmbedSquareTest/output.expected.png new file mode 100644 index 000000000000..6d14fdce3ef2 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/Video-EmbedSquareTest/output.expected.png differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/Video-EmbedSquareTest/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/Video-EmbedSquareTest/output.txt new file mode 100644 index 000000000000..55a7461e767d --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/Video-EmbedSquareTest/output.txt @@ -0,0 +1,2 @@ +_level0.vid +You should still see the video frame. Click to replay diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/Video-EmbedSquareTest/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/Video-EmbedSquareTest/test.swf new file mode 100644 index 000000000000..d1c6a5e6fc2e Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/Video-EmbedSquareTest/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/Video-EmbedSquareTest/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/Video-EmbedSquareTest/test.toml new file mode 100644 index 000000000000..2a3d01f5b6b4 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/Video-EmbedSquareTest/test.toml @@ -0,0 +1,9 @@ +num_ticks = 20 + +[image_comparisons.output] +tolerance = 5 +trigger = 1 + +[player_options] +with_renderer = { optional = false, sample_count = 1 } +with_video = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest3/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest3/output.txt new file mode 100644 index 000000000000..e1289142e3bc --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest3/output.txt @@ -0,0 +1,62 @@ +onEnterFrame +Frame 2 actions: undefined +ctor: 0 +static unload: undefined +dynamic load: 0 +onEnterFrame +Frame 3 actions: undefined +Frame 2 actions: undefined +onEnterFrame +Frame 3 actions: 0 +Frame 2 actions: 0 +ctor: 1 +static unload: 0 +dynamic unload: 0 +dynamic load: 1 +onEnterFrame +Frame 3 actions: 0 +Frame 2 actions: 0 +onEnterFrame +Frame 3 actions: 1 +Frame 2 actions: 1 +ctor: 2 +static unload: 1 +dynamic unload: 1 +dynamic load: 2 +onEnterFrame +Frame 3 actions: 1 +Frame 2 actions: 1 +onEnterFrame +Frame 3 actions: 2 +PASSED: _global.arr.length == 23 [ActionOrderTest3.c:174] +PASSED: _global.arr[0] == 'Frame 2 actions: undefined' [ActionOrderTest3.c:175] +PASSED: _global.arr[1] == 'ctor: 0' [ActionOrderTest3.c:176] +PASSED: _global.arr[2] == 'static unload: undefined' [ActionOrderTest3.c:177] +PASSED: _global.arr[3] == 'dynamic load: 0' [ActionOrderTest3.c:178] +PASSED: _global.arr[4] == 'Frame 3 actions: undefined' [ActionOrderTest3.c:179] +PASSED: _global.arr[5] == 'Frame 2 actions: undefined' [ActionOrderTest3.c:180] +PASSED: _global.arr[6] == 'Frame 3 actions: 0' [ActionOrderTest3.c:181] +PASSED: _global.arr[7] == 'Frame 2 actions: 0' [ActionOrderTest3.c:182] +PASSED: _global.arr[8] == 'ctor: 1' [ActionOrderTest3.c:183] +PASSED: _global.arr[9] == 'static unload: 0' [ActionOrderTest3.c:184] +PASSED: _global.arr[10] == 'dynamic unload: 0' [ActionOrderTest3.c:185] +PASSED: _global.arr[11] == 'dynamic load: 1' [ActionOrderTest3.c:186] +PASSED: _global.arr[12] == 'Frame 3 actions: 0' [ActionOrderTest3.c:187] +PASSED: _global.arr[13] == 'Frame 2 actions: 0' [ActionOrderTest3.c:188] +PASSED: _global.arr[14] == 'Frame 3 actions: 1' [ActionOrderTest3.c:189] +PASSED: _global.arr[15] == 'Frame 2 actions: 1' [ActionOrderTest3.c:190] +PASSED: _global.arr[16] == 'ctor: 2' [ActionOrderTest3.c:191] +PASSED: _global.arr[17] == 'static unload: 1' [ActionOrderTest3.c:192] +PASSED: _global.arr[18] == 'dynamic unload: 1' [ActionOrderTest3.c:193] +PASSED: _global.arr[19] == 'dynamic load: 2' [ActionOrderTest3.c:194] +PASSED: _global.arr[20] == 'Frame 3 actions: 1' [ActionOrderTest3.c:195] +PASSED: _global.arr[21] == 'Frame 2 actions: 1' [ActionOrderTest3.c:196] +PASSED: _global.arr[22] == 'Frame 3 actions: 2' [ActionOrderTest3.c:197] +PASSED: _global.arr.toString() == 'Frame 2 actions: undefined,ctor: 0,static unload: undefined,dynamic load: 0,Frame 3 actions: undefined,Frame 2 actions: undefined,Frame 3 actions: 0,Frame 2 actions: 0,ctor: 1,static unload: 0,dynamic unload: 0,dynamic load: 1,Frame 3 actions: 0,Frame 2 actions: 0,Frame 3 actions: 1,Frame 2 actions: 1,ctor: 2,static unload: 1,dynamic unload: 1,dynamic load: 2,Frame 3 actions: 1,Frame 2 actions: 1,Frame 3 actions: 2' [ActionOrderTest3.c:199] +ctor: 3 +static unload: 2 +dynamic unload: 2 +dynamic load: 3 +#passed: 25 +#failed: 0 +#total tests run: 25 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest3/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest3/test.swf new file mode 100644 index 000000000000..e746ef9f0b0f Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest3/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest3/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest3/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest3/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest4/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest4/output.txt new file mode 100644 index 000000000000..1a4fa5fc8267 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest4/output.txt @@ -0,0 +1,64 @@ +onEnterFrame +Frame 2 actions: undefined +static load: undefined +ctor: 0 +static load: 0 +dynamic load: 0 +onEnterFrame +Frame 3 actions: 0 +Frame 2 actions: 0 +onEnterFrame +Frame 3 actions: 0 +Frame 2 actions: 0 +ctor: 1 +dynamic unload: 0 +static load: 1 +dynamic load: 1 +onEnterFrame +Frame 3 actions: 0 +Frame 2 actions: 0 +onEnterFrame +Frame 3 actions: 1 +Frame 2 actions: 1 +ctor: 2 +dynamic unload: 1 +static load: 2 +dynamic load: 2 +onEnterFrame +Frame 3 actions: 1 +Frame 2 actions: 1 +onEnterFrame +Frame 3 actions: 2 +PASSED: _global.arr.length == 24 [ActionOrderTest4.c:175] +PASSED: _global.arr[0] == 'Frame 2 actions: undefined' [ActionOrderTest4.c:176] +PASSED: _global.arr[1] == 'static load: undefined' [ActionOrderTest4.c:177] +PASSED: _global.arr[2] == 'ctor: 0' [ActionOrderTest4.c:178] +PASSED: _global.arr[3] == 'static load: 0' [ActionOrderTest4.c:179] +PASSED: _global.arr[4] == 'dynamic load: 0' [ActionOrderTest4.c:180] +PASSED: _global.arr[5] == 'Frame 3 actions: 0' [ActionOrderTest4.c:181] +PASSED: _global.arr[6] == 'Frame 2 actions: 0' [ActionOrderTest4.c:182] +PASSED: _global.arr[7] == 'Frame 3 actions: 0' [ActionOrderTest4.c:183] +PASSED: _global.arr[8] == 'Frame 2 actions: 0' [ActionOrderTest4.c:184] +PASSED: _global.arr[9] == 'ctor: 1' [ActionOrderTest4.c:185] +PASSED: _global.arr[10] == 'dynamic unload: 0' [ActionOrderTest4.c:186] +PASSED: _global.arr[11] == 'static load: 1' [ActionOrderTest4.c:187] +PASSED: _global.arr[12] == 'dynamic load: 1' [ActionOrderTest4.c:188] +PASSED: _global.arr[13] == 'Frame 3 actions: 0' [ActionOrderTest4.c:189] +PASSED: _global.arr[14] == 'Frame 2 actions: 0' [ActionOrderTest4.c:190] +PASSED: _global.arr[15] == 'Frame 3 actions: 1' [ActionOrderTest4.c:191] +PASSED: _global.arr[16] == 'Frame 2 actions: 1' [ActionOrderTest4.c:192] +PASSED: _global.arr[17] == 'ctor: 2' [ActionOrderTest4.c:193] +PASSED: _global.arr[18] == 'dynamic unload: 1' [ActionOrderTest4.c:194] +PASSED: _global.arr[19] == 'static load: 2' [ActionOrderTest4.c:195] +PASSED: _global.arr[20] == 'dynamic load: 2' [ActionOrderTest4.c:196] +PASSED: _global.arr[21] == 'Frame 3 actions: 1' [ActionOrderTest4.c:197] +PASSED: _global.arr[22] == 'Frame 2 actions: 1' [ActionOrderTest4.c:198] +PASSED: _global.arr[23] == 'Frame 3 actions: 2' [ActionOrderTest4.c:199] +PASSED: _global.arr.toString() == 'Frame 2 actions: undefined,static load: undefined,ctor: 0,static load: 0,dynamic load: 0,Frame 3 actions: 0,Frame 2 actions: 0,Frame 3 actions: 0,Frame 2 actions: 0,ctor: 1,dynamic unload: 0,static load: 1,dynamic load: 1,Frame 3 actions: 0,Frame 2 actions: 0,Frame 3 actions: 1,Frame 2 actions: 1,ctor: 2,dynamic unload: 1,static load: 2,dynamic load: 2,Frame 3 actions: 1,Frame 2 actions: 1,Frame 3 actions: 2' [ActionOrderTest4.c:200] +ctor: 3 +dynamic unload: 2 +static load: 3 +dynamic load: 3 +#passed: 26 +#failed: 0 +#total tests run: 26 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest4/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest4/test.swf new file mode 100644 index 000000000000..1aad66af7b68 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest4/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest4/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest4/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest4/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest5/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest5/output.txt new file mode 100644 index 000000000000..6113a2bf450f --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest5/output.txt @@ -0,0 +1,51 @@ +onEnterFrame +Frame 2 actions: undefined +ctor: 0 +onEnterFrame +Frame 3 actions: 0 +dynamic load: 0 +Frame 2 actions: 0 +onEnterFrame +Frame 3 actions: 0 +Frame 2 actions: 0 +ctor: 1 +dynamic unload: 0 +onEnterFrame +Frame 3 actions: 0 +dynamic load: 1 +Frame 2 actions: 0 +onEnterFrame +Frame 3 actions: 1 +Frame 2 actions: 1 +ctor: 2 +dynamic unload: 1 +onEnterFrame +Frame 3 actions: 1 +dynamic load: 2 +Frame 2 actions: 1 +onEnterFrame +Frame 3 actions: 2 +PASSED: _global.arr.length == 20 [ActionOrderTest5.c:167] +PASSED: _global.arr[0] == 'Frame 2 actions: undefined' [ActionOrderTest5.c:168] +PASSED: _global.arr[1] == 'ctor: 0' [ActionOrderTest5.c:169] +PASSED: _global.arr[2] == 'Frame 3 actions: 0' [ActionOrderTest5.c:170] +PASSED: _global.arr[3] == 'dynamic load: 0' [ActionOrderTest5.c:171] +PASSED: _global.arr[4] == 'Frame 2 actions: 0' [ActionOrderTest5.c:172] +PASSED: _global.arr[5] == 'Frame 3 actions: 0' [ActionOrderTest5.c:173] +PASSED: _global.arr[6] == 'Frame 2 actions: 0' [ActionOrderTest5.c:174] +PASSED: _global.arr[7] == 'ctor: 1' [ActionOrderTest5.c:175] +PASSED: _global.arr[8] == 'dynamic unload: 0' [ActionOrderTest5.c:176] +PASSED: _global.arr[9] == 'Frame 3 actions: 0' [ActionOrderTest5.c:177] +PASSED: _global.arr[11] == 'Frame 2 actions: 0' [ActionOrderTest5.c:178] +PASSED: _global.arr[12] == 'Frame 3 actions: 1' [ActionOrderTest5.c:179] +PASSED: _global.arr[13] == 'Frame 2 actions: 1' [ActionOrderTest5.c:180] +PASSED: _global.arr[14] == 'ctor: 2' [ActionOrderTest5.c:181] +PASSED: _global.arr[15] == 'dynamic unload: 1' [ActionOrderTest5.c:182] +PASSED: _global.arr[16] == 'Frame 3 actions: 1' [ActionOrderTest5.c:183] +PASSED: _global.arr[17] == 'dynamic load: 2' [ActionOrderTest5.c:184] +PASSED: _global.arr[18] == 'Frame 2 actions: 1' [ActionOrderTest5.c:185] +PASSED: _global.arr[19] == 'Frame 3 actions: 2' [ActionOrderTest5.c:186] +PASSED: _global.arr.toString() == 'Frame 2 actions: undefined,ctor: 0,Frame 3 actions: 0,dynamic load: 0,Frame 2 actions: 0,Frame 3 actions: 0,Frame 2 actions: 0,ctor: 1,dynamic unload: 0,Frame 3 actions: 0,dynamic load: 1,Frame 2 actions: 0,Frame 3 actions: 1,Frame 2 actions: 1,ctor: 2,dynamic unload: 1,Frame 3 actions: 1,dynamic load: 2,Frame 2 actions: 1,Frame 3 actions: 2' [ActionOrderTest5.c:188] +#passed: 21 +#failed: 0 +#total tests run: 21 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest5/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest5/test.swf new file mode 100644 index 000000000000..5137038a1f9c Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest5/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest5/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest5/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/ActionOrderTest5/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/PlaceAndRemove/fp10/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/PlaceAndRemove/fp10/output.txt new file mode 100644 index 000000000000..2ee31552ca90 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/PlaceAndRemove/fp10/output.txt @@ -0,0 +1,96 @@ +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/PlaceAndRemove/fp10/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/PlaceAndRemove/fp10/test.swf new file mode 100644 index 000000000000..4f0afb2c75b2 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/PlaceAndRemove/fp10/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/PlaceAndRemove/fp10/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/PlaceAndRemove/fp10/test.toml new file mode 100644 index 000000000000..001ceb14e8ad --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/PlaceAndRemove/fp10/test.toml @@ -0,0 +1,5 @@ +num_frames = 30 +known_failure = true + +[player_options] +version = 10 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/PlaceAndRemove/fp9/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/PlaceAndRemove/fp9/output.txt new file mode 100644 index 000000000000..2accd2a7d297 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/PlaceAndRemove/fp9/output.txt @@ -0,0 +1,91 @@ +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done +Done diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/PlaceAndRemove/fp9/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/PlaceAndRemove/fp9/test.swf new file mode 100644 index 000000000000..4f0afb2c75b2 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/PlaceAndRemove/fp9/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/PlaceAndRemove/fp9/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/PlaceAndRemove/fp9/test.toml new file mode 100644 index 000000000000..3565afec1bad --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/PlaceAndRemove/fp9/test.toml @@ -0,0 +1,5 @@ +num_frames = 30 +known_failure = true + +[player_options] +version = 9 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_extend_test/fp10/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_extend_test/fp10/output.txt new file mode 100644 index 000000000000..c68634400cce --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_extend_test/fp10/output.txt @@ -0,0 +1,32 @@ +as in frame1 of root +PASSED: typeOf(_root.mc_red.onLoad) == 'undefined' [action_execution_order_extend_test.c:107] +as in frame2 of root +PASSED: typeOf(_root.mc_red) == 'movieclip' [action_execution_order_extend_test.c:144] +PASSED: typeOf(_root.mc_red.func) == 'undefined' [action_execution_order_extend_test.c:145] +PASSED: typeOf(_root.mc_red.mc_blu) == 'movieclip' [action_execution_order_extend_test.c:146] +mc_red clip load executed +mc_red load executed +as in frame1 of mc_red +as in frame1 of mc_blu +mc_blu enterFrame executed +as in frame2 of mc_blu +mc_red enterFrame executed +as in frame2 of mc_red +as in frame3 of root +PASSED: typeOf(_root.mc_red.func) == 'function' [action_execution_order_extend_test.c:154] +mc_blu enterFrame executed +as in frame4 of root +PASSED: _root.x1 == 'as_in_mc_blu' [action_execution_order_extend_test.c:163] +PASSED: _root.x2 == 'as_in_root' [action_execution_order_extend_test.c:165] +mc_blu user-defined UNLOAD executed +mc_red unload executed +PASSED: _root.y1 == 'mc_red onLoad called' [action_execution_order_extend_test.c:169] +PASSED: _root.y1bis == 'mc_red onClipLoad called' [action_execution_order_extend_test.c:170] +PASSED: _root.y2 == 'as_in_root' [action_execution_order_extend_test.c:172] +PASSED: _root.y3 == 'mc_red onUnload called' [action_execution_order_extend_test.c:178] +PASSED: _root.y4 == undefined [action_execution_order_extend_test.c:180] +FAILED: expected: 'as_in_root' obtained: mc_blu onEnterFrame called [action_execution_order_extend_test.c:182] +PASSED: _root.y6 == 'mc_blu onUnload called' [action_execution_order_extend_test.c:184] +#passed: 13 +#failed: 1 +#total tests run: 14 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_extend_test/fp10/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_extend_test/fp10/test.swf new file mode 100644 index 000000000000..87221826216d Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_extend_test/fp10/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_extend_test/fp10/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_extend_test/fp10/test.toml new file mode 100644 index 000000000000..001ceb14e8ad --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_extend_test/fp10/test.toml @@ -0,0 +1,5 @@ +num_frames = 30 +known_failure = true + +[player_options] +version = 10 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_extend_test/fp9/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_extend_test/fp9/output.txt new file mode 100644 index 000000000000..85d45401df8f --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_extend_test/fp9/output.txt @@ -0,0 +1,31 @@ +as in frame1 of root +PASSED: typeOf(_root.mc_red.onLoad) == 'undefined' [action_execution_order_extend_test.c:107] +as in frame2 of root +PASSED: typeOf(_root.mc_red) == 'movieclip' [action_execution_order_extend_test.c:144] +PASSED: typeOf(_root.mc_red.func) == 'undefined' [action_execution_order_extend_test.c:145] +PASSED: typeOf(_root.mc_red.mc_blu) == 'movieclip' [action_execution_order_extend_test.c:146] +mc_red clip load executed +mc_red load executed +as in frame1 of mc_red +as in frame1 of mc_blu +mc_blu enterFrame executed +as in frame2 of mc_blu +mc_red enterFrame executed +as in frame2 of mc_red +as in frame3 of root +PASSED: typeOf(_root.mc_red.func) == 'function' [action_execution_order_extend_test.c:154] +as in frame4 of root +PASSED: _root.x1 == 'as_in_mc_blu' [action_execution_order_extend_test.c:163] +PASSED: _root.x2 == 'as_in_root' [action_execution_order_extend_test.c:165] +mc_blu user-defined UNLOAD executed +mc_red unload executed +PASSED: _root.y1 == 'mc_red onLoad called' [action_execution_order_extend_test.c:169] +PASSED: _root.y1bis == 'mc_red onClipLoad called' [action_execution_order_extend_test.c:170] +PASSED: _root.y2 == 'as_in_root' [action_execution_order_extend_test.c:172] +PASSED: _root.y3 == 'mc_red onUnload called' [action_execution_order_extend_test.c:178] +PASSED: _root.y4 == undefined [action_execution_order_extend_test.c:180] +PASSED: _root.y5 == 'as_in_root' [action_execution_order_extend_test.c:182] +PASSED: _root.y6 == 'mc_blu onUnload called' [action_execution_order_extend_test.c:184] +#passed: 14 +#failed: 0 +#total tests run: 14 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_extend_test/fp9/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_extend_test/fp9/test.swf new file mode 100644 index 000000000000..87221826216d Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_extend_test/fp9/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_extend_test/fp9/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_extend_test/fp9/test.toml new file mode 100644 index 000000000000..3565afec1bad --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_extend_test/fp9/test.toml @@ -0,0 +1,5 @@ +num_frames = 30 +known_failure = true + +[player_options] +version = 9 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test/fp10/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test/fp10/output.txt new file mode 100644 index 000000000000..a2d8a2f50d25 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test/fp10/output.txt @@ -0,0 +1,19 @@ +as in frame0 of root +as in frame1 of root +PASSED: typeOf(_root.mc_red) == 'movieclip' [action_execution_order_test.c:107] +PASSED: typeOf(_root.mc_red.func) == 'undefined' [action_execution_order_test.c:108] +PASSED: typeOf(_root.mc_red.mc_blu) == 'movieclip' [action_execution_order_test.c:109] +as in frame1 of mc_red +as in frame1 of mc_blu +as in frame2 of mc_blu +as in frame2 of mc_red +onUnload of mc_blu +as in frame2 of root +PASSED: typeOf(_root.mc_red.func) == 'function' [action_execution_order_test.c:112] +PASSED: _root.x1 == 'as_in_mc_blu' [action_execution_order_test.c:116] +PASSED: _root.x2 == 'as_in_root' [action_execution_order_test.c:118] +PASSED: _root.x3 == 'as_in_mc_blu_unload' [action_execution_order_test.c:119] +PASSED: _root.mc_unload_executed == 1 [action_execution_order_test.c:120] +#passed: 8 +#failed: 0 +#total tests run: 8 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test/fp10/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test/fp10/test.swf new file mode 100644 index 000000000000..dc68a3310c32 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test/fp10/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test/fp10/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test/fp10/test.toml new file mode 100644 index 000000000000..001ceb14e8ad --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test/fp10/test.toml @@ -0,0 +1,5 @@ +num_frames = 30 +known_failure = true + +[player_options] +version = 10 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test/fp9/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test/fp9/output.txt new file mode 100644 index 000000000000..2852df0742d1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test/fp9/output.txt @@ -0,0 +1,18 @@ +as in frame0 of root +as in frame1 of root +PASSED: typeOf(_root.mc_red) == 'movieclip' [action_execution_order_test.c:107] +PASSED: typeOf(_root.mc_red.func) == 'undefined' [action_execution_order_test.c:108] +PASSED: typeOf(_root.mc_red.mc_blu) == 'movieclip' [action_execution_order_test.c:109] +as in frame1 of mc_red +as in frame1 of mc_blu +as in frame2 of mc_red +onUnload of mc_blu +as in frame2 of root +PASSED: typeOf(_root.mc_red.func) == 'function' [action_execution_order_test.c:112] +PASSED: _root.x1 == 'as_in_mc_blu' [action_execution_order_test.c:116] +PASSED: _root.x2 == 'as_in_root' [action_execution_order_test.c:118] +PASSED: _root.x3 == 'as_in_mc_blu_unload' [action_execution_order_test.c:119] +PASSED: _root.mc_unload_executed == 1 [action_execution_order_test.c:120] +#passed: 8 +#failed: 0 +#total tests run: 8 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test/fp9/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test/fp9/test.swf new file mode 100644 index 000000000000..dc68a3310c32 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test/fp9/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test/fp9/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test/fp9/test.toml new file mode 100644 index 000000000000..ba78ed65a2a4 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test/fp9/test.toml @@ -0,0 +1,4 @@ +num_frames = 30 + +[player_options] +version = 9 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test1/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test1/output.txt new file mode 100644 index 000000000000..ac8f24536af1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test1/output.txt @@ -0,0 +1,10 @@ +PASSED: typeof(_root.mc_red) == 'movieclip' [action_execution_order_test1.c:69] +PASSED: _root.typeofMcBluFromMcRedLoad == 'movieclip' [action_execution_order_test1.c:113] +PASSED: _root.typeofMcRedFromMcRedLoad == 'movieclip' [action_execution_order_test1.c:116] +PASSED: _root.typeofMcRedFromMcBluLoad == 'movieclip' [action_execution_order_test1.c:119] +PASSED: _root.typeofMcBluFromMcBluLoad == 'movieclip' [action_execution_order_test1.c:122] +PASSED: _root.mcBluLoadCalls == 1 [action_execution_order_test1.c:125] +PASSED: _root.mcRedLoadCalls == 1 [action_execution_order_test1.c:126] +#passed: 7 +#failed: 0 +#total tests run: 7 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test1/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test1/test.swf new file mode 100644 index 000000000000..f11ed43e4f33 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test1/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test1/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test1/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test1/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test11/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test11/output.txt new file mode 100644 index 000000000000..afd82333be0f --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test11/output.txt @@ -0,0 +1,32 @@ +mc1 onLoad called +mc2 onLoad called +mc2 onEnterFrame called +mc1 onEnterFrame called +mc11 onLoad called +mc11 onEnterFrame called +mc2 onEnterFrame called +mc21 onLoad called +mc1 onEnterFrame called +mc21 onEnterFrame called +mc11 onEnterFrame called +mc2 onEnterFrame called +mc1 onEnterFrame called +mc12 onLoad called +mc12 onEnterFrame called +mc21 onEnterFrame called +mc11 onEnterFrame called +mc2 onEnterFrame called +mc1 onEnterFrame called +mc11 onUnload called +mc12 onUnload called +mc1 onUnload called +mc21 onUnload called +mc2 onUnload called +PASSED: _root.loadOrder == '0+1+2+3+4+5+' [action_execution_order_test11.c:235] +PASSED: _root.enterFrameOrder == '0+2+1+3+2+1+4+3+2+1+5+4+3+2+1+' [action_execution_order_test11.c:236] +PASSED: _root.unloadOrder == '0+1+2+3+4+5+' [action_execution_order_test11.c:237] +PASSED: _root.doActionOrder == '0+1+2+3+4+5+' [action_execution_order_test11.c:238] +PASSED: _root.asOrder == '0+1+2+3+4+5+6+3+8+4+10+6+3+4+14+15+25+10+26+6+27+3+28+4+29+20+21+22+23+24+' [action_execution_order_test11.c:239] +#passed: 5 +#failed: 0 +#total tests run: 5 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test11/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test11/test.swf new file mode 100644 index 000000000000..646c197d09d1 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test11/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test11/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test11/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test11/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test2/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test2/output.txt new file mode 100644 index 000000000000..190ded244f9f --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test2/output.txt @@ -0,0 +1,5 @@ +PASSED: _root.x1 == 'depth10+depth12+depth11+' [action_execution_order_test2.c:113] +PASSED: _root.x2 == 'depth11+depth12+depth10+depth9+depth13+' [action_execution_order_test2.c:141] +#passed: 2 +#failed: 0 +#total tests run: 2 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test2/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test2/test.swf new file mode 100644 index 000000000000..f501e71fee09 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test2/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test2/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test2/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test2/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test3/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test3/output.txt new file mode 100644 index 000000000000..9d61211b9d85 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test3/output.txt @@ -0,0 +1,4 @@ +PASSED: _root.x1 == 'as_in_DoAction1+as_in_DoAction2+onLoadRed1+onLoadRed2+as_in_DoAction3+onUnloadRed1+onUnloadRed2+' [action_execution_order_test3.c:106] +#passed: 1 +#failed: 0 +#total tests run: 1 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test3/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test3/test.swf new file mode 100644 index 000000000000..60be04e82560 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test3/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test3/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test3/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test3/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test4/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test4/output.txt new file mode 100644 index 000000000000..1de3513dbbe4 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test4/output.txt @@ -0,0 +1,26 @@ +_root onLoad called +mc1 Construct called +mc2 Construct called +mc3 Construct called +mc1 Load called +actions in 1st frame of mc1 +mc2 Load called +actions in 1st frame of mc2 +mc3 Load called +actions in 1st frame of mc3 +mc3 EnterFrame called +actions in 2nd frame of mc3 +mc2 EnterFrame called +actions in 2nd frame of mc2 +mc1 EnterFrame called +actions in 2nd frame of mc1 +PASSED: _root.x3 == 'enterFrame_called+_root_frm2_as+enterFrame_called+_root_frm3_as+' [action_execution_order_test4.c:216] +mc1 Unload called +mc2 Unload called +mc3 Unload called +PASSED: _root.x0 == '01+02+03+' [action_execution_order_test4.c:227] +PASSED: _root.x1 == '1+2+3+4+5+6+7+8+9+10+11+12+13+14+15+' [action_execution_order_test4.c:228] +PASSED: _root.x2 == 'as_start+as_end+load_called+' [action_execution_order_test4.c:229] +#passed: 4 +#failed: 0 +#total tests run: 4 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test4/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test4/test.swf new file mode 100644 index 000000000000..7a8418ccedae Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test4/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test4/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test4/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test4/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test5/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test5/output.txt new file mode 100644 index 000000000000..ebae82574ba1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test5/output.txt @@ -0,0 +1,35 @@ +mc12 onInitialize called +PASSED: _level0.mc1.mc12 == _level0.mc1.mc12 +PASSED: [object Object] == [object Object] +PASSED: [object Object] == [object Object] +PASSED: [object Object] == [object Object] +PASSED: [object Object] == [object Object] +mc1211 onInitialize called +PASSED: [object Object] == [object Object] +PASSED: [object Object] == [object Object] +PASSED: [object Object] == [object Object] +mc12 onConstruct called +PASSED: _level0.mc1.mc12 == _level0.mc1.mc12 +PASSED: [object Object] == [object Object] +PASSED: [object Object] == [object Object] +PASSED: [object Object] == [object Object] +PASSED: [object Object] == [object Object] +mc1 onLoad called +mc11 onLoad called +mc12 onLoad called +mc121 onLoad called +mc1211 onLoad called +mc1211 onEnterFrame called +mc121 onEnterFrame called +mc12 onEnterFrame called +mc11 onEnterFrame called +mc1 onEnterFrame called +mc1211 onUnload called +mc121 onUnload called +mc12 onUnload called +mc11 onUnload called +mc1 onUnload called +PASSED: _root.x1 == '1+2+3+4+5+6+7+8+9+10+11+12+13+14+15+' [action_execution_order_test5.c:253] +#passed: 14 +#failed: 0 +#total tests run: 14 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test5/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test5/test.swf new file mode 100644 index 000000000000..d069dee611bd Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test5/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test5/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test5/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test5/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test6/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test6/output.txt new file mode 100644 index 000000000000..4f57345c88fe --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test6/output.txt @@ -0,0 +1,24 @@ +mc1 Construct called +mc2 Construct called +mc3 Construct called +mc1 Load called +mc2 Load called +mc1 Unload called +mc2 Unload called +mc3 Load called +mc3 Unload called +mc1 Construct called +mc2 Construct called +mc1 Load called +actions in 1st frame of mc1 +mc2 Load called +actions in 1st frame of mc2 +mc3 Construct called +mc1 Unload called +mc2 Unload called +mc3 Load called +mc3 Unload called +PASSED: _root.check_result == '1+2+3+4+5+6+7+8+9+1+2+4+x+5+xx+' [action_execution_order_test6.c:229] +#passed: 1 +#failed: 0 +#total tests run: 1 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test6/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test6/test.swf new file mode 100644 index 000000000000..6fe63e62c5f5 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test6/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test6/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test6/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test6/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test7/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test7/output.txt new file mode 100644 index 000000000000..28e51578fa09 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test7/output.txt @@ -0,0 +1,7 @@ +PASSED: 2 == 2 +PASSED: 1 == 1 +PASSED: _root.x == 1 [action_execution_order_test7.c:76] +PASSED: typeof(mc) == 'undefined' [action_execution_order_test7.c:77] +#passed: 4 +#failed: 0 +#total tests run: 4 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test7/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test7/test.swf new file mode 100644 index 000000000000..1d0a8ba70819 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test7/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test7/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test7/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test7/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test8-v5/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test8-v5/output.txt new file mode 100644 index 000000000000..a551a624bafa --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test8-v5/output.txt @@ -0,0 +1,11 @@ +root frame 2 +root frame 3. About to call gotoAndPlay(2). +root frame 2. About to call gotoAndPlay(4) +root frame 4 +PASSED: typeof(_root.x) == 'undefined' [action_execution_order_test8.c:115] +about to invoke _root.gotoAndStop(6) +PASSED: _root.x == 200 [action_execution_order_test8.c:144] +root frame 6 +#passed: 2 +#failed: 0 +#total tests run: 2 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test8-v5/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test8-v5/test.swf new file mode 100644 index 000000000000..2105892a27d1 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test8-v5/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test8-v5/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test8-v5/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test8-v5/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test8-v6/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test8-v6/output.txt new file mode 100644 index 000000000000..a551a624bafa --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test8-v6/output.txt @@ -0,0 +1,11 @@ +root frame 2 +root frame 3. About to call gotoAndPlay(2). +root frame 2. About to call gotoAndPlay(4) +root frame 4 +PASSED: typeof(_root.x) == 'undefined' [action_execution_order_test8.c:115] +about to invoke _root.gotoAndStop(6) +PASSED: _root.x == 200 [action_execution_order_test8.c:144] +root frame 6 +#passed: 2 +#failed: 0 +#total tests run: 2 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test8-v6/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test8-v6/test.swf new file mode 100644 index 000000000000..92ff1a0ee13a Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test8-v6/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test8-v6/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test8-v6/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test8-v6/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test9/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test9/output.txt new file mode 100644 index 000000000000..2c12f136f5d4 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test9/output.txt @@ -0,0 +1,4 @@ +PASSED: typeof(_root.x) == 'undefined' [action_execution_order_test9.c:98] +#passed: 1 +#failed: 0 +#total tests run: 1 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test9/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test9/test.swf new file mode 100644 index 000000000000..29c915a73fb7 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test9/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test9/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test9/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/action_order/action_execution_order_test9/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/attachExtImported/attachImported.swf b/tests/tests/swfs/from_gnash/misc-ming.all/attachExtImported/attachImported.swf new file mode 100644 index 000000000000..83fe279c640e Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/attachExtImported/attachImported.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/attachExtImported/attachMovieTest.swf b/tests/tests/swfs/from_gnash/misc-ming.all/attachExtImported/attachMovieTest.swf new file mode 100644 index 000000000000..dfc2b2b33172 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/attachExtImported/attachMovieTest.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/attachExtImported/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/attachExtImported/output.txt new file mode 100644 index 000000000000..babbc9a6f2de --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/attachExtImported/output.txt @@ -0,0 +1,2 @@ +PASSED: 60.1 == 60.1 +END_OF_TEST diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/attachExtImported/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/attachExtImported/test.swf new file mode 100644 index 000000000000..0c209ffcb1d7 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/attachExtImported/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/attachExtImported/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/attachExtImported/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/attachExtImported/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/attachImported/attachMovieTest.swf b/tests/tests/swfs/from_gnash/misc-ming.all/attachImported/attachMovieTest.swf new file mode 100644 index 000000000000..dfc2b2b33172 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/attachImported/attachMovieTest.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/attachImported/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/attachImported/output.txt new file mode 100644 index 000000000000..babbc9a6f2de --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/attachImported/output.txt @@ -0,0 +1,2 @@ +PASSED: 60.1 == 60.1 +END_OF_TEST diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/attachImported/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/attachImported/test.swf new file mode 100644 index 000000000000..83fe279c640e Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/attachImported/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/attachImported/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/attachImported/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/attachImported/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/attachMovieLoopingTest/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/attachMovieLoopingTest/output.txt new file mode 100644 index 000000000000..3d17871d1d4c --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/attachMovieLoopingTest/output.txt @@ -0,0 +1,41 @@ +hello redsquare +PASSED: 0 == 0 +PASSED: 100 == 100 +PASSED: 60.1 == 60.1 +PASSED: undefined == undefined +PASSED: 0 == 0 +Depth is 0 +Next counter is 1 +hello redsquare +PASSED: 70 == 70 +PASSED: 99 == 99 +PASSED: 25 == 25 +PASSED: 15 == 15 +PASSED: 6 == 6 +PASSED: 70 == 70 +PASSED: 15 == 15 +Depth is 70 +Next counter is 2 +hello redsquare +PASSED: 140 == 140 +PASSED: 99 == 99 +PASSED: 42 == 42 +PASSED: 25 == 25 +PASSED: 6 == 6 +PASSED: 140 == 140 +PASSED: 25 == 25 +Depth is 140 +Next counter is 3 +hello redsquare +PASSED: 210 == 210 +PASSED: 99 == 99 +PASSED: 58 == 58 +PASSED: 35 == 35 +PASSED: 6 == 6 +PASSED: 210 == 210 +PASSED: 35 == 35 +Depth is 210 +Next counter is 4 +#passed: 26 +#failed: 0 +#total tests run: 26 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/attachMovieLoopingTest/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/attachMovieLoopingTest/test.swf new file mode 100644 index 000000000000..1c00e8d1611f Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/attachMovieLoopingTest/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/attachMovieLoopingTest/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/attachMovieLoopingTest/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/attachMovieLoopingTest/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/attachMovieTest/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/attachMovieTest/output.txt new file mode 100644 index 000000000000..b425e368ef64 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/attachMovieTest/output.txt @@ -0,0 +1,12 @@ +PASSED: square0._x == 0 [attachMovieTest.c:173] +PASSED: square1._x == 70 [attachMovieTest.c:183] +PASSED: square2._x == 140 [attachMovieTest.c:193] +PASSED: square3._x == 210 [attachMovieTest.c:203] +_level0.butatt +_level0.butatt +PASSED: butatt.f == undefined [attachMovieTest.c:222] +PASSED: butatt.t == undefined [attachMovieTest.c:223] +PASSED: butatt.s == 37 [attachMovieTest.c:224] +#passed: 7 +#failed: 0 +#total tests run: 7 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/attachMovieTest/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/attachMovieTest/test.swf new file mode 100644 index 000000000000..dfc2b2b33172 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/attachMovieTest/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/attachMovieTest/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/attachMovieTest/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/attachMovieTest/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/callFunction_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/callFunction_test/output.txt new file mode 100644 index 000000000000..8060ec2fb9d1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/callFunction_test/output.txt @@ -0,0 +1,11 @@ +PASSED: _root.x1 == 1 [callFunction_test.c:148] +PASSED: _root.x2 == _root.mc1.mc11 [callFunction_test.c:149] +PASSED: _root.x3 == 1 [callFunction_test.c:150] +PASSED: _root.x4 == 0 [callFunction_test.c:151] +PASSED: _root.x5 == 1 [callFunction_test.c:152] +PASSED: _root.x6 == _root.mc1 [callFunction_test.c:153] +PASSED: _root.x7 == 1 [callFunction_test.c:154] +PASSED: _root.x8 == 1 [callFunction_test.c:155] +#passed: 8 +#failed: 0 +#total tests run: 8 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/callFunction_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/callFunction_test/test.swf new file mode 100644 index 000000000000..0533583e529c Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/callFunction_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/callFunction_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/callFunction_test/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/callFunction_test/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/consecutive_goto_frame_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/consecutive_goto_frame_test/output.txt new file mode 100644 index 000000000000..125f11af67c9 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/consecutive_goto_frame_test/output.txt @@ -0,0 +1,12 @@ +frm2 of root - gotoAndStop(3) +frm1 of mc_red - gotoAndStop(2) +PASSED: as_in_frm1_of_mc_red == as_in_frm1_of_mc_red +frm3 of root - gotoAndStop(4) +frm2 of mc_red - gotoAndStop(3) +PASSED: as_in_frm2_of_mc_red == as_in_frm2_of_mc_red +frm4 of root - gotoAndStop(5) +frm3 of mc_red - gotoAndStop(4) +PASSED: mc_red.x == 'as_in_frm3_of_mc_red' [consecutive_goto_frame_test.c:114] +#passed: 3 +#failed: 0 +#total tests run: 3 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/consecutive_goto_frame_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/consecutive_goto_frame_test/test.swf new file mode 100644 index 000000000000..7ce1529759c7 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/consecutive_goto_frame_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/consecutive_goto_frame_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/consecutive_goto_frame_test/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/consecutive_goto_frame_test/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test/output.txt new file mode 100644 index 000000000000..6cc1c90a175c --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test/output.txt @@ -0,0 +1,111 @@ +Test placement of static and dynamic objects at different depth ranges. +Characters placed in *reserved* zones will not be removed + +WARNING: Adobe flash player 9 seems to fail this test, but flash player 7 succeeds. + Remember this before blaming Gnash for breaking compatibility ;) + +PASSED: typeof(staticmc) == 'movieclip' [displaylist_depths_test.c:173] +PASSED: staticmc.getDepth() == -16381 [displaylist_depths_test.c:174] +PASSED: typeof(dynamicmc) == 'movieclip' [displaylist_depths_test.c:175] +PASSED: dynamicmc.getDepth() == 3 [displaylist_depths_test.c:176] +PASSED: typeof(dynamicmc_2000) == 'movieclip' [displaylist_depths_test.c:177] +PASSED: dynamicmc_2000.getDepth() == -2000 [displaylist_depths_test.c:178] +PASSED: typeof(dynamicmc_30000) == 'movieclip' [displaylist_depths_test.c:179] +PASSED: dynamicmc_30000.getDepth() == -30000 [displaylist_depths_test.c:180] +PASSED: typeof(dynamicmc0) == 'movieclip' [displaylist_depths_test.c:181] +PASSED: dynamicmc0.getDepth() == 0 [displaylist_depths_test.c:182] +PASSED: typeof(dynamicmc1048575) == 'movieclip' [displaylist_depths_test.c:183] +PASSED: dynamicmc1048575.getDepth() == 1048575 [displaylist_depths_test.c:184] +PASSED: typeof(dynamicmc1048576) == 'movieclip' [displaylist_depths_test.c:185] +PASSED: dynamicmc1048576.getDepth() == 1048576 [displaylist_depths_test.c:186] +PASSED: typeof(dynamicmc2130690045) == 'movieclip' [displaylist_depths_test.c:187] +PASSED: dynamicmc2130690045.getDepth() == 2130690045 [displaylist_depths_test.c:188] +PASSED: typeof(staticmc0) == 'movieclip' [displaylist_depths_test.c:189] +PASSED: staticmc0.getDepth() == -16384 [displaylist_depths_test.c:190] +PASSED: typeof(staticmc_dup) == 'movieclip' [displaylist_depths_test.c:209] +PASSED: staticmc_dup.getDepth() == 2000 [displaylist_depths_test.c:210] +PASSED: typeof(dynamicmc_dup) == 'movieclip' [displaylist_depths_test.c:211] +PASSED: dynamicmc_dup.getDepth() == -2001 [displaylist_depths_test.c:212] +PASSED: typeof(dynamicmc_2000_dup) == 'movieclip' [displaylist_depths_test.c:213] +PASSED: dynamicmc_2000_dup.getDepth() == 2002 [displaylist_depths_test.c:214] +PASSED: typeof(dynamicmc_30000_dup) == 'movieclip' [displaylist_depths_test.c:215] +PASSED: dynamicmc_30000_dup.getDepth() == 2003 [displaylist_depths_test.c:216] +PASSED: typeof(dynamicmc0_dup) == 'movieclip' [displaylist_depths_test.c:217] +PASSED: dynamicmc0_dup.getDepth() == -2004 [displaylist_depths_test.c:218] +PASSED: typeof(dynamicmc1048575_dup) == 'movieclip' [displaylist_depths_test.c:219] +PASSED: dynamicmc1048575_dup.getDepth() == -2005 [displaylist_depths_test.c:220] +PASSED: typeof(dynamicmc1048576_dup) == 'movieclip' [displaylist_depths_test.c:221] +PASSED: dynamicmc1048576_dup.getDepth() == 2006 [displaylist_depths_test.c:222] +PASSED: typeof(dynamicmc2130690045_dup) == 'movieclip' [displaylist_depths_test.c:223] +PASSED: dynamicmc2130690045_dup.getDepth() == 2007 [displaylist_depths_test.c:224] +PASSED: typeof(staticmc0_dup_fake) == 'undefined' [displaylist_depths_test.c:225] +PASSED: typeof(staticmc0_dup) == 'movieclip' [displaylist_depths_test.c:226] +PASSED: staticmc0_dup.getDepth() == -2008 [displaylist_depths_test.c:227] +PASSED: staticmc_dup._width == staticmc._width [displaylist_depths_test.c:232] +PASSED: parseInt(staticmc_dup._width/10) == 7 [displaylist_depths_test.c:233] +PASSED: typeof(staticmc.child) == 'movieclip' [displaylist_depths_test.c:234] +PASSED: typeof(staticmc_dup.child) == 'movieclip' [displaylist_depths_test.c:235] +PASSED: dynamicmc_dup._width == dynamicmc._width [displaylist_depths_test.c:238] +PASSED: parseInt(dynamicmc_dup._width/10) == 6 [displaylist_depths_test.c:239] +PASSED: typeof(dynamicmc.child) == 'movieclip' [displaylist_depths_test.c:240] +PASSED: typeof(dynamicmc_dup.child) == 'undefined' [displaylist_depths_test.c:241] +PASSED: dynamicmc_2000_dup._width == dynamicmc_2000._width [displaylist_depths_test.c:243] +PASSED: parseInt(dynamicmc_2000_dup._width/10) == 6 [displaylist_depths_test.c:244] +PASSED: typeof(dynamicmc_2000.child) == 'movieclip' [displaylist_depths_test.c:245] +PASSED: typeof(dynamicmc_2000_dup.child) == 'undefined' [displaylist_depths_test.c:246] +PASSED: dynamicmc_30000_dup._width == dynamicmc_30000._width [displaylist_depths_test.c:248] +PASSED: parseInt(dynamicmc_30000_dup._width/10) == 6 [displaylist_depths_test.c:249] +PASSED: typeof(dynamicmc_30000.child) == 'movieclip' [displaylist_depths_test.c:250] +PASSED: typeof(dynamicmc_30000_dup.child) == 'undefined' [displaylist_depths_test.c:251] +PASSED: dynamicmc0_dup._width == dynamicmc0._width [displaylist_depths_test.c:254] +PASSED: parseInt(dynamicmc0_dup._width/10) == 6 [displaylist_depths_test.c:255] +PASSED: typeof(dynamicmc0.child) == 'movieclip' [displaylist_depths_test.c:256] +PASSED: typeof(dynamicmc0_dup.child) == 'undefined' [displaylist_depths_test.c:257] +PASSED: dynamicmc1048575_dup._width == dynamicmc1048575._width [displaylist_depths_test.c:260] +PASSED: parseInt(dynamicmc1048575_dup._width/10) == 6 [displaylist_depths_test.c:261] +PASSED: typeof(dynamicmc1048575.child) == 'movieclip' [displaylist_depths_test.c:262] +PASSED: typeof(dynamicmc1048575_dup.child) == 'undefined' [displaylist_depths_test.c:263] +PASSED: dynamicmc1048576_dup._width == dynamicmc1048576._width [displaylist_depths_test.c:265] +PASSED: parseInt(dynamicmc1048576._width/10) == 6 [displaylist_depths_test.c:266] +PASSED: typeof(dynamicmc1048576.child) == 'movieclip' [displaylist_depths_test.c:267] +PASSED: typeof(dynamicmc1048576_dup.child) == 'undefined' [displaylist_depths_test.c:268] +PASSED: dynamicmc2130690045_dup._width == dynamicmc2130690045._width [displaylist_depths_test.c:270] +PASSED: parseInt(dynamicmc2130690045._width/10) == 6 [displaylist_depths_test.c:271] +PASSED: typeof(dynamicmc2130690045.child) == 'movieclip' [displaylist_depths_test.c:272] +PASSED: typeof(dynamicmc2130690045_dup.child) == 'undefined' [displaylist_depths_test.c:273] +PASSED: staticmc0_dup._width == staticmc0._width [displaylist_depths_test.c:276] +PASSED: parseInt(staticmc0._width/10) == 7 [displaylist_depths_test.c:277] +PASSED: typeof(staticmc0.child) == 'movieclip' [displaylist_depths_test.c:278] +PASSED: typeof(staticmc0_dup.child) == 'movieclip' [displaylist_depths_test.c:279] +PASSED: typeof(staticmc) == 'movieclip' [displaylist_depths_test.c:305] +PASSED: typeof(dynamicmc) == 'undefined' [displaylist_depths_test.c:306] +PASSED: typeof(dynamicmc_2000) == 'movieclip' [displaylist_depths_test.c:307] +PASSED: typeof(dynamicmc_30000) == 'movieclip' [displaylist_depths_test.c:308] +PASSED: typeof(dynamicmc0) == 'undefined' [displaylist_depths_test.c:309] +PASSED: typeof(dynamicmc1048575) == 'undefined' [displaylist_depths_test.c:310] +PASSED: typeof(dynamicmc1048576) == 'movieclip' [displaylist_depths_test.c:311] +PASSED: typeof(dynamicmc2130690045) == 'movieclip' [displaylist_depths_test.c:312] +PASSED: typeof(staticmc0) == 'movieclip' [displaylist_depths_test.c:313] +PASSED: typeof(staticmc_dup) == 'undefined' [displaylist_depths_test.c:316] +PASSED: typeof(dynamicmc_dup) == 'movieclip' [displaylist_depths_test.c:317] +PASSED: typeof(dynamicmc_2000_dup) == 'undefined' [displaylist_depths_test.c:318] +PASSED: typeof(dynamicmc_30000_dup) == 'undefined' [displaylist_depths_test.c:319] +PASSED: typeof(dynamicmc0_dup) == 'movieclip' [displaylist_depths_test.c:320] +PASSED: typeof(dynamicmc1048575_dup) == 'movieclip' [displaylist_depths_test.c:321] +PASSED: typeof(dynamicmc1048576_dup) == 'undefined' [displaylist_depths_test.c:322] +PASSED: typeof(dynamicmc2130690045_dup) == 'undefined' [displaylist_depths_test.c:323] +PASSED: typeof(staticmc0_dup) == 'movieclip' [displaylist_depths_test.c:324] +PASSED: staticmc.getDepth() == 1000 [displaylist_depths_test.c:338] +PASSED: dynamicmc_2000.getDepth() == 1001 [displaylist_depths_test.c:339] +PASSED: dynamicmc1048576.getDepth() == 1002 [displaylist_depths_test.c:340] +FAILED: expected: 1003 obtained: 2130690045 [displaylist_depths_test.c:343] +PASSED: staticmc0.getDepth() == 1004 [displaylist_depths_test.c:344] +PASSED: dynamicmc_30000.getDepth() == -30000 [displaylist_depths_test.c:346] +PASSED: typeof(staticmc) == 'undefined' [displaylist_depths_test.c:356] +PASSED: typeof(dynamicmc_2000) == 'undefined' [displaylist_depths_test.c:357] +PASSED: typeof(dynamicmc1048576) == 'undefined' [displaylist_depths_test.c:358] +FAILED: expected: 'undefined' obtained: movieclip [displaylist_depths_test.c:362] +PASSED: typeof(staticmc0) == 'undefined' [displaylist_depths_test.c:365] +#passed: 100 +#failed: 2 +#total tests run: 102 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test/test.swf new file mode 100644 index 000000000000..1a843cf8c913 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test10/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test10/output.txt new file mode 100644 index 000000000000..10758be39bc9 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test10/output.txt @@ -0,0 +1,10 @@ +_level0.static3 onClipConstruct +PASSED: movieclip == movieclip +_root.depth3Constructed set to 1 +PASSED: -16381 == -16381 +PASSED: undefined == undefined +PASSED: 1 == 1 +PASSED: undefined == undefined +#passed: 5 +#failed: 0 +#total tests run: 5 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test10/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test10/test.swf new file mode 100644 index 000000000000..d00fc575abc4 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test10/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test10/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test10/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test10/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test11/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test11/output.txt new file mode 100644 index 000000000000..69ff3cbb77dd --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test11/output.txt @@ -0,0 +1,15 @@ +_level0.static1 onClipConstruct +PASSED: movieclip == movieclip +_root.depth3Constructed set to 1 +PASSED: undefined == undefined +_level0.static2 onClipConstruct +PASSED: movieclip == movieclip +_root.depth3Constructed set to 2 +PASSED: undefined == undefined +PASSED: movieclip == movieclip +PASSED: 2 == 2 +PASSED: undefined == undefined +PASSED: movieclip == movieclip +#passed: 8 +#failed: 0 +#total tests run: 8 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test11/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test11/test.swf new file mode 100644 index 000000000000..103fb16903a3 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test11/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test11/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test11/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test11/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test2/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test2/output.txt new file mode 100644 index 000000000000..336ff1092751 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test2/output.txt @@ -0,0 +1,31 @@ +_level0.static3 onClipConstruct +PASSED: movieclip == movieclip +_root.depth3Constructed set to 1 +PASSED: 10 == 10 +PASSED: guess == guess +PASSED: -16381 == -16381 +PASSED: 50 == 50 +PASSED: -16381 == -16381 +PASSED: guess == guess +PASSED: 200 == 200 +PASSED: -16381 == -16381 +PASSED: 10 == 10 +PASSED: guess == guess +PASSED: guess == guess +right after gotoAndStop() +_level0.static3 onClipConstruct +PASSED: movieclip == movieclip +_root.depth3Constructed set to 2 +PASSED: undefined == undefined +PASSED: guess == guess +PASSED: 10 == 10 +PASSED: movieclip == movieclip +PASSED: movieclip == movieclip +PASSED: -16381 == -16381 +PASSED: 50 == 50 +PASSED: 2 == 2 +#passed: 21 +#failed: 0 +#total tests run: 21 +PASSED: 50 == 50 +PASSED: -16381 == -16381 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test2/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test2/test.swf new file mode 100644 index 000000000000..e4c54967ddd0 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test2/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test2/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test2/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test2/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test3/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test3/output.txt new file mode 100644 index 000000000000..87641fa372c0 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test3/output.txt @@ -0,0 +1,32 @@ +_level0.static3 onClipConstruct +PASSED: movieclip == movieclip +_root.depth3Constructed set to 1 +PASSED: 10 == 10 +PASSED: guess == guess +PASSED: -16381 == -16381 +PASSED: 50 == 50 +PASSED: -16381 == -16381 +PASSED: guess == guess +PASSED: 200 == 200 +PASSED: -16381 == -16381 +PASSED: -10 == -10 +PASSED: guess == guess +PASSED: guess == guess +PASSED: undefined == undefined +_level0.static3 onClipConstruct +PASSED: movieclip == movieclip +_root.depth3Constructed set to 2 +PASSED: undefined == undefined +PASSED: movieclip == movieclip +PASSED: 50 == 50 +PASSED: _level0.static3 == _level0.static3 +PASSED: movieclip == movieclip +PASSED: undefined == undefined +PASSED: -16381 == -16381 +PASSED: 50 == 50 +PASSED: 2 == 2 +#passed: 23 +#failed: 0 +#total tests run: 23 +PASSED: 50 == 50 +PASSED: -16381 == -16381 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test3/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test3/test.swf new file mode 100644 index 000000000000..962d27363373 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test3/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test3/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test3/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test3/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test4/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test4/output.txt new file mode 100644 index 000000000000..a3e21d6267ea --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test4/output.txt @@ -0,0 +1,26 @@ +_level0.static3 onClipConstruct +PASSED: movieclip == movieclip +_root.depth3Constructed set to 1 +PASSED: 10 == 10 +PASSED: guess == guess +PASSED: -16381 == -16381 +PASSED: 50 == 50 +PASSED: -16381 == -16381 +PASSED: guess == guess +PASSED: 200 == 200 +PASSED: -16381 == -16381 +PASSED: guess == guess +PASSED: guess == guess +PASSED: -16381 == -16381 +PASSED: 50 == 50 +PASSED: guess == guess +PASSED: -16381 == -16381 +PASSED: movieclip == movieclip +PASSED: 50 == 50 +PASSED: _level0.static3 == _level0.static3 +PASSED: 1 == 1 +#passed: 19 +#failed: 0 +#total tests run: 19 +PASSED: 50 == 50 +PASSED: -16381 == -16381 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test4/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test4/test.swf new file mode 100644 index 000000000000..6bcc10a4e32f Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test4/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test4/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test4/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test4/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test5/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test5/output.txt new file mode 100644 index 000000000000..23e591341c9f --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test5/output.txt @@ -0,0 +1,25 @@ +_level0.static3 onClipConstruct +PASSED: movieclip == movieclip +_root.depth3Constructed set to 1 +PASSED: 10 == 10 +PASSED: guess == guess +PASSED: -16381 == -16381 +PASSED: 50 == 50 +PASSED: -16381 == -16381 +PASSED: guess == guess +PASSED: 50 == 50 +PASSED: guess == guess +PASSED: -16381 == -16381 +PASSED: 10 == 10 +PASSED: guess == guess +PASSED: -16381 == -16381 +PASSED: movieclip == movieclip +PASSED: 10 == 10 +PASSED: _level0.static3 == _level0.static3 +PASSED: 1 == 1 +#passed: 17 +#failed: 0 +#total tests run: 17 +PASSED: 10 == 10 +PASSED: guess == guess +PASSED: -16381 == -16381 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test5/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test5/test.swf new file mode 100644 index 000000000000..15de71ebab4f Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test5/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test5/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test5/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test5/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test6/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test6/output.txt new file mode 100644 index 000000000000..15863a56c240 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test6/output.txt @@ -0,0 +1,13 @@ +PASSED: -16381 == -16381 +PASSED: -10 == -10 +PASSED: -16381 == -16381 +PASSED: 10 == 10 +PASSED: -16381 == -16381 +PASSED: 10 == 10 +PASSED: -16381 == -16381 +PASSED: guess == guess +PASSED: 10 == 10 +PASSED: -16381 == -16381 +#passed: 10 +#failed: 0 +#total tests run: 10 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test6/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test6/test.swf new file mode 100644 index 000000000000..16c4e2a14a14 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test6/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test6/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test6/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test6/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test7/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test7/output.txt new file mode 100644 index 000000000000..f180462ae824 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test7/output.txt @@ -0,0 +1,14 @@ +PASSED: -16381 == -16381 +PASSED: -16381 == -16381 +PASSED: 50 == 50 +PASSED: -16381 == -16381 +PASSED: 200 == 200 +PASSED: -16381 == -16381 +PASSED: guess == guess +PASSED: 50 == 50 +PASSED: -16381 == -16381 +#passed: 9 +#failed: 0 +#total tests run: 9 +PASSED: 50 == 50 +PASSED: -16381 == -16381 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test7/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test7/test.swf new file mode 100644 index 000000000000..cc933be99f27 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test7/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test7/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test7/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test7/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test8/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test8/output.txt new file mode 100644 index 000000000000..82c3aacf83b0 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test8/output.txt @@ -0,0 +1,15 @@ +PASSED: -16381 == -16381 +PASSED: 202 == 202 +PASSED: 10 == 10 +PASSED: -16381 == -16381 +PASSED: guess == guess +PASSED: 10 == 10 +PASSED: 202 == 202 +PASSED: -16381 == -16381 +PASSED: -16381 == -16381 +PASSED: 204 == 204 +#passed: 10 +#failed: 0 +#total tests run: 10 +PASSED: 10 == 10 +PASSED: -16381 == -16381 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test8/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test8/test.swf new file mode 100644 index 000000000000..7f5b15f4c828 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test8/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test8/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test8/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test8/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test9/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test9/output.txt new file mode 100644 index 000000000000..5434dfdd6f8d --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test9/output.txt @@ -0,0 +1,23 @@ +_level0.static4 constructed +PASSED: static3.getDepth() == -16381 [displaylist_depths_test9.c:118] +PASSED: static4.getDepth() == -16380 [displaylist_depths_test9.c:124] +_level0.dup0 constructed +PASSED: dup0.getDepth() == -16380 [displaylist_depths_test9.c:126] +PASSED: dup0.getDepth() == -16380 [displaylist_depths_test9.c:130] +PASSED: dup1.getDepth() == -10 [displaylist_depths_test9.c:132] +PASSED: -20 == -20 +PASSED: -30 == -30 +PASSED: typeof(static4) == 'undefined' [displaylist_depths_test9.c:151] +PASSED: typeof(dup0) == 'movieclip' [displaylist_depths_test9.c:152] +PASSED: _root.mc4Constructed == 2 [displaylist_depths_test9.c:153] +_level0.static4 constructed +PASSED: typeof(static3) == 'movieclip' [displaylist_depths_test9.c:155] +PASSED: typeof(static4) == 'movieclip' [displaylist_depths_test9.c:156] +PASSED: typeof(dup0) == 'undefined' [displaylist_depths_test9.c:157] +PASSED: mc4Constructed == 3 [displaylist_depths_test9.c:158] +PASSED: typeof(dup1) == 'undefined' [displaylist_depths_test9.c:159] +PASSED: typeof(dup2) == 'undefined' [displaylist_depths_test9.c:160] +PASSED: typeof(dup3) == 'undefined' [displaylist_depths_test9.c:161] +#passed: 17 +#failed: 0 +#total tests run: 17 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test9/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test9/test.swf new file mode 100644 index 000000000000..09af4dbe052b Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test9/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test9/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test9/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/displaylist_depths/displaylist_depths_test9/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/duplicate_movie_clip_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/duplicate_movie_clip_test/output.txt new file mode 100644 index 000000000000..4d008c7a2f26 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/duplicate_movie_clip_test/output.txt @@ -0,0 +1,33 @@ +onClipLoad triggered +onClipLoad triggered +onClipEnterFrame triggered +onClipEnterFrame triggered +PASSED: mc1.prop1 == 10 [duplicate_movie_clip_test.c:105] +PASSED: typeof(mc1.onLoad) == 'function' [duplicate_movie_clip_test.c:106] +PASSED: mc1.getDepth() == -16374 [duplicate_movie_clip_test.c:107] +PASSED: dup1.prop1 == undefined [duplicate_movie_clip_test.c:109] +PASSED: typeof(dup1.onLoad) == 'undefined' [duplicate_movie_clip_test.c:111] +PASSED: dup1.getDepth() == 1 [duplicate_movie_clip_test.c:112] +PASSED: typeof(mc2.onLoad) == 'function' [duplicate_movie_clip_test.c:114] +PASSED: typeof(mc2.onEnterFrame) == 'undefined' [duplicate_movie_clip_test.c:116] +PASSED: typeof(dup2.onLoad) == 'undefined' [duplicate_movie_clip_test.c:118] +PASSED: _root.x1 == 2 [duplicate_movie_clip_test.c:119] +PASSED: _root.x2 == 2 [duplicate_movie_clip_test.c:120] +onClipEnterFrame triggered +onClipUnload triggered +onClipUnload triggered +PASSED: typeof(button) == 'object' [duplicate_movie_clip_test.c:139] +_level0.button +PASSED: typeof(d) == 'object' [duplicate_movie_clip_test.c:149] +PASSED: '' + _root.buttdup == '_level0.buttdup' [duplicate_movie_clip_test.c:150] +PASSED: _root.buttdup == d [duplicate_movie_clip_test.c:151] +PASSED: _root.buttdup.x == undefined [duplicate_movie_clip_test.c:154] +undefined +PASSED: typeof(d2) == 'undefined' [duplicate_movie_clip_test.c:166] +PASSED: typeof(_root.objdup) == 'undefined' [duplicate_movie_clip_test.c:167] +PASSED: _root.x1 == 2 [duplicate_movie_clip_test.c:171] +PASSED: _root.x2 == 3 [duplicate_movie_clip_test.c:172] +PASSED: _root.x3 == 2 [duplicate_movie_clip_test.c:173] +#passed: 21 +#failed: 0 +#total tests run: 21 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/duplicate_movie_clip_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/duplicate_movie_clip_test/test.swf new file mode 100644 index 000000000000..43aee86ca7e0 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/duplicate_movie_clip_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/duplicate_movie_clip_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/duplicate_movie_clip_test/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/duplicate_movie_clip_test/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/duplicate_movie_clip_test2/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/duplicate_movie_clip_test2/output.txt new file mode 100644 index 000000000000..8038f9ac0d37 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/duplicate_movie_clip_test2/output.txt @@ -0,0 +1,21 @@ +PASSED: movieclip == movieclip +PASSED: movieclip == movieclip +PASSED: movieclip == movieclip +PASSED: undefined == undefined +PASSED: undefined == undefined +PASSED: typeof(dup1) == 'movieclip' [duplicate_movie_clip_test2.c:116] +PASSED: typeof(dup1) == 'undefined' [duplicate_movie_clip_test2.c:118] +PASSED: typeof(dup2) == 'movieclip' [duplicate_movie_clip_test2.c:121] +PASSED: typeof(dup2) == 'undefined' [duplicate_movie_clip_test2.c:123] +PASSED: typeof(dup3) == 'movieclip' [duplicate_movie_clip_test2.c:126] +PASSED: typeof(dup3) == 'undefined' [duplicate_movie_clip_test2.c:128] +PASSED: typeof(dup4) == 'movieclip' [duplicate_movie_clip_test2.c:131] +PASSED: typeof(dup4) == 'undefined' [duplicate_movie_clip_test2.c:133] +PASSED: typeof(dup5) == 'movieclip' [duplicate_movie_clip_test2.c:136] +PASSED: typeof(dup5) == 'undefined' [duplicate_movie_clip_test2.c:138] +PASSED: typeof(dup6) == 'undefined' [duplicate_movie_clip_test2.c:142] +PASSED: typeof(dup7) == 'undefined' [duplicate_movie_clip_test2.c:146] +PASSED: typeof(dup8) == 'undefined' [duplicate_movie_clip_test2.c:150] +#passed: 18 +#failed: 0 +#total tests run: 18 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/duplicate_movie_clip_test2/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/duplicate_movie_clip_test2/test.swf new file mode 100644 index 000000000000..1eda82a7affa Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/duplicate_movie_clip_test2/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/duplicate_movie_clip_test2/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/duplicate_movie_clip_test2/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/duplicate_movie_clip_test2/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/event_handler_scope_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/event_handler_scope_test/output.txt new file mode 100644 index 000000000000..25f1eb52161f --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/event_handler_scope_test/output.txt @@ -0,0 +1,16 @@ +PASSED: _root.scope_test == undefined [event_handler_scope_test.c:80] +PASSED: _root.mc.scope_test == undefined [event_handler_scope_test.c:81] +onClipEnterFrame triggered +user defined onEnterFrame called +PASSED: _root.mc.scope_test == 1 [event_handler_scope_test.c:84] +PASSED: _root.scope_test == 3 [event_handler_scope_test.c:85] +onClipEnterFrame triggered +user defined onEnterFrame called +PASSED: _root.mc.scope_test == 2 [event_handler_scope_test.c:88] +onClipEnterFrame triggered +user defined onEnterFrame called +PASSED: _root.scope_test == 3 [event_handler_scope_test.c:91] +PASSED: _root.mc.scope_test == undefined [event_handler_scope_test.c:95] +#passed: 7 +#failed: 0 +#total tests run: 7 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/event_handler_scope_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/event_handler_scope_test/test.swf new file mode 100644 index 000000000000..927d9eb153a5 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/event_handler_scope_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/event_handler_scope_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/event_handler_scope_test/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/event_handler_scope_test/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/frame_label_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/frame_label_test/output.txt new file mode 100644 index 000000000000..22786c862cde --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/frame_label_test/output.txt @@ -0,0 +1,17 @@ +PASSED: _root.x1 == 'mc11_frame4' [frame_label_test.c:152] +PASSED: _root.x2 == 'mc11_frame5' [frame_label_test.c:153] +PASSED: _root.x3 == 'mc11_frame6' [frame_label_test.c:154] +PASSED: _root.x7 == 'mc1_frame7' [frame_label_test.c:155] +PASSED: _root.x8 == 'mc1_frame8' [frame_label_test.c:156] +PASSED: _root.x9 == 'small_first' [frame_label_test.c:157] +PASSED: _root.x10 == 'mc1_frame10' [frame_label_test.c:158] +PASSED: _root.x11 == 'Big_first' [frame_label_test.c:159] +PASSED: _root.x4 == 0 [frame_label_test.c:161] +PASSED: _root.x5 == 0 [frame_label_test.c:162] +PASSED: _root.x6 == 0 [frame_label_test.c:163] +PASSED: _root.x1 == 0 [frame_label_test.c:165] +PASSED: _root.x2 == 0 [frame_label_test.c:166] +PASSED: _root.x3 == 0 [frame_label_test.c:167] +#passed: 14 +#failed: 0 +#total tests run: 14 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/frame_label_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/frame_label_test/test.swf new file mode 100644 index 000000000000..2f4b3d5fb6fc Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/frame_label_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/frame_label_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/frame_label_test/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/frame_label_test/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/getTimer_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/getTimer_test/output.txt new file mode 100644 index 000000000000..b5f09e255cc1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/getTimer_test/output.txt @@ -0,0 +1,8 @@ +PASSED: x1 > 0 [getTimer_test.c:76] +PASSED: x2 > x1 [getTimer_test.c:77] +PASSED: x2 < 6000 [getTimer_test.c:80] +PASSED: x2 == Math.ceil(x2) [getTimer_test.c:82] +PASSED: x2 == Math.floor(x2) [getTimer_test.c:83] +#passed: 5 +#failed: 0 +#total tests run: 5 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/getTimer_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/getTimer_test/test.swf new file mode 100644 index 000000000000..346af52e8f73 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/getTimer_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/getTimer_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/getTimer_test/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/getTimer_test/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/get_frame_number_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/get_frame_number_test/output.txt new file mode 100644 index 000000000000..8a4eb123a5dd --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/get_frame_number_test/output.txt @@ -0,0 +1,31 @@ +PASSED: _currentframe == 6 [get_frame_number_test.c:70] +PASSED: _currentframe == 2 [get_frame_number_test.c:72] +PASSED: _currentframe == 2 [get_frame_number_test.c:74] +PASSED: _currentframe == 2 [get_frame_number_test.c:76] +PASSED: _currentframe == 2 [get_frame_number_test.c:78] +PASSED: _currentframe == 2 [get_frame_number_test.c:81] +PASSED: _currentframe == 2 [get_frame_number_test.c:84] +PASSED: _currentframe == 5 [get_frame_number_test.c:87] +PASSED: _currentframe == 5 [get_frame_number_test.c:90] +PASSED: _currentframe == 7 [get_frame_number_test.c:121] +PASSED: _currentframe == 3 [get_frame_number_test.c:124] +PASSED: _currentframe == 4 [get_frame_number_test.c:127] +PASSED: _currentframe == 7 [get_frame_number_test.c:131] +PASSED: _currentframe == 1 [get_frame_number_test.c:137] +PASSED: _currentframe == 7 [get_frame_number_test.c:141] +PASSED: _currentframe == 5 [get_frame_number_test.c:145] +PASSED: _root.x5 == 3 [get_frame_number_test.c:147] +PASSED: _root.x5.toString() == '4' [get_frame_number_test.c:148] +PASSED: _root.x5.toString() == 4 [get_frame_number_test.c:149] +PASSED: _currentframe == 4 [get_frame_number_test.c:152] +PASSED: _root.x6 == '3' [get_frame_number_test.c:157] +PASSED: _root.x6.toString() == '4' [get_frame_number_test.c:158] +PASSED: _root.x6.toString() == 4 [get_frame_number_test.c:159] +PASSED: _currentframe == 3 [get_frame_number_test.c:162] +PASSED: _currentframe == 7 [get_frame_number_test.c:168] +PASSED: _currentframe == 7 [get_frame_number_test.c:170] +PASSED: _currentframe == 7 [get_frame_number_test.c:172] +PASSED: _currentframe == 7 [get_frame_number_test.c:174] +#passed: 28 +#failed: 0 +#total tests run: 28 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/get_frame_number_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/get_frame_number_test/test.swf new file mode 100644 index 000000000000..1751af680bdf Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/get_frame_number_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/get_frame_number_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/get_frame_number_test/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/get_frame_number_test/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/gotoFrame2Test/Dejagnu.swf b/tests/tests/swfs/from_gnash/misc-ming.all/gotoFrame2Test/Dejagnu.swf new file mode 100644 index 000000000000..575fffe03b2d Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/gotoFrame2Test/Dejagnu.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/gotoFrame2Test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/gotoFrame2Test/output.txt new file mode 100644 index 000000000000..6063656a1d13 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/gotoFrame2Test/output.txt @@ -0,0 +1,9 @@ +SWF + +PASSED: 2 == 2 +PASSED: 1 == 1 +PASSED: 2 == 2 +PASSED: 1 == 1 +#passed: 4 +#failed: 0 +#total tests run: 4 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/gotoFrame2Test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/gotoFrame2Test/test.swf new file mode 100644 index 000000000000..1ce635088ad6 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/gotoFrame2Test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/gotoFrame2Test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/gotoFrame2Test/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/gotoFrame2Test/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/goto_frame_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/goto_frame_test/output.txt new file mode 100644 index 000000000000..8dd3753c1a10 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/goto_frame_test/output.txt @@ -0,0 +1,15 @@ +PASSED: 1 == 1 +PASSED: 3 == 3 +PASSED: _root.asOrder == '0+1+2+3+4+5+6+' [goto_frame_test.c:145] +PASSED: _root.asOrder == '0+1+2+3+4+5+6+7+' [goto_frame_test.c:148] +PASSED: mc1._target == '/mc1' [goto_frame_test.c:155] +PASSED: mc2._target == '/mc2' [goto_frame_test.c:156] +_level0.mc1 unloaded +_level0.mc2 unloaded +PASSED: mc1.getDepth() == -16485 [goto_frame_test.c:182] +PASSED: mc1._name == 'mc1' [goto_frame_test.c:183] +PASSED: mc2.getDepth() == -16485 [goto_frame_test.c:184] +PASSED: mc2._name == 'mc2' [goto_frame_test.c:185] +#passed: 10 +#failed: 0 +#total tests run: 10 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/goto_frame_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/goto_frame_test/test.swf new file mode 100644 index 000000000000..01b57b3ace92 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/goto_frame_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/goto_frame_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/goto_frame_test/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/goto_frame_test/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/init_action/InitActionTest/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/init_action/InitActionTest/output.txt new file mode 100644 index 000000000000..2988e7dc259b --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/init_action/InitActionTest/output.txt @@ -0,0 +1,17 @@ +mc1.init_actions +mc1.onClipInitialize +PASSED: [object Object] == [object Object] +mc2.init_actions +mc2.onClipInitialize +mc1.onClipConstruct +mc2.onClipConstruct +_root.actions +mc1.onClipLoad +mc1.actions +mc2.onClipLoad +mc2.actions +PASSED: _root.x == '0+1+2+3+4+5+6+7+8+9+10+11+' [InitActionTest.c:156] +PASSED: _root.y == 'var_of_root' [InitActionTest.c:158] +#passed: 3 +#failed: 0 +#total tests run: 3 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/init_action/InitActionTest/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/init_action/InitActionTest/test.swf new file mode 100644 index 000000000000..b3948c998ab5 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/init_action/InitActionTest/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/init_action/InitActionTest/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/init_action/InitActionTest/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/init_action/InitActionTest/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/init_action/InitActionTest2/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/init_action/InitActionTest2/output.txt new file mode 100644 index 000000000000..4563d7bbe24f --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/init_action/InitActionTest2/output.txt @@ -0,0 +1,29 @@ +PASSED: _global.val4 == undefined [InitActionTest2.c:78] +PASSED: _global.val4 == undefined [InitActionTest2.c:84] +PASSED: _global.val4 == undefined [InitActionTest2.c:87] +PASSED: _global.val4 == undefined [InitActionTest2.c:91] +PASSED: _global.val4 == undefined [InitActionTest2.c:95] +PASSED: _global.val4 == undefined [InitActionTest2.c:99] +PASSED: _global.val4 == undefined [InitActionTest2.c:105] +PASSED: _global.val4 == 'mc4a' [InitActionTest2.c:115] +mc5 +PASSED: _global.val5 == 'mc5' [InitActionTest2.c:127] +PASSED: _global.val5 == 'mc5' [InitActionTest2.c:133] +mc6 +PASSED: _global.val6 == 'mc6' [InitActionTest2.c:159] +PASSED: _root.mc7 == undefined [InitActionTest2.c:177] +PASSED: _global.goneBack ||! _root.mc8 == true [InitActionTest2.c:180] +PASSED: _global.init7 == undefined [InitActionTest2.c:221] +PASSED: _global.init8 == undefined [InitActionTest2.c:222] +PASSED: typeof(_root.mc7) == 'undefined' [InitActionTest2.c:225] +PASSED: typeof(_root.mc8) == 'movieclip' [InitActionTest2.c:226] +Going back +init7 +init8 +PASSED: _root.mc7 == undefined [InitActionTest2.c:177] +PASSED: _global.goneBack ||! _root.mc8 == true [InitActionTest2.c:180] +PASSED: _global.init7 == true [InitActionTest2.c:243] +PASSED: _global.init8 == true [InitActionTest2.c:244] +#passed: 21 +#failed: 0 +#total tests run: 21 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/init_action/InitActionTest2/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/init_action/InitActionTest2/test.swf new file mode 100644 index 000000000000..0695abcc4f76 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/init_action/InitActionTest2/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/init_action/InitActionTest2/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/init_action/InitActionTest2/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/init_action/InitActionTest2/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/instanceNameTest/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/instanceNameTest/output.txt new file mode 100644 index 000000000000..6d08e8183374 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/instanceNameTest/output.txt @@ -0,0 +1,5 @@ +PASSED: / == / +PASSED: /instance2 == /instance2 +#passed: 2 +#failed: 0 +#total tests run: 2 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/instanceNameTest/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/instanceNameTest/test.swf new file mode 100644 index 000000000000..e762d98f0216 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/instanceNameTest/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/instanceNameTest/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/instanceNameTest/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/instanceNameTest/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/key_event_test/input.json b/tests/tests/swfs/from_gnash/misc-ming.all/key_event_test/input.json new file mode 100644 index 000000000000..7031d8986cc5 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/key_event_test/input.json @@ -0,0 +1,278 @@ +[ + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "KeyDown", + "key": { + "Char": "a" + } + }, + { + "type": "KeyUp", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "KeyDown", + "key": { + "Char": "a" + } + }, + { + "type": "KeyUp", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "KeyDown", + "key": { + "Char": "a" + } + }, + { + "type": "KeyUp", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "KeyDown", + "key": { + "Char": "a" + } + }, + { + "type": "KeyUp", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "KeyDown", + "key": { + "Char": "a" + } + }, + { + "type": "KeyUp", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "KeyDown", + "key": { + "Char": "a" + } + }, + { + "type": "KeyUp", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "KeyDown", + "key": { + "Char": "a" + } + }, + { + "type": "KeyUp", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "KeyDown", + "key": { + "Char": "a" + } + }, + { + "type": "KeyUp", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "KeyDown", + "key": { + "Char": "a" + } + }, + { + "type": "KeyUp", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "KeyDown", + "key": { + "Char": "a" + } + }, + { + "type": "KeyUp", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "Wait" + }, + { + "type": "KeyDown", + "key": { + "Char": "a" + } + }, + { + "type": "KeyUp", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 310, + 25 + ] + }, + { + "type": "MouseDown", + "pos": [ + 310, + 25 + ], + "btn": "Left" + }, + { + "type": "MouseUp", + "pos": [ + 310, + 25 + ], + "btn": "Left" + }, + { + "type": "KeyDown", + "key": { + "Char": "i" + } + }, + { + "type": "TextInput", + "codepoint": "i" + }, + { + "type": "KeyUp", + "key": { + "Char": "i" + } + } +] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/key_event_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/key_event_test/output.txt new file mode 100644 index 000000000000..df79050b97da --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/key_event_test/output.txt @@ -0,0 +1,66 @@ +PASSED: object == object +PASSED: undefined == undefined +PASSED: undefined == undefined +PASSED: undefined == undefined +1. Press a single key to continue the test +l.onKeyDown +l.onKeyUp +PASSED: 1 == 1 +PASSED: 1 == 1 +PASSED: number == number +2. Press a single key to continue the test +l.onKeyDown +l.onKeyUp +PASSED: 2 == 2 +PASSED: 2 == 2 +PASSED: object == object +3. Press a single key to continue the test +obj1.onKeyDown +PASSED: 2 == 2 +PASSED: 2 == 2 +4. Press a single key to continue the test +listenerClip2.onClipKeyDown +4. Press a single key to continue the test +listenerClip2.onClipKeyDown +PASSED: _root.test2 == 2 [key_event_test.c:162] +5. Press a single key to continue the test +dynamic_mc.onKeyDown triggered +PASSED: _level0.dynamic_mc == _level0.dynamic_mc +PASSED: 11 == 11 +5. Press a single key to continue the test +dynamic_mc.onKeyDown triggered +PASSED: _level0.dynamic_mc == _level0.dynamic_mc +PASSED: 13 == 13 +PASSED: _root.test3 == 2 [key_event_test.c:193] +6. Press a single key to continue the test +PASSED: _root.test4 == 0 [key_event_test.c:214] +obj2.onKeyDown triggered +PASSED: objRef.x == 100 [key_event_test.c:217] +PASSED: _root.test4 == 1 [key_event_test.c:218] +7. Press a single key to continue the test +PASSED: object == object +obj3.onKeyDown +PASSED: _root.test4 == 1 [key_event_test.c:236] +8. Press a single key to continue the test +ls3.onClipKeyDown +ls2.onClipKeyDown +ls1.onClipKeyDown +obj1.onKeyDown +ls1.onKeyDown +obj2.onKeyDown +ls2.onKeyDown +obj3.onKeyDown +9. Press a single key to continue the test +obj1.onKeyDown +obj2.onKeyDown +obj3.onKeyDown +PASSED: test5 == '0+ls3+ls2+ls1+obj1+ls1+obj2+ls2+obj3+obj1+obj2+obj3' [key_event_test.c:327] +10. Click on the TextField and type "i" +obj1.onKeyDown +obj2.onKeyDown +obj3.onKeyDown +PASSED: _root.t == 'Input here' [key_event_test.c:345] +PASSED: _root.ff.text == 'Input herei' [key_event_test.c:346] +#passed: 26 +#failed: 0 +#total tests run: 26 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/key_event_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/key_event_test/test.swf new file mode 100644 index 000000000000..2f8366804175 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/key_event_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/key_event_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/key_event_test/test.toml new file mode 100644 index 000000000000..e5f9afc42d3d --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/key_event_test/test.toml @@ -0,0 +1,2 @@ +num_ticks = 100 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadBitmapTest/fp11/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadBitmapTest/fp11/output.txt new file mode 100644 index 000000000000..32878985db81 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadBitmapTest/fp11/output.txt @@ -0,0 +1,17 @@ +PASSED: typeof(f) == 'object' [LoadBitmapTest.c:117] +PASSED: f.__proto__ == flash.display.BitmapData.prototype [LoadBitmapTest.c:118] +PASSED: f.__proto__ === flash.display.BitmapData.prototype [LoadBitmapTest.c:119] +PASSED: f.transparent == false [LoadBitmapTest.c:120] +PASSED: near(f, 85, 10, 0x00ff00) [LoadBitmapTest.c:123] +PASSED: near(f, 85, 30, 0x008800) [LoadBitmapTest.c:124] +PASSED: near(f, 85, 50, 0x004400) [LoadBitmapTest.c:125] +PASSED: near(f, 85, 70, 0x002200) [LoadBitmapTest.c:126] +FAILED: near(f, 85, 85, 0x000000) [LoadBitmapTest.c:127] +PASSED: typeof(c) == 'object' [LoadBitmapTest.c:157] +PASSED: c.__proto__ == undefined [LoadBitmapTest.c:158] +PASSED: typeof(d) == 'undefined' [LoadBitmapTest.c:159] +PASSED: typeof(e) == 'object' [LoadBitmapTest.c:162] +PASSED: typeof(e.__proto__) == 'object' [LoadBitmapTest.c:163] +PASSED: e.__proto__ == backup.prototype [LoadBitmapTest.c:164] +PASSED: typeof(e.constructor) == 'function' [LoadBitmapTest.c:165] +PASSED: e.constructor != backup.constructor [LoadBitmapTest.c:166] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadBitmapTest/fp11/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadBitmapTest/fp11/test.swf new file mode 100644 index 000000000000..fd7f7818cd82 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadBitmapTest/fp11/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadBitmapTest/fp11/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadBitmapTest/fp11/test.toml new file mode 100644 index 000000000000..979d7dce32a1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadBitmapTest/fp11/test.toml @@ -0,0 +1,5 @@ +num_frames = 30 +known_failure = true + +[player_options] +version = 11 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadBitmapTest/fp9/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadBitmapTest/fp9/output.txt new file mode 100644 index 000000000000..603f53e0168f --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadBitmapTest/fp9/output.txt @@ -0,0 +1,17 @@ +PASSED: typeof(f) == 'object' [LoadBitmapTest.c:117] +PASSED: f.__proto__ == flash.display.BitmapData.prototype [LoadBitmapTest.c:118] +PASSED: f.__proto__ === flash.display.BitmapData.prototype [LoadBitmapTest.c:119] +PASSED: f.transparent == false [LoadBitmapTest.c:120] +PASSED: near(f, 85, 10, 0x00ff00) [LoadBitmapTest.c:123] +PASSED: near(f, 85, 30, 0x008800) [LoadBitmapTest.c:124] +PASSED: near(f, 85, 50, 0x004400) [LoadBitmapTest.c:125] +PASSED: near(f, 85, 70, 0x002200) [LoadBitmapTest.c:126] +PASSED: near(f, 85, 85, 0x000000) [LoadBitmapTest.c:127] +PASSED: typeof(c) == 'object' [LoadBitmapTest.c:157] +PASSED: c.__proto__ == undefined [LoadBitmapTest.c:158] +PASSED: typeof(d) == 'undefined' [LoadBitmapTest.c:159] +PASSED: typeof(e) == 'object' [LoadBitmapTest.c:162] +PASSED: typeof(e.__proto__) == 'object' [LoadBitmapTest.c:163] +PASSED: e.__proto__ == backup.prototype [LoadBitmapTest.c:164] +PASSED: typeof(e.constructor) == 'function' [LoadBitmapTest.c:165] +PASSED: e.constructor != backup.constructor [LoadBitmapTest.c:166] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadBitmapTest/fp9/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadBitmapTest/fp9/test.swf new file mode 100644 index 000000000000..fd7f7818cd82 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadBitmapTest/fp9/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadBitmapTest/fp9/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadBitmapTest/fp9/test.toml new file mode 100644 index 000000000000..3565afec1bad --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadBitmapTest/fp9/test.toml @@ -0,0 +1,5 @@ +num_frames = 30 +known_failure = true + +[player_options] +version = 9 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadVarsTest/empty.txt b/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadVarsTest/empty.txt new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadVarsTest/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadVarsTest/output.txt new file mode 100644 index 000000000000..38157bb3a929 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadVarsTest/output.txt @@ -0,0 +1,36 @@ +PASSED: l.loaded == undefined [LoadVarsTest.c:122] +PASSED: e == true [LoadVarsTest.c:128] +onData called +PASSED: dataString == '0: onData called with undefined argument undefined' [LoadVarsTest.c:136] +PASSED: l.loaded == false [LoadVarsTest.c:137] +PASSED: l.loaded == undefined [LoadVarsTest.c:142] +PASSED: e == true [LoadVarsTest.c:148] +PASSED: loadString == '1: onLoad called with boolean argument false' [LoadVarsTest.c:154] +PASSED: l.loaded == false [LoadVarsTest.c:155] +PASSED: l.loaded == undefined [LoadVarsTest.c:160] +PASSED: e == true [LoadVarsTest.c:168] +onData called +PASSED: loadString == '' [LoadVarsTest.c:173] +PASSED: dataString == '2: onData called with undefined argument undefined' [LoadVarsTest.c:175] +PASSED: l.loaded == false [LoadVarsTest.c:176] +PASSED: l.loaded == undefined [LoadVarsTest.c:187] +PASSED: e == true [LoadVarsTest.c:193] +onData called +PASSED: escape(dataString) == '3%3A%20onData%20called%20with%20string%20argument%20v2%5Fvar1%3Dval1%26v2%5Fvar2%3Dval2%26%0A' [LoadVarsTest.c:200] +PASSED: l.loaded == false [LoadVarsTest.c:201] +PASSED: decodeCalled == 0 [LoadVarsTest.c:204] +PASSED: decodeString == '' [LoadVarsTest.c:205] +PASSED: l.loaded == undefined [LoadVarsTest.c:209] +PASSED: e == true [LoadVarsTest.c:215] +PASSED: loadString == '4: onLoad called with boolean argument true' [LoadVarsTest.c:220] +PASSED: decodeCalled == 1 [LoadVarsTest.c:225] +PASSED: escape(decodeString) == 'decode%20called%20with%20string%20argument%20v2%5Fvar1%3Dval1%26v2%5Fvar2%3Dval2%26%0A' [LoadVarsTest.c:229] +PASSED: l.loaded == undefined [LoadVarsTest.c:238] +PASSED: e == true [LoadVarsTest.c:244] +onData called +PASSED: escape(dataString) == '5%3A%20onData%20called%20with%20undefined%20argument%20undefined' [LoadVarsTest.c:251] +PASSED: l.loaded == false [LoadVarsTest.c:252] +PASSED: decodeCalled == 1 [LoadVarsTest.c:256] +#passed: 29 +#failed: 0 +#total tests run: 29 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadVarsTest/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadVarsTest/test.swf new file mode 100644 index 000000000000..f0167762e783 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadVarsTest/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadVarsTest/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadVarsTest/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadVarsTest/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadVarsTest/vars2.txt b/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadVarsTest/vars2.txt new file mode 100644 index 000000000000..f58d59d521d7 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loading/LoadVarsTest/vars2.txt @@ -0,0 +1 @@ +v2_var1=val1&v2_var2=val2& diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/blue.jpg b/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/blue.jpg new file mode 100644 index 000000000000..fced103c953d Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/blue.jpg differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/blue.swf b/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/blue.swf new file mode 100644 index 000000000000..519af4911589 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/blue.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/green.jpg b/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/green.jpg new file mode 100644 index 000000000000..5318fe8de6cf Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/green.jpg differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/input.json b/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/input.json new file mode 100644 index 000000000000..f93afdcb8e6a --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/input.json @@ -0,0 +1,263 @@ +[ + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 640, + 180 + ] + }, + { + "type": "Wait" + }, + { + "type": "MouseDown", + "pos": [ + 640, + 180 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseUp", + "pos": [ + 640, + 180 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 640, + 180 + ] + }, + { + "type": "Wait" + }, + { + "type": "MouseDown", + "pos": [ + 640, + 180 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseUp", + "pos": [ + 640, + 180 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 640, + 180 + ] + }, + { + "type": "Wait" + }, + { + "type": "MouseDown", + "pos": [ + 640, + 180 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseUp", + "pos": [ + 640, + 180 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 640, + 180 + ] + }, + { + "type": "Wait" + }, + { + "type": "MouseDown", + "pos": [ + 640, + 180 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseUp", + "pos": [ + 640, + 180 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 640, + 180 + ] + }, + { + "type": "Wait" + }, + { + "type": "MouseDown", + "pos": [ + 640, + 180 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseUp", + "pos": [ + 640, + 180 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseMove", + "pos": [ + 640, + 180 + ] + }, + { + "type": "Wait" + }, + { + "type": "MouseDown", + "pos": [ + 640, + 180 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseUp", + "pos": [ + 640, + 180 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseDown", + "pos": [ + 640, + 180 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseUp", + "pos": [ + 640, + 180 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseDown", + "pos": [ + 640, + 180 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseUp", + "pos": [ + 640, + 180 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseDown", + "pos": [ + 640, + 180 + ], + "btn": "Left" + }, + { + "type": "Wait" + }, + { + "type": "MouseUp", + "pos": [ + 640, + 180 + ], + "btn": "Left" + }, + { + "type": "Wait" + } +] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/output.txt new file mode 100644 index 000000000000..a07efe1a46b2 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/output.txt @@ -0,0 +1,80 @@ +PASSED: movieclip == movieclip +PASSED: movieclip == movieclip +0.0: Click on the first image. Wait for it to appear on the right, then click on it. +PASSED: true +PASSED: true +PASSED: true +PASSED: true +PASSED: test.swf == test.swf (loadMovieTest.c:202) +PASSED: -16376 == -16376 +PASSED: 160 == 160 +PASSED: true +FAILED: expected: MovieClip.loadMovie , obtained: +0.1: Click on the second image. Wait for it to appear on the right, then click on it. +PASSED: true +PASSED: true +PASSED: test.swf == test.swf (loadMovieTest.c:202) +PASSED: -16376 == -16376 +PASSED: 160 == 160 +PASSED: true +FAILED: expected: MovieClip.loadMovie , obtained: +0.2: Click on the third image. Wait for it to appear on the right, then click on it. +PASSED: true +PASSED: true +PASSED: test.swf == test.swf (loadMovieTest.c:202) +PASSED: -16376 == -16376 +PASSED: 160 == 160 +PASSED: true +FAILED: expected: MovieClip.loadMovie , obtained: +1.0: Click on the first image. Wait for it to appear on the right, then click on it. +PASSED: true +PASSED: true +PASSED: test.swf == test.swf (loadMovieTest.c:202) +PASSED: -16376 == -16376 +PASSED: 160 == 160 +PASSED: true +FAILED: expected: GETURL, target:_level0.cont.coverart , obtained: +1.1: Click on the second image. Wait for it to appear on the right, then click on it. +PASSED: true +PASSED: true +PASSED: test.swf == test.swf (loadMovieTest.c:202) +PASSED: -16376 == -16376 +PASSED: 160 == 160 +PASSED: true +FAILED: expected: GETURL, target:_level0.cont.coverart , obtained: +1.2: Click on the third image. Wait for it to appear on the right, then click on it. +PASSED: true +PASSED: true +PASSED: test.swf == test.swf (loadMovieTest.c:202) +PASSED: -16376 == -16376 +PASSED: 160 == 160 +PASSED: true +FAILED: expected: GETURL, target:_level0.cont.coverart , obtained: +2.0: Click on the first image. Wait for it to appear on the right, then click on it. +PASSED: true +PASSED: true +PASSED: test.swf == test.swf (loadMovieTest.c:202) +PASSED: -16376 == -16376 +PASSED: 160 == 160 +PASSED: true +FAILED: expected: GETURL, target:/cont/coverart , obtained: +2.1: Click on the second image. Wait for it to appear on the right, then click on it. +PASSED: true +PASSED: true +PASSED: test.swf == test.swf (loadMovieTest.c:202) +PASSED: -16376 == -16376 +PASSED: 160 == 160 +PASSED: true +FAILED: expected: GETURL, target:/cont/coverart , obtained: +2.2: Click on the third image. Wait for it to appear on the right, then click on it. +PASSED: true +PASSED: true +PASSED: test.swf == test.swf (loadMovieTest.c:202) +PASSED: -16376 == -16376 +PASSED: 160 == 160 +PASSED: true +FAILED: expected: GETURL, target:/cont/coverart , obtained: +The test is over +#passed: 58 +#failed: 9 +#total tests run: 67 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/red.jpg b/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/red.jpg new file mode 100644 index 000000000000..5ed22accd4cb Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/red.jpg differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/red.swf b/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/red.swf new file mode 100644 index 000000000000..fab870150e91 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/red.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/test.swf new file mode 100644 index 000000000000..80eaca87edf7 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/test.toml new file mode 100644 index 000000000000..441f5d7a65cb --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loading/loadMovieTest/test.toml @@ -0,0 +1,3 @@ +# This test has been edited after compilation to remove absolute paths and rename the expected swf name to 'test.swf' +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test/output.txt new file mode 100644 index 000000000000..7606bcf07090 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test/output.txt @@ -0,0 +1,21 @@ +PASSED: -16381 == -16381 +PASSED: 47616 == 47616 +PASSED: 47616 == 47616 +PASSED: -16381 == -16381 +PASSED: -16381 == -16381 +PASSED: 47616 == 47616 +PASSED: 47616 == 47616 +PASSED: -16381 == -16381 +PASSED: -16381 == -16381 +PASSED: 47616 == 47616 +PASSED: 47616 == 47616 +PASSED: -16381 == -16381 +PASSED: 1 == 1 +PASSED: 1 == 1 +PASSED: == +PASSED: == +PASSED: 1 == 1 +PASSED: 1 == 1 +#passed: 18 +#failed: 0 +#total tests run: 18 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test/test.swf new file mode 100644 index 000000000000..11b2ef66e20c Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test10/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test10/output.txt new file mode 100644 index 000000000000..1a1673d86f1a --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test10/output.txt @@ -0,0 +1,28 @@ +_level0.mc1 initialized +_level0.mc2 initialized +_level0.mc1 unloaded +_level0.mc3 initialized +_level0.mc2 unloaded +_level0.mc1 initialized +_level0.mc2 initialized +_level0.mc1 unloaded +_level0.mc2 unloaded +PASSED: mc1Initialized == 2 [loop_test10.c:221] +PASSED: mc2Initialized == 2 [loop_test10.c:222] +PASSED: mc3Initialized == 1 [loop_test10.c:223] +PASSED: mc1Unloaded == 2 [loop_test10.c:224] +PASSED: mc2Unloaded == 2 [loop_test10.c:225] +PASSED: mc3Unloaded == 0 [loop_test10.c:226] +PASSED: asOrder == '0+1+2+3+4+5+1+2+3+5+' [loop_test10.c:228] +PASSED: /instance3 == /instance3 +PASSED: /instance3/instance4 == /instance3/instance4 +PASSED: /instance3 == /instance3 +PASSED: /instance3/instance5 == /instance3/instance5 +PASSED: /instance6 == /instance6 +PASSED: /instance6/instance7 == /instance6/instance7 +PASSED: /instance6 == /instance6 +PASSED: /instance6/instance7 == /instance6/instance7 +PASSED: /instance9 == /instance9 +#passed: 16 +#failed: 0 +#total tests run: 16 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test10/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test10/test.swf new file mode 100644 index 000000000000..4ab4347c0e40 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test10/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test10/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test10/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test10/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test2/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test2/output.txt new file mode 100644 index 000000000000..19fc519c752c --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test2/output.txt @@ -0,0 +1,15 @@ +_level0.movieClip1 constructed +_level0.movieClip2 constructed +PASSED: -16381 == -16381 +PASSED: -16382 == -16382 +PASSED: mc1 == mc1 +PASSED: mc2 == mc2 +PASSED: -16381 == -16381 +PASSED: -16382 == -16382 +PASSED: mc1 == mc1 +PASSED: mc2 == mc2 +PASSED: 1 == 1 +PASSED: 1 == 1 +#passed: 10 +#failed: 0 +#total tests run: 10 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test2/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test2/test.swf new file mode 100644 index 000000000000..a6506fa83be8 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test2/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test2/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test2/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test2/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test3/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test3/output.txt new file mode 100644 index 000000000000..2a63e5eab6a5 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test3/output.txt @@ -0,0 +1,16 @@ +_level0.movieClip1 constructed +_level0.movieClip2 constructed +PASSED: -16381 == -16381 +PASSED: -16380 == -16380 +PASSED: -16380 == -16380 +PASSED: -16381 == -16381 +PASSED: mc1 == mc1 +PASSED: mc2 == mc2 +PASSED: undefined == undefined +PASSED: -16381 == -16381 +PASSED: mc2 == mc2 +PASSED: 1 == 1 +PASSED: 1 == 1 +#passed: 11 +#failed: 0 +#total tests run: 11 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test3/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test3/test.swf new file mode 100644 index 000000000000..0bffb5b25319 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test3/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test3/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test3/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test3/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test4/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test4/output.txt new file mode 100644 index 000000000000..ae4a59a58a5b --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test4/output.txt @@ -0,0 +1,22 @@ +_level0.movieClip1 constructed +_level0.movieClip2 constructed +_level0.movieClip3 constructed +PASSED: typeof(movieClip1) == 'undefined' [loop_test4.c:166] +PASSED: typeof(movieClip2) == 'undefined' [loop_test4.c:167] +PASSED: typeof(movieClip3) == 'movieclip' [loop_test4.c:168] +PASSED: typeof(movieClip4) == 'movieclip' [loop_test4.c:169] +PASSED: _root.mc1Constructed == 1 [loop_test4.c:170] +PASSED: _root.mc2Constructed == 1 [loop_test4.c:171] +PASSED: _root.mc3Constructed == 1 [loop_test4.c:172] +_level0.movieClip1 constructed +_level0.movieClip2 constructed +PASSED: typeof(movieClip1) == 'movieclip' [loop_test4.c:176] +PASSED: typeof(movieClip2) == 'movieclip' [loop_test4.c:177] +PASSED: typeof(movieClip3) == 'undefined' [loop_test4.c:178] +PASSED: typeof(movieClip4) == 'undefined' [loop_test4.c:179] +PASSED: _root.mc1Constructed == 2 [loop_test4.c:180] +PASSED: _root.mc2Constructed == 2 [loop_test4.c:181] +PASSED: _root.mc3Constructed == 1 [loop_test4.c:182] +#passed: 14 +#failed: 0 +#total tests run: 14 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test4/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test4/test.swf new file mode 100644 index 000000000000..568892a60eef Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test4/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test4/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test4/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test4/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test5/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test5/output.txt new file mode 100644 index 000000000000..0e313a7f4851 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test5/output.txt @@ -0,0 +1,24 @@ +_level0.movieClip1 constructed +_level0.movieClip2 constructed +_level0.movieClip3 constructed +_level0.movieClip4 constructed +PASSED: typeof(movieClip1) == 'undefined' [loop_test5.c:172] +PASSED: typeof(movieClip2) == 'undefined' [loop_test5.c:173] +PASSED: typeof(movieClip3) == 'movieclip' [loop_test5.c:174] +PASSED: typeof(movieClip4) == 'movieclip' [loop_test5.c:175] +PASSED: _root.mc1Constructed == 1 [loop_test5.c:176] +PASSED: _root.mc2Constructed == 1 [loop_test5.c:177] +PASSED: _root.mc3Constructed == 1 [loop_test5.c:178] +PASSED: _root.mc4Constructed == 1 [loop_test5.c:179] +_level0.movieClip1 constructed +PASSED: typeof(movieClip1) == 'movieclip' [loop_test5.c:183] +PASSED: typeof(movieClip2) == 'undefined' [loop_test5.c:184] +PASSED: typeof(movieClip3) == 'undefined' [loop_test5.c:186] +PASSED: typeof(movieClip4) == 'movieclip' [loop_test5.c:187] +PASSED: _root.mc1Constructed == 2 [loop_test5.c:188] +PASSED: _root.mc2Constructed == 1 [loop_test5.c:189] +PASSED: _root.mc3Constructed == 1 [loop_test5.c:190] +PASSED: _root.mc4Constructed == 1 [loop_test5.c:191] +#passed: 16 +#failed: 0 +#total tests run: 16 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test5/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test5/test.swf new file mode 100644 index 000000000000..bbbcf762b1d0 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test5/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test5/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test5/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test5/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test6/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test6/output.txt new file mode 100644 index 000000000000..865860858dcf --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test6/output.txt @@ -0,0 +1,23 @@ +_level0.movieClip1 initialized +_level0.movieClip2 initialized +_level0.movieClip1 constructed +_level0.movieClip2 constructed +PASSED: typeof(movieClip1) == 'movieclip' [loop_test6.c:138] +PASSED: _root.mc1Constructed == 1 [loop_test6.c:139] +PASSED: typeof(movieClip2) == 'movieclip' [loop_test6.c:140] +PASSED: _root.mc1Constructed == 1 [loop_test6.c:141] +PASSED: typeof(movieClip1) == 'undefined' [loop_test6.c:147] +PASSED: _root.mc1Constructed == 1 [loop_test6.c:148] +_level0.movieClip2 unloaded +_level0.movieClip2 initialized +_level0.movieClip2 constructed +PASSED: typeof(movieClip1) == 'undefined' [loop_test6.c:157] +PASSED: typeof(movieClip2) == 'movieclip' [loop_test6.c:158] +PASSED: _root.mc1Constructed == 1 [loop_test6.c:163] +PASSED: _root.mc1Initialized == 1 [loop_test6.c:164] +PASSED: _root.mc2Constructed == 2 [loop_test6.c:166] +PASSED: _root.mc2Initialized == 2 [loop_test6.c:167] +#passed: 12 +#failed: 0 +#total tests run: 12 +_level0.movieClip2 unloaded diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test6/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test6/test.swf new file mode 100644 index 000000000000..b913777cfad2 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test6/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test6/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test6/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test6/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test7/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test7/output.txt new file mode 100644 index 000000000000..4a7d8a857f4c --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test7/output.txt @@ -0,0 +1,15 @@ +_level0.movieClip1 constructed +PASSED: typeof(movieClip1) == 'movieclip' [loop_test7.c:110] +PASSED: _root.mc1Constructed == 1 [loop_test7.c:111] +PASSED: typeof(movieClip1) == 'movieclip' [loop_test7.c:123] +PASSED: _root.mc1Constructed == 1 [loop_test7.c:124] +_level0.movieClip1 unloaded +PASSED: typeof(movieClip1) == 'undefined' [loop_test7.c:132] +_level0.movieClip1 constructed +PASSED: typeof(movieClip1) == 'movieclip' [loop_test7.c:134] +PASSED: _root.mc1Constructed == 2 [loop_test7.c:137] +PASSED: _root.mc1Unloaded == 1 [loop_test7.c:141] +#passed: 8 +#failed: 0 +#total tests run: 8 +_level0.movieClip1 unloaded diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test7/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test7/test.swf new file mode 100644 index 000000000000..caa426d53f06 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test7/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test7/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test7/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test7/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test8/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test8/output.txt new file mode 100644 index 000000000000..42a44f43469f --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test8/output.txt @@ -0,0 +1,38 @@ +_level0.mc1 constructed +_level0.mc2 constructed +_level0.mc3 constructed +_level0.mc2 unloaded +_level0.mc3 unloaded +_level0.mc4 constructed +_level0.mc5 constructed +PASSED: typeof(mc1) == 'movieclip' [loop_test8.c:206] +PASSED: typeof(mc2) == 'undefined' [loop_test8.c:207] +PASSED: typeof(mc3) == 'undefined' [loop_test8.c:208] +PASSED: typeof(mc4) == 'movieclip' [loop_test8.c:209] +PASSED: typeof(mc5) == 'movieclip' [loop_test8.c:210] +PASSED: mc1Constructed == 1 [loop_test8.c:211] +PASSED: mc2Constructed == 1 [loop_test8.c:212] +PASSED: mc3Constructed == 1 [loop_test8.c:213] +PASSED: mc4Constructed == 1 [loop_test8.c:214] +PASSED: mc5Constructed == 1 [loop_test8.c:215] +PASSED: mc1Unloaded == 0 [loop_test8.c:216] +PASSED: mc2Unloaded == 1 [loop_test8.c:217] +PASSED: mc3Unloaded == 1 [loop_test8.c:218] +_level0.mc3 constructed +PASSED: typeof(mc1) == 'movieclip' [loop_test8.c:222] +PASSED: typeof(mc2) == 'undefined' [loop_test8.c:223] +PASSED: typeof(mc3) == 'movieclip' [loop_test8.c:224] +PASSED: typeof(mc4) == 'movieclip' [loop_test8.c:225] +PASSED: typeof(mc5) == 'movieclip' [loop_test8.c:226] +PASSED: mc1Constructed == 1 [loop_test8.c:227] +PASSED: mc2Constructed == 1 [loop_test8.c:228] +PASSED: mc3Constructed == 2 [loop_test8.c:229] +PASSED: mc4Constructed == 1 [loop_test8.c:230] +PASSED: mc5Constructed == 1 [loop_test8.c:231] +PASSED: mc1Unloaded == 0 [loop_test8.c:232] +PASSED: mc2Unloaded == 1 [loop_test8.c:233] +PASSED: mc3Unloaded == 1 [loop_test8.c:234] +#passed: 26 +#failed: 0 +#total tests run: 26 +_level0.mc5unloaded diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test8/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test8/test.swf new file mode 100644 index 000000000000..f48f67ba233a Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test8/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test8/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test8/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test8/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test9/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test9/output.txt new file mode 100644 index 000000000000..4d299d1d48f6 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test9/output.txt @@ -0,0 +1,15 @@ +_level0.movieClip1 constructed +_level0.movieClip2 constructed +_level0.movieClip3 constructed +PASSED: 13617 == 13617 +PASSED: -16381 == -16381 +PASSED: 13616 == 13616 +PASSED: undefined == undefined +PASSED: undefined == undefined +PASSED: movieclip == movieclip +PASSED: mc2 == mc2 +PASSED: 1 == 1 +PASSED: 1 == 1 +#passed: 9 +#failed: 0 +#total tests run: 9 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test9/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test9/test.swf new file mode 100644 index 000000000000..a14ec01e5c45 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test9/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test9/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test9/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loop/loop_test9/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/frame1.expected.png b/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/frame1.expected.png new file mode 100644 index 000000000000..a54d65ca26a6 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/frame1.expected.png differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/frame2.expected.png b/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/frame2.expected.png new file mode 100644 index 000000000000..2e7a512a8caa Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/frame2.expected.png differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/frame3.expected.png b/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/frame3.expected.png new file mode 100644 index 000000000000..0ae148ae3673 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/frame3.expected.png differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/frame4.expected.png b/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/frame4.expected.png new file mode 100644 index 000000000000..c831936bae70 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/frame4.expected.png differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/frame5.expected.png b/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/frame5.expected.png new file mode 100644 index 000000000000..a54d65ca26a6 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/frame5.expected.png differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/frame6.expected.png b/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/frame6.expected.png new file mode 100644 index 000000000000..2e7a512a8caa Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/frame6.expected.png differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/frame7.expected.png b/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/frame7.expected.png new file mode 100644 index 000000000000..0ae148ae3673 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/frame7.expected.png differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/output.txt new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/test.swf new file mode 100644 index 000000000000..866c731a78f6 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/test.toml new file mode 100644 index 000000000000..8bcb12dd33a2 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/loop/simple_loop_test/test.toml @@ -0,0 +1,32 @@ +num_frames = 30 + +[image_comparisons.frame1] +tolerance = 1 +trigger = 2 + +[image_comparisons.frame2] +tolerance = 1 +trigger = 3 + +[image_comparisons.frame3] +tolerance = 1 +trigger = 4 + +[image_comparisons.frame4] +tolerance = 1 +trigger = 5 + +[image_comparisons.frame5] +tolerance = 1 +trigger = 6 + +[image_comparisons.frame6] +tolerance = 1 +trigger = 7 + +[image_comparisons.frame7] +tolerance = 1 +trigger = 8 + +[player_options] +with_renderer = { optional = false, sample_count = 1 } diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/masks_test/input.json b/tests/tests/swfs/from_gnash/misc-ming.all/masks_test/input.json new file mode 100644 index 000000000000..4d85c5420942 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/masks_test/input.json @@ -0,0 +1,83 @@ +[ + { + "type": "Wait" + }, + { + "type": "KeyDown", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "KeyUp", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "KeyDown", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "KeyUp", + "key": { + "Char": "a" + } + }, + { + "type": "KeyDown", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "KeyUp", + "key": { + "Char": "a" + } + }, + { + "type": "KeyDown", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "KeyUp", + "key": { + "Char": "a" + } + } + { + "type": "KeyDown", + "key": { + "Char": "a" + } + }, + { + "type": "Wait" + }, + { + "type": "KeyUp", + "key": { + "Char": "a" + } + }, +] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/masks_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/masks_test/output.txt new file mode 100644 index 000000000000..2f8e577b89db --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/masks_test/output.txt @@ -0,0 +1,175 @@ +Test masks and dynamic masks at different depth ranges. +PASSED: staticmc2.getDepth() == -16382 [masks_test.c:164] +PASSED: staticmc2.hitTest(10, 210, true) [masks_test.c:165] +PASSED: staticmc2.hitTest(50, 250, true) [masks_test.c:166] +PASSED: staticmc3.getDepth() == -16381 [masks_test.c:169] +PASSED: staticmc3.hitTest(40, 210, true) [masks_test.c:170] +PASSED: staticmc3.hitTest(80, 250, true) [masks_test.c:171] +PASSED: staticmc4.getDepth() == -16380 [masks_test.c:174] +PASSED: staticmc4.hitTest(210, 210, true) [masks_test.c:175] +PASSED: staticmc4.hitTest(250, 250, true) [masks_test.c:176] +PASSED: staticmc5.getDepth() == -16379 [masks_test.c:179] +PASSED: staticmc5.hitTest(240, 210, true) [masks_test.c:180] +PASSED: staticmc5.hitTest(280, 250, true) [masks_test.c:181] +PASSED: dynamicmc2.getDepth() == 12 [masks_test.c:184] +PASSED: dynamicmc2.hitTest(10, 310, true) [masks_test.c:185] +PASSED: dynamicmc2.hitTest(50, 350, true) [masks_test.c:186] +PASSED: dynamicmc3.getDepth() == 13 [masks_test.c:189] +PASSED: dynamicmc3.hitTest(40, 310, true) [masks_test.c:190] +PASSED: dynamicmc3.hitTest(80, 350, true) [masks_test.c:191] +PASSED: dynamicmc4.getDepth() == 14 [masks_test.c:194] +PASSED: dynamicmc4.hitTest(210, 310, true) [masks_test.c:195] +PASSED: dynamicmc4.hitTest(250, 350, true) [masks_test.c:196] +PASSED: dynamicmc5.getDepth() == 15 [masks_test.c:199] +PASSED: dynamicmc5.hitTest(240, 310, true) [masks_test.c:200] +PASSED: dynamicmc5.hitTest(280, 350, true) [masks_test.c:201] +Placed staticmc2 (red), staticmc3 (yellow), staticmc4 (green), staticmc5 (cyan) DisplayObjects +Placed dynamicmc2 (blue), dynamicmc3 (violet), dynamicmc4 (dark green), dynamicmc5 (light blue) DisplayObjects + - Press any key to continue - +staticmc2.setMask(staticmc3) [red masked by yellow] +staticmc5.setMask(staticmc4) [cyan masked by green] +dynamicmc2.setMask(dynamicmc3) [blue masked by violet +dynamicmc5.setMask(dynamicmc4) [light blue masked by dark green +PASSED: typeof(sm23) == 'boolean' [masks_test.c:229] +PASSED: sm23 == true [masks_test.c:230] +PASSED: typeof(sm54) == 'boolean' [masks_test.c:231] +PASSED: sm54 == true [masks_test.c:232] +PASSED: typeof(dm23) == 'boolean' [masks_test.c:233] +PASSED: dm23 == true [masks_test.c:234] +PASSED: typeof(dm54) == 'boolean' [masks_test.c:235] +PASSED: dm54 == true [masks_test.c:236] +PASSED: !staticmc2.hitTest(10, 210, true) [masks_test.c:241] +PASSED: staticmc2.hitTest(10, 210, false) [masks_test.c:242] +PASSED: staticmc2.hitTest(50, 250, true) [masks_test.c:243] +PASSED: staticmc3.hitTest(40, 210, false) [masks_test.c:248] +PASSED: staticmc3.hitTest(80, 250, false) [masks_test.c:249] +PASSED: !staticmc3.hitTest(40, 210, true) [masks_test.c:250] +PASSED: !staticmc3.hitTest(80, 250, true) [masks_test.c:251] +PASSED: !staticmc4.hitTest(210, 210, true) [masks_test.c:256] +PASSED: !staticmc4.hitTest(250, 250, true) [masks_test.c:257] +PASSED: staticmc4.hitTest(210, 210, false) [masks_test.c:258] +PASSED: staticmc4.hitTest(250, 250, false) [masks_test.c:259] +PASSED: staticmc5.hitTest(240, 210, true) [masks_test.c:264] +PASSED: !staticmc5.hitTest(280, 250, true) [masks_test.c:265] +PASSED: staticmc5.hitTest(280, 250, false) [masks_test.c:266] +PASSED: !dynamicmc2.hitTest(10, 310, true) [masks_test.c:271] +PASSED: dynamicmc2.hitTest(10, 310, false) [masks_test.c:272] +PASSED: dynamicmc2.hitTest(50, 350, true) [masks_test.c:273] +PASSED: !dynamicmc3.hitTest(40, 310, true) [masks_test.c:278] +PASSED: !dynamicmc3.hitTest(80, 350, true) [masks_test.c:279] +PASSED: dynamicmc3.hitTest(40, 310, false) [masks_test.c:280] +PASSED: dynamicmc3.hitTest(80, 350, false) [masks_test.c:281] +PASSED: !dynamicmc4.hitTest(210, 310, true) [masks_test.c:284] +PASSED: !dynamicmc4.hitTest(250, 350, true) [masks_test.c:285] +PASSED: dynamicmc4.hitTest(210, 310, false) [masks_test.c:286] +PASSED: dynamicmc4.hitTest(250, 350, false) [masks_test.c:287] +PASSED: dynamicmc5.hitTest(240, 310, true) [masks_test.c:292] +PASSED: !dynamicmc5.hitTest(280, 350, true) [masks_test.c:293] +PASSED: dynamicmc5.hitTest(280, 350, false) [masks_test.c:294] + - Press any key to continue - +Swapped depths of chars 2/3 and 4/5 to see if masks are still in effect + - Press any key to continue - +PASSED: staticmc2.getDepth() == -16381 [masks_test.c:317] +PASSED: staticmc3.getDepth() == -16382 [masks_test.c:318] +PASSED: staticmc4.getDepth() == -16379 [masks_test.c:319] +PASSED: staticmc5.getDepth() == -16380 [masks_test.c:320] +PASSED: dynamicmc2.getDepth() == 13 [masks_test.c:321] +PASSED: dynamicmc3.getDepth() == 12 [masks_test.c:322] +PASSED: dynamicmc4.getDepth() == 15 [masks_test.c:323] +PASSED: dynamicmc5.getDepth() == 14 [masks_test.c:324] +PASSED: !staticmc2.hitTest(10, 210, true) [masks_test.c:331] +PASSED: staticmc2.hitTest(10, 210, false) [masks_test.c:332] +PASSED: staticmc2.hitTest(50, 250, true) [masks_test.c:333] +PASSED: staticmc3.hitTest(40, 210, false) [masks_test.c:338] +PASSED: staticmc3.hitTest(80, 250, false) [masks_test.c:339] +PASSED: !staticmc3.hitTest(40, 210, true) [masks_test.c:340] +PASSED: !staticmc3.hitTest(80, 250, true) [masks_test.c:341] +PASSED: staticmc4.hitTest(210, 210, false) [masks_test.c:346] +PASSED: staticmc4.hitTest(250, 250, false) [masks_test.c:347] +PASSED: !staticmc4.hitTest(210, 210, true) [masks_test.c:348] +PASSED: !staticmc4.hitTest(250, 250, true) [masks_test.c:349] +PASSED: staticmc5.hitTest(240, 210, true) [masks_test.c:354] +PASSED: !staticmc5.hitTest(280, 250, true) [masks_test.c:355] +PASSED: staticmc5.hitTest(280, 250, false) [masks_test.c:356] +PASSED: !dynamicmc2.hitTest(10, 310, true) [masks_test.c:361] +PASSED: dynamicmc2.hitTest(10, 310, false) [masks_test.c:362] +PASSED: dynamicmc2.hitTest(50, 350, true) [masks_test.c:363] +PASSED: !dynamicmc3.hitTest(40, 310, true) [masks_test.c:368] +PASSED: !dynamicmc3.hitTest(80, 350, true) [masks_test.c:369] +PASSED: dynamicmc3.hitTest(40, 310, false) [masks_test.c:370] +PASSED: dynamicmc3.hitTest(80, 350, false) [masks_test.c:371] +PASSED: !dynamicmc4.hitTest(210, 310, true) [masks_test.c:374] +PASSED: !dynamicmc4.hitTest(250, 350, true) [masks_test.c:375] +PASSED: dynamicmc4.hitTest(210, 310, false) [masks_test.c:376] +PASSED: dynamicmc4.hitTest(250, 350, false) [masks_test.c:377] +PASSED: dynamicmc5.hitTest(240, 310, true) [masks_test.c:382] +PASSED: !dynamicmc5.hitTest(280, 350, true) [masks_test.c:383] +PASSED: dynamicmc5.hitTest(280, 350, false) [masks_test.c:384] +Swapped mask/maskee: + staticmc3.setMask(staticmc2) [yellow masked by red] + staticmc4.setMask(staticmc5) [green masked by cyan] + dynamicmc3.setMask(dynamicmc4) [violet masked by blue + dynamicmc4.setMask(dynamicmc5) [dark green masked by light blue +PASSED: typeof(sm32) == 'boolean' [masks_test.c:404] +PASSED: sm32 == true [masks_test.c:405] +PASSED: typeof(sm45) == 'boolean' [masks_test.c:406] +PASSED: sm45 == true [masks_test.c:407] +PASSED: typeof(dm32) == 'boolean' [masks_test.c:408] +PASSED: dm32 == true [masks_test.c:409] +PASSED: typeof(dm45) == 'boolean' [masks_test.c:410] +PASSED: dm45 == true [masks_test.c:411] +PASSED: !staticmc2.hitTest(10, 210, true) [masks_test.c:414] +PASSED: !staticmc2.hitTest(50, 250, true) [masks_test.c:415] +PASSED: staticmc2.hitTest(10, 210, false) [masks_test.c:416] +PASSED: staticmc2.hitTest(50, 250, false) [masks_test.c:417] +PASSED: !staticmc3.hitTest(40, 210, true) [masks_test.c:424] +PASSED: !staticmc3.hitTest(80, 250, true) [masks_test.c:425] +PASSED: staticmc3.hitTest(80, 250, false) [masks_test.c:426] +PASSED: staticmc3.hitTest(40, 210, false) [masks_test.c:427] +PASSED: !staticmc4.hitTest(210, 210, true) [masks_test.c:434] +PASSED: !staticmc4.hitTest(250, 250, true) [masks_test.c:435] +PASSED: staticmc4.hitTest(210, 210, false) [masks_test.c:436] +PASSED: staticmc4.hitTest(250, 250, false) [masks_test.c:437] +PASSED: !staticmc5.hitTest(240, 210, true) [masks_test.c:440] +PASSED: !staticmc5.hitTest(280, 250, true) [masks_test.c:441] +PASSED: staticmc5.hitTest(240, 210, false) [masks_test.c:442] +PASSED: staticmc5.hitTest(280, 250, false) [masks_test.c:443] +PASSED: !dynamicmc2.hitTest(10, 310, true) [masks_test.c:446] +PASSED: !dynamicmc2.hitTest(50, 350, true) [masks_test.c:447] +PASSED: dynamicmc2.hitTest(10, 310, false) [masks_test.c:448] +PASSED: dynamicmc2.hitTest(50, 350, false) [masks_test.c:449] +PASSED: dynamicmc3.hitTest(40, 310, true) [masks_test.c:452] +PASSED: !dynamicmc3.hitTest(80, 350, true) [masks_test.c:453] +PASSED: dynamicmc3.hitTest(80, 350, false) [masks_test.c:454] +PASSED: !dynamicmc4.hitTest(210, 310, true) [masks_test.c:457] +PASSED: dynamicmc4.hitTest(210, 310, false) [masks_test.c:458] +PASSED: dynamicmc4.hitTest(250, 350, true) [masks_test.c:459] +PASSED: dynamicmc5.hitTest(240, 310, false) [masks_test.c:462] +PASSED: dynamicmc5.hitTest(280, 350, false) [masks_test.c:463] +PASSED: !dynamicmc5.hitTest(240, 310, true) [masks_test.c:464] +PASSED: !dynamicmc5.hitTest(280, 350, true) [masks_test.c:465] + - Press any key to continue - +Made all DisplayObjects mouse-sensitive +PASSED: staticmc2.hitTest(10, 210, true) [masks_test.c:484] +PASSED: staticmc2.hitTest(50, 250, true) [masks_test.c:485] +PASSED: staticmc3.hitTest(40, 210, true) [masks_test.c:491] +PASSED: !staticmc3.hitTest(80, 250, true) [masks_test.c:492] +PASSED: staticmc3.hitTest(80, 250, false) [masks_test.c:493] +PASSED: !staticmc4.hitTest(210, 210, true) [masks_test.c:499] +PASSED: staticmc4.hitTest(250, 250, true) [masks_test.c:500] +PASSED: staticmc4.hitTest(210, 210, false) [masks_test.c:501] +PASSED: staticmc5.hitTest(240, 210, true) [masks_test.c:504] +PASSED: staticmc5.hitTest(280, 250, true) [masks_test.c:505] +PASSED: dynamicmc2.hitTest(10, 310, true) [masks_test.c:508] +PASSED: dynamicmc2.hitTest(50, 350, true) [masks_test.c:509] +PASSED: dynamicmc3.hitTest(40, 310, true) [masks_test.c:512] +PASSED: !dynamicmc3.hitTest(80, 350, true) [masks_test.c:513] +PASSED: dynamicmc3.hitTest(80, 350, false) [masks_test.c:514] +PASSED: !dynamicmc4.hitTest(210, 310, true) [masks_test.c:517] +PASSED: dynamicmc4.hitTest(210, 310, false) [masks_test.c:518] +PASSED: dynamicmc4.hitTest(250, 350, true) [masks_test.c:519] +PASSED: dynamicmc5.hitTest(240, 310, true) [masks_test.c:522] +PASSED: dynamicmc5.hitTest(280, 350, true) [masks_test.c:523] +#passed: 154 +#failed: 0 +#total tests run: 154 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/masks_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/masks_test/test.swf new file mode 100644 index 000000000000..0fa902f07847 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/masks_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/masks_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/masks_test/test.toml new file mode 100644 index 000000000000..e5f9afc42d3d --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/masks_test/test.toml @@ -0,0 +1,2 @@ +num_ticks = 100 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/masks_test2/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/masks_test2/output.txt new file mode 100644 index 000000000000..c2a293dc077a --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/masks_test2/output.txt @@ -0,0 +1,10 @@ +PASSED: mc1.hitTest(28, 28, true) [masks_test2.c:107] +PASSED: mc2.hitTest(58, 58, true) [masks_test2.c:108] +PASSED: mc3.hitTest(88, 88, true) [masks_test2.c:109] +PASSED: mc4.hitTest(118, 118, true) [masks_test2.c:110] +PASSED: mc5.hitTest(148, 148, true) [masks_test2.c:111] +PASSED: mc6.hitTest(178, 178, true) [masks_test2.c:112] +PASSED: mc7.hitTest(208, 208, true) [masks_test2.c:125] +#passed: 7 +#failed: 0 +#total tests run: 7 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/masks_test2/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/masks_test2/test.swf new file mode 100644 index 000000000000..2e7591c86090 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/masks_test2/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/masks_test2/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/masks_test2/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/masks_test2/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/matrix_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/matrix_test/output.txt new file mode 100644 index 000000000000..e43936ba2969 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/matrix_test/output.txt @@ -0,0 +1,1086 @@ +PASSED: typeof(staticmc) == 'movieclip' [matrix_test.c:135] +PASSED: staticmc._x == 50 [matrix_test.c:136] +PASSED: staticmc._y == 300 [matrix_test.c:137] +PASSED: staticmc._xscale == 100 [matrix_test.c:138] +PASSED: staticmc._yscale == 100 [matrix_test.c:139] +PASSED: staticmc._rotation == 0 [matrix_test.c:140] +PASSED: staticmc._width == 60.1 [matrix_test.c:141] +PASSED: staticmc._height == 60.1 [matrix_test.c:142] +PASSED: printBounds(staticmc.getBounds(_root)) == '19.95,269.95 80.05,330.05' [matrix_test.c:144] +PASSED: staticmc.hitTest(21, 270, false) [matrix_test.c:149] +PASSED: staticmc.hitTest(79, 270, false) [matrix_test.c:150] +PASSED: staticmc.hitTest(21, 329, false) [matrix_test.c:151] +PASSED: staticmc.hitTest(79, 329, false) [matrix_test.c:152] +PASSED: !staticmc.hitTest(18, 300, false) [matrix_test.c:154] +PASSED: !staticmc.hitTest(82, 300, false) [matrix_test.c:155] +PASSED: !staticmc.hitTest(50, 260, false) [matrix_test.c:156] +PASSED: !staticmc.hitTest(50, 331, false) [matrix_test.c:157] +PASSED: staticmc._x == 50 [matrix_test.c:163] +PASSED: staticmc._y == 300 [matrix_test.c:164] +PASSED: Math.round(staticmc._xscale) == 100 [matrix_test.c:165] +PASSED: Math.round(staticmc._yscale) == 100 [matrix_test.c:166] +PASSED: staticmc._rotation == 45 [matrix_test.c:167] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:168] +PASSED: printBounds(staticmc.getBounds(_root)) == '7.5,257.5 92.5,342.5' [matrix_test.c:169] +PASSED: staticmc._width == 85 [matrix_test.c:170] +PASSED: staticmc._height == 85 [matrix_test.c:171] +PASSED: staticmc.hitTest(8, 258, false) [matrix_test.c:176] +PASSED: staticmc.hitTest(90, 258, false) [matrix_test.c:177] +PASSED: staticmc.hitTest(8, 340, false) [matrix_test.c:178] +PASSED: staticmc.hitTest(90, 340, false) [matrix_test.c:179] +PASSED: !staticmc.hitTest(6, 300, false) [matrix_test.c:181] +PASSED: !staticmc.hitTest(95, 300, false) [matrix_test.c:182] +PASSED: !staticmc.hitTest(50, 250, false) [matrix_test.c:183] +PASSED: !staticmc.hitTest(50, 345, false) [matrix_test.c:184] +PASSED: staticmc._x == 50 [matrix_test.c:191] +PASSED: staticmc._y == 300 [matrix_test.c:192] +PASSED: Math.round(staticmc._xscale) == 200 [matrix_test.c:193] +PASSED: Math.round(staticmc._yscale) == 300 [matrix_test.c:194] +PASSED: staticmc._rotation == 45 [matrix_test.c:195] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:196] +PASSED: printBounds(staticmc.getBounds(_root)) == '-56.25,193.75 156.25,406.25' [matrix_test.c:197] +PASSED: staticmc._width == 212.5 [matrix_test.c:198] +PASSED: staticmc._height == 212.5 [matrix_test.c:199] +PASSED: staticmc.hitTest(-56, 194, false) [matrix_test.c:204] +PASSED: staticmc.hitTest(156, 194, false) [matrix_test.c:205] +PASSED: staticmc.hitTest(-56, 406, false) [matrix_test.c:206] +PASSED: staticmc.hitTest(156, 406, false) [matrix_test.c:207] +PASSED: !staticmc.hitTest(-57, 300, false) [matrix_test.c:209] +PASSED: !staticmc.hitTest(157, 300, false) [matrix_test.c:210] +PASSED: !staticmc.hitTest(50, 193, false) [matrix_test.c:211] +PASSED: !staticmc.hitTest(50, 407, false) [matrix_test.c:212] +PASSED: staticmc._x == 50 [matrix_test.c:218] +PASSED: staticmc._y == 300 [matrix_test.c:219] +PASSED: Math.round(staticmc._xscale) == 447 [matrix_test.c:220] +PASSED: Math.round(staticmc._yscale) == 300 [matrix_test.c:221] +PASSED: Math.round(staticmc._rotation*1000) == 18435 [matrix_test.c:222] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:223] +PASSED: printBounds(staticmc.getBounds(_root)) == '-141.25,193.75 241.25,406.25' [matrix_test.c:224] +PASSED: staticmc._width == 382.5 [matrix_test.c:225] +PASSED: staticmc._height == 212.5 [matrix_test.c:226] +PASSED: staticmc.hitTest(-141, 194, false) [matrix_test.c:231] +PASSED: staticmc.hitTest(241, 194, false) [matrix_test.c:232] +PASSED: staticmc.hitTest(-141, 406, false) [matrix_test.c:233] +PASSED: staticmc.hitTest(241, 406, false) [matrix_test.c:234] +PASSED: !staticmc.hitTest(-142, 300, false) [matrix_test.c:236] +PASSED: !staticmc.hitTest(242, 300, false) [matrix_test.c:237] +PASSED: !staticmc.hitTest(50, 193, false) [matrix_test.c:238] +PASSED: !staticmc.hitTest(50, 407, false) [matrix_test.c:239] +PASSED: staticmc._x == 50 [matrix_test.c:245] +PASSED: staticmc._y == 300 [matrix_test.c:246] +PASSED: Math.round(staticmc._xscale) == 447 [matrix_test.c:247] +PASSED: Math.round(staticmc._yscale) == 300 [matrix_test.c:248] +PASSED: Math.round(staticmc._rotation*1000) == 18435 [matrix_test.c:249] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:250] +PASSED: printBounds(staticmc.getBounds(_root)) == '-141.25,193.75 241.25,406.25' [matrix_test.c:251] +PASSED: staticmc._width == 382.5 [matrix_test.c:252] +PASSED: staticmc._height == 212.5 [matrix_test.c:253] +PASSED: staticmc.hitTest(-141, 194, false) [matrix_test.c:258] +PASSED: staticmc.hitTest(241, 194, false) [matrix_test.c:259] +PASSED: staticmc.hitTest(-141, 406, false) [matrix_test.c:260] +PASSED: staticmc.hitTest(241, 406, false) [matrix_test.c:261] +PASSED: !staticmc.hitTest(-142, 300, false) [matrix_test.c:263] +PASSED: !staticmc.hitTest(242, 300, false) [matrix_test.c:264] +PASSED: !staticmc.hitTest(50, 193, false) [matrix_test.c:265] +PASSED: !staticmc.hitTest(50, 407, false) [matrix_test.c:266] +PASSED: staticmc._x == 50 [matrix_test.c:272] +PASSED: staticmc._y == 300 [matrix_test.c:273] +PASSED: Math.round(staticmc._xscale) == 200 [matrix_test.c:274] +PASSED: Math.round(staticmc._yscale) == 300 [matrix_test.c:275] +PASSED: staticmc._rotation == 45 [matrix_test.c:276] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:277] +PASSED: printBounds(staticmc.getBounds(_root)) == '-56.25,193.75 156.25,406.25' [matrix_test.c:278] +PASSED: staticmc._width == 212.5 [matrix_test.c:279] +PASSED: staticmc._height == 212.5 [matrix_test.c:280] +PASSED: staticmc.hitTest(-56, 194, false) [matrix_test.c:285] +PASSED: staticmc.hitTest(156, 194, false) [matrix_test.c:286] +PASSED: staticmc.hitTest(-56, 406, false) [matrix_test.c:287] +PASSED: staticmc.hitTest(156, 406, false) [matrix_test.c:288] +PASSED: !staticmc.hitTest(-57, 300, false) [matrix_test.c:290] +PASSED: !staticmc.hitTest(157, 300, false) [matrix_test.c:291] +PASSED: !staticmc.hitTest(50, 193, false) [matrix_test.c:292] +PASSED: !staticmc.hitTest(50, 407, false) [matrix_test.c:293] +PASSED: staticmc._x == 50 [matrix_test.c:300] +PASSED: staticmc._y == 300 [matrix_test.c:301] +PASSED: Math.round(staticmc._xscale) == 200 [matrix_test.c:302] +PASSED: Math.round(staticmc._yscale) == 200 [matrix_test.c:303] +PASSED: staticmc._rotation == -135 [matrix_test.c:304] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:305] +PASSED: printBounds(staticmc.getBounds(_root)) == '-35,215 135,385' [matrix_test.c:306] +PASSED: staticmc._width == 170 [matrix_test.c:307] +PASSED: staticmc._height == 170 [matrix_test.c:308] +PASSED: staticmc.hitTest(-34, 216, false) [matrix_test.c:313] +PASSED: staticmc.hitTest(134, 216, false) [matrix_test.c:314] +PASSED: staticmc.hitTest(-34, 384, false) [matrix_test.c:315] +PASSED: staticmc.hitTest(134, 384, false) [matrix_test.c:316] +PASSED: !staticmc.hitTest(-36, 300, false) [matrix_test.c:318] +PASSED: !staticmc.hitTest(136, 300, false) [matrix_test.c:319] +PASSED: !staticmc.hitTest(50, 214, false) [matrix_test.c:320] +PASSED: !staticmc.hitTest(50, 386, false) [matrix_test.c:321] +PASSED: staticmc._x == 50 [matrix_test.c:328] +PASSED: staticmc._y == 300 [matrix_test.c:329] +PASSED: Math.round(staticmc._xscale) == 100 [matrix_test.c:330] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:331] +PASSED: Math.round(staticmc._rotation) == 135 [matrix_test.c:332] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:333] +PASSED: printBounds(staticmc.getBounds(_root)) == '-35,257.5 135,342.5' [matrix_test.c:334] +PASSED: staticmc._width == 170 [matrix_test.c:335] +PASSED: staticmc._height == 85 [matrix_test.c:336] +PASSED: staticmc.hitTest(-34, 258, false) [matrix_test.c:341] +PASSED: staticmc.hitTest(134, 258, false) [matrix_test.c:342] +PASSED: staticmc.hitTest(-34, 342, false) [matrix_test.c:343] +PASSED: staticmc.hitTest(134, 342, false) [matrix_test.c:344] +PASSED: !staticmc.hitTest(-36, 300, false) [matrix_test.c:346] +PASSED: !staticmc.hitTest(136, 300, false) [matrix_test.c:347] +PASSED: !staticmc.hitTest(50, 257, false) [matrix_test.c:348] +PASSED: !staticmc.hitTest(50, 343, false) [matrix_test.c:349] +PASSED: staticmc.transform.matrix.toString() == '(a=1, b=0, c=0, d=1, tx=50, ty=300)' [matrix_test.c:353] +PASSED: staticmc._x == 50 [matrix_test.c:355] +PASSED: staticmc._y == 300 [matrix_test.c:356] +PASSED: staticmc._xscale == 100 [matrix_test.c:357] +PASSED: staticmc._yscale == 100 [matrix_test.c:358] +PASSED: staticmc._rotation == 0 [matrix_test.c:359] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:360] +PASSED: printBounds(staticmc.getBounds(_root)) == '19.95,269.95 80.05,330.05' [matrix_test.c:361] +PASSED: staticmc._width == 60.1 [matrix_test.c:362] +PASSED: staticmc._height == 60.1 [matrix_test.c:363] +PASSED: staticmc.hitTest(20, 270, false) [matrix_test.c:368] +PASSED: staticmc.hitTest(80, 270, false) [matrix_test.c:369] +PASSED: staticmc.hitTest(20, 330, false) [matrix_test.c:370] +PASSED: staticmc.hitTest(80, 330, false) [matrix_test.c:371] +PASSED: !staticmc.hitTest(19, 300, false) [matrix_test.c:373] +PASSED: !staticmc.hitTest(81, 300, false) [matrix_test.c:374] +PASSED: !staticmc.hitTest(50, 269, false) [matrix_test.c:375] +PASSED: !staticmc.hitTest(50, 331, false) [matrix_test.c:376] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=0, c=0, d=1, tx=50, ty=300)' [matrix_test.c:380] +PASSED: staticmc._x == 50 [matrix_test.c:382] +PASSED: staticmc._y == 300 [matrix_test.c:383] +PASSED: staticmc._xscale == 100 [matrix_test.c:384] +PASSED: staticmc._yscale == 100 [matrix_test.c:385] +PASSED: staticmc._rotation == 180 [matrix_test.c:386] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:387] +PASSED: printBounds(staticmc.getBounds(_root)) == '19.95,269.95 80.05,330.05' [matrix_test.c:388] +PASSED: staticmc._width == 60.1 [matrix_test.c:389] +PASSED: staticmc._height == 60.1 [matrix_test.c:390] +PASSED: staticmc.hitTest(20, 270, false) [matrix_test.c:395] +PASSED: staticmc.hitTest(80, 270, false) [matrix_test.c:396] +PASSED: staticmc.hitTest(20, 330, false) [matrix_test.c:397] +PASSED: staticmc.hitTest(80, 330, false) [matrix_test.c:398] +PASSED: !staticmc.hitTest(19, 300, false) [matrix_test.c:400] +PASSED: !staticmc.hitTest(81, 300, false) [matrix_test.c:401] +PASSED: !staticmc.hitTest(50, 269, false) [matrix_test.c:402] +PASSED: !staticmc.hitTest(50, 331, false) [matrix_test.c:403] +PASSED: staticmc.transform.matrix.toString() == '(a=1, b=0, c=0, d=-1, tx=50, ty=300)' [matrix_test.c:407] +PASSED: staticmc._x == 50 [matrix_test.c:409] +PASSED: staticmc._y == 300 [matrix_test.c:410] +PASSED: staticmc._xscale == 100 [matrix_test.c:411] +PASSED: staticmc._yscale == 100 [matrix_test.c:412] +PASSED: staticmc._rotation == 0 [matrix_test.c:413] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:414] +PASSED: printBounds(staticmc.getBounds(_root)) == '19.95,269.95 80.05,330.05' [matrix_test.c:415] +PASSED: staticmc._width == 60.1 [matrix_test.c:416] +PASSED: staticmc._height == 60.1 [matrix_test.c:417] +PASSED: staticmc.hitTest(20, 270, false) [matrix_test.c:422] +PASSED: staticmc.hitTest(80, 270, false) [matrix_test.c:423] +PASSED: staticmc.hitTest(20, 330, false) [matrix_test.c:424] +PASSED: staticmc.hitTest(80, 330, false) [matrix_test.c:425] +PASSED: !staticmc.hitTest(19, 300, false) [matrix_test.c:427] +PASSED: !staticmc.hitTest(81, 300, false) [matrix_test.c:428] +PASSED: !staticmc.hitTest(50, 269, false) [matrix_test.c:429] +PASSED: !staticmc.hitTest(50, 331, false) [matrix_test.c:430] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=0, c=0, d=-1, tx=50, ty=300)' [matrix_test.c:434] +PASSED: staticmc._x == 50 [matrix_test.c:436] +PASSED: staticmc._y == 300 [matrix_test.c:437] +PASSED: staticmc._xscale == 100 [matrix_test.c:438] +PASSED: staticmc._yscale == 100 [matrix_test.c:439] +PASSED: staticmc._rotation == 180 [matrix_test.c:440] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:441] +PASSED: printBounds(staticmc.getBounds(_root)) == '19.95,269.95 80.05,330.05' [matrix_test.c:442] +PASSED: staticmc._width == 60.1 [matrix_test.c:443] +PASSED: staticmc._height == 60.1 [matrix_test.c:444] +PASSED: staticmc.hitTest(20, 270, false) [matrix_test.c:449] +PASSED: staticmc.hitTest(80, 270, false) [matrix_test.c:450] +PASSED: staticmc.hitTest(20, 330, false) [matrix_test.c:451] +PASSED: staticmc.hitTest(80, 330, false) [matrix_test.c:452] +PASSED: !staticmc.hitTest(19, 300, false) [matrix_test.c:454] +PASSED: !staticmc.hitTest(81, 300, false) [matrix_test.c:455] +PASSED: !staticmc.hitTest(50, 269, false) [matrix_test.c:456] +PASSED: !staticmc.hitTest(50, 331, false) [matrix_test.c:457] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=-45, c=0, d=1, tx=50, ty=300)' [matrix_test.c:461] +PASSED: staticmc._x == 50 [matrix_test.c:463] +PASSED: staticmc._y == 300 [matrix_test.c:464] +PASSED: Math.round(staticmc._xscale) == 4501 [matrix_test.c:465] +PASSED: staticmc._yscale == 100 [matrix_test.c:466] +PASSED: Math.round(staticmc._rotation) == -91 [matrix_test.c:467] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:468] +PASSED: printBounds(staticmc.getBounds(_root)) == '19.95,-1082.3 80.05,1682.3' [matrix_test.c:469] +PASSED: staticmc._width == 60.1 [matrix_test.c:470] +PASSED: Math.round(staticmc._height*10) == 27646 [matrix_test.c:471] +PASSED: staticmc.hitTest(20, -1082, false) [matrix_test.c:476] +PASSED: staticmc.hitTest(80, -1082, false) [matrix_test.c:477] +PASSED: staticmc.hitTest(20, 1682, false) [matrix_test.c:478] +PASSED: staticmc.hitTest(80, 1682, false) [matrix_test.c:479] +PASSED: !staticmc.hitTest(19, 0, false) [matrix_test.c:481] +PASSED: !staticmc.hitTest(81, 0, false) [matrix_test.c:482] +PASSED: !staticmc.hitTest(50, -1083, false) [matrix_test.c:483] +PASSED: !staticmc.hitTest(50, 1683, false) [matrix_test.c:484] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=45, c=0, d=1, tx=50, ty=300)' [matrix_test.c:488] +PASSED: staticmc._x == 50 [matrix_test.c:490] +PASSED: staticmc._y == 300 [matrix_test.c:491] +PASSED: Math.round(staticmc._xscale) == 4501 [matrix_test.c:492] +PASSED: staticmc._yscale == 100 [matrix_test.c:493] +PASSED: Math.round(staticmc._rotation) == 91 [matrix_test.c:494] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:495] +PASSED: printBounds(staticmc.getBounds(_root)) == '19.95,-1082.3 80.05,1682.3' [matrix_test.c:496] +PASSED: staticmc._width == 60.1 [matrix_test.c:497] +PASSED: Math.round(staticmc._height*10) == 27646 [matrix_test.c:498] +PASSED: staticmc.hitTest(20, -1082, false) [matrix_test.c:503] +PASSED: staticmc.hitTest(80, -1082, false) [matrix_test.c:504] +PASSED: staticmc.hitTest(20, 1682, false) [matrix_test.c:505] +PASSED: staticmc.hitTest(80, 1682, false) [matrix_test.c:506] +PASSED: !staticmc.hitTest(19, 0, false) [matrix_test.c:508] +PASSED: !staticmc.hitTest(81, 0, false) [matrix_test.c:509] +PASSED: !staticmc.hitTest(50, -1083, false) [matrix_test.c:510] +PASSED: !staticmc.hitTest(50, 1683, false) [matrix_test.c:511] +PASSED: staticmc.transform.matrix.toString() == '(a=1, b=-45, c=0, d=-1, tx=50, ty=300)' [matrix_test.c:515] +PASSED: staticmc._x == 50 [matrix_test.c:517] +PASSED: staticmc._y == 300 [matrix_test.c:518] +PASSED: Math.round(staticmc._xscale) == 4501 [matrix_test.c:519] +PASSED: staticmc._yscale == 100 [matrix_test.c:520] +PASSED: Math.round(staticmc._rotation) == -89 [matrix_test.c:521] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:522] +PASSED: printBounds(staticmc.getBounds(_root)) == '19.95,-1082.3 80.05,1682.3' [matrix_test.c:523] +PASSED: staticmc._width == 60.1 [matrix_test.c:524] +PASSED: Math.round(staticmc._height*10) == 27646 [matrix_test.c:525] +PASSED: staticmc.hitTest(20, -1082, false) [matrix_test.c:530] +PASSED: staticmc.hitTest(80, -1082, false) [matrix_test.c:531] +PASSED: staticmc.hitTest(20, 1682, false) [matrix_test.c:532] +PASSED: staticmc.hitTest(80, 1682, false) [matrix_test.c:533] +PASSED: !staticmc.hitTest(19, 0, false) [matrix_test.c:535] +PASSED: !staticmc.hitTest(81, 0, false) [matrix_test.c:536] +PASSED: !staticmc.hitTest(50, -1083, false) [matrix_test.c:537] +PASSED: !staticmc.hitTest(50, 1683, false) [matrix_test.c:538] +PASSED: staticmc.transform.matrix.toString() == '(a=1, b=45, c=0, d=-1, tx=50, ty=300)' [matrix_test.c:542] +PASSED: staticmc._x == 50 [matrix_test.c:544] +PASSED: staticmc._y == 300 [matrix_test.c:545] +PASSED: Math.round(staticmc._xscale) == 4501 [matrix_test.c:546] +PASSED: staticmc._yscale == 100 [matrix_test.c:547] +PASSED: Math.round(staticmc._rotation) == 89 [matrix_test.c:548] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:549] +PASSED: printBounds(staticmc.getBounds(_root)) == '19.95,-1082.3 80.05,1682.3' [matrix_test.c:550] +PASSED: staticmc._width == 60.1 [matrix_test.c:551] +PASSED: Math.round(staticmc._height*10) == 27646 [matrix_test.c:552] +PASSED: staticmc.hitTest(20, -1082, false) [matrix_test.c:557] +PASSED: staticmc.hitTest(80, -1082, false) [matrix_test.c:558] +PASSED: staticmc.hitTest(20, 1682, false) [matrix_test.c:559] +PASSED: staticmc.hitTest(80, 1682, false) [matrix_test.c:560] +PASSED: !staticmc.hitTest(19, 0, false) [matrix_test.c:562] +PASSED: !staticmc.hitTest(81, 0, false) [matrix_test.c:563] +PASSED: !staticmc.hitTest(50, -1083, false) [matrix_test.c:564] +PASSED: !staticmc.hitTest(50, 1683, false) [matrix_test.c:565] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=45, c=0, d=-1, tx=50, ty=300)' [matrix_test.c:569] +PASSED: staticmc._x == 50 [matrix_test.c:571] +PASSED: staticmc._y == 300 [matrix_test.c:572] +PASSED: Math.round(staticmc._xscale) == 4501 [matrix_test.c:573] +PASSED: staticmc._yscale == 100 [matrix_test.c:574] +PASSED: Math.round(staticmc._rotation) == 91 [matrix_test.c:575] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:576] +PASSED: printBounds(staticmc.getBounds(_root)) == '19.95,-1082.3 80.05,1682.3' [matrix_test.c:577] +PASSED: staticmc._width == 60.1 [matrix_test.c:578] +PASSED: Math.round(staticmc._height*10) == 27646 [matrix_test.c:579] +PASSED: staticmc.hitTest(20, -1082, false) [matrix_test.c:584] +PASSED: staticmc.hitTest(80, -1082, false) [matrix_test.c:585] +PASSED: staticmc.hitTest(20, 1682, false) [matrix_test.c:586] +PASSED: staticmc.hitTest(80, 1682, false) [matrix_test.c:587] +PASSED: !staticmc.hitTest(19, 0, false) [matrix_test.c:589] +PASSED: !staticmc.hitTest(81, 0, false) [matrix_test.c:590] +PASSED: !staticmc.hitTest(50, -1083, false) [matrix_test.c:591] +PASSED: !staticmc.hitTest(50, 1683, false) [matrix_test.c:592] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=-45, c=0, d=-1, tx=50, ty=300)' [matrix_test.c:596] +PASSED: staticmc._x == 50 [matrix_test.c:598] +PASSED: staticmc._y == 300 [matrix_test.c:599] +PASSED: Math.round(staticmc._xscale) == 4501 [matrix_test.c:600] +PASSED: staticmc._yscale == 100 [matrix_test.c:601] +PASSED: Math.round(staticmc._rotation) == -91 [matrix_test.c:602] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:603] +PASSED: printBounds(staticmc.getBounds(_root)) == '19.95,-1082.3 80.05,1682.3' [matrix_test.c:604] +PASSED: staticmc._width == 60.1 [matrix_test.c:605] +PASSED: Math.round(staticmc._height*10) == 27646 [matrix_test.c:606] +PASSED: staticmc.hitTest(20, -1082, false) [matrix_test.c:611] +PASSED: staticmc.hitTest(80, -1082, false) [matrix_test.c:612] +PASSED: staticmc.hitTest(20, 1682, false) [matrix_test.c:613] +PASSED: staticmc.hitTest(80, 1682, false) [matrix_test.c:614] +PASSED: !staticmc.hitTest(19, 0, false) [matrix_test.c:616] +PASSED: !staticmc.hitTest(81, 0, false) [matrix_test.c:617] +PASSED: !staticmc.hitTest(50, -1083, false) [matrix_test.c:618] +PASSED: !staticmc.hitTest(50, 1683, false) [matrix_test.c:619] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=0, c=-45, d=1, tx=50, ty=300)' [matrix_test.c:624] +PASSED: staticmc._x == 50 [matrix_test.c:626] +PASSED: staticmc._y == 300 [matrix_test.c:627] +PASSED: staticmc._xscale == 100 [matrix_test.c:628] +PASSED: Math.round(staticmc._yscale) == 4501 [matrix_test.c:629] +PASSED: staticmc._rotation == 180 [matrix_test.c:630] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:631] +PASSED: printBounds(staticmc.getBounds(_root)) == '-1332.3,269.95 1432.3,330.05' [matrix_test.c:632] +PASSED: Math.round(staticmc._width*10) == 27646 [matrix_test.c:633] +PASSED: staticmc._height == 60.1 [matrix_test.c:634] +PASSED: staticmc.hitTest(-1332, 270, false) [matrix_test.c:639] +PASSED: staticmc.hitTest(1432, 270, false) [matrix_test.c:640] +PASSED: staticmc.hitTest(-1332, 330, false) [matrix_test.c:641] +PASSED: staticmc.hitTest(1432, 330, false) [matrix_test.c:642] +PASSED: !staticmc.hitTest(-1333, 300, false) [matrix_test.c:644] +PASSED: !staticmc.hitTest(1433, 300, false) [matrix_test.c:645] +PASSED: !staticmc.hitTest(0, 269, false) [matrix_test.c:646] +PASSED: !staticmc.hitTest(0, 331, false) [matrix_test.c:647] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=0, c=45, d=1, tx=50, ty=300)' [matrix_test.c:652] +PASSED: staticmc._x == 50 [matrix_test.c:654] +PASSED: staticmc._y == 300 [matrix_test.c:655] +PASSED: staticmc._xscale == 100 [matrix_test.c:656] +PASSED: Math.round(staticmc._yscale) == 4501 [matrix_test.c:657] +PASSED: staticmc._rotation == 180 [matrix_test.c:658] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:659] +PASSED: printBounds(staticmc.getBounds(_root)) == '-1332.3,269.95 1432.3,330.05' [matrix_test.c:660] +PASSED: Math.round(staticmc._width*10) == 27646 [matrix_test.c:661] +PASSED: staticmc._height == 60.1 [matrix_test.c:662] +PASSED: staticmc.hitTest(-1332, 270, false) [matrix_test.c:667] +PASSED: staticmc.hitTest(1432, 270, false) [matrix_test.c:668] +PASSED: staticmc.hitTest(-1332, 330, false) [matrix_test.c:669] +PASSED: staticmc.hitTest(1432, 330, false) [matrix_test.c:670] +PASSED: !staticmc.hitTest(-1333, 300, false) [matrix_test.c:672] +PASSED: !staticmc.hitTest(1433, 300, false) [matrix_test.c:673] +PASSED: !staticmc.hitTest(0, 269, false) [matrix_test.c:674] +PASSED: !staticmc.hitTest(0, 331, false) [matrix_test.c:675] +PASSED: staticmc.transform.matrix.toString() == '(a=1, b=0, c=-45, d=-1, tx=50, ty=300)' [matrix_test.c:680] +PASSED: staticmc._x == 50 [matrix_test.c:682] +PASSED: staticmc._y == 300 [matrix_test.c:683] +PASSED: staticmc._xscale == 100 [matrix_test.c:684] +PASSED: Math.round(staticmc._yscale) == 4501 [matrix_test.c:685] +PASSED: staticmc._rotation == 0 [matrix_test.c:686] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:687] +PASSED: printBounds(staticmc.getBounds(_root)) == '-1332.3,269.95 1432.3,330.05' [matrix_test.c:688] +PASSED: Math.round(staticmc._width*10) == 27646 [matrix_test.c:689] +PASSED: staticmc._height == 60.1 [matrix_test.c:690] +PASSED: staticmc.hitTest(-1332, 270, false) [matrix_test.c:695] +PASSED: staticmc.hitTest(1432, 270, false) [matrix_test.c:696] +PASSED: staticmc.hitTest(-1332, 330, false) [matrix_test.c:697] +PASSED: staticmc.hitTest(1432, 330, false) [matrix_test.c:698] +PASSED: !staticmc.hitTest(-1333, 300, false) [matrix_test.c:700] +PASSED: !staticmc.hitTest(1433, 300, false) [matrix_test.c:701] +PASSED: !staticmc.hitTest(0, 269, false) [matrix_test.c:702] +PASSED: !staticmc.hitTest(0, 331, false) [matrix_test.c:703] +PASSED: staticmc.transform.matrix.toString() == '(a=1, b=0, c=45, d=-1, tx=50, ty=300)' [matrix_test.c:708] +PASSED: staticmc._x == 50 [matrix_test.c:710] +PASSED: staticmc._y == 300 [matrix_test.c:711] +PASSED: staticmc._xscale == 100 [matrix_test.c:712] +PASSED: Math.round(staticmc._yscale) == 4501 [matrix_test.c:713] +PASSED: staticmc._rotation == 0 [matrix_test.c:714] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:715] +PASSED: printBounds(staticmc.getBounds(_root)) == '-1332.3,269.95 1432.3,330.05' [matrix_test.c:716] +PASSED: Math.round(staticmc._width*10) == 27646 [matrix_test.c:717] +PASSED: staticmc._height == 60.1 [matrix_test.c:718] +PASSED: staticmc.hitTest(-1332, 270, false) [matrix_test.c:723] +PASSED: staticmc.hitTest(1432, 270, false) [matrix_test.c:724] +PASSED: staticmc.hitTest(-1332, 330, false) [matrix_test.c:725] +PASSED: staticmc.hitTest(1432, 330, false) [matrix_test.c:726] +PASSED: !staticmc.hitTest(-1333, 300, false) [matrix_test.c:728] +PASSED: !staticmc.hitTest(1433, 300, false) [matrix_test.c:729] +PASSED: !staticmc.hitTest(0, 269, false) [matrix_test.c:730] +PASSED: !staticmc.hitTest(0, 331, false) [matrix_test.c:731] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=0, c=45, d=-1, tx=50, ty=300)' [matrix_test.c:736] +PASSED: staticmc._x == 50 [matrix_test.c:738] +PASSED: staticmc._y == 300 [matrix_test.c:739] +PASSED: staticmc._xscale == 100 [matrix_test.c:740] +PASSED: Math.round(staticmc._yscale) == 4501 [matrix_test.c:741] +PASSED: staticmc._rotation == 180 [matrix_test.c:742] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:743] +PASSED: printBounds(staticmc.getBounds(_root)) == '-1332.3,269.95 1432.3,330.05' [matrix_test.c:744] +PASSED: Math.round(staticmc._width*10) == 27646 [matrix_test.c:745] +PASSED: staticmc._height == 60.1 [matrix_test.c:746] +PASSED: staticmc.hitTest(-1332, 270, false) [matrix_test.c:751] +PASSED: staticmc.hitTest(1432, 270, false) [matrix_test.c:752] +PASSED: staticmc.hitTest(-1332, 330, false) [matrix_test.c:753] +PASSED: staticmc.hitTest(1432, 330, false) [matrix_test.c:754] +PASSED: !staticmc.hitTest(-1333, 300, false) [matrix_test.c:756] +PASSED: !staticmc.hitTest(1433, 300, false) [matrix_test.c:757] +PASSED: !staticmc.hitTest(0, 269, false) [matrix_test.c:758] +PASSED: !staticmc.hitTest(0, 331, false) [matrix_test.c:759] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=0, c=-45, d=-1, tx=50, ty=300)' [matrix_test.c:764] +PASSED: staticmc._x == 50 [matrix_test.c:766] +PASSED: staticmc._y == 300 [matrix_test.c:767] +PASSED: staticmc._xscale == 100 [matrix_test.c:768] +PASSED: Math.round(staticmc._yscale) == 4501 [matrix_test.c:769] +PASSED: staticmc._rotation == 180 [matrix_test.c:770] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:771] +PASSED: printBounds(staticmc.getBounds(_root)) == '-1332.3,269.95 1432.3,330.05' [matrix_test.c:772] +PASSED: Math.round(staticmc._width*10) == 27646 [matrix_test.c:773] +PASSED: staticmc._height == 60.1 [matrix_test.c:774] +PASSED: staticmc.hitTest(-1332, 270, false) [matrix_test.c:779] +PASSED: staticmc.hitTest(1432, 270, false) [matrix_test.c:780] +PASSED: staticmc.hitTest(-1332, 330, false) [matrix_test.c:781] +PASSED: staticmc.hitTest(1432, 330, false) [matrix_test.c:782] +PASSED: !staticmc.hitTest(-1333, 300, false) [matrix_test.c:784] +PASSED: !staticmc.hitTest(1433, 300, false) [matrix_test.c:785] +PASSED: !staticmc.hitTest(0, 269, false) [matrix_test.c:786] +PASSED: !staticmc.hitTest(0, 331, false) [matrix_test.c:787] +PASSED: staticmc.transform.matrix.toString() == '(a=-2, b=0, c=-45, d=-0.5, tx=50, ty=300)' [matrix_test.c:791] +PASSED: staticmc._x == 50 [matrix_test.c:793] +PASSED: staticmc._y == 300 [matrix_test.c:794] +PASSED: staticmc._xscale == 200 [matrix_test.c:795] +PASSED: Math.round(staticmc._yscale) == 4500 [matrix_test.c:796] +PASSED: staticmc._rotation == 180 [matrix_test.c:797] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:798] +PASSED: printBounds(staticmc.getBounds(_root),0) == '-1362,285 1462,315' [matrix_test.c:799] +PASSED: Math.round(staticmc._width*10) == 28247 [matrix_test.c:800] +PASSED: Math.round(staticmc._height) == 30 [matrix_test.c:801] +PASSED: staticmc.hitTest(-1362, 286, false) [matrix_test.c:806] +PASSED: staticmc.hitTest(1462, 286, false) [matrix_test.c:807] +PASSED: staticmc.hitTest(-1362, 315, false) [matrix_test.c:808] +PASSED: staticmc.hitTest(1462, 315, false) [matrix_test.c:809] +PASSED: !staticmc.hitTest(-1363, 300, false) [matrix_test.c:811] +PASSED: !staticmc.hitTest(1463, 300, false) [matrix_test.c:812] +PASSED: !staticmc.hitTest(0, 284, false) [matrix_test.c:813] +PASSED: !staticmc.hitTest(0, 316, false) [matrix_test.c:814] +PASSED: staticmc.transform.matrix.toString() == '(a=1, b=1, c=1, d=1, tx=2, ty=3)' [matrix_test.c:818] +PASSED: staticmc._x == 2 [matrix_test.c:820] +PASSED: staticmc._y == 3 [matrix_test.c:821] +PASSED: Math.round(staticmc._xscale) == 141 [matrix_test.c:822] +PASSED: Math.round(staticmc._yscale) == 141 [matrix_test.c:823] +PASSED: staticmc._rotation == 45 [matrix_test.c:824] +PASSED: printBounds(staticmc.getBounds()) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:825] +PASSED: printBounds(staticmc.getBounds(_root)) == '-58.1,-57.1 62.1,63.1' [matrix_test.c:826] +PASSED: o.x == 4 [matrix_test.c:828] +PASSED: o.y == 5 [matrix_test.c:829] +PASSED: o.x == 1 [matrix_test.c:831] +PASSED: o.y == 1 [matrix_test.c:832] +PASSED: o.x == 4 [matrix_test.c:834] +PASSED: o.y == 5 [matrix_test.c:835] +PASSED: Math.round(staticmc._width*10) == 1202 [matrix_test.c:836] +PASSED: staticmc._height == 120.2 [matrix_test.c:837] +PASSED: staticmc._x == -0.75 [matrix_test.c:848] +PASSED: staticmc._y == 135 [matrix_test.c:849] +PASSED: staticmc.transform.matrix.toString() == '(a=0, b=-1, c=1.16796875, d=0, tx=-0.75, ty=135)' [matrix_test.c:858] +PASSED: Math.round(staticmc._xscale) == 100 [matrix_test.c:859] +PASSED: Math.round(staticmc._yscale) == 117 [matrix_test.c:860] +PASSED: staticmc._rotation == -90 [matrix_test.c:861] +PASSED: Math.round(staticmc._x*100)/100 == 13.95 [matrix_test.c:873] +PASSED: staticmc._y == 214.80 [matrix_test.c:874] +PASSED: staticmc.transform.matrix.toString() == '(a=0, b=0.972518920898438, c=-1, d=0, tx=13.95, ty=214.8)' [matrix_test.c:883] +PASSED: Math.round(staticmc._xscale) == 97 [matrix_test.c:884] +PASSED: Math.round(staticmc._yscale) == 100 [matrix_test.c:885] +PASSED: Math.round(staticmc._rotation) == 90 [matrix_test.c:886] +PASSED: printBounds(staticmc.getBounds(_root)) == '169.95,139.9 230.05,260.1' [matrix_test.c:899] +PASSED: staticmc.transform.matrix.toString() == '(a=1, b=0, c=0, d=-2, tx=200, ty=200)' [matrix_test.c:900] +PASSED: staticmc._xscale == 100 [matrix_test.c:901] +PASSED: staticmc._rotation == 0 [matrix_test.c:902] +PASSED: staticmc._yscale == 200 [matrix_test.c:903] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=0, c=0, d=-1, tx=200, ty=200)' [matrix_test.c:906] +PASSED: staticmc._yscale == 100 [matrix_test.c:907] +PASSED: staticmc._rotation == 0 [matrix_test.c:908] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '170,170 230,230' [matrix_test.c:909] +PASSED: printBounds(staticmc.getBounds(_root)) == '169.95,169.95 230.05,230.05' [matrix_test.c:912] +PASSED: staticmc.transform.matrix.toString() == '(a=1, b=0, c=0, d=1, tx=200, ty=200)' [matrix_test.c:913] +PASSED: staticmc._yscale == -100 [matrix_test.c:914] +PASSED: staticmc._xscale == 100 [matrix_test.c:915] +PASSED: staticmc._rotation == 0 [matrix_test.c:916] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=0, c=0, d=-1, tx=200, ty=200)' [matrix_test.c:919] +PASSED: printBounds(staticmc.getBounds(_root)) == '169.95,169.95 230.05,230.05' [matrix_test.c:920] +PASSED: staticmc._yscale == 100 [matrix_test.c:921] +PASSED: staticmc._xscale == 100 [matrix_test.c:922] +PASSED: staticmc._rotation == 0 [matrix_test.c:923] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=0, c=0, d=-1, tx=200, ty=200)' [matrix_test.c:926] +PASSED: staticmc._xscale == -100 [matrix_test.c:927] +PASSED: staticmc._yscale == 100 [matrix_test.c:928] +PASSED: staticmc._rotation == 0 [matrix_test.c:929] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '170,170 230,230' [matrix_test.c:930] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=-0.03, c=0.03, d=-1, tx=200, ty=200)' [matrix_test.c:933] +PASSED: staticmc._yscale == 100 [matrix_test.c:934] +PASSED: staticmc._xscale == -100 [matrix_test.c:935] +PASSED: staticmc._rotation == 2 [matrix_test.c:936] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '169,169 231,231' [matrix_test.c:937] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=0.03, c=-0.03, d=-1, tx=200, ty=200)' [matrix_test.c:940] +PASSED: staticmc._yscale == 100 [matrix_test.c:941] +PASSED: staticmc._xscale == -100 [matrix_test.c:942] +PASSED: staticmc._rotation == -2 [matrix_test.c:943] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '169,169 231,231' [matrix_test.c:944] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=0, b=1, c=-1, d=0, tx=200, ty=200)' [matrix_test.c:947] +PASSED: staticmc._yscale == 100 [matrix_test.c:948] +PASSED: staticmc._xscale == -100 [matrix_test.c:949] +PASSED: staticmc._rotation == -90 [matrix_test.c:950] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '170,170 230,230' [matrix_test.c:951] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=0, b=1, c=1, d=0, tx=200, ty=200)' [matrix_test.c:954] +PASSED: staticmc._yscale == -100 [matrix_test.c:955] +PASSED: staticmc._xscale == -100 [matrix_test.c:956] +PASSED: staticmc._rotation == -90 [matrix_test.c:957] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '170,170 230,230' [matrix_test.c:958] +PASSED: printBounds(staticmc.getBounds(_root)) == '109.85,169.95 290.15,230.05' [matrix_test.c:965] +PASSED: staticmc.transform.matrix.toString() == '(a=1, b=0, c=2, d=1, tx=200, ty=200)' [matrix_test.c:966] +PASSED: staticmc._rotation == 0 [matrix_test.c:968] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:969] +PASSED: staticmc._xscale == 100 [matrix_test.c:970] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=0, c=2, d=1, tx=200, ty=200)' [matrix_test.c:972] +PASSED: staticmc._xscale == -100 [matrix_test.c:973] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,170 290,230' [matrix_test.c:974] +PASSED: staticmc._rotation == 0 [matrix_test.c:976] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:977] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=0, c=-2, d=-1, tx=200, ty=200)' [matrix_test.c:979] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:980] +PASSED: staticmc._xscale == -100 [matrix_test.c:981] +PASSED: staticmc._rotation == 0 [matrix_test.c:982] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,170 290,230' [matrix_test.c:983] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=-0.03, c=-1.96, d=-1.07, tx=200, ty=200)' [matrix_test.c:986] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:987] +PASSED: staticmc._xscale == -100 [matrix_test.c:988] +PASSED: staticmc._rotation == 2 [matrix_test.c:989] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '111,167 289,233' [matrix_test.c:990] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=0.03, c=-2.03, d=-0.93, tx=200, ty=200)' [matrix_test.c:993] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:994] +PASSED: staticmc._xscale == -100 [matrix_test.c:995] +PASSED: staticmc._rotation == -2 [matrix_test.c:996] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '109,171 291,229' [matrix_test.c:997] +PASSED: printBounds(staticmc.getBounds(_root)) == '109.85,169.95 290.15,230.05' [matrix_test.c:1004] +PASSED: staticmc.transform.matrix.toString() == '(a=1, b=0, c=-2, d=1, tx=200, ty=200)' [matrix_test.c:1005] +PASSED: staticmc._rotation == 0 [matrix_test.c:1007] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1008] +PASSED: staticmc._xscale == 100 [matrix_test.c:1009] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=0, c=-2, d=1, tx=200, ty=200)' [matrix_test.c:1011] +PASSED: staticmc._xscale == -100 [matrix_test.c:1012] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,170 290,230' [matrix_test.c:1013] +PASSED: staticmc._rotation == 0 [matrix_test.c:1015] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1016] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=0, c=2, d=-1, tx=200, ty=200)' [matrix_test.c:1018] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1019] +PASSED: staticmc._xscale == -100 [matrix_test.c:1020] +PASSED: staticmc._rotation == 0 [matrix_test.c:1021] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,170 290,230' [matrix_test.c:1022] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=-0.03, c=2.03, d=-0.93, tx=200, ty=200)' [matrix_test.c:1025] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1026] +PASSED: staticmc._xscale == -100 [matrix_test.c:1027] +PASSED: staticmc._rotation == 2 [matrix_test.c:1028] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '109,171 291,229' [matrix_test.c:1029] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=0.03, c=1.96, d=-1.07, tx=200, ty=200)' [matrix_test.c:1032] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1033] +PASSED: staticmc._xscale == -100 [matrix_test.c:1034] +PASSED: staticmc._rotation == -2 [matrix_test.c:1035] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '111,167 289,233' [matrix_test.c:1036] +PASSED: printBounds(staticmc.getBounds(_root)) == '109.85,169.95 290.15,230.05' [matrix_test.c:1044] +PASSED: staticmc.transform.matrix.toString() == '(a=1, b=0, c=-2, d=-1, tx=200, ty=200)' [matrix_test.c:1045] +PASSED: staticmc._rotation == 0 [matrix_test.c:1047] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1048] +PASSED: staticmc._xscale == 100 [matrix_test.c:1049] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=0, c=-2, d=-1, tx=200, ty=200)' [matrix_test.c:1051] +PASSED: staticmc._xscale == -100 [matrix_test.c:1052] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,170 290,230' [matrix_test.c:1053] +PASSED: staticmc._rotation == 0 [matrix_test.c:1055] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1056] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=0, c=2, d=1, tx=200, ty=200)' [matrix_test.c:1058] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1059] +PASSED: staticmc._xscale == -100 [matrix_test.c:1060] +PASSED: staticmc._rotation == 0 [matrix_test.c:1061] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,170 290,230' [matrix_test.c:1062] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=-0.03, c=1.96, d=1.07, tx=200, ty=200)' [matrix_test.c:1065] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1066] +PASSED: staticmc._xscale == -100 [matrix_test.c:1067] +PASSED: staticmc._rotation == 2 [matrix_test.c:1068] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '111,167 289,233' [matrix_test.c:1069] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=0.03, c=2.03, d=0.93, tx=200, ty=200)' [matrix_test.c:1072] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1073] +PASSED: staticmc._xscale == -100 [matrix_test.c:1074] +PASSED: staticmc._rotation == -2 [matrix_test.c:1075] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '109,171 291,229' [matrix_test.c:1076] +PASSED: printBounds(staticmc.getBounds(_root)) == '109.85,169.95 290.15,230.05' [matrix_test.c:1084] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=0, c=2, d=1, tx=200, ty=200)' [matrix_test.c:1085] +PASSED: staticmc._rotation == 180 [matrix_test.c:1087] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1088] +PASSED: staticmc._xscale == 100 [matrix_test.c:1089] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=0, c=2, d=1, tx=200, ty=200)' [matrix_test.c:1091] +PASSED: staticmc._xscale == -100 [matrix_test.c:1092] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,170 290,230' [matrix_test.c:1093] +PASSED: staticmc._rotation == 180 [matrix_test.c:1095] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1096] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=0, c=-2, d=-1, tx=200, ty=200)' [matrix_test.c:1098] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1099] +PASSED: staticmc._xscale == -100 [matrix_test.c:1100] +PASSED: staticmc._rotation == 180 [matrix_test.c:1101] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,170 290,230' [matrix_test.c:1102] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=-0.03, c=1.96, d=1.07, tx=200, ty=200)' [matrix_test.c:1105] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1106] +PASSED: staticmc._xscale == -100 [matrix_test.c:1107] +PASSED: staticmc._rotation == 2 [matrix_test.c:1108] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '111,167 289,233' [matrix_test.c:1109] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=0.03, c=2.03, d=0.93, tx=200, ty=200)' [matrix_test.c:1112] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1113] +PASSED: staticmc._xscale == -100 [matrix_test.c:1114] +PASSED: staticmc._rotation == -2 [matrix_test.c:1115] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '109,171 291,229' [matrix_test.c:1116] +PASSED: printBounds(staticmc.getBounds(_root)) == '109.85,169.95 290.15,230.05' [matrix_test.c:1123] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=0, c=-2, d=1, tx=200, ty=200)' [matrix_test.c:1124] +PASSED: staticmc._rotation == 180 [matrix_test.c:1126] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1127] +PASSED: staticmc._xscale == 100 [matrix_test.c:1128] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=0, c=-2, d=1, tx=200, ty=200)' [matrix_test.c:1130] +PASSED: staticmc._xscale == -100 [matrix_test.c:1131] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,170 290,230' [matrix_test.c:1132] +PASSED: staticmc._rotation == 180 [matrix_test.c:1134] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=0, c=-2, d=1, tx=200, ty=200)' [matrix_test.c:1135] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1136] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1138] +PASSED: staticmc._xscale == -100 [matrix_test.c:1139] +PASSED: staticmc._rotation == 180 [matrix_test.c:1140] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,170 290,230' [matrix_test.c:1141] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=-0.03, c=-2.03, d=0.93, tx=200, ty=200)' [matrix_test.c:1144] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1145] +PASSED: staticmc._xscale == -100 [matrix_test.c:1146] +PASSED: staticmc._rotation == 2 [matrix_test.c:1147] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '109,171 291,229' [matrix_test.c:1148] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=0.03, c=-1.96, d=1.07, tx=200, ty=200)' [matrix_test.c:1151] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1152] +PASSED: staticmc._xscale == -100 [matrix_test.c:1153] +PASSED: staticmc._rotation == -2 [matrix_test.c:1154] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '111,167 289,233' [matrix_test.c:1155] +PASSED: printBounds(staticmc.getBounds(_root)) == '109.85,169.95 290.15,230.05' [matrix_test.c:1162] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=0, c=-2, d=-1, tx=200, ty=200)' [matrix_test.c:1163] +PASSED: staticmc._rotation == 180 [matrix_test.c:1165] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1166] +PASSED: staticmc._xscale == 100 [matrix_test.c:1167] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=0, c=-2, d=-1, tx=200, ty=200)' [matrix_test.c:1169] +PASSED: staticmc._xscale == -100 [matrix_test.c:1170] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,170 290,230' [matrix_test.c:1171] +PASSED: staticmc._rotation == 180 [matrix_test.c:1173] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1174] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=0, c=2, d=1, tx=200, ty=200)' [matrix_test.c:1176] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1177] +PASSED: staticmc._xscale == -100 [matrix_test.c:1178] +PASSED: staticmc._rotation == 180 [matrix_test.c:1179] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,170 290,230' [matrix_test.c:1180] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=-0.03, c=-1.96, d=-1.07, tx=200, ty=200)' [matrix_test.c:1183] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1184] +PASSED: staticmc._xscale == -100 [matrix_test.c:1185] +PASSED: staticmc._rotation == 2 [matrix_test.c:1186] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '111,167 289,233' [matrix_test.c:1187] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=0.03, c=-2.03, d=-0.93, tx=200, ty=200)' [matrix_test.c:1190] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1191] +PASSED: staticmc._xscale == -100 [matrix_test.c:1192] +PASSED: staticmc._rotation == -2 [matrix_test.c:1193] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '109,171 291,229' [matrix_test.c:1194] +PASSED: printBounds(staticmc.getBounds(_root)) == '169.95,109.85 230.05,290.15' [matrix_test.c:1202] +PASSED: staticmc.transform.matrix.toString() == '(a=1, b=2, c=0, d=1, tx=200, ty=200)' [matrix_test.c:1203] +PASSED: Math.round(staticmc._rotation) == 63 [matrix_test.c:1205] +PASSED: staticmc._yscale == 100 [matrix_test.c:1206] +PASSED: Math.round(staticmc._xscale) == 224 [matrix_test.c:1207] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=-2, c=0, d=1, tx=200, ty=200)' [matrix_test.c:1209] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1210] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '170,110 230,290' [matrix_test.c:1211] +PASSED: Math.round(staticmc._rotation) == 63 [matrix_test.c:1213] +PASSED: staticmc._yscale == 100 [matrix_test.c:1214] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=-2, c=0, d=-1, tx=200, ty=200)' [matrix_test.c:1216] +PASSED: staticmc._yscale == -100 [matrix_test.c:1217] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1218] +PASSED: Math.round(staticmc._rotation) == 63 [matrix_test.c:1219] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '170,110 230,290' [matrix_test.c:1220] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=-0.08, c=-0.88, d=-0.48, tx=200, ty=200)' [matrix_test.c:1223] +PASSED: staticmc._yscale == -100 [matrix_test.c:1224] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1225] +PASSED: staticmc._rotation == 2 [matrix_test.c:1226] +PASSED: printBounds(staticmc.getBounds(_root), -1) == '110,180 290,220' [matrix_test.c:1227] +PASSED: printMatrix(staticmc.transform.matrix, 1) == '(a=-2.2, b=0.1, c=-0.9, d=-0.4, tx=200, ty=200)' [matrix_test.c:1230] +PASSED: staticmc._yscale == -100 [matrix_test.c:1231] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1232] +PASSED: staticmc._rotation == -2 [matrix_test.c:1233] +PASSED: printBounds(staticmc.getBounds(_root), -1) == '110,190 290,210' [matrix_test.c:1234] +PASSED: printBounds(staticmc.getBounds(_root)) == '169.95,109.85 230.05,290.15' [matrix_test.c:1241] +PASSED: staticmc.transform.matrix.toString() == '(a=1, b=-2, c=0, d=1, tx=200, ty=200)' [matrix_test.c:1242] +PASSED: Math.round(staticmc._rotation) == -63 [matrix_test.c:1244] +PASSED: staticmc._yscale == 100 [matrix_test.c:1245] +PASSED: Math.round(staticmc._xscale) == 224 [matrix_test.c:1246] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=2, c=0, d=1, tx=200, ty=200)' [matrix_test.c:1248] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1249] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '170,110 230,290' [matrix_test.c:1250] +PASSED: Math.round(staticmc._rotation) == -63 [matrix_test.c:1252] +PASSED: staticmc._yscale == 100 [matrix_test.c:1253] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=2, c=0, d=-1, tx=200, ty=200)' [matrix_test.c:1255] +PASSED: staticmc._yscale == -100 [matrix_test.c:1256] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1257] +PASSED: Math.round(staticmc._rotation) == -63 [matrix_test.c:1258] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '170,110 230,290' [matrix_test.c:1259] +PASSED: printMatrix(staticmc.transform.matrix, 1) == '(a=-2.2, b=-0.1, c=0.9, d=-0.4, tx=200, ty=200)' [matrix_test.c:1262] +PASSED: staticmc._yscale == -100 [matrix_test.c:1263] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1264] +PASSED: staticmc._rotation == 2 [matrix_test.c:1265] +PASSED: printBounds(staticmc.getBounds(_root), -1) == '110,190 290,210' [matrix_test.c:1266] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=0.08, c=0.88, d=-0.48, tx=200, ty=200)' [matrix_test.c:1269] +PASSED: staticmc._yscale == -100 [matrix_test.c:1270] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1271] +PASSED: staticmc._rotation == -2 [matrix_test.c:1272] +PASSED: printBounds(staticmc.getBounds(_root), -1) == '110,180 290,220' [matrix_test.c:1273] +PASSED: printBounds(staticmc.getBounds(_root)) == '169.95,109.85 230.05,290.15' [matrix_test.c:1280] +PASSED: staticmc.transform.matrix.toString() == '(a=1, b=-2, c=0, d=-1, tx=200, ty=200)' [matrix_test.c:1281] +PASSED: Math.round(staticmc._rotation) == -63 [matrix_test.c:1283] +PASSED: staticmc._yscale == 100 [matrix_test.c:1284] +PASSED: Math.round(staticmc._xscale) == 224 [matrix_test.c:1285] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=2, c=0, d=-1, tx=200, ty=200)' [matrix_test.c:1287] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1288] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '170,110 230,290' [matrix_test.c:1289] +PASSED: Math.round(staticmc._rotation) == -63 [matrix_test.c:1291] +PASSED: staticmc._yscale == 100 [matrix_test.c:1292] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=2, c=0, d=1, tx=200, ty=200)' [matrix_test.c:1294] +PASSED: staticmc._yscale == -100 [matrix_test.c:1295] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1296] +PASSED: Math.round(staticmc._rotation) == -63 [matrix_test.c:1297] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '170,110 230,290' [matrix_test.c:1298] +PASSED: printMatrix(staticmc.transform.matrix, 1) == '(a=-2.2, b=-0.1, c=-0.9, d=0.4, tx=200, ty=200)' [matrix_test.c:1301] +PASSED: staticmc._yscale == -100 [matrix_test.c:1302] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1303] +PASSED: staticmc._rotation == 2 [matrix_test.c:1304] +PASSED: printBounds(staticmc.getBounds(_root), -1) == '110,190 290,210' [matrix_test.c:1305] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=0.08, c=-0.88, d=0.48, tx=200, ty=200)' [matrix_test.c:1308] +PASSED: staticmc._yscale == -100 [matrix_test.c:1309] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1310] +PASSED: staticmc._rotation == -2 [matrix_test.c:1311] +PASSED: printBounds(staticmc.getBounds(_root), -1) == '110,180 290,220' [matrix_test.c:1312] +PASSED: printBounds(staticmc.getBounds(_root)) == '169.95,109.85 230.05,290.15' [matrix_test.c:1320] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=2, c=0, d=1, tx=200, ty=200)' [matrix_test.c:1321] +PASSED: Math.round(staticmc._rotation) == 117 [matrix_test.c:1323] +PASSED: staticmc._yscale == 100 [matrix_test.c:1324] +PASSED: Math.round(staticmc._xscale) == 224 [matrix_test.c:1325] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=-2, c=0, d=1, tx=200, ty=200)' [matrix_test.c:1327] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1328] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '170,110 230,290' [matrix_test.c:1329] +PASSED: Math.round(staticmc._rotation) == 117 [matrix_test.c:1331] +PASSED: staticmc._yscale == 100 [matrix_test.c:1332] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=-2, c=0, d=-1, tx=200, ty=200)' [matrix_test.c:1334] +PASSED: staticmc._yscale == -100 [matrix_test.c:1335] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1336] +PASSED: Math.round(staticmc._rotation) == 117 [matrix_test.c:1337] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '170,110 230,290' [matrix_test.c:1338] +PASSED: printMatrix(staticmc.transform.matrix, 1) == '(a=-2.2, b=-0.1, c=-0.9, d=0.4, tx=200, ty=200)' [matrix_test.c:1341] +PASSED: staticmc._yscale == -100 [matrix_test.c:1342] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1343] +PASSED: staticmc._rotation == 2 [matrix_test.c:1344] +PASSED: printBounds(staticmc.getBounds(_root), -1) == '110,190 290,210' [matrix_test.c:1345] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=0.08, c=-0.88, d=0.48, tx=200, ty=200)' [matrix_test.c:1348] +PASSED: staticmc._yscale == -100 [matrix_test.c:1349] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1350] +PASSED: staticmc._rotation == -2 [matrix_test.c:1351] +PASSED: printBounds(staticmc.getBounds(_root), -1) == '110,180 290,220' [matrix_test.c:1352] +PASSED: printBounds(staticmc.getBounds(_root)) == '169.95,109.85 230.05,290.15' [matrix_test.c:1359] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=-2, c=0, d=1, tx=200, ty=200)' [matrix_test.c:1360] +PASSED: Math.round(staticmc._rotation) == -117 [matrix_test.c:1362] +PASSED: staticmc._yscale == 100 [matrix_test.c:1363] +PASSED: Math.round(staticmc._xscale) == 224 [matrix_test.c:1364] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=2, c=0, d=1, tx=200, ty=200)' [matrix_test.c:1366] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1367] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '170,110 230,290' [matrix_test.c:1368] +PASSED: Math.round(staticmc._rotation) == -117 [matrix_test.c:1370] +PASSED: staticmc._yscale == 100 [matrix_test.c:1371] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=2, c=0, d=-1, tx=200, ty=200)' [matrix_test.c:1373] +PASSED: staticmc._yscale == -100 [matrix_test.c:1374] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1375] +PASSED: Math.round(staticmc._rotation) == -117 [matrix_test.c:1376] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '170,110 230,290' [matrix_test.c:1377] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=-0.08, c=0.88, d=0.48, tx=200, ty=200)' [matrix_test.c:1380] +PASSED: staticmc._yscale == -100 [matrix_test.c:1381] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1382] +PASSED: staticmc._rotation == 2 [matrix_test.c:1383] +PASSED: printBounds(staticmc.getBounds(_root), -1) == '110,180 290,220' [matrix_test.c:1384] +PASSED: printMatrix(staticmc.transform.matrix, 1) == '(a=-2.2, b=0.1, c=0.9, d=0.4, tx=200, ty=200)' [matrix_test.c:1387] +PASSED: staticmc._yscale == -100 [matrix_test.c:1388] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1389] +PASSED: staticmc._rotation == -2 [matrix_test.c:1390] +PASSED: printBounds(staticmc.getBounds(_root), -1) == '110,190 290,210' [matrix_test.c:1391] +PASSED: printBounds(staticmc.getBounds(_root)) == '169.95,109.85 230.05,290.15' [matrix_test.c:1399] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=-2, c=0, d=-1, tx=200, ty=200)' [matrix_test.c:1400] +PASSED: Math.round(staticmc._rotation) == -117 [matrix_test.c:1402] +PASSED: staticmc._yscale == 100 [matrix_test.c:1403] +PASSED: Math.round(staticmc._xscale) == 224 [matrix_test.c:1404] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=2, c=0, d=-1, tx=200, ty=200)' [matrix_test.c:1406] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1407] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '170,110 230,290' [matrix_test.c:1408] +PASSED: Math.round(staticmc._rotation) == -117 [matrix_test.c:1410] +PASSED: staticmc._yscale == 100 [matrix_test.c:1411] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=2, c=0, d=1, tx=200, ty=200)' [matrix_test.c:1413] +PASSED: staticmc._yscale == -100 [matrix_test.c:1414] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1415] +PASSED: Math.round(staticmc._rotation) == -117 [matrix_test.c:1416] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '170,110 230,290' [matrix_test.c:1417] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=-0.08, c=-0.88, d=-0.48, tx=200, ty=200)' [matrix_test.c:1420] +PASSED: staticmc._yscale == -100 [matrix_test.c:1421] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1422] +PASSED: staticmc._rotation == 2 [matrix_test.c:1423] +PASSED: printBounds(staticmc.getBounds(_root), -1) == '110,180 290,220' [matrix_test.c:1424] +PASSED: printMatrix(staticmc.transform.matrix, 1) == '(a=-2.2, b=0.1, c=-0.9, d=-0.4, tx=200, ty=200)' [matrix_test.c:1427] +PASSED: staticmc._yscale == -100 [matrix_test.c:1428] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1429] +PASSED: staticmc._rotation == -2 [matrix_test.c:1430] +PASSED: printBounds(staticmc.getBounds(_root), -1) == '110,190 290,210' [matrix_test.c:1431] +PASSED: printBounds(staticmc.getBounds(_root)) == '109.85,109.85 290.15,290.15' [matrix_test.c:1439] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=-2, c=2, d=-1, tx=200, ty=200)' [matrix_test.c:1440] +PASSED: Math.round(staticmc._rotation) == -117 [matrix_test.c:1442] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1443] +PASSED: Math.round(staticmc._xscale) == 224 [matrix_test.c:1444] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=2, c=2, d=-1, tx=200, ty=200)' [matrix_test.c:1446] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1447] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,110 290,290' [matrix_test.c:1448] +PASSED: Math.round(staticmc._rotation) == -117 [matrix_test.c:1450] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1451] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=2, c=-2, d=1, tx=200, ty=200)' [matrix_test.c:1453] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1454] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1455] +PASSED: Math.round(staticmc._rotation) == -117 [matrix_test.c:1456] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,110 290,290' [matrix_test.c:1457] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=-0.08, c=0.08, d=-2.23, tx=200, ty=200)' [matrix_test.c:1460] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1461] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1462] +PASSED: staticmc._rotation == 2 [matrix_test.c:1463] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '131,131 270,270' [matrix_test.c:1464] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=0.08, c=-0.08, d=-2.23, tx=200, ty=200)' [matrix_test.c:1467] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1468] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1469] +PASSED: staticmc._rotation == -2 [matrix_test.c:1470] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '131,131 270,270' [matrix_test.c:1471] +PASSED: printBounds(staticmc.getBounds(_root)) == '109.85,109.85 290.15,290.15' [matrix_test.c:1478] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=-2, c=-2, d=-1, tx=200, ty=200)' [matrix_test.c:1479] +PASSED: Math.round(staticmc._rotation) == -117 [matrix_test.c:1481] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1482] +PASSED: Math.round(staticmc._xscale) == 224 [matrix_test.c:1483] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1485] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,110 290,290' [matrix_test.c:1486] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=2, c=-2, d=-1, tx=200, ty=200)' [matrix_test.c:1487] +PASSED: Math.round(staticmc._rotation) == -117 [matrix_test.c:1489] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1490] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=2, c=2, d=1, tx=200, ty=200)' [matrix_test.c:1492] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1493] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1494] +PASSED: Math.round(staticmc._rotation) == -117 [matrix_test.c:1495] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,110 290,290' [matrix_test.c:1496] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=-0.08, c=-1.83, d=1.28, tx=200, ty=200)' [matrix_test.c:1499] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1500] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1501] +PASSED: staticmc._rotation == 2 [matrix_test.c:1502] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '78,159 322,241' [matrix_test.c:1503] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=0.08, c=-1.74, d=1.4, tx=200, ty=200)' [matrix_test.c:1506] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1507] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1508] +PASSED: staticmc._rotation == -2 [matrix_test.c:1509] +PASSED: printBounds(staticmc.getBounds(_root), -1) == '80,160 320,240' [matrix_test.c:1510] +PASSED: printBounds(staticmc.getBounds(_root)) == '109.85,109.85 290.15,290.15' [matrix_test.c:1517] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=2, c=-2, d=-1, tx=200, ty=200)' [matrix_test.c:1518] +PASSED: Math.round(staticmc._rotation) == 117 [matrix_test.c:1520] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1521] +PASSED: Math.round(staticmc._xscale) == 224 [matrix_test.c:1522] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=-2, c=-2, d=-1, tx=200, ty=200)' [matrix_test.c:1524] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1525] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,110 290,290' [matrix_test.c:1526] +PASSED: Math.round(staticmc._rotation) == 117 [matrix_test.c:1528] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1529] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=-2, c=2, d=1, tx=200, ty=200)' [matrix_test.c:1531] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1532] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1533] +PASSED: Math.round(staticmc._rotation) == 117 [matrix_test.c:1534] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,110 290,290' [matrix_test.c:1535] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=-0.08, c=0.08, d=-2.23, tx=200, ty=200)' [matrix_test.c:1538] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1539] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1540] +PASSED: staticmc._rotation == 2 [matrix_test.c:1541] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '131,131 270,270' [matrix_test.c:1542] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=0.08, c=-0.08, d=-2.23, tx=200, ty=200)' [matrix_test.c:1545] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1546] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1547] +PASSED: staticmc._rotation == -2 [matrix_test.c:1548] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '131,131 270,270' [matrix_test.c:1549] +PASSED: printBounds(staticmc.getBounds(_root)) == '109.85,109.85 290.15,290.15' [matrix_test.c:1556] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=2, c=-2, d=1, tx=200, ty=200)' [matrix_test.c:1557] +PASSED: Math.round(staticmc._rotation) == 117 [matrix_test.c:1559] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1560] +PASSED: Math.round(staticmc._xscale) == 224 [matrix_test.c:1561] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=-2, c=-2, d=1, tx=200, ty=200)' [matrix_test.c:1563] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1564] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,110 290,290' [matrix_test.c:1565] +PASSED: Math.round(staticmc._rotation) == 117 [matrix_test.c:1567] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1568] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=-2, c=2, d=-1, tx=200, ty=200)' [matrix_test.c:1570] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1571] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1572] +PASSED: Math.round(staticmc._rotation) == 117 [matrix_test.c:1573] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,110 290,290' [matrix_test.c:1574] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=-0.08, c=-1.74, d=-1.4, tx=200, ty=200)' [matrix_test.c:1577] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1578] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1579] +PASSED: staticmc._rotation == 2 [matrix_test.c:1580] +PASSED: printBounds(staticmc.getBounds(_root), -1) == '80,160 320,240' [matrix_test.c:1581] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=0.08, c=-1.83, d=-1.28, tx=200, ty=200)' [matrix_test.c:1584] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1585] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1586] +PASSED: staticmc._rotation == -2 [matrix_test.c:1587] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '78,159 322,241' [matrix_test.c:1588] +PASSED: printBounds(staticmc.getBounds(_root)) == '109.85,109.85 290.15,290.15' [matrix_test.c:1596] +PASSED: staticmc.transform.matrix.toString() == '(a=1, b=2, c=-2, d=-1, tx=200, ty=200)' [matrix_test.c:1597] +PASSED: Math.round(staticmc._rotation) == 63 [matrix_test.c:1599] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1600] +PASSED: Math.round(staticmc._xscale) == 224 [matrix_test.c:1601] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=-2, c=-2, d=-1, tx=200, ty=200)' [matrix_test.c:1603] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1604] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,110 290,290' [matrix_test.c:1605] +PASSED: Math.round(staticmc._rotation) == 63 [matrix_test.c:1607] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1608] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=-2, c=2, d=1, tx=200, ty=200)' [matrix_test.c:1610] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1611] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1612] +PASSED: Math.round(staticmc._rotation) == 63 [matrix_test.c:1613] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,110 290,290' [matrix_test.c:1614] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=-0.08, c=1.83, d=-1.28, tx=200, ty=200)' [matrix_test.c:1617] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1618] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1619] +PASSED: staticmc._rotation == 2 [matrix_test.c:1620] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '78,159 322,241' [matrix_test.c:1621] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=0.08, c=1.74, d=-1.4, tx=200, ty=200)' [matrix_test.c:1624] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1625] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1626] +PASSED: staticmc._rotation == -2 [matrix_test.c:1627] +PASSED: printBounds(staticmc.getBounds(_root), -1) == '80,160 320,240' [matrix_test.c:1628] +PASSED: printBounds(staticmc.getBounds(_root)) == '109.85,109.85 290.15,290.15' [matrix_test.c:1635] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=-2, c=2, d=-1, tx=200, ty=200)' [matrix_test.c:1636] +PASSED: Math.round(staticmc._rotation) == -117 [matrix_test.c:1638] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1639] +PASSED: Math.round(staticmc._xscale) == 224 [matrix_test.c:1640] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=2, c=2, d=-1, tx=200, ty=200)' [matrix_test.c:1642] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1643] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,110 290,290' [matrix_test.c:1644] +PASSED: Math.round(staticmc._rotation) == -117 [matrix_test.c:1646] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1647] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=2, c=-2, d=1, tx=200, ty=200)' [matrix_test.c:1649] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1650] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1651] +PASSED: Math.round(staticmc._rotation) == -117 [matrix_test.c:1652] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,110 290,290' [matrix_test.c:1653] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=-0.08, c=0.08, d=-2.23, tx=200, ty=200)' [matrix_test.c:1656] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1657] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1658] +PASSED: staticmc._rotation == 2 [matrix_test.c:1659] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '131,131 270,270' [matrix_test.c:1660] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=0.08, c=-0.08, d=-2.23, tx=200, ty=200)' [matrix_test.c:1663] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1664] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1665] +PASSED: staticmc._rotation == -2 [matrix_test.c:1666] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '131,131 270,270' [matrix_test.c:1667] +PASSED: printBounds(staticmc.getBounds(_root)) == '109.85,109.85 290.15,290.15' [matrix_test.c:1675] +PASSED: staticmc.transform.matrix.toString() == '(a=-1, b=-2, c=2, d=1, tx=200, ty=200)' [matrix_test.c:1676] +PASSED: Math.round(staticmc._rotation) == -117 [matrix_test.c:1678] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1679] +PASSED: Math.round(staticmc._xscale) == 224 [matrix_test.c:1680] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=2, c=2, d=1, tx=200, ty=200)' [matrix_test.c:1682] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1683] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,110 290,290' [matrix_test.c:1684] +PASSED: Math.round(staticmc._rotation) == -117 [matrix_test.c:1686] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1687] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=1, b=2, c=-2, d=-1, tx=200, ty=200)' [matrix_test.c:1689] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1690] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1691] +PASSED: Math.round(staticmc._rotation) == -117 [matrix_test.c:1692] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,110 290,290' [matrix_test.c:1693] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=-0.08, c=1.83, d=-1.28, tx=200, ty=200)' [matrix_test.c:1696] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1697] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1698] +PASSED: staticmc._rotation == 2 [matrix_test.c:1699] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '78,159 322,241' [matrix_test.c:1700] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=0.08, c=1.74, d=-1.4, tx=200, ty=200)' [matrix_test.c:1703] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1704] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1705] +PASSED: staticmc._rotation == -2 [matrix_test.c:1706] +PASSED: printBounds(staticmc.getBounds(_root), -1) == '80,160 320,240' [matrix_test.c:1707] +PASSED: printBounds(staticmc.getBounds(_root)) == '109.85,109.85 290.15,290.15' [matrix_test.c:1714] +PASSED: staticmc.transform.matrix.toString() == '(a=1, b=-2, c=2, d=-1, tx=200, ty=200)' [matrix_test.c:1715] +PASSED: Math.round(staticmc._rotation) == -63 [matrix_test.c:1717] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1718] +PASSED: Math.round(staticmc._xscale) == 224 [matrix_test.c:1719] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=2, c=2, d=-1, tx=200, ty=200)' [matrix_test.c:1721] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1722] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,110 290,290' [matrix_test.c:1723] +PASSED: Math.round(staticmc._rotation) == -63 [matrix_test.c:1725] +PASSED: Math.round(staticmc._yscale) == 224 [matrix_test.c:1726] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-1, b=2, c=-2, d=1, tx=200, ty=200)' [matrix_test.c:1728] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1729] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1730] +PASSED: Math.round(staticmc._rotation) == -63 [matrix_test.c:1731] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '110,110 290,290' [matrix_test.c:1732] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=-0.08, c=-1.74, d=-1.4, tx=200, ty=200)' [matrix_test.c:1735] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1736] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1737] +PASSED: staticmc._rotation == 2 [matrix_test.c:1738] +PASSED: printBounds(staticmc.getBounds(_root), -1) == '80,160 320,240' [matrix_test.c:1739] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=-2.23, b=0.08, c=-1.83, d=-1.28, tx=200, ty=200)' [matrix_test.c:1742] +PASSED: Math.round(staticmc._yscale) == -224 [matrix_test.c:1743] +PASSED: Math.round(staticmc._xscale) == -224 [matrix_test.c:1744] +PASSED: staticmc._rotation == -2 [matrix_test.c:1745] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '78,159 322,241' [matrix_test.c:1746] +PASSED: Math.round(staticmc._x*100)/100 == 13.95 [matrix_test.c:1764] +PASSED: staticmc._y == 214.80 [matrix_test.c:1765] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=0, b=0.97, c=-1, d=0, tx=13.95, ty=214.8)' [matrix_test.c:1775] +PASSED: Math.round(staticmc._xscale) == 97 [matrix_test.c:1776] +PASSED: Math.round(staticmc._yscale) == 100 [matrix_test.c:1777] +PASSED: Math.round(staticmc._rotation) == 90 [matrix_test.c:1778] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '-16,186 44,244' [matrix_test.c:1779] +PASSED: Math.round(staticmc._x*100)/100 == 13.95 [matrix_test.c:1784] +PASSED: staticmc._y == 214.80 [matrix_test.c:1785] +PASSED: printMatrix(staticmc.transform.matrix, 2) == '(a=0, b=-0.97, c=-1, d=0, tx=13.95, ty=214.8)' [matrix_test.c:1795] +PASSED: Math.round(staticmc._xscale) == -97 [matrix_test.c:1796] +PASSED: Math.round(staticmc._yscale) == 100 [matrix_test.c:1797] +PASSED: Math.round(staticmc._rotation) == 90 [matrix_test.c:1798] +PASSED: printBounds(staticmc.getBounds(_root), 0) == '-16,186 44,244' [matrix_test.c:1799] +PASSED: printBounds(staticmc.getBounds(_root)) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:1806] +PASSED: staticmc.transform.matrix.toString() == '(a=1, b=0, c=0, d=1, tx=0, ty=0)' [matrix_test.c:1807] +PASSED: staticmc._rotation == 0 [matrix_test.c:1808] +PASSED: staticmc._xscale == 100 [matrix_test.c:1809] +PASSED: staticmc._yscale == 100 [matrix_test.c:1810] +PASSED: printBounds(staticmc.getBounds(_root)) == '-30.05,-60.1 30.05,60.1' [matrix_test.c:1813] +PASSED: staticmc.transform.matrix.toString() == '(a=1, b=0, c=0, d=-2, tx=0, ty=0)' [matrix_test.c:1814] +PASSED: staticmc._rotation == 0 [matrix_test.c:1815] +PASSED: staticmc._xscale == 100 [matrix_test.c:1816] +PASSED: staticmc._yscale == -200 [matrix_test.c:1817] +PASSED: printBounds(staticmc.getBounds(_root)) == '-60.1,-30.05 60.1,30.05' [matrix_test.c:1820] +PASSED: staticmc.transform.matrix.toString() == '(a=0, b=-1, c=-2, d=0, tx=0, ty=0)' [matrix_test.c:1821] +PASSED: staticmc._rotation == -90 [matrix_test.c:1822] +PASSED: staticmc._xscale == 100 [matrix_test.c:1823] +PASSED: staticmc._yscale == -200 [matrix_test.c:1824] +PASSED: printBounds(staticmc.getBounds(_root)) == '-60.1,-30.05 60.1,30.05' [matrix_test.c:1827] +PASSED: staticmc.transform.matrix.toString() == '(a=0, b=1, c=2, d=0, tx=0, ty=0)' [matrix_test.c:1828] +PASSED: staticmc._rotation == 90 [matrix_test.c:1829] +PASSED: staticmc._xscale == 100 [matrix_test.c:1830] +PASSED: staticmc._yscale == -200 [matrix_test.c:1831] +PASSED: printBounds(staticmc.getBounds(_root)) == '-30.05,-60.1 30.05,60.1' [matrix_test.c:1837] +PASSED: staticmc.transform.matrix.toString() == '(a=1, b=0, c=0, d=-2, tx=0, ty=0)' [matrix_test.c:1838] +PASSED: staticmc._rotation == 0 [matrix_test.c:1839] +PASSED: staticmc._xscale == 100 [matrix_test.c:1840] +PASSED: staticmc._yscale == 200 [matrix_test.c:1841] +PASSED: printBounds(staticmc.getBounds(_root)) == '-60.1,-30.05 60.1,30.05' [matrix_test.c:1844] +PASSED: staticmc.transform.matrix.toString() == '(a=0, b=-1, c=-2, d=0, tx=0, ty=0)' [matrix_test.c:1845] +PASSED: staticmc._rotation == -90 [matrix_test.c:1846] +PASSED: staticmc._xscale == 100 [matrix_test.c:1847] +PASSED: staticmc._yscale == 200 [matrix_test.c:1848] +PASSED: printBounds(staticmc.getBounds(_root)) == '-60.1,-30.05 60.1,30.05' [matrix_test.c:1851] +PASSED: staticmc.transform.matrix.toString() == '(a=0, b=1, c=2, d=0, tx=0, ty=0)' [matrix_test.c:1852] +PASSED: staticmc._rotation == 90 [matrix_test.c:1853] +PASSED: staticmc._xscale == 100 [matrix_test.c:1854] +PASSED: staticmc._yscale == 200 [matrix_test.c:1855] +PASSED: printBounds(staticmc.getBounds(_root)) == '-30.05,-30.05 30.05,30.05' [matrix_test.c:1861] +PASSED: staticmc.transform.matrix.toString() == '(a=1, b=0, c=0, d=1, tx=0, ty=0)' [matrix_test.c:1862] +PASSED: staticmc._rotation == 0 [matrix_test.c:1863] +PASSED: staticmc._xscale == 100 [matrix_test.c:1864] +PASSED: staticmc._yscale == 100 [matrix_test.c:1865] +PASSED: printBounds(staticmc.getBounds(_root)) == '-60.1,-30.05 60.1,30.05' [matrix_test.c:1868] +PASSED: staticmc.transform.matrix.toString() == '(a=-2, b=0, c=0, d=1, tx=0, ty=0)' [matrix_test.c:1869] +PASSED: staticmc._rotation == 0 [matrix_test.c:1870] +PASSED: staticmc._xscale == -200 [matrix_test.c:1871] +PASSED: staticmc._yscale == 100 [matrix_test.c:1872] +PASSED: printBounds(staticmc.getBounds(_root)) == '-30.05,-60.1 30.05,60.1' [matrix_test.c:1875] +PASSED: staticmc.transform.matrix.toString() == '(a=0, b=2, c=1, d=0, tx=0, ty=0)' [matrix_test.c:1876] +PASSED: staticmc._rotation == -90 [matrix_test.c:1877] +PASSED: staticmc._xscale == -200 [matrix_test.c:1878] +PASSED: staticmc._yscale == 100 [matrix_test.c:1879] +PASSED: printBounds(staticmc.getBounds(_root)) == '-30.05,-60.1 30.05,60.1' [matrix_test.c:1882] +PASSED: staticmc.transform.matrix.toString() == '(a=0, b=-2, c=-1, d=0, tx=0, ty=0)' [matrix_test.c:1883] +PASSED: staticmc._rotation == 90 [matrix_test.c:1884] +PASSED: staticmc._xscale == -200 [matrix_test.c:1885] +PASSED: staticmc._yscale == 100 [matrix_test.c:1886] +#passed: 1083 +#failed: 0 +#total tests run: 1083 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/matrix_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/matrix_test/test.swf new file mode 100644 index 000000000000..70a11450ef35 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/matrix_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/matrix_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/matrix_test/test.toml new file mode 100644 index 000000000000..e5f9afc42d3d --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/matrix_test/test.toml @@ -0,0 +1,2 @@ +num_ticks = 100 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/frame1.expected.png b/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/frame1.expected.png new file mode 100644 index 000000000000..3ad4d7e5032f Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/frame1.expected.png differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/frame2.expected.png b/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/frame2.expected.png new file mode 100644 index 000000000000..ac2f7e348bf5 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/frame2.expected.png differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/frame3.expected.png b/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/frame3.expected.png new file mode 100644 index 000000000000..05d7645653dd Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/frame3.expected.png differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/frame4.expected.png b/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/frame4.expected.png new file mode 100644 index 000000000000..9ce5d5f16f30 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/frame4.expected.png differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/frame5.expected.png b/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/frame5.expected.png new file mode 100644 index 000000000000..7eb6913072b9 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/frame5.expected.png differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/frame6.expected.png b/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/frame6.expected.png new file mode 100644 index 000000000000..8be5d8de8279 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/frame6.expected.png differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/output.txt new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/test.swf new file mode 100644 index 000000000000..9516e80d52d6 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/test.toml new file mode 100644 index 000000000000..3dfc6fcd956c --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/morph_test1/test.toml @@ -0,0 +1,29 @@ +num_ticks = 30 + + +[image_comparisons.frame1] +tolerance = 5 +trigger = 2 + +[image_comparisons.frame2] +tolerance = 5 +trigger = 3 + +[image_comparisons.frame3] +tolerance = 5 +trigger = 4 + +[image_comparisons.frame4] +tolerance = 5 +trigger = 5 + +[image_comparisons.frame5] +tolerance = 5 +trigger = 6 + +[image_comparisons.frame6] +tolerance = 5 +trigger = 7 + +[player_options] +with_renderer = { optional = false, sample_count = 1 } diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/move_object_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/move_object_test/output.txt new file mode 100644 index 000000000000..fc5e1da7e503 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/move_object_test/output.txt @@ -0,0 +1,11 @@ +PASSED: typeof(instance1) == 'movieclip' [move_object_test.c:87] +PASSED: typeof(instance2) == 'movieclip' [move_object_test.c:90] +PASSED: instance2._x == 700 [move_object_test.c:91] +PASSED: typeof(instance2) == 'movieclip' [move_object_test.c:79] +PASSED: instance2._x == 0 [move_object_test.c:80] +PASSED: typeof(instance1) == 'movieclip' [move_object_test.c:87] +PASSED: typeof(instance2) == 'movieclip' [move_object_test.c:90] +PASSED: instance2._x == 700 [move_object_test.c:91] +#passed: 8 +#failed: 0 +#total tests run: 8 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/move_object_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/move_object_test/test.swf new file mode 100644 index 000000000000..3c4a002e2601 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/move_object_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/move_object_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/move_object_test/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/move_object_test/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/multi_doactions_and_goto_frame_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/multi_doactions_and_goto_frame_test/output.txt new file mode 100644 index 000000000000..ca4a17ae1529 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/multi_doactions_and_goto_frame_test/output.txt @@ -0,0 +1,6 @@ +PASSED: x1 == 'as_in_doAction_tag1' [multi_doactions_and_goto_frame_test.c:71] +PASSED: x2 == 'as_in_doAction_tag2' [multi_doactions_and_goto_frame_test.c:72] +PASSED: x3 == 'as_in_doAction_tag3' [multi_doactions_and_goto_frame_test.c:73] +#passed: 3 +#failed: 0 +#total tests run: 3 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/multi_doactions_and_goto_frame_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/multi_doactions_and_goto_frame_test/test.swf new file mode 100644 index 000000000000..0d86b02a437e Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/multi_doactions_and_goto_frame_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/multi_doactions_and_goto_frame_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/multi_doactions_and_goto_frame_test/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/multi_doactions_and_goto_frame_test/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/new_child_in_unload_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/new_child_in_unload_test/output.txt new file mode 100644 index 000000000000..6a400eb43ad1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/new_child_in_unload_test/output.txt @@ -0,0 +1,11 @@ +PASSED: 200 == 200 +PASSED: 100 == 100 +_level0.static_mc1 +PASSED: 100 == 100 +PASSED: 101 == 101 +PASSED: typeof(_root.dyn1Ref) == 'movieclip' [new_child_in_unload_test.c:127] +PASSED: _root.dyn1Ref.valueof() == null [new_child_in_unload_test.c:128] +PASSED: _root.dyn2testvar == 'executed' [new_child_in_unload_test.c:130] +#passed: 7 +#failed: 0 +#total tests run: 7 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/new_child_in_unload_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/new_child_in_unload_test/test.swf new file mode 100644 index 000000000000..c3da231a398c Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/new_child_in_unload_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/new_child_in_unload_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/new_child_in_unload_test/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/new_child_in_unload_test/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/opcode_guard_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/opcode_guard_test/output.txt new file mode 100644 index 000000000000..b1ea986e0d63 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/opcode_guard_test/output.txt @@ -0,0 +1,18 @@ +mc1 Construct called +PASSED: movieclip == movieclip +PASSED: undefined == undefined +mc1 Load called +mc1 Unload called +PASSED: undefined == undefined +PASSED: testvar1 == 'executed' [opcode_guard_test.c:122] +PASSED: testvar2 == 'executed' [opcode_guard_test.c:123] +PASSED: testvar3 == 'executed' [opcode_guard_test.c:124] +mc2 EnterFrame called +PASSED: undefined == undefined +PASSED: / == / +PASSED: 9 == 9 +PASSED: 9 == 9 +PASSED: 100 == 100 +#passed: 11 +#failed: 0 +#total tests run: 11 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/opcode_guard_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/opcode_guard_test/test.swf new file mode 100644 index 000000000000..2a363a122993 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/opcode_guard_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/opcode_guard_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/opcode_guard_test/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/opcode_guard_test/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/path_format_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/path_format_test/output.txt new file mode 100644 index 000000000000..7a0f664a70be --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/path_format_test/output.txt @@ -0,0 +1,27 @@ +PASSED: typeOf(_root.mc1) == 'movieclip' [path_format_test.c:165] +PASSED: typeOf(_root.mc1.mc11) == 'movieclip' [path_format_test.c:166] +PASSED: _root.x7 == '3' [path_format_test.c:167] +PASSED: _root.x9 == 0 [path_format_test.c:168] +PASSED: _root.x8 == 0 [path_format_test.c:175] +PASSED: _root.x8 == 0 [path_format_test.c:184] +PASSED: _root.x10 == 'movieclip' [path_format_test.c:196] +PASSED: _root.x10 == 'undefined' [path_format_test.c:206] +PASSED: _root.x10 == 'undefined' [path_format_test.c:216] +PASSED: _root.x10 == 'undefined' [path_format_test.c:227] +PASSED: _root.x10 == 'undefined' [path_format_test.c:239] +PASSED: _root.x1 == 'mc11_frame4' [path_format_test.c:242] +PASSED: _root.x1 == 'mc11_frame4' [path_format_test.c:248] +PASSED: _root.x1 == 'mc11_frame4' [path_format_test.c:254] +PASSED: _root.x1 == 0 [path_format_test.c:260] +PASSED: _root.x1 == 0 [path_format_test.c:282] +PASSED: _root.x2 == 0 [path_format_test.c:283] +PASSED: _root.x3 == 'mc11_frame6' [path_format_test.c:284] +PASSED: _root.x4 == 'mc1_frame4' [path_format_test.c:285] +PASSED: _root.x5 == 'mc1_frame5' [path_format_test.c:286] +PASSED: _root.x6 == 'mc1_frame6' [path_format_test.c:287] +PASSED: checkpoint == undefined [path_format_test.c:296] +PASSED: checkpoint == 0 [path_format_test.c:305] +PASSED: checkpoint == 0 [path_format_test.c:314] +#passed: 24 +#failed: 0 +#total tests run: 24 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/path_format_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/path_format_test/test.swf new file mode 100644 index 000000000000..bf26b926c14b Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/path_format_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/path_format_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/path_format_test/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/path_format_test/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/place_and_remove_object_insane_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/place_and_remove_object_insane_test/output.txt new file mode 100644 index 000000000000..c9029ee213f2 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/place_and_remove_object_insane_test/output.txt @@ -0,0 +1,22 @@ +PASSED: typeof(_root.mc_red) == 'undefined' [place_and_remove_object_insane_test.c:144] +PASSED: typeof(_root.mc_blue) == 'undefined' [place_and_remove_object_insane_test.c:145] +PASSED: typeof(_root.mc_black) == 'undefined' [place_and_remove_object_insane_test.c:146] +PASSED: typeof(_root.mc_green) == 'undefined' [place_and_remove_object_insane_test.c:147] +PASSED: typeof(_root.mc_red) == 'movieclip' [place_and_remove_object_insane_test.c:169] +PASSED: typeof(_root.mc_blue) == 'movieclip' [place_and_remove_object_insane_test.c:170] +PASSED: typeof(_root.mc_red) == 'movieclip' [place_and_remove_object_insane_test.c:118] +PASSED: typeof(_root.mc_blue) == 'movieclip' [place_and_remove_object_insane_test.c:119] +PASSED: _root.mc_green == undefined [place_and_remove_object_insane_test.c:121] +PASSED: 60 == 60 +PASSED: undefined == undefined +PASSED: movieclip == movieclip +PASSED: _root.mc_red._x == 10 [place_and_remove_object_insane_test.c:136] +PASSED: typeof(_root.mc_red) == 'undefined' [place_and_remove_object_insane_test.c:144] +PASSED: typeof(_root.mc_blue) == 'undefined' [place_and_remove_object_insane_test.c:145] +PASSED: typeof(_root.mc_black) == 'undefined' [place_and_remove_object_insane_test.c:146] +PASSED: typeof(_root.mc_green) == 'undefined' [place_and_remove_object_insane_test.c:147] +PASSED: typeof(_root.mc_red) == 'movieclip' [place_and_remove_object_insane_test.c:169] +PASSED: typeof(_root.mc_blue) == 'movieclip' [place_and_remove_object_insane_test.c:170] +#passed: 19 +#failed: 0 +#total tests run: 19 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/place_and_remove_object_insane_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/place_and_remove_object_insane_test/test.swf new file mode 100644 index 000000000000..b1b6a54d31c3 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/place_and_remove_object_insane_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/place_and_remove_object_insane_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/place_and_remove_object_insane_test/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/place_and_remove_object_insane_test/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/place_and_remove_object_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/place_and_remove_object_test/output.txt new file mode 100644 index 000000000000..8c2e54e6fbf9 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/place_and_remove_object_test/output.txt @@ -0,0 +1,13 @@ +PASSED: _root.sh1 == undefined [place_and_remove_object_test.c:81] +PASSED: _root.sh2 == undefined [place_and_remove_object_test.c:82] +PASSED: _root.sh1 == undefined [place_and_remove_object_test.c:88] +PASSED: _root.sh2 != undefined [place_and_remove_object_test.c:89] +PASSED: _root.sh1 != undefined [place_and_remove_object_test.c:76] +PASSED: _root.sh2 == undefined [place_and_remove_object_test.c:77] +PASSED: _root.sh1 == undefined [place_and_remove_object_test.c:81] +PASSED: _root.sh2 == undefined [place_and_remove_object_test.c:82] +PASSED: _root.sh1 == undefined [place_and_remove_object_test.c:88] +PASSED: _root.sh2 != undefined [place_and_remove_object_test.c:89] +#passed: 10 +#failed: 0 +#total tests run: 10 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/place_and_remove_object_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/place_and_remove_object_test/test.swf new file mode 100644 index 000000000000..a3d101af9dbe Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/place_and_remove_object_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/place_and_remove_object_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/place_and_remove_object_test/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/place_and_remove_object_test/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/place_object_test/output.expected.png b/tests/tests/swfs/from_gnash/misc-ming.all/place_object_test/output.expected.png new file mode 100644 index 000000000000..e5a98de2d8c3 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/place_object_test/output.expected.png differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/place_object_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/place_object_test/output.txt new file mode 100644 index 000000000000..2f8d5cf4d8cb --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/place_object_test/output.txt @@ -0,0 +1,12 @@ +Placed red shape sh1 and black shape sh2 at the same depth 3. Should both be visible, red on top. +PASSED: sh1 == sh2 [place_object_test.c:83] +PASSED: typeof(sh1) == 'movieclip' [place_object_test.c:84] +PASSED: typeof(sh2) == 'movieclip' [place_object_test.c:85] +Placed red sprite mc1 and black sprite mc2 at the same depth 4. Should both be visible, black on top. +PASSED: typeof(mc1) == 'movieclip' [place_object_test.c:111] +PASSED: typeof(mc2) == 'movieclip' [place_object_test.c:112] +PASSED: mc1._name != mc2._name [place_object_test.c:113] +PASSED: mc1.getDepth() == mc2.getDepth() [place_object_test.c:114] +#passed: 7 +#failed: 0 +#total tests run: 7 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/place_object_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/place_object_test/test.swf new file mode 100644 index 000000000000..e5b38d47a3d4 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/place_object_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/place_object_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/place_object_test/test.toml new file mode 100644 index 000000000000..31d18cd1733b --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/place_object_test/test.toml @@ -0,0 +1,8 @@ +num_frames = 30 +known_failure = true + +[image_comparisons.output] +tolerance = 50 + +[player_options] +with_renderer = { optional = true, sample_count = 1 } diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/place_object_test2/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/place_object_test2/output.txt new file mode 100644 index 000000000000..057f48dfe628 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/place_object_test2/output.txt @@ -0,0 +1,19 @@ +_level0.static_mc1 +1 +_level0.static_mc1 +2 +PASSED: typeof(static_mc1) == 'movieclip' [place_object_test2.c:99] +PASSED: typeof(static_mc2) == 'undefined' [place_object_test2.c:103] +_level0.static_mc1 +3 +PASSED: testvar1 == 3 [place_object_test2.c:114] +PASSED: testvar2 == 0 [place_object_test2.c:115] +PASSED: typeof(static_mc1) == 'movieclip' [place_object_test2.c:132] +PASSED: typeof(static_mc3) == 'undefined' [place_object_test2.c:136] +PASSED: typeof(static_mc1) == 'movieclip' [place_object_test2.c:154] +PASSED: typeof(static_mc4) == 'undefined' [place_object_test2.c:158] +PASSED: typeof(static_mc1) == 'movieclip' [place_object_test2.c:176] +PASSED: typeof(static_mc5) == 'undefined' [place_object_test2.c:180] +#passed: 10 +#failed: 0 +#total tests run: 10 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/place_object_test2/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/place_object_test2/test.swf new file mode 100644 index 000000000000..22bbf66212e4 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/place_object_test2/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/place_object_test2/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/place_object_test2/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/place_object_test2/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/register_class/RegisterClassTest3/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/RegisterClassTest3/output.txt new file mode 100644 index 000000000000..c1617a21b9da --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/RegisterClassTest3/output.txt @@ -0,0 +1,12 @@ +Registered class +frame 1 +frame 3 +PASSED: c == 0 [RegisterClassTest3.c:114] +PASSED: i == 0 [RegisterClassTest3.c:115] +PASSED: _root.mc2 == undefined [RegisterClassTest3.c:116] +onInitialize +Object ID 2 is constructed +frame 5 +PASSED: c == 1 [RegisterClassTest3.c:135] +PASSED: i == 1 [RegisterClassTest3.c:136] +PASSED: typeof(_root.mc2a) == 'movieclip' [RegisterClassTest3.c:137] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/register_class/RegisterClassTest3/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/RegisterClassTest3/test.swf new file mode 100644 index 000000000000..b122c82b5f74 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/RegisterClassTest3/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/register_class/RegisterClassTest3/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/RegisterClassTest3/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/RegisterClassTest3/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/register_class/RegisterClassTest4/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/RegisterClassTest4/output.txt new file mode 100644 index 000000000000..2d7951a1734a --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/RegisterClassTest4/output.txt @@ -0,0 +1,42 @@ +1 undefined +Bug ctor: 0 +2 0 +load _level0.mc.Segments c: 0 +1 0 +2 0 +1 0 +Bug ctor: 1 +unload _level0.mc.Segments c: 0 +2 0 +load _level0.mc.Segments c: 1 +1 0 +2 1 +1 1 +Bug ctor: 2 +unload _level0.mc.Segments c: 1 +2 1 +load _level0.mc.Segments c: 2 +1 1 +2 2 +PASSED: _global.real.length == 12 [RegisterClassTest4.c:152] +PASSED: _global.real.toString() == 'undefined,0,0,0,0,0,0,1,1,1,1,2' [RegisterClassTest4.c:154] +PASSED: _global.fns.length == 12 [RegisterClassTest4.c:156] +PASSED: _global.fns[0] == 'undefined' [RegisterClassTest4.c:157] +PASSED: _global.fns[1] == 'function' [RegisterClassTest4.c:158] +PASSED: _global.fns[2] == 'function' [RegisterClassTest4.c:159] +PASSED: _global.fns[3] == 'function' [RegisterClassTest4.c:160] +PASSED: _global.fns[4] == 'function' [RegisterClassTest4.c:161] +PASSED: _global.fns[5] == 'function' [RegisterClassTest4.c:162] +PASSED: _global.fns[6] == 'function' [RegisterClassTest4.c:163] +PASSED: _global.fns[7] == 'function' [RegisterClassTest4.c:164] +PASSED: _global.fns[8] == 'function' [RegisterClassTest4.c:165] +PASSED: _global.fns[9] == 'function' [RegisterClassTest4.c:166] +PASSED: _global.fns[10] == 'function' [RegisterClassTest4.c:167] +PASSED: _global.fns[11] == 'function' [RegisterClassTest4.c:168] +PASSED: _global.ctorcalls == 3 [RegisterClassTest4.c:170] +Bug ctor: 3 +unload _level0.mc.Segments c: 2 +#passed: 16 +#failed: 0 +#total tests run: 16 +load _level0.mc.Segments c: 3 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/register_class/RegisterClassTest4/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/RegisterClassTest4/test.swf new file mode 100644 index 000000000000..129169ff95fb Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/RegisterClassTest4/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/register_class/RegisterClassTest4/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/RegisterClassTest4/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/RegisterClassTest4/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/register_class/registerClassTest/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/registerClassTest/output.txt new file mode 100644 index 000000000000..2b010d9bdc9d --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/registerClassTest/output.txt @@ -0,0 +1,51 @@ +PASSED: typeof(registerClassRet) == 'boolean' [registerClassTest.c:126] +PASSED: registerClassRet == true [registerClassTest.c:127] +_level0.square2.onLoad called +PASSED: _root.onLoadCalled.length == 1 [registerClassTest.c:145] +PASSED: _root.onLoadCalled[0] == _level0.square2 [registerClassTest.c:146] +PASSED: typeof(registerClassRet) == 'boolean' [registerClassTest.c:147] +PASSED: registerClassRet == true [registerClassTest.c:148] +PASSED: function == function +PASSED: typeof(registerClassRet) == 'boolean' [registerClassTest.c:163] +PASSED: registerClassRet == false [registerClassTest.c:164] +PASSED: function == function +PASSED: typeof(clip1) == 'movieclip' [registerClassTest.c:176] +PASSED: clip1 instanceOf MovieClip [registerClassTest.c:177] +PASSED: clip1._x == 0 [registerClassTest.c:178] +PASSED: ! clip1 instanceOf CustomClass [registerClassTest.c:179] +PASSED: s == 'onRollOver,' [registerClassTest.c:184] +PASSED: typeof(clip2) == 'movieclip' [registerClassTest.c:186] +PASSED: clip2 instanceOf CustomClass [registerClassTest.c:187] +PASSED: clip2.hasOwnProperty('__constructor__') [registerClassTest.c:188] +PASSED: clip2.hasOwnProperty('constructor') [registerClassTest.c:189] +PASSED: clip2.hasOwnProperty('__proto__') [registerClassTest.c:190] +PASSED: clip2.__proto__ == CustomClass.prototype [registerClassTest.c:191] +PASSED: clip2.__constructor__ == CustomClass [registerClassTest.c:192] +PASSED: clip2.constructor == CustomClass [registerClassTest.c:193] +PASSED: clip2._x == 80 [registerClassTest.c:194] +PASSED: typeof(clip2.lineTo) == 'undefined' [registerClassTest.c:195] +PASSED: ! clip2 instanceOf MovieClip [registerClassTest.c:196] +PASSED: s == 'onLoad,onRollOver,' [registerClassTest.c:201] +PASSED: clip3.hasOwnProperty('__constructor__') [registerClassTest.c:203] +PASSED: clip3.hasOwnProperty('constructor') [registerClassTest.c:204] +PASSED: clip3.hasOwnProperty('__proto__') [registerClassTest.c:205] +PASSED: clip3.__proto__ == CustomClass2.prototype [registerClassTest.c:206] +PASSED: clip3.__constructor__ == CustomClass2 [registerClassTest.c:207] +PASSED: clip3.constructor == CustomClass2 [registerClassTest.c:208] +PASSED: typeof(clip3) == 'movieclip' [registerClassTest.c:209] +PASSED: clip3._x == 160 [registerClassTest.c:210] +PASSED: clip3 instanceOf CustomClass2 [registerClassTest.c:211] +PASSED: clip3 instanceOf MovieClip [registerClassTest.c:212] +PASSED: s == 'onRollOver,' [registerClassTest.c:217] +PASSED: clip4.hasOwnProperty('__constructor__') [registerClassTest.c:219] +PASSED: clip4.hasOwnProperty('constructor') [registerClassTest.c:220] +PASSED: clip4.hasOwnProperty('__proto__') [registerClassTest.c:221] +PASSED: clip4.__proto__ == CustomClass2.prototype [registerClassTest.c:222] +PASSED: clip4.__constructor__ == CustomClass2 [registerClassTest.c:223] +PASSED: clip4.constructor == CustomClass2 [registerClassTest.c:224] +PASSED: typeof(clip4) == 'movieclip' [registerClassTest.c:225] +PASSED: clip4._x == 240 [registerClassTest.c:226] +PASSED: clip4 instanceOf MovieClip [registerClassTest.c:227] +#passed: 47 +#failed: 0 +#total tests run: 47 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/register_class/registerClassTest/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/registerClassTest/test.swf new file mode 100644 index 000000000000..147ae0229ba9 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/registerClassTest/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/register_class/registerClassTest/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/registerClassTest/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/registerClassTest/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/register_class/registerClassTest2/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/registerClassTest2/output.txt new file mode 100644 index 000000000000..eeebd3b6ab9b --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/registerClassTest2/output.txt @@ -0,0 +1,44 @@ +PASSED: typeof(clip1) == 'movieclip' [registerClassTest2.c:133] +PASSED: typeof(clip2) == 'movieclip' [registerClassTest2.c:134] +PASSED: clip1.__proto__ == theClass1.prototype [registerClassTest2.c:135] +PASSED: clip2.__proto__ == theClass2.prototype [registerClassTest2.c:136] +PASSED: clip1.constructor == MovieClip [registerClassTest2.c:139] +PASSED: clip1.__constructor__ == theClass1 [registerClassTest2.c:143] +PASSED: clip2.constructor == theClass2 [registerClassTest2.c:144] +PASSED: clip2.__constructor__ == theClass2 [registerClassTest2.c:145] +PASSED: clip1.x == 60 [registerClassTest2.c:146] +PASSED: clip2.x == 600 [registerClassTest2.c:147] +PASSED: clip1._x == 0 [registerClassTest2.c:148] +PASSED: clip2._x == 200 [registerClassTest2.c:149] +PASSED: typeof(MovieClip.prototype.getDepth) == 'function' [registerClassTest2.c:150] +PASSED: clip1.getDepth() == 10 [registerClassTest2.c:151] +PASSED: clip2.getDepth() == undefined [registerClassTest2.c:153] +theClass1 proto onLoad (_level0.clip1) +mc3.initactions +PASSED: [object Object] == [object Object] +mc3.onClipInitialize +PASSED: movieclip == movieclip +PASSED: [object Object] == [object Object] +mc3.onClipConstruct +PASSED: movieclip == movieclip +PASSED: true +PASSED: [object Object] == [object Object] +PASSED: _root.theClass1onLoadCalls.length == 1 [registerClassTest2.c:173] +PASSED: _root.theClass1onLoadCalls[0] == _level0.clip1 [registerClassTest2.c:174] +_level0.clipevs.onLoad (theClass3 proto) +_level0.clipevs.frame0 actions +_level0.noclipevs.frame0 actions +_level0.clip3.frame0 actions +_level0.clip3.onLoad (theClass3 proto) +_level0.noclipevs.onLoad (theClass3 proto) +PASSED: _root.theClass3onLoadCalls.length == 3 [registerClassTest2.c:212] +PASSED: _root.theClass3onLoadCalls[0] == _level0.clipevs [registerClassTest2.c:213] +PASSED: _root.theClass3onLoadCalls[1] == _level0.clip3 [registerClassTest2.c:215] +PASSED: _root.theClass3onLoadCalls[2] == _level0.noclipevs [registerClassTest2.c:216] +PASSED: _root.mc3frame0.length == 3 [registerClassTest2.c:218] +PASSED: _root.mc3frame0[0] == _level0.clipevs [registerClassTest2.c:219] +PASSED: _root.mc3frame0[1] == _level0.noclipevs [registerClassTest2.c:220] +PASSED: _root.mc3frame0[2] == _level0.clip3 [registerClassTest2.c:221] +#passed: 31 +#failed: 0 +#total tests run: 31 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/register_class/registerClassTest2/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/registerClassTest2/test.swf new file mode 100644 index 000000000000..29ed7e6a7e39 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/registerClassTest2/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/register_class/registerClassTest2/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/registerClassTest2/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/register_class/registerClassTest2/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/replace_buttons1test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/replace_buttons1test/output.txt new file mode 100644 index 000000000000..ea2c2391c5c0 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/replace_buttons1test/output.txt @@ -0,0 +1,18 @@ +PASSED: typeof(static1) == 'object' [replace_buttons1test.c:166] +PASSED: static1._target == '/static1' [replace_buttons1test.c:167] +PASSED: static1.name == 'static1' [replace_buttons1test.c:168] +PASSED: typeof(static2) == 'undefined' [replace_buttons1test.c:192] +PASSED: typeof(static1) == 'object' [replace_buttons1test.c:193] +PASSED: static1._target == '/static1' [replace_buttons1test.c:194] +PASSED: static1.name == 'static1' [replace_buttons1test.c:195] +PASSED: static1._x == 130 [replace_buttons1test.c:196] +PASSED: typeof(static2) == 'undefined' [replace_buttons1test.c:199] +PASSED: undefined == undefined +PASSED: object == object +PASSED: undefined == undefined +#passed: 12 +#failed: 0 +#total tests run: 12 +PASSED: typeof(static1) == 'object' [replace_buttons1test.c:166] +PASSED: static1._target == '/static1' [replace_buttons1test.c:167] +PASSED: static1.name == 'static1' [replace_buttons1test.c:168] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/replace_buttons1test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/replace_buttons1test/test.swf new file mode 100644 index 000000000000..0a2e56b9cfbd Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/replace_buttons1test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/replace_buttons1test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/replace_buttons1test/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/replace_buttons1test/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/replace_shapes1test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/replace_shapes1test/output.txt new file mode 100644 index 000000000000..74e619bed524 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/replace_shapes1test/output.txt @@ -0,0 +1,23 @@ +PASSED: typeof(static1) == 'movieclip' [replace_shapes1test.c:153] +PASSED: static1 == _root [replace_shapes1test.c:154] +PASSED: static1.name == 'static1' [replace_shapes1test.c:155] +PASSED: _root.name == 'static1' [replace_shapes1test.c:156] +PASSED: static1.name == 'static1' [replace_shapes1test.c:160] +PASSED: static1._target == '/' [replace_shapes1test.c:162] +PASSED: typeof(static1) == 'movieclip' [replace_shapes1test.c:185] +PASSED: static1 == _root [replace_shapes1test.c:186] +PASSED: static1.name == 'static1' [replace_shapes1test.c:187] +PASSED: _root.name == 'static1' [replace_shapes1test.c:188] +PASSED: typeof(static2) == 'undefined' [replace_shapes1test.c:191] +PASSED: undefined == undefined +PASSED: movieclip == movieclip +PASSED: static1 == static1 +#passed: 14 +#failed: 0 +#total tests run: 14 +PASSED: typeof(static1) == 'movieclip' [replace_shapes1test.c:153] +PASSED: static1 == _root [replace_shapes1test.c:154] +PASSED: static1.name == 'static1' [replace_shapes1test.c:155] +PASSED: _root.name == 'static1' [replace_shapes1test.c:156] +PASSED: static1.name == 'static1' [replace_shapes1test.c:160] +PASSED: static1._target == '/' [replace_shapes1test.c:162] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/replace_shapes1test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/replace_shapes1test/test.swf new file mode 100644 index 000000000000..f0a4e1e5e8a9 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/replace_shapes1test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/replace_shapes1test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/replace_shapes1test/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/replace_shapes1test/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/replace_sprites1test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/replace_sprites1test/output.txt new file mode 100644 index 000000000000..b4b5481261c8 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/replace_sprites1test/output.txt @@ -0,0 +1,21 @@ +_level0.static1 onClipConstruct (place) +_root.depth3Constructed set to 1 +PASSED: typeof(static1) == 'movieclip' [replace_sprites1test.c:159] +PASSED: static1.name == 'static1' [replace_sprites1test.c:162] +PASSED: static1._target == '/static1' [replace_sprites1test.c:164] +PASSED: typeof(static1) == 'movieclip' [replace_sprites1test.c:197] +PASSED: static1.name == 'static1' [replace_sprites1test.c:198] +PASSED: static1._target == '/static1' [replace_sprites1test.c:199] +PASSED: static1._x == 130 [replace_sprites1test.c:200] +PASSED: typeof(static2) == 'undefined' [replace_sprites1test.c:203] +PASSED: static1._x == 130 [replace_sprites1test.c:209] +PASSED: 1 == 1 +PASSED: movieclip == movieclip +PASSED: static1 == static1 +PASSED: 100 == 100 +#passed: 13 +#failed: 0 +#total tests run: 13 +PASSED: typeof(static1) == 'movieclip' [replace_sprites1test.c:159] +PASSED: static1.name == 'static1' [replace_sprites1test.c:162] +PASSED: static1._target == '/static1' [replace_sprites1test.c:164] diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/replace_sprites1test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/replace_sprites1test/test.swf new file mode 100644 index 000000000000..cf7f1df86040 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/replace_sprites1test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/replace_sprites1test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/replace_sprites1test/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/replace_sprites1test/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/reverse_execute_PlaceObject2_test1/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/reverse_execute_PlaceObject2_test1/output.txt new file mode 100644 index 000000000000..8ba33f72cdf7 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/reverse_execute_PlaceObject2_test1/output.txt @@ -0,0 +1,8 @@ +PASSED: _root.mc._x == 300 [reverse_execute_PlaceObject2_test1.c:80] +PASSED: _root.mc._x == 300 [reverse_execute_PlaceObject2_test1.c:83] +PASSED: _root.mc._x == 900 [reverse_execute_PlaceObject2_test1.c:87] +PASSED: _root.mc._x == 300 [reverse_execute_PlaceObject2_test1.c:83] +PASSED: _root.mc._x == 900 [reverse_execute_PlaceObject2_test1.c:87] +#passed: 5 +#failed: 0 +#total tests run: 5 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/reverse_execute_PlaceObject2_test1/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/reverse_execute_PlaceObject2_test1/test.swf new file mode 100644 index 000000000000..a87aab41ebf2 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/reverse_execute_PlaceObject2_test1/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/reverse_execute_PlaceObject2_test1/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/reverse_execute_PlaceObject2_test1/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/reverse_execute_PlaceObject2_test1/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/reverse_execute_PlaceObject2_test2/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/reverse_execute_PlaceObject2_test2/output.txt new file mode 100644 index 000000000000..261e97308fff --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/reverse_execute_PlaceObject2_test2/output.txt @@ -0,0 +1,10 @@ +PASSED: _root.mc._x == 0 [reverse_execute_PlaceObject2_test2.c:89] +PASSED: _root.mc._x == 300 [reverse_execute_PlaceObject2_test2.c:92] +PASSED: _root.mc._x == 900 [reverse_execute_PlaceObject2_test2.c:96] +PASSED: _root.mc._x == 900 [reverse_execute_PlaceObject2_test2.c:100] +PASSED: _root.mc._x == 900 [reverse_execute_PlaceObject2_test2.c:100] +PASSED: _root.x1 == 'onLoad+onLoad+' [reverse_execute_PlaceObject2_test2.c:108] +PASSED: _root.x2 == 'onUnload+onUnload+' [reverse_execute_PlaceObject2_test2.c:109] +#passed: 7 +#failed: 0 +#total tests run: 7 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/reverse_execute_PlaceObject2_test2/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/reverse_execute_PlaceObject2_test2/test.swf new file mode 100644 index 000000000000..69dd55b748f2 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/reverse_execute_PlaceObject2_test2/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/reverse_execute_PlaceObject2_test2/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/reverse_execute_PlaceObject2_test2/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/reverse_execute_PlaceObject2_test2/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/runtime_vm_stack_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/runtime_vm_stack_test/output.txt new file mode 100644 index 000000000000..8a4eeea97b17 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/runtime_vm_stack_test/output.txt @@ -0,0 +1,9 @@ +PASSED: testvar1 == 1 [runtime_vm_stack_test.c:103] +PASSED: testvar2 == 2 [runtime_vm_stack_test.c:104] +PASSED: testvar3 == 3 [runtime_vm_stack_test.c:105] +PASSED: testvar1 == 1 [runtime_vm_stack_test.c:123] +PASSED: testvar2 == 2 [runtime_vm_stack_test.c:124] +PASSED: testvar3 == 3 [runtime_vm_stack_test.c:125] +#passed: 6 +#failed: 0 +#total tests run: 6 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/runtime_vm_stack_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/runtime_vm_stack_test/test.swf new file mode 100644 index 000000000000..23e1bc5f4816 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/runtime_vm_stack_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/runtime_vm_stack_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/runtime_vm_stack_test/test.toml new file mode 100644 index 000000000000..11e963f5a927 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/runtime_vm_stack_test/test.toml @@ -0,0 +1,2 @@ +num_frames = 30 +known_failure = true diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/shape_test/output.expected.png b/tests/tests/swfs/from_gnash/misc-ming.all/shape_test/output.expected.png new file mode 100644 index 000000000000..3dbc98c756d2 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/shape_test/output.expected.png differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/shape_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/shape_test/output.txt new file mode 100644 index 000000000000..2f5cb51abd0e --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/shape_test/output.txt @@ -0,0 +1,21 @@ +PASSED: sh1 != undefined [shape_test.c:74] +PASSED: sh2 != undefined [shape_test.c:75] +PASSED: typeof(sh1) == 'movieclip' [shape_test.c:79] +PASSED: typeof(sh2) == 'movieclip' [shape_test.c:80] +PASSED: typeof(_root) == 'movieclip' [shape_test.c:81] +PASSED: sh1.var1 == 10 [shape_test.c:90] +PASSED: sh2.var2 == 20 [shape_test.c:91] +PASSED: _root.var1 == 10 [shape_test.c:92] +PASSED: _root.var2 == 20 [shape_test.c:93] +PASSED: sh1._x == 0 [shape_test.c:95] +PASSED: sh2._x == 0 [shape_test.c:96] +PASSED: sh1._x == 400 [shape_test.c:103] +PASSED: sh2._x == 400 [shape_test.c:104] +PASSED: _root._x == 400 [shape_test.c:105] +PASSED: typeof(sh1.getDepth()) == 'undefined' [shape_test.c:110] +PASSED: typeof(sh2.getDepth()) == 'undefined' [shape_test.c:111] +PASSED: typeof(getInstanceAtDepth(-16381)) == 'undefined' [shape_test.c:114] +PASSED: typeof(getInstanceAtDepth(-16380)) == 'undefined' [shape_test.c:115] +#passed: 18 +#failed: 0 +#total tests run: 18 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/shape_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/shape_test/test.swf new file mode 100644 index 000000000000..0d311bcf5685 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/shape_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/shape_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/shape_test/test.toml new file mode 100644 index 000000000000..31d18cd1733b --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/shape_test/test.toml @@ -0,0 +1,8 @@ +num_frames = 30 +known_failure = true + +[image_comparisons.output] +tolerance = 50 + +[player_options] +with_renderer = { optional = true, sample_count = 1 } diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/static_vs_dynamic1/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/static_vs_dynamic1/output.txt new file mode 100644 index 000000000000..c3abf18ce7e9 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/static_vs_dynamic1/output.txt @@ -0,0 +1,17 @@ +PASSED: undefined == undefined +PASSED: undefined == undefined +PASSED: undefined == undefined +PASSED: undefined == undefined +PASSED: -16382 == -16382 +PASSED: -16381 == -16381 +PASSED: 1 == 1 +PASSED: 2 == 2 +PASSED: 10 == 10 +PASSED: -10 == -10 +PASSED: movieclip == movieclip +PASSED: undefined == undefined +PASSED: undefined == undefined +PASSED: movieclip == movieclip +#passed: 14 +#failed: 0 +#total tests run: 14 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/static_vs_dynamic1/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/static_vs_dynamic1/test.swf new file mode 100644 index 000000000000..7c3b6061e2c1 Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/static_vs_dynamic1/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/static_vs_dynamic1/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/static_vs_dynamic1/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/static_vs_dynamic1/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/static_vs_dynamic2/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/static_vs_dynamic2/output.txt new file mode 100644 index 000000000000..a76b12f799b2 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/static_vs_dynamic2/output.txt @@ -0,0 +1,18 @@ +PASSED: -16382 == -16382 +PASSED: 1 == 1 +PASSED: 1 == 1 +PASSED: -16382 == -16382 +PASSED: 0 == 0 +PASSED: 0 == 0 +PASSED: mc1._x == 0 [static_vs_dynamic2.c:87] +PASSED: dup._x == 0 [static_vs_dynamic2.c:88] +PASSED: mc1._x == 0 [static_vs_dynamic2.c:93] +PASSED: dup._x == 0 [static_vs_dynamic2.c:94] +PASSED: typeof(mc1) == 'movieclip' [static_vs_dynamic2.c:100] +PASSED: typeof(dup) == 'undefined' [static_vs_dynamic2.c:102] +PASSED: typeof(mc2) == 'movieclip' [static_vs_dynamic2.c:119] +PASSED: typeof(mc2) == 'movieclip' [static_vs_dynamic2.c:122] +PASSED: typeof(mc2) == 'undefined' [static_vs_dynamic2.c:126] +#passed: 15 +#failed: 0 +#total tests run: 15 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/static_vs_dynamic2/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/static_vs_dynamic2/test.swf new file mode 100644 index 000000000000..ce802a23bdaa Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/static_vs_dynamic2/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/static_vs_dynamic2/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/static_vs_dynamic2/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/static_vs_dynamic2/test.toml @@ -0,0 +1 @@ +num_frames = 30 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/timeline_var_test/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/timeline_var_test/output.txt new file mode 100644 index 000000000000..29a7612cea83 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/timeline_var_test/output.txt @@ -0,0 +1,11 @@ +PASSED: true +PASSED: 0 == 0 +PASSED: == +PASSED: true +PASSED: 1 == 1 +PASSED: var_defined_at_frame3 == var_defined_at_frame3 +onEnterFrame +PASSED: ar.toString() == 'moo,setTarget,moo' [timeline_var_test.c:146] +#passed: 7 +#failed: 0 +#total tests run: 7 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/timeline_var_test/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/timeline_var_test/test.swf new file mode 100644 index 000000000000..a74e337be32c Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/timeline_var_test/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/timeline_var_test/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/timeline_var_test/test.toml new file mode 100644 index 000000000000..4637108fdb20 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/timeline_var_test/test.toml @@ -0,0 +1 @@ +num_ticks = 8 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/unload_movieclip_test1/output.txt b/tests/tests/swfs/from_gnash/misc-ming.all/unload_movieclip_test1/output.txt new file mode 100644 index 000000000000..61a503e00113 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/unload_movieclip_test1/output.txt @@ -0,0 +1,6 @@ +PASSED: movieclip == movieclip +PASSED: _level0.mc == _level0.mc +PASSED: _root.x == 1 [unload_movieclip_test1.c:102] +#passed: 3 +#failed: 0 +#total tests run: 3 diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/unload_movieclip_test1/test.swf b/tests/tests/swfs/from_gnash/misc-ming.all/unload_movieclip_test1/test.swf new file mode 100644 index 000000000000..a9c1942cf02f Binary files /dev/null and b/tests/tests/swfs/from_gnash/misc-ming.all/unload_movieclip_test1/test.swf differ diff --git a/tests/tests/swfs/from_gnash/misc-ming.all/unload_movieclip_test1/test.toml b/tests/tests/swfs/from_gnash/misc-ming.all/unload_movieclip_test1/test.toml new file mode 100644 index 000000000000..f4f16330e8b1 --- /dev/null +++ b/tests/tests/swfs/from_gnash/misc-ming.all/unload_movieclip_test1/test.toml @@ -0,0 +1 @@ +num_frames = 30