[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog server/sprite_instance.cpp test...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog server/sprite_instance.cpp test... |
Date: |
Tue, 13 Mar 2007 13:46:56 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/03/13 13:46:55
Modified files:
. : ChangeLog
server : sprite_instance.cpp
testsuite/actionscript.all: System.as
testsuite/swfdec: PASSING
Log message:
* testsuite/actionscript.all/System.as: add checks for $version.
* testsuite/swfdec/PASSING: 3 more tests succeed.
* server/sprite_instance.cpp (get_text_value): remove the
trailing
dot from name of top-level movies.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2619&r2=1.2620
http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.cpp?cvsroot=gnash&r1=1.195&r2=1.196
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/System.as?cvsroot=gnash&r1=1.9&r2=1.10
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/swfdec/PASSING?cvsroot=gnash&r1=1.7&r2=1.8
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2619
retrieving revision 1.2620
diff -u -b -r1.2619 -r1.2620
--- ChangeLog 13 Mar 2007 03:29:11 -0000 1.2619
+++ ChangeLog 13 Mar 2007 13:46:55 -0000 1.2620
@@ -1,15 +1,19 @@
+2007-03-13 Sandro Santilli <address@hidden>
+
+ * testsuite/actionscript.all/System.as: add checks for $version.
+ * testsuite/swfdec/PASSING: 3 more tests succeed.
+ * server/sprite_instance.cpp (get_text_value): remove the trailing
+ dot from name of top-level movies.
+
2007-03-12 John Gilmore <address@hidden>
- * configure.am: Suggest agg-2.5 rather than 2.4 if
+ * configure.ac: Suggest agg-2.5 rather than 2.4 if
agg_gradient_lut.h is missing.
- * configure.am: Sandro's fix to "ming version" test that failed if
+ * configure.ac: Sandro's fix to "ming version" test that failed if
ming was not installed.
2007-03-12 Sandro Santilli <address@hidden>
- * testsuite/swfdec/PASSING: 3 more tests succeed.
- * server/sprite_instance.cpp (get_text_value): remove the trailing
- dot from name of top-level movies.
* server/as_object.cpp (init_member): fix typo setting flags
for buiting methods all wrong.
* testsuite/actionscript.all/delete.as: don't expect the failures
Index: server/sprite_instance.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/sprite_instance.cpp,v
retrieving revision 1.195
retrieving revision 1.196
diff -u -b -r1.195 -r1.196
--- server/sprite_instance.cpp 12 Mar 2007 19:45:52 -0000 1.195
+++ server/sprite_instance.cpp 13 Mar 2007 13:46:55 -0000 1.196
@@ -3617,11 +3617,19 @@
{
if ( ! _target_dot.empty() ) return _target_dot.c_str();
- _target_dot = "_level0" + getTargetPath();
+ std::string levelString = "_level0"; // TODO: support real levels!
+
+ const std::string& targetPath = getTargetPath();
+ if ( targetPath == "/" ) _target_dot = levelString;
+ else
+ {
+ _target_dot = levelString + targetPath;
for (std::string::size_type i=0; i<_target_dot.length(); ++i)
{
if ( _target_dot[i] == '/' ) _target_dot[i] = '.';
}
+ }
+
return _target_dot.c_str();
}
Index: testsuite/actionscript.all/System.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/System.as,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- testsuite/actionscript.all/System.as 12 Jan 2007 10:15:13 -0000
1.9
+++ testsuite/actionscript.all/System.as 13 Mar 2007 13:46:55 -0000
1.10
@@ -20,12 +20,10 @@
// compile this test case with Ming makeswf, and then
// execute it like this gnash -1 -r 0 -v out.swf
-rcsid="$Id: System.as,v 1.9 2007/01/12 10:15:13 strk Exp $";
+rcsid="$Id: System.as,v 1.10 2007/03/13 13:46:55 strk Exp $";
#include "check.as"
-#if OUTPUT_VERSION >= 6
-
check_equals(typeof(System), 'object');
// _global.System is NOT a class, just an object
@@ -52,4 +50,18 @@
#endif // OUTPUT_VERSION >= 7
-#endif // OUTPUT_VERSION >= 6
+
+// test System.capabilities
+check_equals(typeof(System.capabilities), 'object');
+
+// test System.version (should also match the global $version)
+check_equals(typeof(System.capabilities.version), 'string');
+check_equals(typeof($version), 'string');
+check_equals(System.capabilities.version, $version);
+check_equals(typeof(_global.$version), 'undefined');
+check_equals(typeof(this.$version), 'string');
+check_equals(this.$version, System.capabilities.version);
+#if OUTPUT_VERSION >= 6
+check(this.hasOwnProperty("$version"));
+#endif
+
Index: testsuite/swfdec/PASSING
===================================================================
RCS file: /sources/gnash/gnash/testsuite/swfdec/PASSING,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- testsuite/swfdec/PASSING 12 Mar 2007 23:19:55 -0000 1.7
+++ testsuite/swfdec/PASSING 13 Mar 2007 13:46:55 -0000 1.8
@@ -22,3 +22,5 @@
callfunction-stack.swf
extends-simple.swf
undefined-tostring.swf
+DoInitAction-this.swf
+preload.swf
- [Gnash-commit] gnash ChangeLog server/sprite_instance.cpp test...,
Sandro Santilli <=