diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-08 21:21:30 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-08 21:21:30 +0000 |
commit | cdc1e9c09df101960cf95600e97c49936e929c2c (patch) | |
tree | 93d30e67b40dbd8217915153893710b15632d4bf /skia | |
parent | dd26501ef315e241911a31a8a98027c9bbb65560 (diff) | |
download | chromium_src-cdc1e9c09df101960cf95600e97c49936e929c2c.zip chromium_src-cdc1e9c09df101960cf95600e97c49936e929c2c.tar.gz chromium_src-cdc1e9c09df101960cf95600e97c49936e929c2c.tar.bz2 |
Move the vector canvas unit test data to the skia/ext directory. It wasn't
trivial to move the directory the way the test code was laid out (since we now
add two levels) so I refactored it a bit to get rid of the base class (which
wasn't actually used for anything useful).
BUG=5016
Review URL: http://codereview.chromium.org/16550
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7756 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
85 files changed, 36 insertions, 62 deletions
diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/00_pc_clean.png b/skia/ext/data/vectorcanvastest/basicdrawing/00_pc_clean.png Binary files differnew file mode 100644 index 0000000..a5435f2 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/basicdrawing/00_pc_clean.png diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/00_vc_clean.png b/skia/ext/data/vectorcanvastest/basicdrawing/00_vc_clean.png Binary files differnew file mode 100644 index 0000000..a5435f2 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/basicdrawing/00_vc_clean.png diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/01_pc_drawargb.png b/skia/ext/data/vectorcanvastest/basicdrawing/01_pc_drawargb.png Binary files differnew file mode 100644 index 0000000..a5435f2 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/basicdrawing/01_pc_drawargb.png diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/01_vc_drawargb.png b/skia/ext/data/vectorcanvastest/basicdrawing/01_vc_drawargb.png Binary files differnew file mode 100644 index 0000000..a5435f2 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/basicdrawing/01_vc_drawargb.png diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/02_pc_drawline_black.png b/skia/ext/data/vectorcanvastest/basicdrawing/02_pc_drawline_black.png Binary files differnew file mode 100644 index 0000000..c21fdf1 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/basicdrawing/02_pc_drawline_black.png diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/02_vc_drawline_black.png b/skia/ext/data/vectorcanvastest/basicdrawing/02_vc_drawline_black.png Binary files differnew file mode 100644 index 0000000..c21fdf1 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/basicdrawing/02_vc_drawline_black.png diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/03_pc_drawrect_green.png b/skia/ext/data/vectorcanvastest/basicdrawing/03_pc_drawrect_green.png Binary files differnew file mode 100644 index 0000000..dfc46a8 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/basicdrawing/03_pc_drawrect_green.png diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/03_vc_drawrect_green.png b/skia/ext/data/vectorcanvastest/basicdrawing/03_vc_drawrect_green.png Binary files differnew file mode 100644 index 0000000..dfc46a8 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/basicdrawing/03_vc_drawrect_green.png diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/04_pc_drawrect_noop.png b/skia/ext/data/vectorcanvastest/basicdrawing/04_pc_drawrect_noop.png Binary files differnew file mode 100644 index 0000000..dfc46a8 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/basicdrawing/04_pc_drawrect_noop.png diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/04_vc_drawrect_noop.png b/skia/ext/data/vectorcanvastest/basicdrawing/04_vc_drawrect_noop.png Binary files differnew file mode 100644 index 0000000..dfc46a8 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/basicdrawing/04_vc_drawrect_noop.png diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/05_pc_drawrect_noop.png b/skia/ext/data/vectorcanvastest/basicdrawing/05_pc_drawrect_noop.png Binary files differnew file mode 100644 index 0000000..69cc6dc --- /dev/null +++ b/skia/ext/data/vectorcanvastest/basicdrawing/05_pc_drawrect_noop.png diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/05_vc_drawrect_noop.png b/skia/ext/data/vectorcanvastest/basicdrawing/05_vc_drawrect_noop.png Binary files differnew file mode 100644 index 0000000..69cc6dc --- /dev/null +++ b/skia/ext/data/vectorcanvastest/basicdrawing/05_vc_drawrect_noop.png diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/06_pc_drawpaint_black.png b/skia/ext/data/vectorcanvastest/basicdrawing/06_pc_drawpaint_black.png Binary files differnew file mode 100644 index 0000000..9cbff6e --- /dev/null +++ b/skia/ext/data/vectorcanvastest/basicdrawing/06_pc_drawpaint_black.png diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/06_vc_drawpaint_black.png b/skia/ext/data/vectorcanvastest/basicdrawing/06_vc_drawpaint_black.png Binary files differnew file mode 100644 index 0000000..9cbff6e --- /dev/null +++ b/skia/ext/data/vectorcanvastest/basicdrawing/06_vc_drawpaint_black.png diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/07_pc_drawline_left_to_right.png b/skia/ext/data/vectorcanvastest/basicdrawing/07_pc_drawline_left_to_right.png Binary files differnew file mode 100644 index 0000000..bbdfc36 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/basicdrawing/07_pc_drawline_left_to_right.png diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/07_vc_drawline_left_to_right.png b/skia/ext/data/vectorcanvastest/basicdrawing/07_vc_drawline_left_to_right.png Binary files differnew file mode 100644 index 0000000..bbdfc36 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/basicdrawing/07_vc_drawline_left_to_right.png diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/08_pc_drawline_red.png b/skia/ext/data/vectorcanvastest/basicdrawing/08_pc_drawline_red.png Binary files differnew file mode 100644 index 0000000..9dc35f0 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/basicdrawing/08_pc_drawline_red.png diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/08_vc_drawline_red.png b/skia/ext/data/vectorcanvastest/basicdrawing/08_vc_drawline_red.png Binary files differnew file mode 100644 index 0000000..9dc35f0 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/basicdrawing/08_vc_drawline_red.png diff --git a/skia/ext/data/vectorcanvastest/bitmaps/00_pc_opaque.png b/skia/ext/data/vectorcanvastest/bitmaps/00_pc_opaque.png Binary files differnew file mode 100644 index 0000000..812b1ca --- /dev/null +++ b/skia/ext/data/vectorcanvastest/bitmaps/00_pc_opaque.png diff --git a/skia/ext/data/vectorcanvastest/bitmaps/00_vc_opaque.png b/skia/ext/data/vectorcanvastest/bitmaps/00_vc_opaque.png Binary files differnew file mode 100644 index 0000000..812b1ca --- /dev/null +++ b/skia/ext/data/vectorcanvastest/bitmaps/00_vc_opaque.png diff --git a/skia/ext/data/vectorcanvastest/bitmaps/01_pc_alpha.png b/skia/ext/data/vectorcanvastest/bitmaps/01_pc_alpha.png Binary files differnew file mode 100644 index 0000000..1d1342b --- /dev/null +++ b/skia/ext/data/vectorcanvastest/bitmaps/01_pc_alpha.png diff --git a/skia/ext/data/vectorcanvastest/bitmaps/01_vc_alpha.png b/skia/ext/data/vectorcanvastest/bitmaps/01_vc_alpha.png Binary files differnew file mode 100644 index 0000000..1d1342b --- /dev/null +++ b/skia/ext/data/vectorcanvastest/bitmaps/01_vc_alpha.png diff --git a/skia/ext/data/vectorcanvastest/bitmaps/bitmap_alpha.png b/skia/ext/data/vectorcanvastest/bitmaps/bitmap_alpha.png Binary files differnew file mode 100644 index 0000000..a19d09d --- /dev/null +++ b/skia/ext/data/vectorcanvastest/bitmaps/bitmap_alpha.png diff --git a/skia/ext/data/vectorcanvastest/bitmaps/bitmap_opaque.png b/skia/ext/data/vectorcanvastest/bitmaps/bitmap_opaque.png Binary files differnew file mode 100644 index 0000000..3560d27 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/bitmaps/bitmap_opaque.png diff --git a/skia/ext/data/vectorcanvastest/circles/00_pc_circle_stroke.png b/skia/ext/data/vectorcanvastest/circles/00_pc_circle_stroke.png Binary files differnew file mode 100644 index 0000000..896631b --- /dev/null +++ b/skia/ext/data/vectorcanvastest/circles/00_pc_circle_stroke.png diff --git a/skia/ext/data/vectorcanvastest/circles/00_vc_circle_stroke.png b/skia/ext/data/vectorcanvastest/circles/00_vc_circle_stroke.png Binary files differnew file mode 100644 index 0000000..c265be3 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/circles/00_vc_circle_stroke.png diff --git a/skia/ext/data/vectorcanvastest/circles/01_pc_circle_fill.png b/skia/ext/data/vectorcanvastest/circles/01_pc_circle_fill.png Binary files differnew file mode 100644 index 0000000..92b647d --- /dev/null +++ b/skia/ext/data/vectorcanvastest/circles/01_pc_circle_fill.png diff --git a/skia/ext/data/vectorcanvastest/circles/01_vc_circle_fill.png b/skia/ext/data/vectorcanvastest/circles/01_vc_circle_fill.png Binary files differnew file mode 100644 index 0000000..f5270ce --- /dev/null +++ b/skia/ext/data/vectorcanvastest/circles/01_vc_circle_fill.png diff --git a/skia/ext/data/vectorcanvastest/circles/02_pc_circle_over_strike.png b/skia/ext/data/vectorcanvastest/circles/02_pc_circle_over_strike.png Binary files differnew file mode 100644 index 0000000..64ae06a --- /dev/null +++ b/skia/ext/data/vectorcanvastest/circles/02_pc_circle_over_strike.png diff --git a/skia/ext/data/vectorcanvastest/circles/02_vc_circle_over_strike.png b/skia/ext/data/vectorcanvastest/circles/02_vc_circle_over_strike.png Binary files differnew file mode 100644 index 0000000..4d3d1b0 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/circles/02_vc_circle_over_strike.png diff --git a/skia/ext/data/vectorcanvastest/circles/03_pc_circle_stroke_and_fill.png b/skia/ext/data/vectorcanvastest/circles/03_pc_circle_stroke_and_fill.png Binary files differnew file mode 100644 index 0000000..6aeeb49 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/circles/03_pc_circle_stroke_and_fill.png diff --git a/skia/ext/data/vectorcanvastest/circles/03_vc_circle_stroke_and_fill.png b/skia/ext/data/vectorcanvastest/circles/03_vc_circle_stroke_and_fill.png Binary files differnew file mode 100644 index 0000000..f073a3e --- /dev/null +++ b/skia/ext/data/vectorcanvastest/circles/03_vc_circle_stroke_and_fill.png diff --git a/skia/ext/data/vectorcanvastest/circles/04_pc_mixed_stroke.png b/skia/ext/data/vectorcanvastest/circles/04_pc_mixed_stroke.png Binary files differnew file mode 100644 index 0000000..e4a044f --- /dev/null +++ b/skia/ext/data/vectorcanvastest/circles/04_pc_mixed_stroke.png diff --git a/skia/ext/data/vectorcanvastest/circles/04_vc_mixed_stroke.png b/skia/ext/data/vectorcanvastest/circles/04_vc_mixed_stroke.png Binary files differnew file mode 100644 index 0000000..efd9e3a --- /dev/null +++ b/skia/ext/data/vectorcanvastest/circles/04_vc_mixed_stroke.png diff --git a/skia/ext/data/vectorcanvastest/clippingclean/00_pc_clipped.png b/skia/ext/data/vectorcanvastest/clippingclean/00_pc_clipped.png Binary files differnew file mode 100644 index 0000000..14ff949 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/clippingclean/00_pc_clipped.png diff --git a/skia/ext/data/vectorcanvastest/clippingclean/00_vc_clipped.png b/skia/ext/data/vectorcanvastest/clippingclean/00_vc_clipped.png Binary files differnew file mode 100644 index 0000000..14ff949 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/clippingclean/00_vc_clipped.png diff --git a/skia/ext/data/vectorcanvastest/clippingclean/01_pc_unclipped.png b/skia/ext/data/vectorcanvastest/clippingclean/01_pc_unclipped.png Binary files differnew file mode 100644 index 0000000..436f9a5 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/clippingclean/01_pc_unclipped.png diff --git a/skia/ext/data/vectorcanvastest/clippingclean/01_vc_unclipped.png b/skia/ext/data/vectorcanvastest/clippingclean/01_vc_unclipped.png Binary files differnew file mode 100644 index 0000000..436f9a5 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/clippingclean/01_vc_unclipped.png diff --git a/skia/ext/data/vectorcanvastest/clippingcombined/00_pc_combined.png b/skia/ext/data/vectorcanvastest/clippingcombined/00_pc_combined.png Binary files differnew file mode 100644 index 0000000..14ff949 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/clippingcombined/00_pc_combined.png diff --git a/skia/ext/data/vectorcanvastest/clippingcombined/00_vc_combined.png b/skia/ext/data/vectorcanvastest/clippingcombined/00_vc_combined.png Binary files differnew file mode 100644 index 0000000..14ff949 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/clippingcombined/00_vc_combined.png diff --git a/skia/ext/data/vectorcanvastest/clippingintersect/00_pc_intersect.png b/skia/ext/data/vectorcanvastest/clippingintersect/00_pc_intersect.png Binary files differnew file mode 100644 index 0000000..89df4fb --- /dev/null +++ b/skia/ext/data/vectorcanvastest/clippingintersect/00_pc_intersect.png diff --git a/skia/ext/data/vectorcanvastest/clippingintersect/00_vc_intersect.png b/skia/ext/data/vectorcanvastest/clippingintersect/00_vc_intersect.png Binary files differnew file mode 100644 index 0000000..89df4fb --- /dev/null +++ b/skia/ext/data/vectorcanvastest/clippingintersect/00_vc_intersect.png diff --git a/skia/ext/data/vectorcanvastest/clippingpath/00_pc_path.png b/skia/ext/data/vectorcanvastest/clippingpath/00_pc_path.png Binary files differnew file mode 100644 index 0000000..8807649 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/clippingpath/00_pc_path.png diff --git a/skia/ext/data/vectorcanvastest/clippingpath/00_vc_path.png b/skia/ext/data/vectorcanvastest/clippingpath/00_vc_path.png Binary files differnew file mode 100644 index 0000000..8807649 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/clippingpath/00_vc_path.png diff --git a/skia/ext/data/vectorcanvastest/clippingrect/00_pc_rect.png b/skia/ext/data/vectorcanvastest/clippingrect/00_pc_rect.png Binary files differnew file mode 100644 index 0000000..9c365e1 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/clippingrect/00_pc_rect.png diff --git a/skia/ext/data/vectorcanvastest/clippingrect/00_vc_rect.png b/skia/ext/data/vectorcanvastest/clippingrect/00_vc_rect.png Binary files differnew file mode 100644 index 0000000..9c365e1 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/clippingrect/00_vc_rect.png diff --git a/skia/ext/data/vectorcanvastest/diagonallines/00_pc_nw-se.png b/skia/ext/data/vectorcanvastest/diagonallines/00_pc_nw-se.png Binary files differnew file mode 100644 index 0000000..5736c35 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/diagonallines/00_pc_nw-se.png diff --git a/skia/ext/data/vectorcanvastest/diagonallines/00_vc_nw-se.png b/skia/ext/data/vectorcanvastest/diagonallines/00_vc_nw-se.png Binary files differnew file mode 100644 index 0000000..5736c35 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/diagonallines/00_vc_nw-se.png diff --git a/skia/ext/data/vectorcanvastest/diagonallines/01_pc_sw-ne.png b/skia/ext/data/vectorcanvastest/diagonallines/01_pc_sw-ne.png Binary files differnew file mode 100644 index 0000000..bfffd8a --- /dev/null +++ b/skia/ext/data/vectorcanvastest/diagonallines/01_pc_sw-ne.png diff --git a/skia/ext/data/vectorcanvastest/diagonallines/01_vc_sw-ne.png b/skia/ext/data/vectorcanvastest/diagonallines/01_vc_sw-ne.png Binary files differnew file mode 100644 index 0000000..ae6b753 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/diagonallines/01_vc_sw-ne.png diff --git a/skia/ext/data/vectorcanvastest/diagonallines/02_pc_ne-sw.png b/skia/ext/data/vectorcanvastest/diagonallines/02_pc_ne-sw.png Binary files differnew file mode 100644 index 0000000..75acdad --- /dev/null +++ b/skia/ext/data/vectorcanvastest/diagonallines/02_pc_ne-sw.png diff --git a/skia/ext/data/vectorcanvastest/diagonallines/02_vc_ne-sw.png b/skia/ext/data/vectorcanvastest/diagonallines/02_vc_ne-sw.png Binary files differnew file mode 100644 index 0000000..86a6799 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/diagonallines/02_vc_ne-sw.png diff --git a/skia/ext/data/vectorcanvastest/diagonallines/03_pc_se-nw.png b/skia/ext/data/vectorcanvastest/diagonallines/03_pc_se-nw.png Binary files differnew file mode 100644 index 0000000..50502cc --- /dev/null +++ b/skia/ext/data/vectorcanvastest/diagonallines/03_pc_se-nw.png diff --git a/skia/ext/data/vectorcanvastest/diagonallines/03_vc_se-nw.png b/skia/ext/data/vectorcanvastest/diagonallines/03_vc_se-nw.png Binary files differnew file mode 100644 index 0000000..362f6e7 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/diagonallines/03_vc_se-nw.png diff --git a/skia/ext/data/vectorcanvastest/lineorientation/00_pc_horizontal.png b/skia/ext/data/vectorcanvastest/lineorientation/00_pc_horizontal.png Binary files differnew file mode 100644 index 0000000..7bcd998 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/lineorientation/00_pc_horizontal.png diff --git a/skia/ext/data/vectorcanvastest/lineorientation/00_vc_horizontal.png b/skia/ext/data/vectorcanvastest/lineorientation/00_vc_horizontal.png Binary files differnew file mode 100644 index 0000000..46c9b0a --- /dev/null +++ b/skia/ext/data/vectorcanvastest/lineorientation/00_vc_horizontal.png diff --git a/skia/ext/data/vectorcanvastest/lineorientation/01_pc_vertical.png b/skia/ext/data/vectorcanvastest/lineorientation/01_pc_vertical.png Binary files differnew file mode 100644 index 0000000..09f41db --- /dev/null +++ b/skia/ext/data/vectorcanvastest/lineorientation/01_pc_vertical.png diff --git a/skia/ext/data/vectorcanvastest/lineorientation/01_vc_vertical.png b/skia/ext/data/vectorcanvastest/lineorientation/01_vc_vertical.png Binary files differnew file mode 100644 index 0000000..7f5f1f7 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/lineorientation/01_vc_vertical.png diff --git a/skia/ext/data/vectorcanvastest/lineorientation/02_pc_horizontal_180.png b/skia/ext/data/vectorcanvastest/lineorientation/02_pc_horizontal_180.png Binary files differnew file mode 100644 index 0000000..5966df6 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/lineorientation/02_pc_horizontal_180.png diff --git a/skia/ext/data/vectorcanvastest/lineorientation/02_vc_horizontal_180.png b/skia/ext/data/vectorcanvastest/lineorientation/02_vc_horizontal_180.png Binary files differnew file mode 100644 index 0000000..e43a844 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/lineorientation/02_vc_horizontal_180.png diff --git a/skia/ext/data/vectorcanvastest/lineorientation/03_pc_vertical_180.png b/skia/ext/data/vectorcanvastest/lineorientation/03_pc_vertical_180.png Binary files differnew file mode 100644 index 0000000..9ac4825 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/lineorientation/03_pc_vertical_180.png diff --git a/skia/ext/data/vectorcanvastest/lineorientation/03_vc_vertical_180.png b/skia/ext/data/vectorcanvastest/lineorientation/03_vc_vertical_180.png Binary files differnew file mode 100644 index 0000000..d9e033a --- /dev/null +++ b/skia/ext/data/vectorcanvastest/lineorientation/03_vc_vertical_180.png diff --git a/skia/ext/data/vectorcanvastest/matrix/00_pc_translate1.png b/skia/ext/data/vectorcanvastest/matrix/00_pc_translate1.png Binary files differnew file mode 100644 index 0000000..fe27cb3 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/matrix/00_pc_translate1.png diff --git a/skia/ext/data/vectorcanvastest/matrix/00_vc_translate1.png b/skia/ext/data/vectorcanvastest/matrix/00_vc_translate1.png Binary files differnew file mode 100644 index 0000000..fe27cb3 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/matrix/00_vc_translate1.png diff --git a/skia/ext/data/vectorcanvastest/matrix/01_pc_translate2.png b/skia/ext/data/vectorcanvastest/matrix/01_pc_translate2.png Binary files differnew file mode 100644 index 0000000..406bf57 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/matrix/01_pc_translate2.png diff --git a/skia/ext/data/vectorcanvastest/matrix/01_vc_translate2.png b/skia/ext/data/vectorcanvastest/matrix/01_vc_translate2.png Binary files differnew file mode 100644 index 0000000..406bf57 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/matrix/01_vc_translate2.png diff --git a/skia/ext/data/vectorcanvastest/matrix/02_pc_scale.png b/skia/ext/data/vectorcanvastest/matrix/02_pc_scale.png Binary files differnew file mode 100644 index 0000000..9e94fb0 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/matrix/02_pc_scale.png diff --git a/skia/ext/data/vectorcanvastest/matrix/02_vc_scale.png b/skia/ext/data/vectorcanvastest/matrix/02_vc_scale.png Binary files differnew file mode 100644 index 0000000..fde62aa --- /dev/null +++ b/skia/ext/data/vectorcanvastest/matrix/02_vc_scale.png diff --git a/skia/ext/data/vectorcanvastest/matrix/03_pc_rotate.png b/skia/ext/data/vectorcanvastest/matrix/03_pc_rotate.png Binary files differnew file mode 100644 index 0000000..7a43a2a --- /dev/null +++ b/skia/ext/data/vectorcanvastest/matrix/03_pc_rotate.png diff --git a/skia/ext/data/vectorcanvastest/matrix/03_vc_rotate.png b/skia/ext/data/vectorcanvastest/matrix/03_vc_rotate.png Binary files differnew file mode 100644 index 0000000..7a22b7f --- /dev/null +++ b/skia/ext/data/vectorcanvastest/matrix/03_vc_rotate.png diff --git a/skia/ext/data/vectorcanvastest/patheffects/00_pc_dash_line.png b/skia/ext/data/vectorcanvastest/patheffects/00_pc_dash_line.png Binary files differnew file mode 100644 index 0000000..e08d3e2 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/patheffects/00_pc_dash_line.png diff --git a/skia/ext/data/vectorcanvastest/patheffects/00_vc_dash_line.png b/skia/ext/data/vectorcanvastest/patheffects/00_vc_dash_line.png Binary files differnew file mode 100644 index 0000000..e08d3e2 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/patheffects/00_vc_dash_line.png diff --git a/skia/ext/data/vectorcanvastest/patheffects/01_pc_dash_path.png b/skia/ext/data/vectorcanvastest/patheffects/01_pc_dash_path.png Binary files differnew file mode 100644 index 0000000..3a301354 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/patheffects/01_pc_dash_path.png diff --git a/skia/ext/data/vectorcanvastest/patheffects/01_vc_dash_path.png b/skia/ext/data/vectorcanvastest/patheffects/01_vc_dash_path.png Binary files differnew file mode 100644 index 0000000..7868b9a --- /dev/null +++ b/skia/ext/data/vectorcanvastest/patheffects/01_vc_dash_path.png diff --git a/skia/ext/data/vectorcanvastest/patheffects/02_pc_dash_rect.png b/skia/ext/data/vectorcanvastest/patheffects/02_pc_dash_rect.png Binary files differnew file mode 100644 index 0000000..04f2ceb --- /dev/null +++ b/skia/ext/data/vectorcanvastest/patheffects/02_pc_dash_rect.png diff --git a/skia/ext/data/vectorcanvastest/patheffects/02_vc_dash_rect.png b/skia/ext/data/vectorcanvastest/patheffects/02_vc_dash_rect.png Binary files differnew file mode 100644 index 0000000..5344eee --- /dev/null +++ b/skia/ext/data/vectorcanvastest/patheffects/02_vc_dash_rect.png diff --git a/skia/ext/data/vectorcanvastest/patheffects/03_pc_circle.png b/skia/ext/data/vectorcanvastest/patheffects/03_pc_circle.png Binary files differnew file mode 100644 index 0000000..4c267ef --- /dev/null +++ b/skia/ext/data/vectorcanvastest/patheffects/03_pc_circle.png diff --git a/skia/ext/data/vectorcanvastest/patheffects/03_vc_circle.png b/skia/ext/data/vectorcanvastest/patheffects/03_vc_circle.png Binary files differnew file mode 100644 index 0000000..46ac35d --- /dev/null +++ b/skia/ext/data/vectorcanvastest/patheffects/03_vc_circle.png diff --git a/skia/ext/data/vectorcanvastest/pathorientation/00_pc_drawpath_ltr.png b/skia/ext/data/vectorcanvastest/pathorientation/00_pc_drawpath_ltr.png Binary files differnew file mode 100644 index 0000000..cefbf87 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/pathorientation/00_pc_drawpath_ltr.png diff --git a/skia/ext/data/vectorcanvastest/pathorientation/00_vc_drawpath_ltr.png b/skia/ext/data/vectorcanvastest/pathorientation/00_vc_drawpath_ltr.png Binary files differnew file mode 100644 index 0000000..cefbf87 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/pathorientation/00_vc_drawpath_ltr.png diff --git a/skia/ext/data/vectorcanvastest/pathorientation/01_pc_drawpath_rtl.png b/skia/ext/data/vectorcanvastest/pathorientation/01_pc_drawpath_rtl.png Binary files differnew file mode 100644 index 0000000..7bcd998 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/pathorientation/01_pc_drawpath_rtl.png diff --git a/skia/ext/data/vectorcanvastest/pathorientation/01_vc_drawpath_rtl.png b/skia/ext/data/vectorcanvastest/pathorientation/01_vc_drawpath_rtl.png Binary files differnew file mode 100644 index 0000000..46c9b0a --- /dev/null +++ b/skia/ext/data/vectorcanvastest/pathorientation/01_vc_drawpath_rtl.png diff --git a/skia/ext/data/vectorcanvastest/uninitialized/00_pc_empty.png b/skia/ext/data/vectorcanvastest/uninitialized/00_pc_empty.png Binary files differnew file mode 100644 index 0000000..dec6694 --- /dev/null +++ b/skia/ext/data/vectorcanvastest/uninitialized/00_pc_empty.png diff --git a/skia/ext/data/vectorcanvastest/uninitialized/00_vc_empty.png b/skia/ext/data/vectorcanvastest/uninitialized/00_vc_empty.png Binary files differnew file mode 100644 index 0000000..9cbff6e --- /dev/null +++ b/skia/ext/data/vectorcanvastest/uninitialized/00_vc_empty.png diff --git a/skia/ext/vector_canvas_unittest.cc b/skia/ext/vector_canvas_unittest.cc index 03e920f..9fbb2d7 100644 --- a/skia/ext/vector_canvas_unittest.cc +++ b/skia/ext/vector_canvas_unittest.cc @@ -25,59 +25,6 @@ namespace { const wchar_t* const kGenerateSwitch = L"vector-canvas-generate"; -// Base class for unit test that uses data. It initializes a directory path -// based on the test's name. -class DataUnitTest : public testing::Test { - public: - DataUnitTest(const std::wstring& base_path) : base_path_(base_path) { } - - protected: - // Load the test's data path. - virtual void SetUp() { - const testing::TestInfo& test_info = - *testing::UnitTest::GetInstance()->current_test_info(); - PathService::Get(base::DIR_SOURCE_ROOT, &test_dir_); - file_util::AppendToPath(&test_dir_, base_path_); - file_util::AppendToPath(&test_dir_, L"data"); - file_util::AppendToPath(&test_dir_, - ASCIIToWide(test_info.test_case_name())); - file_util::AppendToPath(&test_dir_, ASCIIToWide(test_info.name())); - - // Hack for a quick lowercase. We assume all the tests names are ASCII. - std::string tmp(WideToASCII(test_dir_)); - for (size_t i = 0; i < tmp.size(); ++i) - tmp[i] = ToLowerASCII(tmp[i]); - test_dir_ = ASCIIToWide(tmp); - } - - // Returns the fully qualified path of directory containing test data files. - const std::wstring& test_dir() const { - return test_dir_; - } - - // Returns the fully qualified path of a data file. - std::wstring test_file(const std::wstring& filename) const { - // Hack for a quick lowercase. We assume all the test data file names are - // ASCII. - std::string tmp(WideToASCII(filename)); - for (size_t i = 0; i < tmp.size(); ++i) - tmp[i] = ToLowerASCII(tmp[i]); - - std::wstring path(test_dir()); - file_util::AppendToPath(&path, ASCIIToWide(tmp)); - return path; - } - - private: - // Path where the unit test is coming from: base, net, chrome, etc. - std::wstring base_path_; - - // Path to directory used to contain the test data. - std::wstring test_dir_; - - DISALLOW_EVIL_CONSTRUCTORS(DataUnitTest); -}; - // Lightweight HDC management. class Context { public: @@ -249,10 +196,8 @@ class Image { }; // Base for tests. Capability to process an image. -class ImageTest : public DataUnitTest { +class ImageTest : public testing::Test { public: - typedef DataUnitTest parent; - // In what state is the test running. enum ProcessAction { GENERATE, @@ -260,21 +205,47 @@ class ImageTest : public DataUnitTest { NOOP, }; - ImageTest(const std::wstring& base_path, ProcessAction default_action) - : parent(base_path), - action_(default_action) { + ImageTest(ProcessAction default_action) + : action_(default_action) { } protected: virtual void SetUp() { - parent::SetUp(); + const testing::TestInfo& test_info = + *testing::UnitTest::GetInstance()->current_test_info(); + PathService::Get(base::DIR_SOURCE_ROOT, &test_dir_); + file_util::AppendToPath(&test_dir_, L"skia"); + file_util::AppendToPath(&test_dir_, L"ext"); + file_util::AppendToPath(&test_dir_, L"data"); + file_util::AppendToPath(&test_dir_, + ASCIIToWide(test_info.test_case_name())); + file_util::AppendToPath(&test_dir_, ASCIIToWide(test_info.name())); + + // Hack for a quick lowercase. We assume all the tests names are ASCII. + std::string tmp(WideToASCII(test_dir_)); + for (size_t i = 0; i < tmp.size(); ++i) + tmp[i] = ToLowerASCII(tmp[i]); + test_dir_ = ASCIIToWide(tmp); if (action_ == GENERATE) { // Make sure the directory exist. - file_util::CreateDirectory(test_dir()); + file_util::CreateDirectory(test_dir_); } } + // Returns the fully qualified path of a data file. + std::wstring test_file(const std::wstring& filename) const { + // Hack for a quick lowercase. We assume all the test data file names are + // ASCII. + std::string tmp(WideToASCII(filename)); + for (size_t i = 0; i < tmp.size(); ++i) + tmp[i] = ToLowerASCII(tmp[i]); + + std::wstring path(test_dir_); + file_util::AppendToPath(&path, ASCIIToWide(tmp)); + return path; + } + // Compares or saves the bitmap currently loaded in the context, depending on // kGenerating value. Returns 0 on success or any positive value between ]0, // 100] on failure. The return value is the percentage of difference between @@ -314,6 +285,9 @@ class ImageTest : public DataUnitTest { ProcessAction action_; + // Path to directory used to contain the test data. + std::wstring test_dir_; + DISALLOW_EVIL_CONSTRUCTORS(ImageTest); }; @@ -367,7 +341,7 @@ class VectorCanvasTest : public ImageTest { public: typedef ImageTest parent; - VectorCanvasTest() : parent(L"base", CurrentMode()), compare_canvas_(true) { + VectorCanvasTest() : parent(CurrentMode()), compare_canvas_(true) { } protected: |