[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Text...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Text... |
Date: |
Mon, 15 Jan 2007 16:36:49 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/01/15 16:36:49
Modified files:
. : ChangeLog
testsuite/actionscript.all: TextSnapshot.as
Log message:
* testsuite/actionscript.all/TextSnapshot.as:
fixed checks taking SWF version into account.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2109&r2=1.2110
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/TextSnapshot.as?cvsroot=gnash&r1=1.6&r2=1.7
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2109
retrieving revision 1.2110
diff -u -b -r1.2109 -r1.2110
--- ChangeLog 15 Jan 2007 14:46:24 -0000 1.2109
+++ ChangeLog 15 Jan 2007 16:36:49 -0000 1.2110
@@ -1,3 +1,8 @@
+2007-01-15 Sandro Santilli <address@hidden>
+
+ * testsuite/actionscript.all/TextSnapshot.as:
+ fixed checks taking SWF version into account.
+
2007-01-15 Zou Lunkai <address@hidden>
* server/vm/ASHandlers.cpp (ActionDefineFunction,
Index: testsuite/actionscript.all/TextSnapshot.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/TextSnapshot.as,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- testsuite/actionscript.all/TextSnapshot.as 5 Nov 2006 00:45:27 -0000
1.6
+++ testsuite/actionscript.all/TextSnapshot.as 15 Jan 2007 16:36:49 -0000
1.7
@@ -20,28 +20,41 @@
// compile this test case with Ming makeswf, and then
// execute it like this gnash -1 -r 0 -v out.swf
-rcsid="$Id: TextSnapshot.as,v 1.6 2006/11/05 00:45:27 rsavoye Exp $";
+rcsid="$Id: TextSnapshot.as,v 1.7 2007/01/15 16:36:49 strk Exp $";
#include "check.as"
+#if OUTPUT_VERSION > 5
+
+check_equals ( typeof(TextSnapshot), 'function' );
+
var textsnapshotObj = new TextSnapshot;
// test the TextSnapshot constuctor
-check (textsnapshotObj != undefined);
+check_equals ( typeof(textsnapshotObj), 'object' );
// test the TextSnapshot::findtext method
-check (textsnapshotObj.findtext != undefined);
+check_equals (typeof(textsnapshotObj.findText), 'function');
+
// test the TextSnapshot::getcount method
-check (textsnapshotObj.getcount != undefined);
+check_equals (typeof(textsnapshotObj.getCount), 'function');
+
// test the TextSnapshot::getselected method
-check (textsnapshotObj.getselected != undefined);
+check_equals (typeof(textsnapshotObj.getSelected), 'function');
+
// test the TextSnapshot::getselectedtext method
-check (textsnapshotObj.getselectedtext != undefined);
+check_equals (typeof(textsnapshotObj.getSelectedText), 'function');
+
// test the TextSnapshot::gettext method
-check (textsnapshotObj.gettext != undefined);
+check_equals (typeof(textsnapshotObj.getText), 'function');
+
// test the TextSnapshot::hittesttextnearpos method
-check (textsnapshotObj.hittesttextnearpos != undefined);
+check_equals (typeof(textsnapshotObj.hitTestTextNearPos), 'function');
+
// test the TextSnapshot::setselectcolor method
-check (textsnapshotObj.setselectcolor != undefined);
+check_equals (typeof(textsnapshotObj.setSelectColor), 'function');
+
// test the TextSnapshot::setselected method
-check (textsnapshotObj.setselected != undefined);
+check_equals (typeof(textsnapshotObj.setSelected), 'function');
+
+#endif // OUTPUT_VERSION > 5
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Text...,
Sandro Santilli <=