[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Drawing...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Drawing... |
Date: |
Mon, 23 Apr 2007 13:32:15 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/04/23 13:32:15
Modified files:
. : ChangeLog
testsuite/misc-ming.all: DrawingApiTest.as
DrawingApiTestRunner.cpp
Log message:
* testsuite/misc-ming.all/: DrawingApiTest.as,
DrawingApiTestRunner.cpp: add rendering tests.
Add a drawing in which move() is called after beginFill()
to confirm the fill is not reset after move().
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2968&r2=1.2969
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/DrawingApiTest.as?cvsroot=gnash&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/DrawingApiTestRunner.cpp?cvsroot=gnash&r1=1.3&r2=1.4
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2968
retrieving revision 1.2969
diff -u -b -r1.2968 -r1.2969
--- ChangeLog 23 Apr 2007 12:30:07 -0000 1.2968
+++ ChangeLog 23 Apr 2007 13:32:14 -0000 1.2969
@@ -1,5 +1,12 @@
2007-04-23 Sandro Santilli <address@hidden>
+ * testsuite/misc-ming.all/: DrawingApiTest.as,
+ DrawingApiTestRunner.cpp: add rendering tests.
+ Add a drawing in which move() is called after beginFill()
+ to confirm the fill is not reset after move().
+
+2007-04-23 Sandro Santilli <address@hidden>
+
* testsuite/misc-ming.all/: Makefile.am, masks_test.c,
masks_testrunner.cpp: Add a MovieTester based test runner
for the masks_test movie. Shows a bug in either the renderer
Index: testsuite/misc-ming.all/DrawingApiTest.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/DrawingApiTest.as,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- testsuite/misc-ming.all/DrawingApiTest.as 20 Feb 2007 14:58:34 -0000
1.1
+++ testsuite/misc-ming.all/DrawingApiTest.as 23 Apr 2007 13:32:15 -0000
1.2
@@ -61,6 +61,15 @@
lineTo(230, 100);
endFill();
+ // clockwise, move after beginFill
+ lineStyle(1, 0x00FF00);
+ beginFill(0xFF00FF, 100);
+ moveTo(260, 100);
+ lineTo(260, 120);
+ lineTo(240, 120);
+ lineTo(240, 100);
+ lineTo(260, 100);
+ endFill();
}
// Make the MovieClip "active" (grabbing mouse events)
Index: testsuite/misc-ming.all/DrawingApiTestRunner.cpp
===================================================================
RCS file:
/sources/gnash/gnash/testsuite/misc-ming.all/DrawingApiTestRunner.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- testsuite/misc-ming.all/DrawingApiTestRunner.cpp 21 Feb 2007 07:57:18
-0000 1.3
+++ testsuite/misc-ming.all/DrawingApiTestRunner.cpp 23 Apr 2007 13:32:15
-0000 1.4
@@ -50,25 +50,54 @@
tester.advance();
+ rgba white(255, 255, 255, 255);
+ rgba blue(0, 0, 255, 255);
+ rgba cyan(0, 255, 255, 255);
+ rgba green(0, 255, 0, 255);
+ rgba red(255, 0, 0, 255);
+ rgba yellow(255, 255, 0, 255);
+ rgba black(0, 0, 0, 255);
+ rgba violet(255, 0, 255, 255);
+
// Out of any drawing
tester.movePointerTo(50, 50);
check(!tester.isMouseOverMouseEntity());
+ check_pixel(50, 50, 2, white, 1);
// Inside bottom-left blue fill
tester.movePointerTo(60, 215);
check(tester.isMouseOverMouseEntity());
+ check_pixel(60, 215, 2, blue, 1);
// Inside cyan clockwise fill
tester.movePointerTo(190, 112);
check(tester.isMouseOverMouseEntity());
+ check_pixel(190, 112, 2, cyan, 1);
// Inside green counterclockwise fill
tester.movePointerTo(220, 112);
check(tester.isMouseOverMouseEntity());
+ check_pixel(220, 112, 2, green, 1);
+
+ // Inside violet fill
+ tester.movePointerTo(250, 112);
+ check(tester.isMouseOverMouseEntity());
+ xcheck_pixel(250, 112, 2, violet, 1);
// Inside red "thick" line
tester.movePointerTo(146, 146);
xcheck(tester.isMouseOverMouseEntity());
+ xcheck_pixel(146, 146, 2, red, 2);
+
+ // Inside the yellow line
+ tester.movePointerTo(270, 232);
+ xcheck(tester.isMouseOverMouseEntity());
+ xcheck_pixel(270, 232, 2, yellow, 2);
+
+ // Inside the black vertical line
+ tester.movePointerTo(82, 127);
+ xcheck(tester.isMouseOverMouseEntity());
+ check_pixel(82, 127, 2, black, 2);
}
- [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Drawing...,
Sandro Santilli <=