[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/NetStre...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/NetStre... |
Date: |
Mon, 04 Jun 2007 18:33:19 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/06/04 18:33:19
Modified files:
. : ChangeLog
testsuite/misc-ming.all: NetStream-SquareTest.c
Log message:
Add tests for matrix tranform properties
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3451&r2=1.3452
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/NetStream-SquareTest.c?cvsroot=gnash&r1=1.10&r2=1.11
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3451
retrieving revision 1.3452
diff -u -b -r1.3451 -r1.3452
--- ChangeLog 4 Jun 2007 18:16:57 -0000 1.3451
+++ ChangeLog 4 Jun 2007 18:33:19 -0000 1.3452
@@ -5,7 +5,8 @@
eyes what's hard to test when nothing is shown due to Gnash not
supporting sub-SWF rate videos; Scale video by 120% and rotate 45
degrees clockwise to verify video transform
- bugs (not automated yet); documented expected behaviour.
+ bugs (not automated yet); documented expected behaviour; add
+ tests for matrix transforming properties.
2007-06-04 Rob Savoye <address@hidden>
Index: testsuite/misc-ming.all/NetStream-SquareTest.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/NetStream-SquareTest.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- testsuite/misc-ming.all/NetStream-SquareTest.c 4 Jun 2007 18:16:57
-0000 1.10
+++ testsuite/misc-ming.all/NetStream-SquareTest.c 4 Jun 2007 18:33:19
-0000 1.11
@@ -79,11 +79,6 @@
"nc.connect(null);"
"stream = new NetStream(nc);"
"video.attachVideo(stream); "
- "video._x = 100;"
- "video._1 = 100;"
- "video._xscale = 120;"
- "video._yscale = 120;"
- "video._rotation = 45;"
"stream.setBufferTime(2); "
"stream.play('%s');"
"stop();",
@@ -116,6 +111,28 @@
a = newSWFAction(buffer);
if(a == NULL) return -1;
SWFMovie_add(mo, (SWFBlock)a);
+
+ xcheck_equals(mo, "video._xscale", "100");
+ xcheck_equals(mo, "video._yscale", "100");
+ xcheck_equals(mo, "video._rotation", "0");
+ xcheck_equals(mo, "video._target", "'/video'");
+
+ add_actions(mo,
+ "video._x = 100;"
+ "video._xscale = 120;"
+ "video._yscale = 120;"
+ "video._rotation = 45;");
+
+ check_equals(mo, "video._x", "100") ;
+ check_equals(mo, "video._xscale", "120");
+ check_equals(mo, "video._yscale", "120");
+ check_equals(mo, "video._rotation", "45");
+
+
+ // How can I test props here ?
+ check_equals(mo, "typeof(video.hitTest)", "'undefined'");
+ check_equals(mo, "typeof(video.getBounds)", "'undefined'");
+
SWFMovie_add(mo, (SWFBlock)newSWFAction(
"stream.onStatus = function(info) {"