[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/testsuite/misc-swfc.all Makefile.am gotoF...
From: |
Udo Giacomozzi |
Subject: |
[Gnash-commit] gnash/testsuite/misc-swfc.all Makefile.am gotoF... |
Date: |
Thu, 06 Dec 2007 12:03:09 +0000 |
CVSROOT: /cvsroot/gnash
Module name: gnash
Changes by: Udo Giacomozzi <udog> 07/12/06 12:03:09
Modified files:
testsuite/misc-swfc.all: Makefile.am
Added files:
testsuite/misc-swfc.all: gotoFrameFromInterval.sc
Log message:
new testcase for gotoAndPlay(); stop(); (beta)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/Makefile.am?cvsroot=gnash&r1=1.18&r2=1.19
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-swfc.all/gotoFrameFromInterval.sc?cvsroot=gnash&rev=1.1
Patches:
Index: Makefile.am
===================================================================
RCS file: /cvsroot/gnash/gnash/testsuite/misc-swfc.all/Makefile.am,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- Makefile.am 6 Dec 2007 11:10:25 -0000 1.18
+++ Makefile.am 6 Dec 2007 12:03:09 -0000 1.19
@@ -34,6 +34,7 @@
opcode_guard_test2.sc \
swf4opcode.sc \
mouse_drag_test.sc \
+ gotoFrameFromInterval.sc \
$(NULL)
# These will get compiled to SWFs just as above, but will not be executed as a
test
Index: gotoFrameFromInterval.sc
===================================================================
RCS file: gotoFrameFromInterval.sc
diff -N gotoFrameFromInterval.sc
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ gotoFrameFromInterval.sc 6 Dec 2007 12:03:09 -0000 1.1
@@ -0,0 +1,67 @@
+.flash bbox=200x200 filename="gotoandplay_stop.swf" version=6 fps=10
+
+#include "check.sc"
+
+
+.frame 1
+ .action:
+#include "Dejagnu.sc"
+ .end
+
+.frame 2
+ .action:
+ _root.jumped = false;
+ _root.done = false;
+
+ stop();
+
+ function doit() {
+ note("now jumping...");
+ gotoAndPlay(5);
+ }
+
+ // test:
+ setInterval(
+ function() {
+ if (!_root.jumped && (getTimer() > 1000)) {
+ _root.jumped = true;
+ doit();
+ }
+
+ if (!_root.done && (getTimer() > 2000)) {
+ _root.done = true;
+
+ check_equals(_root._currentframe, 5);
+ note("Test done");
+
+ Dejagnu.done();
+
+ gotoAndPlay("10"); // end
+ }
+
+ }
+ , 100);
+
+
+
+ .end
+
+.frame 5
+ .action:
+ stop();
+ note("frame 5 reached (good)");
+ .end
+
+.frame 8
+ .action:
+ stop();
+ note("frame 6 reached (bad)");
+ .end
+ .stop
+
+.frame 10
+ .action:
+ note("goodbye");
+ .end
+
+.end
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/testsuite/misc-swfc.all Makefile.am gotoF...,
Udo Giacomozzi <=