[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r9801: Expect more successes about M
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r9801: Expect more successes about MovieClip.transform |
Date: |
Sat, 20 Sep 2008 14:07:09 +0200 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9801
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Sat 2008-09-20 14:07:09 +0200
message:
Expect more successes about MovieClip.transform
modified:
libcore/sprite_instance.cpp
testsuite/actionscript.all/MovieClip.as
testsuite/actionscript.all/Transform.as
testsuite/misc-ming.all/matrix_test.c
------------------------------------------------------------
revno: 9800.1.1
committer: Sandro Santilli <address@hidden>
branch nick: mybranch
timestamp: Sat 2008-09-20 14:06:35 +0200
message:
Update expected results for matrix tests
modified:
libcore/sprite_instance.cpp
testsuite/actionscript.all/MovieClip.as
testsuite/actionscript.all/Transform.as
testsuite/misc-ming.all/matrix_test.c
=== modified file 'libcore/sprite_instance.cpp'
--- a/libcore/sprite_instance.cpp 2008-09-20 09:20:31 +0000
+++ b/libcore/sprite_instance.cpp 2008-09-20 12:06:35 +0000
@@ -2232,6 +2232,10 @@
// for SWF5 too...
o.init_member("attachBitmap", new builtin_function(sprite_attachBitmap));
+ // This is documented to be SWF8+ only, but the pp version9 shows it
+ // for SWF5 too...
+ o.init_property("transform", &movieClip_transform, &movieClip_transform);
// see MovieClip.as testcase
+
if ( target_version < 6 ) return;
// SWF6 or higher
@@ -2263,8 +2267,6 @@
o.init_member("getRect", new builtin_function(sprite_getRect));
o.init_member("lineGradientStyle", new
builtin_function(sprite_lineGradientStyle));
- o.init_property("transform", &movieClip_transform, &movieClip_transform);
// see MovieClip.as testcase
-
}
as_value
=== modified file 'testsuite/actionscript.all/MovieClip.as'
--- a/testsuite/actionscript.all/MovieClip.as 2008-09-19 15:39:55 +0000
+++ b/testsuite/actionscript.all/MovieClip.as 2008-09-20 12:06:35 +0000
@@ -38,7 +38,7 @@
xcheck(MovieClip.prototype.hasOwnProperty("scale9Grid"));
xcheck(MovieClip.prototype.hasOwnProperty("scrollRect"));
xcheck(MovieClip.prototype.hasOwnProperty("tabIndex"));
-xcheck(MovieClip.prototype.hasOwnProperty("transform"));
+check(MovieClip.prototype.hasOwnProperty("transform"));
check(MovieClip.prototype.hasOwnProperty("useHandCursor"));
check(MovieClip.prototype.hasOwnProperty("_lockroot"));
@@ -88,7 +88,7 @@
#endif
#if OUTPUT_VERSION >= 8
- check_totals(748); // SWF8+
+ check_totals(752); // SWF8+
#endif
play();
@@ -1343,14 +1343,14 @@
#else
// TODO: test these !!
-xcheck_equals(typeof(_root.transform), 'object');
+check_equals(typeof(_root.transform), 'object');
oldTransform = _root.transform;
check(oldTransform === oldTransform);
-xcheck(oldTransform != _root.transform); // everytime transform is accessed,
it's a new object!
+check(oldTransform != _root.transform); // everytime transform is accessed,
it's a new object!
Matrix = flash.geom.Matrix;
-xcheck(_root.transform instanceOf Object);
+check(_root.transform instanceOf Object);
check(!_root.transform instanceOf Matrix);
props = []; for (var i in _root.transform) props.push(i); props.sort();
xcheck_equals(props.toString(),
"colorTransform,concatenatedColorTransform,concatenatedMatrix,matrix,pixelBounds");
@@ -1364,17 +1364,17 @@
xcheck_equals(typeof(_root.transform.concatenatedMatrix), 'object');
xcheck(_root.transform.concatenatedMatrix instanceOf Matrix);
-xcheck_equals(typeof(_root.transform.matrix), 'object');
-xcheck(_root.transform.matrix instanceOf Matrix);
+check_equals(typeof(_root.transform.matrix), 'object');
+check(_root.transform.matrix instanceOf Matrix);
note('x:'+_root._x+' y:'+_root._y+' rot:'+_root._rotation+'
xs:'+_root._xscale+' yx:'+_root._yscale);
-xcheck_equals(_root.transform.matrix.a, 1);
-xcheck_equals(_root.transform.matrix.b, 0);
-xcheck_equals(_root.transform.matrix.c, 0);
-xcheck_equals(_root.transform.matrix.d, 1);
-xcheck_equals(_root.transform.matrix.tx, 0);
-xcheck_equals(_root.transform.matrix.ty, 0);
+check_equals(_root.transform.matrix.a, 1);
+check_equals(_root.transform.matrix.b, 0);
+check_equals(_root.transform.matrix.c, 0);
+check_equals(_root.transform.matrix.d, 1);
+check_equals(_root.transform.matrix.tx, 0);
+check_equals(_root.transform.matrix.ty, 0);
// TODO: test concatenatedMatrix
_root._x = 30;
@@ -1383,12 +1383,12 @@
_root._yscale = -200;
_root._rotation = -90;
-xcheck_equals(_root.transform.matrix.a, 0);
-xcheck_equals(_root.transform.matrix.b, -1); // would be 3 if we did set
_xscale=-300 above
-xcheck_equals(_root.transform.matrix.c, -2);
-xcheck_equals(_root.transform.matrix.d, 0);
-xcheck_equals(_root.transform.matrix.tx, 30);
-xcheck_equals(_root.transform.matrix.ty, 20);
+check_equals(_root.transform.matrix.a, 0);
+check_equals(_root.transform.matrix.b, -1); // would be 3 if we did set
_xscale=-300 above
+check_equals(_root.transform.matrix.c, -2);
+check_equals(_root.transform.matrix.d, 0);
+check_equals(_root.transform.matrix.tx, 30);
+check_equals(_root.transform.matrix.ty, 20);
// TODO: test concatenatedMatrix
_root.transform.matrix.ty = 300;
=== modified file 'testsuite/actionscript.all/Transform.as'
--- a/testsuite/actionscript.all/Transform.as 2008-09-20 10:52:55 +0000
+++ b/testsuite/actionscript.all/Transform.as 2008-09-20 12:06:35 +0000
@@ -45,7 +45,7 @@
xcheck_equals(t, undefined);
t = Transform();
-xcheck_equals(t, undefined);
+check_equals(t, undefined);
// Hooray!
t = new Transform(_root);
@@ -53,16 +53,16 @@
check(t instanceOf Transform);
t = _root.transform;
-xcheck_equals(typeOf(t), "object");
-xcheck(t instanceOf Transform);
+check_equals(typeOf(t), "object");
+check(t instanceOf Transform);
-xcheck(t.matrix instanceOf Matrix);
+check(t.matrix instanceOf Matrix);
xcheck(t.concatenatedMatrix instanceOf Matrix);
xcheck(t.colorTransform instanceOf ColorTransform);
xcheck(t.concatenatedColorTransform instanceOf ColorTransform);
xcheck(t.pixelBounds instanceOf Rectangle);
-xcheck_equals(t.matrix.toString(), "(a=1, b=0, c=0, d=1, tx=0, ty=0)");
+check_equals(t.matrix.toString(), "(a=1, b=0, c=0, d=1, tx=0, ty=0)");
xcheck_equals(t.colorTransform.toString(), "(redMultiplier=1,
greenMultiplier=1, blueMultiplier=1, alphaMultiplier=1, redOffset=0,
greenOffset=0, blueOffset=0, alphaOffset=0)");
xcheck_equals(t.concatenatedColorTransform.toString(), "(redMultiplier=1,
greenMultiplier=1, blueMultiplier=1, alphaMultiplier=1, redOffset=0,
greenOffset=0, blueOffset=0, alphaOffset=0)");
// These vary slightly with the pp
@@ -82,7 +82,7 @@
flash.geom.Matrix = Matrix;
-xcheck_equals(t.matrix.toString(), "(a=1, b=0, c=0, d=1, tx=0, ty=0)");
+check_equals(t.matrix.toString(), "(a=1, b=0, c=0, d=1, tx=0, ty=0)");
check_equals(t.colorTransform, undefined);
flash.geom.ColorTransform = ColorTransform;
xcheck_equals(t.colorTransform.toString(), "(redMultiplier=1,
greenMultiplier=1, blueMultiplier=1, alphaMultiplier=1, redOffset=0,
greenOffset=0, blueOffset=0, alphaOffset=0)");
@@ -131,22 +131,22 @@
trans.matrix = new Matrix(2, 0, 0, 2, 10, 11);
-check_equals(trans.matrix.toString(), "(a=2, b=0, c=0, d=2, tx=10, ty=11)");
-check_equals(mc2.transform.matrix.toString(), "(a=2, b=0, c=0, d=2, tx=10,
ty=11)");
+xcheck_equals(trans.matrix.toString(), "(a=2, b=0, c=0, d=2, tx=10, ty=11)");
+xcheck_equals(mc2.transform.matrix.toString(), "(a=2, b=0, c=0, d=2, tx=10,
ty=11)");
delete mc2;
check_equals(mc2.transform.matrix.toString(), undefined);
-check_equals(trans.matrix.toString(), "(a=2, b=0, c=0, d=2, tx=10, ty=11)");
+xcheck_equals(trans.matrix.toString(), "(a=2, b=0, c=0, d=2, tx=10, ty=11)");
check_equals(mat.toString(), "(a=1, b=0, c=0, d=1, tx=0, ty=0)");
mc2 = undefined;
-check_equals(trans.matrix.toString(), "(a=2, b=0, c=0, d=2, tx=10, ty=11)");
+xcheck_equals(trans.matrix.toString(), "(a=2, b=0, c=0, d=2, tx=10, ty=11)");
// Identity;
trans.matrix = new Matrix;
-check_equals(trans.matrix.toString(), "(a=1, b=0, c=0, d=1, tx=0, ty=0)");
+xcheck_equals(trans.matrix.toString(), "(a=1, b=0, c=0, d=1, tx=0, ty=0)");
mc = _root.createEmptyMovieClip("mc", getNextHighestDepth());
@@ -154,8 +154,8 @@
mcOld = mc;
trans.matrix = new Matrix(3, 0.5, 0.5, 2, 0, 1);
-check_equals(mc.transform.matrix.toString(), "(a=3, b=0.5, c=0.5, d=2, tx=0,
ty=1)");
-check_equals(mcOld.transform.matrix.toString(), "(a=3, b=0.5, c=0.5, d=2,
tx=0, ty=1)");
+xcheck_equals(mc.transform.matrix.toString(), "(a=3, b=0.5, c=0.5, d=2, tx=0,
ty=1)");
+xcheck_equals(mcOld.transform.matrix.toString(), "(a=3, b=0.5, c=0.5, d=2,
tx=0, ty=1)");
mcOld = mc;
=== modified file 'testsuite/misc-ming.all/matrix_test.c'
--- a/testsuite/misc-ming.all/matrix_test.c 2008-09-20 06:36:21 +0000
+++ b/testsuite/misc-ming.all/matrix_test.c 2008-09-20 12:06:35 +0000
@@ -351,7 +351,7 @@
SWFMovie_nextFrame(mo);
SWFDisplayItem_setMatrix(it, 1, 0, 0, 1, 50, 300); // reset to
near-identity
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=0,
c=0, d=1, tx=50, ty=300)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=0, c=0,
d=1, tx=50, ty=300)'");
check_equals(mo, "staticmc._x", "50");
check_equals(mo, "staticmc._y", "300");
@@ -378,7 +378,7 @@
SWFMovie_nextFrame(mo);
SWFDisplayItem_setMatrix(it, -1, 0, 0, 1, 50, 300); // negative x scale
gets interpreted as 180 degrees rotation
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=0,
c=0, d=1, tx=50, ty=300)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=0,
c=0, d=1, tx=50, ty=300)'");
check_equals(mo, "staticmc._x", "50");
check_equals(mo, "staticmc._y", "300");
@@ -405,7 +405,7 @@
SWFMovie_nextFrame(mo);
SWFDisplayItem_setMatrix(it, 1, 0, 0, -1, 50, 300); // negative y scale
(discarded ?)
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=0,
c=0, d=-1, tx=50, ty=300)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=0, c=0,
d=-1, tx=50, ty=300)'");
check_equals(mo, "staticmc._x", "50");
check_equals(mo, "staticmc._y", "300");
@@ -432,7 +432,7 @@
SWFMovie_nextFrame(mo);
SWFDisplayItem_setMatrix(it, -1, 0, 0, -1, 50, 300); // negative x and
y scales
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=0,
c=0, d=-1, tx=50, ty=300)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=0,
c=0, d=-1, tx=50, ty=300)'");
check_equals(mo, "staticmc._x", "50");
check_equals(mo, "staticmc._y", "300");
@@ -459,7 +459,7 @@
SWFMovie_nextFrame(mo);
SWFDisplayItem_setMatrix(it, -1, -45, 0, 1, 50, 300); // negative x
scale and some negative skew
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=-45,
c=0, d=1, tx=50, ty=300)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=-45,
c=0, d=1, tx=50, ty=300)'");
check_equals(mo, "staticmc._x", "50");
check_equals(mo, "staticmc._y", "300");
@@ -486,7 +486,7 @@
SWFMovie_nextFrame(mo);
SWFDisplayItem_setMatrix(it, -1, 45, 0, 1, 50, 300); // negative x
scale and some positive skew
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=45,
c=0, d=1, tx=50, ty=300)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=45,
c=0, d=1, tx=50, ty=300)'");
check_equals(mo, "staticmc._x", "50");
check_equals(mo, "staticmc._y", "300");
@@ -513,7 +513,7 @@
SWFMovie_nextFrame(mo);
SWFDisplayItem_setMatrix(it, 1, -45, 0, -1, 50, 300); // negative x
scale and some negative skew
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=-45,
c=0, d=-1, tx=50, ty=300)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=-45,
c=0, d=-1, tx=50, ty=300)'");
check_equals(mo, "staticmc._x", "50");
check_equals(mo, "staticmc._y", "300");
@@ -540,7 +540,7 @@
SWFMovie_nextFrame(mo);
SWFDisplayItem_setMatrix(it, 1, 45, 0, -1, 50, 300); // negative x
scale and some positive skew
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=45,
c=0, d=-1, tx=50, ty=300)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=45,
c=0, d=-1, tx=50, ty=300)'");
check_equals(mo, "staticmc._x", "50");
check_equals(mo, "staticmc._y", "300");
@@ -567,7 +567,7 @@
SWFMovie_nextFrame(mo);
SWFDisplayItem_setMatrix(it, -1, 45, 0, -1, 50, 300); // negative x
scale and some positive skew
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=45,
c=0, d=-1, tx=50, ty=300)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=45,
c=0, d=-1, tx=50, ty=300)'");
check_equals(mo, "staticmc._x", "50");
check_equals(mo, "staticmc._y", "300");
@@ -594,7 +594,7 @@
SWFMovie_nextFrame(mo);
SWFDisplayItem_setMatrix(it, -1, -45, 0, -1, 50, 300); // negative x
scale and some positive skew
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=-45,
c=0, d=-1, tx=50, ty=300)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=-45,
c=0, d=-1, tx=50, ty=300)'");
check_equals(mo, "staticmc._x", "50");
check_equals(mo, "staticmc._y", "300");
@@ -622,7 +622,7 @@
SWFMovie_nextFrame(mo);
SWFDisplayItem_setMatrix(it, -1, 0, -45, 1, 50, 300); // negative x
scale and some negative skew
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=0,
c=-45, d=1, tx=50, ty=300)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=0,
c=-45, d=1, tx=50, ty=300)'");
check_equals(mo, "staticmc._x", "50");
check_equals(mo, "staticmc._y", "300");
@@ -650,7 +650,7 @@
SWFMovie_nextFrame(mo);
SWFDisplayItem_setMatrix(it, -1, 0, 45, 1, 50, 300); // negative x
scale and some positive skew
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=0,
c=45, d=1, tx=50, ty=300)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=0,
c=45, d=1, tx=50, ty=300)'");
check_equals(mo, "staticmc._x", "50");
check_equals(mo, "staticmc._y", "300");
@@ -678,7 +678,7 @@
SWFMovie_nextFrame(mo);
SWFDisplayItem_setMatrix(it, 1, 0, -45, -1, 50, 300); // negative x
scale and some negative skew
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=0,
c=-45, d=-1, tx=50, ty=300)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=0,
c=-45, d=-1, tx=50, ty=300)'");
check_equals(mo, "staticmc._x", "50");
check_equals(mo, "staticmc._y", "300");
@@ -706,7 +706,7 @@
SWFMovie_nextFrame(mo);
SWFDisplayItem_setMatrix(it, 1, 0, 45, -1, 50, 300); // negative x
scale and some positive skew
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=0,
c=45, d=-1, tx=50, ty=300)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=0,
c=45, d=-1, tx=50, ty=300)'");
check_equals(mo, "staticmc._x", "50");
check_equals(mo, "staticmc._y", "300");
@@ -734,7 +734,7 @@
SWFMovie_nextFrame(mo);
SWFDisplayItem_setMatrix(it, -1, 0, 45, -1, 50, 300); // negative x
scale and some positive skew
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=0,
c=45, d=-1, tx=50, ty=300)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=0,
c=45, d=-1, tx=50, ty=300)'");
check_equals(mo, "staticmc._x", "50");
check_equals(mo, "staticmc._y", "300");
@@ -762,7 +762,7 @@
SWFMovie_nextFrame(mo);
SWFDisplayItem_setMatrix(it, -1, 0, -45, -1, 50, 300); // negative x
scale and some positive skew
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=0,
c=-45, d=-1, tx=50, ty=300)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=0,
c=-45, d=-1, tx=50, ty=300)'");
check_equals(mo, "staticmc._x", "50");
check_equals(mo, "staticmc._y", "300");
@@ -789,7 +789,7 @@
SWFMovie_nextFrame(mo);
SWFDisplayItem_setMatrix(it, -2, 0, -45, -0.5, 50, 300); // negative x
scale and some positive skew
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-2, b=0,
c=-45, d=-0.5, tx=50, ty=300)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-2, b=0,
c=-45, d=-0.5, tx=50, ty=300)'");
check_equals(mo, "staticmc._x", "50");
check_equals(mo, "staticmc._y", "300");
@@ -816,7 +816,7 @@
SWFMovie_nextFrame(mo);
SWFDisplayItem_setMatrix(it, 1, 1, 1, 1, 2, 3); // not-invertible
matrix (I'd think)
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=1,
c=1, d=1, tx=2, ty=3)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=1, c=1,
d=1, tx=2, ty=3)'");
check_equals(mo, "staticmc._x", "2");
check_equals(mo, "staticmc._y", "3");
@@ -851,7 +851,7 @@
SWFDisplayItem_setMatrix(it, 0, -1, 1.167969, 0, -.75, 135);
// Ming omits the scales rather then set them to zero (ops)
// NOTE: might change if this is a Ming bug
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=-1,
c=1.16796875, d=1, tx=-0.75, ty=135)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=-1,
c=1.16796875, d=1, tx=-0.75, ty=135)'");
check_equals(mo, "staticmc._x", "-0.75");
check_equals(mo, "staticmc._y", "135");
@@ -873,7 +873,7 @@
SWFDisplayItem_setMatrix(it, 0, 0.972519, -1, 0, 13.950, 214.80);
// Ming omits the scales rather then set them to zero (ops)
// NOTE: might change if this is a Ming bug
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1,
b=0.972518920898438, c=-1, d=1, tx=13.95, ty=214.8)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1,
b=0.972518920898438, c=-1, d=1, tx=13.95, ty=214.8)'");
check_equals(mo, "Math.round(staticmc._x*100)/100", "13.95");
check_equals(mo, "staticmc._y", "214.80");
@@ -892,13 +892,13 @@
it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
SWFDisplayItem_setMatrix(it, 1, 0, 2, 1, 200, 200);
check_equals(mo, "printBounds(staticmc.getBounds(_root))",
"'109.85,169.95 290.15,230.05'");
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=0,
c=2, d=1, tx=200, ty=200)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=0, c=2,
d=1, tx=200, ty=200)'");
check_equals(mo, "staticmc._rotation", "0");
check_equals(mo, "Math.round(staticmc._yscale)", "224");
check_equals(mo, "staticmc._xscale", "100");
add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap
_xscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-1,
b=0, c=2, d=1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-1,
b=0, c=2, d=1, tx=200, ty=200)'");
check_equals(mo, "staticmc._xscale", "-100");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,170
290,230'");
@@ -931,13 +931,13 @@
it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
SWFDisplayItem_setMatrix(it, 1, 0, -2, 1, 200, 200);
check_equals(mo, "printBounds(staticmc.getBounds(_root))",
"'109.85,169.95 290.15,230.05'");
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=0,
c=-2, d=1, tx=200, ty=200)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=0,
c=-2, d=1, tx=200, ty=200)'");
check_equals(mo, "staticmc._rotation", "0");
check_equals(mo, "Math.round(staticmc._yscale)", "224");
check_equals(mo, "staticmc._xscale", "100");
add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap
_xscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-1,
b=0, c=-2, d=1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-1,
b=0, c=-2, d=1, tx=200, ty=200)'");
check_equals(mo, "staticmc._xscale", "-100");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,170
290,230'");
@@ -971,13 +971,13 @@
it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
SWFDisplayItem_setMatrix(it, 1, 0, -2, -1, 200, 200);
check_equals(mo, "printBounds(staticmc.getBounds(_root))",
"'109.85,169.95 290.15,230.05'");
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=0,
c=-2, d=-1, tx=200, ty=200)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=0,
c=-2, d=-1, tx=200, ty=200)'");
check_equals(mo, "staticmc._rotation", "0");
check_equals(mo, "Math.round(staticmc._yscale)", "224");
check_equals(mo, "staticmc._xscale", "100");
add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap
_xscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-1,
b=0, c=-2, d=-1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-1,
b=0, c=-2, d=-1, tx=200, ty=200)'");
check_equals(mo, "staticmc._xscale", "-100");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,170
290,230'");
@@ -1011,13 +1011,13 @@
it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
SWFDisplayItem_setMatrix(it, -1, 0, 2, 1, 200, 200);
check_equals(mo, "printBounds(staticmc.getBounds(_root))",
"'109.85,169.95 290.15,230.05'");
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=0,
c=2, d=1, tx=200, ty=200)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=0,
c=2, d=1, tx=200, ty=200)'");
check_equals(mo, "staticmc._rotation", "180");
check_equals(mo, "Math.round(staticmc._yscale)", "224");
check_equals(mo, "staticmc._xscale", "100");
add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap
_xscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=0, c=2, d=1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1, b=0,
c=2, d=1, tx=200, ty=200)'");
check_equals(mo, "staticmc._xscale", "-100");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,170
290,230'");
@@ -1050,18 +1050,18 @@
it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
SWFDisplayItem_setMatrix(it, -1, 0, -2, 1, 200, 200);
check_equals(mo, "printBounds(staticmc.getBounds(_root))",
"'109.85,169.95 290.15,230.05'");
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=0,
c=-2, d=1, tx=200, ty=200)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=0,
c=-2, d=1, tx=200, ty=200)'");
check_equals(mo, "staticmc._rotation", "180");
check_equals(mo, "Math.round(staticmc._yscale)", "224");
check_equals(mo, "staticmc._xscale", "100");
add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap
_xscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=0, c=-2, d=1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1, b=0,
c=-2, d=1, tx=200, ty=200)'");
check_equals(mo, "staticmc._xscale", "-100");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,170
290,230'");
check_equals(mo, "staticmc._rotation", "180");
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=0, c=-2, d=1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1, b=0,
c=-2, d=1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._yscale)", "224");
add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap
_yscale sign using ActionScript
check_equals(mo, "Math.round(staticmc._yscale)", "-224");
@@ -1089,13 +1089,13 @@
it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
SWFDisplayItem_setMatrix(it, -1, 0, -2, -1, 200, 200);
check_equals(mo, "printBounds(staticmc.getBounds(_root))",
"'109.85,169.95 290.15,230.05'");
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=0,
c=-2, d=-1, tx=200, ty=200)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=0,
c=-2, d=-1, tx=200, ty=200)'");
check_equals(mo, "staticmc._rotation", "180");
check_equals(mo, "Math.round(staticmc._yscale)", "224");
check_equals(mo, "staticmc._xscale", "100");
add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap
_xscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=0, c=-2, d=-1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1, b=0,
c=-2, d=-1, tx=200, ty=200)'");
check_equals(mo, "staticmc._xscale", "-100");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,170
290,230'");
@@ -1129,13 +1129,13 @@
it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
SWFDisplayItem_setMatrix(it, 1, 2, 0, 1, 200, 200);
check_equals(mo, "printBounds(staticmc.getBounds(_root))",
"'169.95,109.85 230.05,290.15'");
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=2,
c=0, d=1, tx=200, ty=200)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=2, c=0,
d=1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._rotation)", "63");
check_equals(mo, "staticmc._yscale", "100");
check_equals(mo, "Math.round(staticmc._xscale)", "224");
add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap
_xscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-1,
b=-2, c=0, d=1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-1,
b=-2, c=0, d=1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'170,110
230,290'");
@@ -1168,13 +1168,13 @@
it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
SWFDisplayItem_setMatrix(it, 1, -2, 0, 1, 200, 200);
check_equals(mo, "printBounds(staticmc.getBounds(_root))",
"'169.95,109.85 230.05,290.15'");
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=-2,
c=0, d=1, tx=200, ty=200)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=-2,
c=0, d=1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._rotation)", "-63");
check_equals(mo, "staticmc._yscale", "100");
check_equals(mo, "Math.round(staticmc._xscale)", "224");
add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap
_xscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-1,
b=2, c=0, d=1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-1,
b=2, c=0, d=1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'170,110
230,290'");
@@ -1207,13 +1207,13 @@
it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
SWFDisplayItem_setMatrix(it, 1, -2, 0, -1, 200, 200);
check_equals(mo, "printBounds(staticmc.getBounds(_root))",
"'169.95,109.85 230.05,290.15'");
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=-2,
c=0, d=-1, tx=200, ty=200)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=-2,
c=0, d=-1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._rotation)", "-63");
check_equals(mo, "staticmc._yscale", "100");
check_equals(mo, "Math.round(staticmc._xscale)", "224");
add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap
_xscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-1,
b=2, c=0, d=-1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-1,
b=2, c=0, d=-1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'170,110
230,290'");
@@ -1247,13 +1247,13 @@
it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
SWFDisplayItem_setMatrix(it, -1, 2, 0, 1, 200, 200);
check_equals(mo, "printBounds(staticmc.getBounds(_root))",
"'169.95,109.85 230.05,290.15'");
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=2,
c=0, d=1, tx=200, ty=200)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=2,
c=0, d=1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._rotation)", "117");
check_equals(mo, "staticmc._yscale", "100");
check_equals(mo, "Math.round(staticmc._xscale)", "224");
add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap
_xscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=-2, c=0, d=1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=-2, c=0, d=1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'170,110
230,290'");
@@ -1286,13 +1286,13 @@
it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
SWFDisplayItem_setMatrix(it, -1, -2, 0, 1, 200, 200);
check_equals(mo, "printBounds(staticmc.getBounds(_root))",
"'169.95,109.85 230.05,290.15'");
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=-2,
c=0, d=1, tx=200, ty=200)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=-2,
c=0, d=1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._rotation)", "-117");
check_equals(mo, "staticmc._yscale", "100");
check_equals(mo, "Math.round(staticmc._xscale)", "224");
add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap
_xscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=2, c=0, d=1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1, b=2,
c=0, d=1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'170,110
230,290'");
@@ -1326,13 +1326,13 @@
it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
SWFDisplayItem_setMatrix(it, -1, -2, 0, -1, 200, 200);
check_equals(mo, "printBounds(staticmc.getBounds(_root))",
"'169.95,109.85 230.05,290.15'");
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=-2,
c=0, d=-1, tx=200, ty=200)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=-2,
c=0, d=-1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._rotation)", "-117");
check_equals(mo, "staticmc._yscale", "100");
check_equals(mo, "Math.round(staticmc._xscale)", "224");
add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap
_xscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=2, c=0, d=-1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1, b=2,
c=0, d=-1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'170,110
230,290'");
@@ -1366,34 +1366,34 @@
it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
SWFDisplayItem_setMatrix(it, -1, -2, 2, -1, 200, 200);
check_equals(mo, "printBounds(staticmc.getBounds(_root))",
"'109.85,109.85 290.15,290.15'");
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=-2,
c=2, d=-1, tx=200, ty=200)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=-2,
c=2, d=-1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._rotation)", "-117");
check_equals(mo, "Math.round(staticmc._yscale)", "224");
check_equals(mo, "Math.round(staticmc._xscale)", "224");
add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap
_xscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=2, c=2, d=-1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1, b=2,
c=2, d=-1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110
290,290'");
check_equals(mo, "Math.round(staticmc._rotation)", "-117");
check_equals(mo, "Math.round(staticmc._yscale)", "224");
add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap
_yscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=2, c=-2, d=1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1, b=2,
c=-2, d=1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._yscale)", "-224");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "Math.round(staticmc._rotation)", "-117");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110
290,290'");
add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using
ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-2.23,
b=-0.08, c=0.08, d=-2.23, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-2.23,
b=-0.08, c=0.08, d=-2.23, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._yscale)", "-224");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "2");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'131,131
270,270'");
add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using
ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-2.23,
b=0.08, c=-0.08, d=-2.23, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-2.23,
b=0.08, c=-0.08, d=-2.23, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._yscale)", "-224");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "-2");
@@ -1405,7 +1405,7 @@
it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
SWFDisplayItem_setMatrix(it, -1, -2, -2, -1, 200, 200);
check_equals(mo, "printBounds(staticmc.getBounds(_root))",
"'109.85,109.85 290.15,290.15'");
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=-2,
c=-2, d=-1, tx=200, ty=200)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=-2,
c=-2, d=-1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._rotation)", "-117");
check_equals(mo, "Math.round(staticmc._yscale)", "224");
@@ -1413,7 +1413,7 @@
add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap
_xscale sign using ActionScript
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110
290,290'");
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=2, c=-2, d=-1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1, b=2,
c=-2, d=-1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._rotation)", "-117");
check_equals(mo, "Math.round(staticmc._yscale)", "224");
@@ -1444,34 +1444,34 @@
it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
SWFDisplayItem_setMatrix(it, -1, 2, -2, -1, 200, 200);
check_equals(mo, "printBounds(staticmc.getBounds(_root))",
"'109.85,109.85 290.15,290.15'");
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=2,
c=-2, d=-1, tx=200, ty=200)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=2,
c=-2, d=-1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._rotation)", "117");
check_equals(mo, "Math.round(staticmc._yscale)", "224");
check_equals(mo, "Math.round(staticmc._xscale)", "224");
add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap
_xscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=-2, c=-2, d=-1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=-2, c=-2, d=-1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110
290,290'");
check_equals(mo, "Math.round(staticmc._rotation)", "117");
check_equals(mo, "Math.round(staticmc._yscale)", "224");
add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap
_yscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=-2, c=2, d=1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=-2, c=2, d=1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._yscale)", "-224");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "Math.round(staticmc._rotation)", "117");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110
290,290'");
add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using
ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-2.23,
b=-0.08, c=0.08, d=-2.23, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-2.23,
b=-0.08, c=0.08, d=-2.23, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._yscale)", "-224");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "2");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'131,131
270,270'");
add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using
ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-2.23,
b=0.08, c=-0.08, d=-2.23, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-2.23,
b=0.08, c=-0.08, d=-2.23, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._yscale)", "-224");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "-2");
@@ -1483,13 +1483,13 @@
it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
SWFDisplayItem_setMatrix(it, -1, 2, -2, 1, 200, 200);
check_equals(mo, "printBounds(staticmc.getBounds(_root))",
"'109.85,109.85 290.15,290.15'");
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=2,
c=-2, d=1, tx=200, ty=200)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=2,
c=-2, d=1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._rotation)", "117");
check_equals(mo, "Math.round(staticmc._yscale)", "224");
check_equals(mo, "Math.round(staticmc._xscale)", "224");
add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap
_xscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=-2, c=-2, d=1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=-2, c=-2, d=1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110
290,290'");
@@ -1523,13 +1523,13 @@
it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
SWFDisplayItem_setMatrix(it, 1, 2, -2, -1, 200, 200);
check_equals(mo, "printBounds(staticmc.getBounds(_root))",
"'109.85,109.85 290.15,290.15'");
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=2,
c=-2, d=-1, tx=200, ty=200)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=2,
c=-2, d=-1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._rotation)", "63");
check_equals(mo, "Math.round(staticmc._yscale)", "224");
check_equals(mo, "Math.round(staticmc._xscale)", "224");
add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap
_xscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-1,
b=-2, c=-2, d=-1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-1,
b=-2, c=-2, d=-1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110
290,290'");
@@ -1562,34 +1562,34 @@
it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
SWFDisplayItem_setMatrix(it, -1, -2, 2, -1, 200, 200);
check_equals(mo, "printBounds(staticmc.getBounds(_root))",
"'109.85,109.85 290.15,290.15'");
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=-2,
c=2, d=-1, tx=200, ty=200)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=-2,
c=2, d=-1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._rotation)", "-117");
check_equals(mo, "Math.round(staticmc._yscale)", "224");
check_equals(mo, "Math.round(staticmc._xscale)", "224");
add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap
_xscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=2, c=2, d=-1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1, b=2,
c=2, d=-1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110
290,290'");
check_equals(mo, "Math.round(staticmc._rotation)", "-117");
check_equals(mo, "Math.round(staticmc._yscale)", "224");
add_actions(mo, "staticmc._yscale = 0 - staticmc._yscale;"); // swap
_yscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=2, c=-2, d=1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1, b=2,
c=-2, d=1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._yscale)", "-224");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "Math.round(staticmc._rotation)", "-117");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110
290,290'");
add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using
ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-2.23,
b=-0.08, c=0.08, d=-2.23, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-2.23,
b=-0.08, c=0.08, d=-2.23, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._yscale)", "-224");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "2");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'131,131
270,270'");
add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using
ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-2.23,
b=0.08, c=-0.08, d=-2.23, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-2.23,
b=0.08, c=-0.08, d=-2.23, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._yscale)", "-224");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "-2");
@@ -1602,13 +1602,13 @@
it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
SWFDisplayItem_setMatrix(it, -1, -2, 2, 1, 200, 200);
check_equals(mo, "printBounds(staticmc.getBounds(_root))",
"'109.85,109.85 290.15,290.15'");
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=-2,
c=2, d=1, tx=200, ty=200)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=-1, b=-2,
c=2, d=1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._rotation)", "-117");
check_equals(mo, "Math.round(staticmc._yscale)", "224");
check_equals(mo, "Math.round(staticmc._xscale)", "224");
add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap
_xscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=2, c=2, d=1, tx=200, ty=200)'"); // swaps a,b signs
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1, b=2,
c=2, d=1, tx=200, ty=200)'"); // swaps a,b signs
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110
290,290'");
@@ -1641,13 +1641,13 @@
it = add_static_mc(mo, "staticmc", 4, 0, 0, 60, 60);
SWFDisplayItem_setMatrix(it, 1, -2, 2, -1, 200, 200);
check_equals(mo, "printBounds(staticmc.getBounds(_root))",
"'109.85,109.85 290.15,290.15'");
- xcheck_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=-2,
c=2, d=-1, tx=200, ty=200)'");
+ check_equals(mo, "staticmc.transform.matrix.toString()", "'(a=1, b=-2,
c=2, d=-1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._rotation)", "-63");
check_equals(mo, "Math.round(staticmc._yscale)", "224");
check_equals(mo, "Math.round(staticmc._xscale)", "224");
add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap
_xscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-1,
b=2, c=2, d=-1, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-1,
b=2, c=2, d=-1, tx=200, ty=200)'");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'110,110
290,290'");
@@ -1692,7 +1692,7 @@
SWFDisplayItem_setMatrix(it, 0, 0.972519, -1, 0, 13.950, 214.80);
// Ming omits the scales rather then set them to zero (ops)
// NOTE: might change if this is a Ming bug
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=0.97, c=-1, d=1, tx=13.95, ty=214.8)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=1,
b=0.97, c=-1, d=1, tx=13.95, ty=214.8)'");
check_equals(mo, "Math.round(staticmc._x*100)/100", "13.95");
check_equals(mo, "staticmc._y", "214.80");
check_equals(mo, "Math.round(staticmc._xscale)", "139");
@@ -1700,7 +1700,7 @@
check_equals(mo, "Math.round(staticmc._rotation)", "44");
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'-46,156
74,274'");
add_actions(mo, "staticmc._xscale = 0 - staticmc._xscale;"); // swap
_xscale sign using ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-1,
b=-0.97, c=-1, d=1, tx=13.95, ty=214.8)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-1,
b=-0.97, c=-1, d=1, tx=13.95, ty=214.8)'");
check_equals(mo, "Math.round(staticmc._x*100)/100", "13.95");
check_equals(mo, "staticmc._y", "214.80");
check_equals(mo, "Math.round(staticmc._xscale)", "-139");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r9801: Expect more successes about MovieClip.transform,
Sandro Santilli <=