[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/ButtonE...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/ButtonE... |
Date: |
Fri, 18 Apr 2008 16:04:34 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 08/04/18 16:04:34
Modified files:
. : ChangeLog
testsuite/misc-ming.all: ButtonEventsTest.c
Log message:
enable a test snippet that was failing to execute. Add constency
checking for the self-contained tests. Add test showing that unloaded
(depth-shifted) characters are still referenceable.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6324&r2=1.6325
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/ButtonEventsTest.c?cvsroot=gnash&r1=1.14&r2=1.15
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6324
retrieving revision 1.6325
diff -u -b -r1.6324 -r1.6325
--- ChangeLog 18 Apr 2008 14:33:36 -0000 1.6324
+++ ChangeLog 18 Apr 2008 16:04:33 -0000 1.6325
@@ -1,3 +1,10 @@
+2008-04-18 Sandro Santilli <address@hidden>
+
+ * testsuite/misc-ming.all/ButtonEventsTest.c: enable a test snippet
+ that was failing to execute. Add constency checking for the
+ self-contained tests. Add test showing that unloaded (depth-shifted)
+ characters are still referenceable.
+
2008-04-18 Russ Nelson <address@hidden>
* consolidate all WARNING messages for display at the end of
Index: testsuite/misc-ming.all/ButtonEventsTest.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/ButtonEventsTest.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- testsuite/misc-ming.all/ButtonEventsTest.c 18 Apr 2008 09:47:55 -0000
1.14
+++ testsuite/misc-ming.all/ButtonEventsTest.c 18 Apr 2008 16:04:34 -0000
1.15
@@ -218,22 +218,25 @@
SWFButton_addAction(bu, compileSWFActionCode(
"_root.msg='MouseOver';"
- "if ( _root.testno == 2 ) {" /* ONLY CHECK buttonChild on first
frame */
+ "if ( _root.testno == 1 ) {" /* ONLY CHECK buttonChild on first
frame */
/* "_root.note('buttonChild is '+dumpObj(_root.buttonChild));"
*/
/* added OVER state char */
- " _root.check_equals(_root.buttonChild.realLength(), 3);"
+ " _root.xcheck_equals(_root.buttonChild.realLength(), 3);"
/* OVER state char loaded */
" _root.check_equals(typeof(_root.buttonChild[13]),
'object');"
- " _root.check_equals(_root.buttonChild[13].nam,
'_level0.square1.button.instance7');"
+ " _root.xcheck_equals(_root.buttonChild[13].nam,
'_level0.square1.button.instance7');"
" _root.check_equals(_root.buttonChild[13].exe, 1);" /*
OVER state char */
" _root.check_equals(_root.buttonChild[13].uld, 0);" /*
OVER state char */
/* UP state char unloaded */
" _root.check_equals(_root.buttonChild[12].exe, 1);"
- " _root.check_equals(_root.buttonChild[12].uld, 1);"
+ " _root.xcheck_equals(_root.buttonChild[12].uld, 1);"
+ "
_root.check_equals(typeof(_level0.square1.button.instance6), 'movieclip');"
+ "
_root.check_equals(_level0.square1.button.instance6._name, 'instance6');"
+ "
_root.xcheck_equals(_level0.square1.button.instance6.getDepth(), -16398);"
/* ALL state char still there, not reloaded, not unloaded */
" _root.check_equals(_root.buttonChild[10].exe, 1);"
@@ -556,6 +559,8 @@
xcheck_equals(mo, "(_root.buttonChild[12].nam)",
"'_level0.square1.button.instance6'");
check_equals(mo, "(_root.buttonChild[12].exe)", "1");
check_equals(mo, "(_root.buttonChild[12].uld)", "0");
+ check_equals(mo, "_level0.square1.button.instance6._name",
"'instance6'");
+ xcheck_equals(mo, "_level0.square1.button.instance6.getDepth()",
"-16371");
/* sprite for HIT state not constructed */
xcheck_equals(mo, "typeof(_root.buttonChild[11])", "'undefined'");
@@ -690,6 +695,7 @@
/*****************************************************
*
* On fifth frame, disable the button
+ * and check total tests so far
*
*****************************************************/
@@ -698,6 +704,7 @@
add_actions(mo,
"square1.button.enabled = false;"
"stop();"
+ "_root.totals(155);"
"_root.note('-- Button disabled, try playing with it,
nothing should happen --');"
);
SWFMovie_nextFrame(mo); /* showFrame */