gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r10896: versioned to_string ..


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r10896: versioned to_string ..
Date: Wed, 20 May 2009 16:54:33 +0200
User-agent: Bazaar (1.13.1)

------------------------------------------------------------
revno: 10896
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Wed 2009-05-20 16:54:33 +0200
message:
  versioned to_string ..
modified:
  libcore/asobj/flash/geom/Point_as.cpp
  testsuite/actionscript.all/Point.as
=== modified file 'libcore/asobj/flash/geom/Point_as.cpp'
--- a/libcore/asobj/flash/geom/Point_as.cpp     2009-05-20 10:37:32 +0000
+++ b/libcore/asobj/flash/geom/Point_as.cpp     2009-05-20 14:54:33 +0000
@@ -381,9 +381,11 @@
        ptr->get_member(NSV::PROP_X, &x);
        ptr->get_member(NSV::PROP_Y, &y);
 
+    int version = ptr->getVM().getSWFVersion();
+
        std::stringstream ss;
-       ss << "(x=" << x.to_string()
-               << ", y=" << y.to_string()
+       ss << "(x=" << x.to_string_versioned(version)
+               << ", y=" << y.to_string_versioned(version)
                << ")";
 
        return as_value(ss.str());

=== modified file 'testsuite/actionscript.all/Point.as'
--- a/testsuite/actionscript.all/Point.as       2009-02-25 22:33:03 +0000
+++ b/testsuite/actionscript.all/Point.as       2009-05-20 14:54:33 +0000
@@ -94,6 +94,9 @@
 p0 = new Point(0, 0);
 check_equals(p0.length, 0);
 
+p0 = new Point(undef, undef);
+check_equals(''+p0, '(x=undefined, y=undefined)');
+
 //-------------------------------------------------------------
 // Test Point.add
 //-------------------------------------------------------------
@@ -508,6 +511,6 @@
 // END OF TEST
 //-------------------------------------------------------------
 
-check_totals(186);
+check_totals(187);
 
 #endif // OUTPUT_VERSION >= 8


reply via email to

[Prev in Thread] Current Thread [Next in Thread]