[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/misc-mtasc.all/implem...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/misc-mtasc.all/implem... |
Date: |
Thu, 24 Apr 2008 16:53:05 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 08/04/24 16:53:05
Modified files:
. : ChangeLog
testsuite/misc-mtasc.all: implementsOpTest.as
Log message:
More failing tests.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6385&r2=1.6386
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-mtasc.all/implementsOpTest.as?cvsroot=gnash&r1=1.3&r2=1.4
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6385
retrieving revision 1.6386
diff -u -b -r1.6385 -r1.6386
--- ChangeLog 24 Apr 2008 16:39:21 -0000 1.6385
+++ ChangeLog 24 Apr 2008 16:53:04 -0000 1.6386
@@ -1,5 +1,10 @@
2008-04-24 Sandro Santilli <address@hidden>
+ * testsuite/misc-mtasc.all/implementsOpTest.as:
+ More failing tests.
+
+2008-04-24 Sandro Santilli <address@hidden>
+
* testsuite/actionscript.all/Inheritance.as:
Add a failing test for 'instanceof'.
Index: testsuite/misc-mtasc.all/implementsOpTest.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-mtasc.all/implementsOpTest.as,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- testsuite/misc-mtasc.all/implementsOpTest.as 24 Apr 2008 16:10:49
-0000 1.3
+++ testsuite/misc-mtasc.all/implementsOpTest.as 24 Apr 2008 16:53:05
-0000 1.4
@@ -36,6 +36,14 @@
function test_all():Void {
+ xcheck(!ImplementationA instanceof SimpleInterface);
+ check(!ImplementationA.prototype instanceof SimpleInterface);
+ xcheck(!ImplementationB instanceof SimpleInterface);
+ check(!ImplementationA.prototype instanceof SimpleInterface);
+ check(!BExtendingImplementation instanceof ImplementationB);
+ check(BExtendingImplementation.prototype instanceof
ImplementationB);
+ xcheck(BExtendingImplementation.prototype instanceof
SimpleInterface);
+
objectA = new ImplementationA();
objectB = new ImplementationB();
objectC = new BExtendingImplementation();
@@ -51,7 +59,7 @@
xcheck(objectC instanceof SimpleInterface);
- // TODO: review the tests above
+ // TODO: review the tests below
check_equals(100, objectA.doStuff(1, "foo"));
check_equals(100, objectA.doStuff(1, "foo"));
@@ -65,6 +73,14 @@
check_equals(objectB.doStuff(1, "foo"), objectC.doStuff(1,
"foo"));
check_equals("overriding implementation",
objectC.doMoreStuff("foo", 1));
+
+ // TODO: review the tests above
+
+ // drop the __proto_ member
+ objectA.__proto__ = null;
+ check(! objectA instanceof ImplementationA); // drops relation
with its constructor
+ check(! objectA instanceof SimpleInterface); // drops relation
with interfaces as well
+
}
static function main(mc)
@@ -72,7 +88,7 @@
var myTest = new implementsOpTest;
myTest.test_all();
- check_totals(14);
+ check_totals(23);
Dejagnu.done();
}
}