gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r10202: Drop something useless in ar


From: Benjamin Wolsey
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r10202: Drop something useless in array.h, add Sound tests.
Date: Thu, 30 Oct 2008 15:41:00 +0100
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 10202
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Thu 2008-10-30 15:41:00 +0100
message:
  Drop something useless in array.h, add Sound tests.
modified:
  libcore/array.h
  testsuite/actionscript.all/Sound.as
=== modified file 'libcore/array.h'
--- a/libcore/array.h   2008-10-27 19:38:01 +0000
+++ b/libcore/array.h   2008-10-30 14:41:00 +0000
@@ -71,9 +71,6 @@
 
        typedef std::list<as_value> ValueList;
 
-
-       enum { itemBlank, itemValue };
-
        /// Visit all elements 
        //
        /// The visitor class will have to expose a visit(as_value&) method

=== modified file 'testsuite/actionscript.all/Sound.as'
--- a/testsuite/actionscript.all/Sound.as       2008-10-29 16:19:03 +0000
+++ b/testsuite/actionscript.all/Sound.as       2008-10-30 14:41:00 +0000
@@ -27,7 +27,7 @@
 endOfTest = function()
 {
 #if OUTPUT_VERSION > 5
-    check_totals(95);
+    check_totals(105);
 #else
     check_totals(94);
 #endif
@@ -251,8 +251,22 @@
 
 stop();
 
+check_equals(typeof(s.getBytesLoaded()), "undefined");
+check_equals(typeof(s.getBytesTotal()), "undefined");
+xcheck_equals(typeof(s.duration), "undefined");
+check_equals(typeof(s.getPosition()), "undefined");
+check_equals(typeof(s.getDuration()), "undefined");
+
 // streaming sound doesn't need .start() to play...
 s.loadSound(MEDIA(sound1.mp3), true); 
+
+
+xcheck_equals(typeof(s.getBytesTotal()), "number");
+xcheck_equals(typeof(s.getBytesLoaded()), "number");
+xcheck_equals(typeof(s.getPosition()), "number");
+check_equals(typeof(s.duration), "number");
+xcheck_equals(typeof(s.getDuration()), "number");
+
 //s.loadSound(MEDIA(brokenchord.wav), true); 
 
 onSoundCompleteFailed = function()


reply via email to

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