[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r9971: More tests.
From: |
Benjamin Wolsey |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r9971: More tests. |
Date: |
Wed, 08 Oct 2008 19:13:29 +0200 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9971
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Wed 2008-10-08 19:13:29 +0200
message:
More tests.
modified:
testsuite/misc-ming.all/EmbeddedSoundTest.c
------------------------------------------------------------
revno: 9969.1.1
committer: Benjamin Wolsey <address@hidden>
branch nick: work
timestamp: Wed 2008-10-08 19:10:57 +0200
message:
Test looped sounds.
modified:
testsuite/misc-ming.all/EmbeddedSoundTest.c
=== modified file 'testsuite/misc-ming.all/EmbeddedSoundTest.c'
--- a/testsuite/misc-ming.all/EmbeddedSoundTest.c 2008-10-08 16:00:20
+0000
+++ b/testsuite/misc-ming.all/EmbeddedSoundTest.c 2008-10-08 17:10:57
+0000
@@ -123,6 +123,8 @@
SWFMovie_nextFrame(mo); /* end of frame1 */
+ add_actions(mo, "c_soundComplete = 0;");
+
add_actions(mo, "a = new Sound(); a.attachSound('mono22_mp2');");
add_actions(mo, "b = new Sound(); b.attachSound('mono22_mp2b');");
add_actions(mo, "c = new Sound(); c.attachSound('stereo8_mp3');");
@@ -143,24 +145,34 @@
check_equals(mo, "c.duration", "5224");
check_equals(mo, "c.position", "0");
- add_actions(mo, "c.start();");
+ add_actions(mo, "c.start(0, 2);");
check_equals(mo, "c.position", "0");
check_equals(mo, "d.duration", "5224");
check_equals(mo, "d.position", "0");
add_actions(mo, "d.start();");
+ add_actions(mo, "d.start(4);");
check_equals(mo, "d.position", "0");
SWFMovie_nextFrame(mo);
- add_actions(mo, "stop();");
+ add_actions(mo, "stop();"
+ "note('will wait for onSoundComplete to finish the test (about "
+ "13 seconds).');");
add_actions(mo, "a.onSoundComplete = function() {"
"check_equals(a.position, 13740);"
- "totals(13); "
+ "check_equals(c_soundComplete, 1);"
+ "totals(18); "
"finished = true;"
"};");
+ add_actions(mo, "c.onSoundComplete = function() {"
+ "check_equals(b.position, 10472);"
+ "c_soundComplete++;"
+ "note('c.onSoundComplete() called '+c_soundComplete+' time(s).');"
+ "};");
+
/*****************************************************
*
* Output movie
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r9971: More tests.,
Benjamin Wolsey <=