758
758
// Cairo succeeds.
759
759
check_pixel(xo + (20*scale), yo + (25*scale), 3, white, 2);
761
//----------------------------------------------------------
762
tester.pressKey(gnash::key::_3); tester.advance();
764
const int w = 100, h = 100;
770
// Bottom left corner (green line).
771
check_pixel(x, y + h, 2, green, 2);
772
// Bottom left fill (red)
773
check_pixel(x + 20, y + 60, 2, red, 2);
774
// Top right fill (red)
775
check_pixel(x + 80, y + 20, 2, red, 2);
776
// Dead centre fill (red)
777
xcheck_pixel(x + w / 2, y + h / 2, 2, red, 2);
778
// Top right corner (blue line)
779
check_pixel(x + w, y, 2, blue, 2);
785
// Bottom left corner (green line).
786
check_pixel(x, y + h, 2, green, 2);
787
// Bottom left fill (red)
788
check_pixel(x + 20, y + 60, 2, red, 2);
789
// Top right fill (red)
790
xcheck_pixel(x + 80, y + 20, 2, red, 2);
791
// Dead centre fill (red)
792
xcheck_pixel(x + w / 2, y + h / 2, 2, red, 2);
793
// Top right corner (blue line, is correct to be over black line ending)
794
check_pixel(x + w, y, 2, blue, 2);
795
// Top centre (black line)
796
check_pixel(x + w / 2, y, 2, black, 2);
802
// Bottom left corner (black line).
803
check_pixel(x, y + h, 2, black, 2);
804
// Bottom left fill (none)
805
check_pixel(x + 20, y + 60, 2, white, 2);
806
// Top right fill (none)
807
check_pixel(x + 80, y + 20, 2, white, 2);
808
// Dead centre fill (none)
809
check_pixel(x + w / 2, y + h / 2, 2, white, 2);
810
// Top right corner (nothing)
811
check_pixel(x + w, y, 2, white, 2);
818
// Should look the same as Shape 3
820
// Bottom left corner (black line).
821
check_pixel(x, y + h, 2, black, 2);
822
// Bottom left fill (none)
823
check_pixel(x + 20, y + 60, 2, white, 2);
824
// Top right fill (none)
825
check_pixel(x + 80, y + 20, 2, white, 2);
826
// Dead centre fill (none)
827
check_pixel(x + w / 2, y + h / 2, 2, white, 2);
828
// Top right corner (nothing)
829
check_pixel(x + w, y, 2, white, 2);
835
// Bottom left corner (black line).
836
check_pixel(x, y + h, 2, black, 2);
837
// Bottom left fill (black)
838
check_pixel(x + 20, y + 60, 2, black, 2);
839
// Top right fill (none)
840
check_pixel(x + 80, y + 20, 2, white, 2);
841
// Dead centre (black line)
842
check_pixel(x + w / 2, y + h / 2, 2, black, 2);
843
// Top right corner (nothing)
844
check_pixel(x + w, y, 2, white, 2);
850
// NB: the rendering of this shape is not consistent
851
// across different versions of the pp. It doesn't seem
852
// like a sane case, so there is probably no need
853
// to worry about compatibility.
855
// Bottom left corner (yellow line).
856
check_pixel(x, y + h, 2, yellow, 2);
857
// Bottom left fill (green)
858
check_pixel(x + 20, y + 60, 2, green, 2);
860
// The following tests are possibly meaningless:
862
// Top right fill (blue)
863
check_pixel(x + 80, y + 20, 2, blue, 2);
864
// Dead centre (yellow line)
865
check_pixel(x + w / 2, y + h / 2, 2, yellow, 2);
866
// Top right corner (yellow line)
867
check_pixel(x + w, y, 2, yellow, 2);
869
//----------------------------------------------------------
762
870
// TODO: check startDrag/stopDrag on the hit detector
763
871
// (hit 'd' key to toggle)
764
872
//----------------------------------------------------------