[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/testsuite/misc-ming.all place_and_remove_...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash/testsuite/misc-ming.all place_and_remove_... |
Date: |
Fri, 12 Jan 2007 11:43:41 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/01/12 11:43:41
Modified files:
testsuite/misc-ming.all: place_and_remove_object_insane_test.c
Log message:
Use typeof() to check for variables
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/place_and_remove_object_insane_test.c?cvsroot=gnash&r1=1.1&r2=1.2
Patches:
Index: place_and_remove_object_insane_test.c
===================================================================
RCS file:
/sources/gnash/gnash/testsuite/misc-ming.all/place_and_remove_object_insane_test.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- place_and_remove_object_insane_test.c 12 Jan 2007 11:34:33 -0000
1.1
+++ place_and_remove_object_insane_test.c 12 Jan 2007 11:43:41 -0000
1.2
@@ -100,8 +100,8 @@
SWFDisplayItem_setDepth(it_black, 40);
SWFDisplayItem_setName(it_black, "mc_black");
- check(mo, "_root.mc_red != undefined");
- check(mo, "_root.mc_blue != undefined");
+ check_equals(mo, "typeof(_root.mc_red)", "'movieclip'");
+ check_equals(mo, "typeof(_root.mc_blue)", "'movieclip'");
check_equals(mo, "_root.mc_green", "undefined");
add_actions(mo, " trace(\"hello\"); trace(counter);
trace(_root.mc_blue._x); \
@@ -130,9 +130,9 @@
SWFMovie_remove(mo, it_red); //remove mc_red at the 2nd frame
SWFMovie_remove(mo, it_blue); //remove mc_blue at the 2nd frame
SWFMovie_remove(mo, it_black); //remove it_black at the 2nd frame
- check_equals(mo, "_root.mc_red", "undefined");
- check_equals(mo, "_root.mc_green", "undefined");
- check_equals(mo, "_root.mc_black", "undefined");
+ check_equals(mo, "typeof(_root.mc_red)", "'undefined'");
+ check_equals(mo, "typeof(_root.mc_green)", "'undefined'");
+ check_equals(mo, "typeof(_root.mc_black)", "'undefined'");
SWFMovie_nextFrame(mo);
//------------end of 2nd frame---------------------------------
@@ -156,8 +156,8 @@
SWFDisplayItem_setDepth(it_green, 4);
SWFDisplayItem_setName(it_green, "mc_green");
- check(mo, "_root.mc_red != undefined");
- check(mo, "_root.mc_green != undefined");
+ check_equals(mo, "typeof(_root.mc_red)", "'movieclip'");
+ check_equals(mo, "typeof(_root.mc_blue)", "'movieclip'");
add_actions(mo, " _root.mc_red._x += 60; _root.mc_blue._x += 60;");
add_actions(mo, "if ( ++counter > 1 ) { _root.totals(); stop(); }");
- [Gnash-commit] gnash/testsuite/misc-ming.all place_and_remove_...,
Sandro Santilli <=