[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil... |
Date: |
Wed, 23 Apr 2008 19:36:58 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 08/04/23 19:36:57
Modified files:
. : ChangeLog
testsuite/misc-ming.all: Makefile.am
Added files:
testsuite/misc-ming.all: StageConfigTest.as
Log message:
Committed the test grew and used the whole day for stage testing.
It shows we still get Stage size wrong, but is not automated yet.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6371&r2=1.6372
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/Makefile.am?cvsroot=gnash&r1=1.191&r2=1.192
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/StageConfigTest.as?cvsroot=gnash&rev=1.1
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6371
retrieving revision 1.6372
diff -u -b -r1.6371 -r1.6372
--- ChangeLog 23 Apr 2008 19:11:41 -0000 1.6371
+++ ChangeLog 23 Apr 2008 19:36:56 -0000 1.6372
@@ -1,5 +1,11 @@
2008-04-23 Sandro Santilli <address@hidden>
+ * testsuite/misc-ming.all/: Makefile.am, StageConfigTest.as:
+ Committed the test grew and used the whole day for stage testing.
+ It shows we still get Stage size wrong, but is not automated yet.
+
+2008-04-23 Sandro Santilli <address@hidden>
+
* testsuite/MovieTester.cpp (resizeStage): don't try
to use what I just dropped (isRescalignAllowed).
Index: testsuite/misc-ming.all/Makefile.am
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/Makefile.am,v
retrieving revision 1.191
retrieving revision 1.192
diff -u -b -r1.191 -r1.192
--- testsuite/misc-ming.all/Makefile.am 16 Apr 2008 20:26:44 -0000 1.191
+++ testsuite/misc-ming.all/Makefile.am 23 Apr 2008 19:36:57 -0000 1.192
@@ -36,7 +36,8 @@
DrawingApiTest.as \
FlashVarsTest.as \
intervalTest.as \
- FlashVarsTest.html
+ FlashVarsTest.html \
+ StageConfigTest.as
AM_CPPFLAGS = -I.. \
Index: testsuite/misc-ming.all/StageConfigTest.as
===================================================================
RCS file: testsuite/misc-ming.all/StageConfigTest.as
diff -N testsuite/misc-ming.all/StageConfigTest.as
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ testsuite/misc-ming.all/StageConfigTest.as 23 Apr 2008 19:36:57 -0000
1.1
@@ -0,0 +1,101 @@
+// makeswf -o StageConfigTest.swf -s 512x512 StageConfigTest.as
+//
+// Test for stage configuration. Meant for manual testing, will need
+// to be turned into a self-contained test (volunteers?)
+//
+
+createEmptyMovieClip("s", 1);
+with (s)
+{
+ x=2;
+
+ lineStyle(0, 0);
+ moveTo(0*x, 0*x);
+ lineTo(256*x,256*x);
+ lineTo(256*x,0*x);
+ lineTo(0*x, 256*x);
+ lineTo(0*x, 0*x);
+};
+
+s.createEmptyMovieClip("h", 1);
+with(s.h)
+{
+ lineStyle(0, 0);
+ beginFill(0xffffff, 256);
+ moveTo(256-10, 256-10);
+ lineTo(256+10, 256-10);
+ lineTo(256+10, 256+10);
+ lineTo(256-10, 256+10);
+ moveTo(256-10, 256-10);
+}
+s.h.onRollOver = function() {};
+
+createTextField("tf", 99, 256-100, 0, 200, 50);
+tf.border = false;
+tf.autoSize = "center";
+
+createTextField("atf", 98, 10, 130, 100, 50);
+atf.text = "Align: " + Stage.align;
+
+createTextField("stf", 97, 10, 150, 200, 50);
+stf.text = "Scale mode: " + Stage.scaleMode;
+
+createTextField("ss", 96, 10, 170, 200, 50);
+ss.text = "Stage size: "+Stage.width+"x"+Stage.height;
+
+onMouseMove = function()
+{
+ s = "Mouse coords:"+_xmouse+"x"+_ymouse;
+ tf.text = s;
+};
+
+scaleModeValues = ['showAll','noScale','exactFit','noBorder'];
+scaleModeValue=0;
+onKeyDown = function()
+{
+ var ascii = Key.getAscii();
+ var char = String.fromCharCode(ascii);
+
+ if ( char == 's' )
+ {
+ scaleModeValue=(scaleModeValue+1)%scaleModeValues.length;
+ Stage.scaleMode = scaleModeValues[scaleModeValue];
+ trace("scaleMode:"+Stage.scaleMode);
+ }
+ else if (char == 'c')
+ {
+ Stage.align = "";
+ r=b=t=l=false;
+ }
+ else
+ {
+ if (char == "r") { r = !r; }
+ if (char == "b") { b = !b; }
+ if (char == "t") { t = !t; }
+ if (char == "l") { l = !l; }
+
+ al = r ? "r" : "";
+ al += b ? "b" : "";
+ al += l ? "l" : "";
+ al += t ? "t" : "";
+
+ trace("align = "+al);
+ Stage.align = al;
+ }
+
+ atf.text="Align: " + Stage.align;
+ stf.text = "Scale mode: " + Stage.scaleMode;
+
+ // update mouse too
+ s = _xmouse+"x"+_ymouse;
+ tf.text = s;
+
+};
+Key.addListener(this);
+
+onResize = function()
+{
+ trace("Resize event received, args to handler: "+arguments.length+"
Stage.width="+Stage.width+", Stage.height="+Stage.height);
+ ss.text = "Stage size: "+Stage.width+"x"+Stage.height;
+};
+Stage.addListener(this);
- [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Makefil...,
Sandro Santilli <=