gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r11134: Some more tests.


From: Benjamin Wolsey
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r11134: Some more tests.
Date: Tue, 16 Jun 2009 17:37:06 +0200
User-agent: Bazaar (1.13.1)

------------------------------------------------------------
revno: 11134
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Tue 2009-06-16 17:37:06 +0200
message:
  Some more tests.
modified:
  testsuite/as3/class.as
    ------------------------------------------------------------
    revno: 11132.1.1
    committer: Benjamin Wolsey <address@hidden>
    branch nick: test
    timestamp: Tue 2009-06-16 17:22:28 +0200
    message:
      Test prototype.
    modified:
      testsuite/as3/class.as
=== modified file 'testsuite/as3/class.as'
--- a/testsuite/as3/class.as    2009-06-16 11:59:37 +0000
+++ b/testsuite/as3/class.as    2009-06-16 15:22:28 +0000
@@ -45,8 +45,12 @@
         public function Hello() {
 
             xcheck_equals(this, "[object Hello]");
+            check_equals(typeof(this), "object");
+            xcheck(this instanceof MovieClip);
+
             xcheck_equals(this.constructor, "[class Hello]");
             xcheck_equals(this.constructor.constructor, "[class Class]");
+            xcheck_equals(this.parent, "[object Stage]");
 
             xcheck_equals(S, "[class S]");
             xcheck_equals(S.constructor, "[class Class]");
@@ -61,7 +65,9 @@
             trace(Base);
 
             xcheck_equals(Base, "[class Base]");
+            xcheck_equals(Base.prototype, "[object Object]");
             xcheck_equals(Derived, "[class Derived]");
+            xcheck_equals(Base.prototype, "[object Object]");
 
             xcheck_equals(Derived.constructor, "[class Class]");
             xcheck_equals(Base.constructor, "[class Class]");
@@ -87,7 +93,7 @@
             xcheck(d1 instanceof Derived);
             xcheck_equals(S.s, "Base Derived ");
 
-            totals(25);
+            totals(30);
 
             done();
         }


reply via email to

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