gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r10948: Add test showing that MovieC


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r10948: Add test showing that MovieClip._soundbuftime is a global (like _quality)
Date: Mon, 01 Jun 2009 00:56:35 +0200
User-agent: Bazaar (1.13.1)

------------------------------------------------------------
revno: 10948
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Mon 2009-06-01 00:56:35 +0200
message:
  Add test showing that MovieClip._soundbuftime is a global (like _quality)
modified:
  libcore/asobj/Sound_as.cpp
  testsuite/actionscript.all/MovieClip.as
=== modified file 'libcore/asobj/Sound_as.cpp'
--- a/libcore/asobj/Sound_as.cpp        2009-05-25 08:00:05 +0000
+++ b/libcore/asobj/Sound_as.cpp        2009-05-31 22:56:35 +0000
@@ -232,7 +232,7 @@
         return;
     }
 
-    // TODO: use associated DisplayObject's _soundbuftime, if any
+    // TODO: use global _soundbuftime
     _mediaParser->setBufferTime(60000); // one minute buffer... should be fine
 
     if ( isStreaming )

=== modified file 'testsuite/actionscript.all/MovieClip.as'
--- a/testsuite/actionscript.all/MovieClip.as   2009-04-09 11:39:48 +0000
+++ b/testsuite/actionscript.all/MovieClip.as   2009-05-31 22:56:35 +0000
@@ -115,15 +115,15 @@
 #endif
 
 #if OUTPUT_VERSION == 6
-       check_totals(894); // SWF6
+       check_totals(897); // SWF6
 #endif
 
 #if OUTPUT_VERSION == 7
-       check_totals(911); // SWF7
+       check_totals(914); // SWF7
 #endif
 
 #if OUTPUT_VERSION >= 8
-       check_totals(1003); // SWF8+
+       check_totals(1006); // SWF8+
 #endif
 
        play();
@@ -502,6 +502,19 @@
 xcheck_equals(mc._soundbuftime, 4);
 xcheck_equals(_soundbuftime, 4);
 
+#if OUTPUT_VERSION >= 6
+
+ // _soundbuftime points to the same value, is not MovieClip-specific
+ mc._soundbuftime = 10;
+ check_equals(mc._soundbuftime, 10);
+ mc2 = createEmptyMovieClip("mc2_mc", 50, 0, 0, 0);
+ check_equals(mc2._soundbuftime, 10);
+ mc2._soundbuftime = 20;
+ check_equals(mc._soundbuftime, 20);
+ mc2.unloadMovie();
+
+#endif
+
 
 //----------------------------------------------
 // Test createEmptyMovieClip


reply via email to

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