gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r10189: Tests for MovieClip._soundbu


From: Benjamin Wolsey
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r10189: Tests for MovieClip._soundbuftime.
Date: Wed, 29 Oct 2008 13:19:09 +0100
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 10189
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Wed 2008-10-29 13:19:09 +0100
message:
  Tests for MovieClip._soundbuftime.
modified:
  testsuite/actionscript.all/MovieClip.as
=== modified file 'testsuite/actionscript.all/MovieClip.as'
--- a/testsuite/actionscript.all/MovieClip.as   2008-10-25 19:15:19 +0000
+++ b/testsuite/actionscript.all/MovieClip.as   2008-10-29 12:19:09 +0000
@@ -111,19 +111,19 @@
 endOfTest = function() 
 {
 #if OUTPUT_VERSION <= 5
-       check_totals(304); // SWF5
+       check_totals(321); // SWF5
 #endif
 
 #if OUTPUT_VERSION == 6
-       check_totals(783); // SWF6
+       check_totals(800); // SWF6
 #endif
 
 #if OUTPUT_VERSION == 7
-       check_totals(800); // SWF7
+       check_totals(817); // SWF7
 #endif
 
 #if OUTPUT_VERSION >= 8
-       check_totals(872); // SWF8+
+       check_totals(889); // SWF8+
 #endif
 
        play();
@@ -463,6 +463,47 @@
 #endif //if OUTPUT_VERSION >= 6
 
 //----------------------------------------------
+// Test _soundbuftime
+//----------------------------------------------
+
+check_equals(mc._soundbuftime, _soundbuftime);
+xcheck_equals(mc._soundbuftime, 5);
+xcheck_equals(_soundbuftime, 5);
+
+mc._soundbuftime = 20;
+xcheck_equals(mc._soundbuftime, 20);
+xcheck_equals(_soundbuftime, 20);
+
+mc._soundbuftime = -20;
+xcheck_equals(mc._soundbuftime, -20);
+xcheck_equals(_soundbuftime, -20);
+
+mc._soundbuftime = 0;
+check_equals(mc._soundbuftime, 0);
+check_equals(_soundbuftime, 0);
+
+mc._soundbuftime = 1.5;
+xcheck_equals(mc._soundbuftime, 1);
+xcheck_equals(_soundbuftime, 1);
+
+o = {};
+
+mc._soundbuftime = o;
+xcheck_equals(mc._soundbuftime, 1);
+xcheck_equals(_soundbuftime, 1);
+
+o.valueOf = function() { return 4; };
+
+mc._soundbuftime = o;
+xcheck_equals(mc._soundbuftime, 4);
+xcheck_equals(_soundbuftime, 4);
+
+mc._soundbuftime = "string";
+xcheck_equals(mc._soundbuftime, 4);
+xcheck_equals(_soundbuftime, 4);
+
+
+//----------------------------------------------
 // Test createEmptyMovieClip
 //----------------------------------------------
 


reply via email to

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