gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r9796: Another test for Transform.


From: Benjamin Wolsey
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r9796: Another test for Transform.
Date: Sat, 20 Sep 2008 10:32:09 +0200
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9796
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Sat 2008-09-20 10:32:09 +0200
message:
  Another test for Transform.
modified:
  testsuite/actionscript.all/Transform.as
    ------------------------------------------------------------
    revno: 9795.1.1
    committer: Benjamin Wolsey <address@hidden>
    branch nick: work
    timestamp: Sat 2008-09-20 10:30:15 +0200
    message:
      Constructor with MovieClip argument.
    modified:
      testsuite/actionscript.all/Transform.as
=== modified file 'testsuite/actionscript.all/Transform.as'
--- a/testsuite/actionscript.all/Transform.as   2008-09-19 16:16:50 +0000
+++ b/testsuite/actionscript.all/Transform.as   2008-09-20 08:32:09 +0000
@@ -40,14 +40,18 @@
 check(Transform.prototype.hasOwnProperty("concatenatedColorTransform"));
 check(Transform.prototype.hasOwnProperty("pixelBounds"));
 
-// Cannot be instantiated.
+// Cannot be instantiated without MovieClip argument.
 t = new Transform;
 xcheck_equals(t, undefined);
 
 t = Transform();
 xcheck_equals(t, undefined);
 
-// Only (?) obtainable from MovieClip.transform?
+// Hooray!
+t = new Transform(_root);
+check_equals(typeOf(t), "object");
+check(t instanceOf Transform);
+
 t = _root.transform;
 xcheck_equals(typeOf(t), "object");
 xcheck(t instanceOf Transform);
@@ -86,5 +90,5 @@
 xcheck(t.pixelBounds instanceOf Rectangle);
 
 
-totals(26);
+totals(28);
 #endif


reply via email to

[Prev in Thread] Current Thread [Next in Thread]