[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/shape_t...
From: |
Zou Lunkai |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/shape_t... |
Date: |
Mon, 18 Jun 2007 08:56:37 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Zou Lunkai <zoulunkai> 07/06/18 08:56:37
Modified files:
. : ChangeLog
testsuite/misc-ming.all: shape_test.c
Log message:
more tests, make the deduction easier
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3575&r2=1.3576
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/shape_test.c?cvsroot=gnash&r1=1.2&r2=1.3
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3575
retrieving revision 1.3576
diff -u -b -r1.3575 -r1.3576
--- ChangeLog 18 Jun 2007 08:34:43 -0000 1.3575
+++ ChangeLog 18 Jun 2007 08:56:36 -0000 1.3576
@@ -1,5 +1,10 @@
2007-06-18 Zou Lunkai <address@hidden>
+ * testsuite/misc-ming.all/shape_test.c: more tests, make the deduction
easier.
+ surprisingly, all succeeded.
+
+2007-06-18 Zou Lunkai <address@hidden>
+
* testsuite/misc-ming.all/key_event_test3.c,
testsuite/misc-ming.all/key_event_test3runner.cpp: the testrunner was
bogus, fix the testrunner itself.
Index: testsuite/misc-ming.all/shape_test.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/shape_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- testsuite/misc-ming.all/shape_test.c 24 May 2007 13:01:47 -0000
1.2
+++ testsuite/misc-ming.all/shape_test.c 18 Jun 2007 08:56:37 -0000
1.3
@@ -16,6 +16,13 @@
*
*/
+/*
+ * Try to add variables to shapes, observed behavior is that variables are
added
+ * to _root accidently.
+ *
+ * TODO: verify this!
+ */
+
#include <stdlib.h>
#include <stdio.h>
#include <ming.h>
@@ -69,8 +76,10 @@
check(mo, "sh2 != undefined");
// Do these checks mean that shapes are movieclips?
+ // seems not.
check_equals(mo, "typeof(sh1)", "'movieclip'");
check_equals(mo, "typeof(sh2)", "'movieclip'");
+ check_equals(mo, "typeof(_root)", "'movieclip'");
add_actions(mo,
"sh1.var1 = 10;"
@@ -78,8 +87,12 @@
);
// Do these checks mean that we can add variables to shapes?
+ // seems not, variable are added to the _root, interesting.
check_equals(mo, "sh1.var1", "10");
check_equals(mo, "sh2.var2", "20");
+ check_equals(mo, "_root.var1", "10");
+ check_equals(mo, "_root.var2", "20");
+
check_equals(mo, "sh1._x", "0");
check_equals(mo, "sh2._x", "0");
@@ -90,6 +103,7 @@
check_equals(mo, "sh1._x", "400");
check_equals(mo, "sh2._x", "400");
+ check_equals(mo, "_root._x", "400");
// Do these checks mean that shapes are *not* movieclips?
check_equals(mo, "typeof(sh1.getDepth())", "'undefined'");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/shape_t...,
Zou Lunkai <=