summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-08 21:21:30 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-08 21:21:30 +0000
commitcdc1e9c09df101960cf95600e97c49936e929c2c (patch)
tree93d30e67b40dbd8217915153893710b15632d4bf /skia
parentdd26501ef315e241911a31a8a98027c9bbb65560 (diff)
downloadchromium_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')
-rw-r--r--skia/ext/data/vectorcanvastest/basicdrawing/00_pc_clean.pngbin0 -> 289 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/basicdrawing/00_vc_clean.pngbin0 -> 289 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/basicdrawing/01_pc_drawargb.pngbin0 -> 289 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/basicdrawing/01_vc_drawargb.pngbin0 -> 289 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/basicdrawing/02_pc_drawline_black.pngbin0 -> 537 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/basicdrawing/02_vc_drawline_black.pngbin0 -> 537 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/basicdrawing/03_pc_drawrect_green.pngbin0 -> 417 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/basicdrawing/03_vc_drawrect_green.pngbin0 -> 417 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/basicdrawing/04_pc_drawrect_noop.pngbin0 -> 417 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/basicdrawing/04_vc_drawrect_noop.pngbin0 -> 417 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/basicdrawing/05_pc_drawrect_noop.pngbin0 -> 433 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/basicdrawing/05_vc_drawrect_noop.pngbin0 -> 433 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/basicdrawing/06_pc_drawpaint_black.pngbin0 -> 109 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/basicdrawing/06_vc_drawpaint_black.pngbin0 -> 109 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/basicdrawing/07_pc_drawline_left_to_right.pngbin0 -> 126 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/basicdrawing/07_vc_drawline_left_to_right.pngbin0 -> 126 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/basicdrawing/08_pc_drawline_red.pngbin0 -> 271 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/basicdrawing/08_vc_drawline_red.pngbin0 -> 271 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/bitmaps/00_pc_opaque.pngbin0 -> 5140 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/bitmaps/00_vc_opaque.pngbin0 -> 5140 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/bitmaps/01_pc_alpha.pngbin0 -> 2699 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/bitmaps/01_vc_alpha.pngbin0 -> 2699 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/bitmaps/bitmap_alpha.pngbin0 -> 422 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/bitmaps/bitmap_opaque.pngbin0 -> 3287 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/circles/00_pc_circle_stroke.pngbin0 -> 383 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/circles/00_vc_circle_stroke.pngbin0 -> 410 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/circles/01_pc_circle_fill.pngbin0 -> 463 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/circles/01_vc_circle_fill.pngbin0 -> 481 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/circles/02_pc_circle_over_strike.pngbin0 -> 477 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/circles/02_vc_circle_over_strike.pngbin0 -> 513 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/circles/03_pc_circle_stroke_and_fill.pngbin0 -> 566 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/circles/03_vc_circle_stroke_and_fill.pngbin0 -> 602 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/circles/04_pc_mixed_stroke.pngbin0 -> 1180 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/circles/04_vc_mixed_stroke.pngbin0 -> 1228 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/clippingclean/00_pc_clipped.pngbin0 -> 1354 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/clippingclean/00_vc_clipped.pngbin0 -> 1354 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/clippingclean/01_pc_unclipped.pngbin0 -> 4683 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/clippingclean/01_vc_unclipped.pngbin0 -> 4683 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/clippingcombined/00_pc_combined.pngbin0 -> 1354 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/clippingcombined/00_vc_combined.pngbin0 -> 1354 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/clippingintersect/00_pc_intersect.pngbin0 -> 1218 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/clippingintersect/00_vc_intersect.pngbin0 -> 1218 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/clippingpath/00_pc_path.pngbin0 -> 1132 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/clippingpath/00_vc_path.pngbin0 -> 1132 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/clippingrect/00_pc_rect.pngbin0 -> 1459 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/clippingrect/00_vc_rect.pngbin0 -> 1459 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/diagonallines/00_pc_nw-se.pngbin0 -> 536 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/diagonallines/00_vc_nw-se.pngbin0 -> 536 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/diagonallines/01_pc_sw-ne.pngbin0 -> 735 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/diagonallines/01_vc_sw-ne.pngbin0 -> 737 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/diagonallines/02_pc_ne-sw.pngbin0 -> 756 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/diagonallines/02_vc_ne-sw.pngbin0 -> 760 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/diagonallines/03_pc_se-nw.pngbin0 -> 765 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/diagonallines/03_vc_se-nw.pngbin0 -> 781 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/lineorientation/00_pc_horizontal.pngbin0 -> 313 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/lineorientation/00_vc_horizontal.pngbin0 -> 319 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/lineorientation/01_pc_vertical.pngbin0 -> 328 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/lineorientation/01_vc_vertical.pngbin0 -> 344 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/lineorientation/02_pc_horizontal_180.pngbin0 -> 333 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/lineorientation/02_vc_horizontal_180.pngbin0 -> 348 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/lineorientation/03_pc_vertical_180.pngbin0 -> 332 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/lineorientation/03_vc_vertical_180.pngbin0 -> 351 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/matrix/00_pc_translate1.pngbin0 -> 5139 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/matrix/00_vc_translate1.pngbin0 -> 5139 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/matrix/01_pc_translate2.pngbin0 -> 4645 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/matrix/01_vc_translate2.pngbin0 -> 4645 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/matrix/02_pc_scale.pngbin0 -> 6566 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/matrix/02_vc_scale.pngbin0 -> 12292 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/matrix/03_pc_rotate.pngbin0 -> 9749 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/matrix/03_vc_rotate.pngbin0 -> 13795 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/patheffects/00_pc_dash_line.pngbin0 -> 299 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/patheffects/00_vc_dash_line.pngbin0 -> 299 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/patheffects/01_pc_dash_path.pngbin0 -> 348 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/patheffects/01_vc_dash_path.pngbin0 -> 343 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/patheffects/02_pc_dash_rect.pngbin0 -> 387 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/patheffects/02_vc_dash_rect.pngbin0 -> 395 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/patheffects/03_pc_circle.pngbin0 -> 497 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/patheffects/03_vc_circle.pngbin0 -> 519 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/pathorientation/00_pc_drawpath_ltr.pngbin0 -> 307 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/pathorientation/00_vc_drawpath_ltr.pngbin0 -> 307 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/pathorientation/01_pc_drawpath_rtl.pngbin0 -> 313 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/pathorientation/01_vc_drawpath_rtl.pngbin0 -> 319 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/uninitialized/00_pc_empty.pngbin0 -> 290 bytes
-rw-r--r--skia/ext/data/vectorcanvastest/uninitialized/00_vc_empty.pngbin0 -> 109 bytes
-rw-r--r--skia/ext/vector_canvas_unittest.cc98
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
new file mode 100644
index 0000000..a5435f2
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/basicdrawing/00_pc_clean.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/00_vc_clean.png b/skia/ext/data/vectorcanvastest/basicdrawing/00_vc_clean.png
new file mode 100644
index 0000000..a5435f2
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/basicdrawing/00_vc_clean.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/01_pc_drawargb.png b/skia/ext/data/vectorcanvastest/basicdrawing/01_pc_drawargb.png
new file mode 100644
index 0000000..a5435f2
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/basicdrawing/01_pc_drawargb.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/01_vc_drawargb.png b/skia/ext/data/vectorcanvastest/basicdrawing/01_vc_drawargb.png
new file mode 100644
index 0000000..a5435f2
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/basicdrawing/01_vc_drawargb.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/02_pc_drawline_black.png b/skia/ext/data/vectorcanvastest/basicdrawing/02_pc_drawline_black.png
new file mode 100644
index 0000000..c21fdf1
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/basicdrawing/02_pc_drawline_black.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/02_vc_drawline_black.png b/skia/ext/data/vectorcanvastest/basicdrawing/02_vc_drawline_black.png
new file mode 100644
index 0000000..c21fdf1
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/basicdrawing/02_vc_drawline_black.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/03_pc_drawrect_green.png b/skia/ext/data/vectorcanvastest/basicdrawing/03_pc_drawrect_green.png
new file mode 100644
index 0000000..dfc46a8
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/basicdrawing/03_pc_drawrect_green.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/03_vc_drawrect_green.png b/skia/ext/data/vectorcanvastest/basicdrawing/03_vc_drawrect_green.png
new file mode 100644
index 0000000..dfc46a8
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/basicdrawing/03_vc_drawrect_green.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/04_pc_drawrect_noop.png b/skia/ext/data/vectorcanvastest/basicdrawing/04_pc_drawrect_noop.png
new file mode 100644
index 0000000..dfc46a8
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/basicdrawing/04_pc_drawrect_noop.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/04_vc_drawrect_noop.png b/skia/ext/data/vectorcanvastest/basicdrawing/04_vc_drawrect_noop.png
new file mode 100644
index 0000000..dfc46a8
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/basicdrawing/04_vc_drawrect_noop.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/05_pc_drawrect_noop.png b/skia/ext/data/vectorcanvastest/basicdrawing/05_pc_drawrect_noop.png
new file mode 100644
index 0000000..69cc6dc
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/basicdrawing/05_pc_drawrect_noop.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/05_vc_drawrect_noop.png b/skia/ext/data/vectorcanvastest/basicdrawing/05_vc_drawrect_noop.png
new file mode 100644
index 0000000..69cc6dc
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/basicdrawing/05_vc_drawrect_noop.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/06_pc_drawpaint_black.png b/skia/ext/data/vectorcanvastest/basicdrawing/06_pc_drawpaint_black.png
new file mode 100644
index 0000000..9cbff6e
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/basicdrawing/06_pc_drawpaint_black.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/06_vc_drawpaint_black.png b/skia/ext/data/vectorcanvastest/basicdrawing/06_vc_drawpaint_black.png
new file mode 100644
index 0000000..9cbff6e
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/basicdrawing/06_vc_drawpaint_black.png
Binary files differ
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
new file mode 100644
index 0000000..bbdfc36
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/basicdrawing/07_pc_drawline_left_to_right.png
Binary files differ
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
new file mode 100644
index 0000000..bbdfc36
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/basicdrawing/07_vc_drawline_left_to_right.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/08_pc_drawline_red.png b/skia/ext/data/vectorcanvastest/basicdrawing/08_pc_drawline_red.png
new file mode 100644
index 0000000..9dc35f0
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/basicdrawing/08_pc_drawline_red.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/basicdrawing/08_vc_drawline_red.png b/skia/ext/data/vectorcanvastest/basicdrawing/08_vc_drawline_red.png
new file mode 100644
index 0000000..9dc35f0
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/basicdrawing/08_vc_drawline_red.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/bitmaps/00_pc_opaque.png b/skia/ext/data/vectorcanvastest/bitmaps/00_pc_opaque.png
new file mode 100644
index 0000000..812b1ca
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/bitmaps/00_pc_opaque.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/bitmaps/00_vc_opaque.png b/skia/ext/data/vectorcanvastest/bitmaps/00_vc_opaque.png
new file mode 100644
index 0000000..812b1ca
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/bitmaps/00_vc_opaque.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/bitmaps/01_pc_alpha.png b/skia/ext/data/vectorcanvastest/bitmaps/01_pc_alpha.png
new file mode 100644
index 0000000..1d1342b
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/bitmaps/01_pc_alpha.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/bitmaps/01_vc_alpha.png b/skia/ext/data/vectorcanvastest/bitmaps/01_vc_alpha.png
new file mode 100644
index 0000000..1d1342b
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/bitmaps/01_vc_alpha.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/bitmaps/bitmap_alpha.png b/skia/ext/data/vectorcanvastest/bitmaps/bitmap_alpha.png
new file mode 100644
index 0000000..a19d09d
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/bitmaps/bitmap_alpha.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/bitmaps/bitmap_opaque.png b/skia/ext/data/vectorcanvastest/bitmaps/bitmap_opaque.png
new file mode 100644
index 0000000..3560d27
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/bitmaps/bitmap_opaque.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/circles/00_pc_circle_stroke.png b/skia/ext/data/vectorcanvastest/circles/00_pc_circle_stroke.png
new file mode 100644
index 0000000..896631b
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/circles/00_pc_circle_stroke.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/circles/00_vc_circle_stroke.png b/skia/ext/data/vectorcanvastest/circles/00_vc_circle_stroke.png
new file mode 100644
index 0000000..c265be3
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/circles/00_vc_circle_stroke.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/circles/01_pc_circle_fill.png b/skia/ext/data/vectorcanvastest/circles/01_pc_circle_fill.png
new file mode 100644
index 0000000..92b647d
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/circles/01_pc_circle_fill.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/circles/01_vc_circle_fill.png b/skia/ext/data/vectorcanvastest/circles/01_vc_circle_fill.png
new file mode 100644
index 0000000..f5270ce
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/circles/01_vc_circle_fill.png
Binary files differ
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
new file mode 100644
index 0000000..64ae06a
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/circles/02_pc_circle_over_strike.png
Binary files differ
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
new file mode 100644
index 0000000..4d3d1b0
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/circles/02_vc_circle_over_strike.png
Binary files differ
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
new file mode 100644
index 0000000..6aeeb49
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/circles/03_pc_circle_stroke_and_fill.png
Binary files differ
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
new file mode 100644
index 0000000..f073a3e
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/circles/03_vc_circle_stroke_and_fill.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/circles/04_pc_mixed_stroke.png b/skia/ext/data/vectorcanvastest/circles/04_pc_mixed_stroke.png
new file mode 100644
index 0000000..e4a044f
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/circles/04_pc_mixed_stroke.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/circles/04_vc_mixed_stroke.png b/skia/ext/data/vectorcanvastest/circles/04_vc_mixed_stroke.png
new file mode 100644
index 0000000..efd9e3a
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/circles/04_vc_mixed_stroke.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/clippingclean/00_pc_clipped.png b/skia/ext/data/vectorcanvastest/clippingclean/00_pc_clipped.png
new file mode 100644
index 0000000..14ff949
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/clippingclean/00_pc_clipped.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/clippingclean/00_vc_clipped.png b/skia/ext/data/vectorcanvastest/clippingclean/00_vc_clipped.png
new file mode 100644
index 0000000..14ff949
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/clippingclean/00_vc_clipped.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/clippingclean/01_pc_unclipped.png b/skia/ext/data/vectorcanvastest/clippingclean/01_pc_unclipped.png
new file mode 100644
index 0000000..436f9a5
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/clippingclean/01_pc_unclipped.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/clippingclean/01_vc_unclipped.png b/skia/ext/data/vectorcanvastest/clippingclean/01_vc_unclipped.png
new file mode 100644
index 0000000..436f9a5
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/clippingclean/01_vc_unclipped.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/clippingcombined/00_pc_combined.png b/skia/ext/data/vectorcanvastest/clippingcombined/00_pc_combined.png
new file mode 100644
index 0000000..14ff949
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/clippingcombined/00_pc_combined.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/clippingcombined/00_vc_combined.png b/skia/ext/data/vectorcanvastest/clippingcombined/00_vc_combined.png
new file mode 100644
index 0000000..14ff949
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/clippingcombined/00_vc_combined.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/clippingintersect/00_pc_intersect.png b/skia/ext/data/vectorcanvastest/clippingintersect/00_pc_intersect.png
new file mode 100644
index 0000000..89df4fb
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/clippingintersect/00_pc_intersect.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/clippingintersect/00_vc_intersect.png b/skia/ext/data/vectorcanvastest/clippingintersect/00_vc_intersect.png
new file mode 100644
index 0000000..89df4fb
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/clippingintersect/00_vc_intersect.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/clippingpath/00_pc_path.png b/skia/ext/data/vectorcanvastest/clippingpath/00_pc_path.png
new file mode 100644
index 0000000..8807649
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/clippingpath/00_pc_path.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/clippingpath/00_vc_path.png b/skia/ext/data/vectorcanvastest/clippingpath/00_vc_path.png
new file mode 100644
index 0000000..8807649
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/clippingpath/00_vc_path.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/clippingrect/00_pc_rect.png b/skia/ext/data/vectorcanvastest/clippingrect/00_pc_rect.png
new file mode 100644
index 0000000..9c365e1
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/clippingrect/00_pc_rect.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/clippingrect/00_vc_rect.png b/skia/ext/data/vectorcanvastest/clippingrect/00_vc_rect.png
new file mode 100644
index 0000000..9c365e1
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/clippingrect/00_vc_rect.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/diagonallines/00_pc_nw-se.png b/skia/ext/data/vectorcanvastest/diagonallines/00_pc_nw-se.png
new file mode 100644
index 0000000..5736c35
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/diagonallines/00_pc_nw-se.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/diagonallines/00_vc_nw-se.png b/skia/ext/data/vectorcanvastest/diagonallines/00_vc_nw-se.png
new file mode 100644
index 0000000..5736c35
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/diagonallines/00_vc_nw-se.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/diagonallines/01_pc_sw-ne.png b/skia/ext/data/vectorcanvastest/diagonallines/01_pc_sw-ne.png
new file mode 100644
index 0000000..bfffd8a
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/diagonallines/01_pc_sw-ne.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/diagonallines/01_vc_sw-ne.png b/skia/ext/data/vectorcanvastest/diagonallines/01_vc_sw-ne.png
new file mode 100644
index 0000000..ae6b753
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/diagonallines/01_vc_sw-ne.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/diagonallines/02_pc_ne-sw.png b/skia/ext/data/vectorcanvastest/diagonallines/02_pc_ne-sw.png
new file mode 100644
index 0000000..75acdad
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/diagonallines/02_pc_ne-sw.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/diagonallines/02_vc_ne-sw.png b/skia/ext/data/vectorcanvastest/diagonallines/02_vc_ne-sw.png
new file mode 100644
index 0000000..86a6799
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/diagonallines/02_vc_ne-sw.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/diagonallines/03_pc_se-nw.png b/skia/ext/data/vectorcanvastest/diagonallines/03_pc_se-nw.png
new file mode 100644
index 0000000..50502cc
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/diagonallines/03_pc_se-nw.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/diagonallines/03_vc_se-nw.png b/skia/ext/data/vectorcanvastest/diagonallines/03_vc_se-nw.png
new file mode 100644
index 0000000..362f6e7
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/diagonallines/03_vc_se-nw.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/lineorientation/00_pc_horizontal.png b/skia/ext/data/vectorcanvastest/lineorientation/00_pc_horizontal.png
new file mode 100644
index 0000000..7bcd998
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/lineorientation/00_pc_horizontal.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/lineorientation/00_vc_horizontal.png b/skia/ext/data/vectorcanvastest/lineorientation/00_vc_horizontal.png
new file mode 100644
index 0000000..46c9b0a
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/lineorientation/00_vc_horizontal.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/lineorientation/01_pc_vertical.png b/skia/ext/data/vectorcanvastest/lineorientation/01_pc_vertical.png
new file mode 100644
index 0000000..09f41db
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/lineorientation/01_pc_vertical.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/lineorientation/01_vc_vertical.png b/skia/ext/data/vectorcanvastest/lineorientation/01_vc_vertical.png
new file mode 100644
index 0000000..7f5f1f7
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/lineorientation/01_vc_vertical.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/lineorientation/02_pc_horizontal_180.png b/skia/ext/data/vectorcanvastest/lineorientation/02_pc_horizontal_180.png
new file mode 100644
index 0000000..5966df6
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/lineorientation/02_pc_horizontal_180.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/lineorientation/02_vc_horizontal_180.png b/skia/ext/data/vectorcanvastest/lineorientation/02_vc_horizontal_180.png
new file mode 100644
index 0000000..e43a844
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/lineorientation/02_vc_horizontal_180.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/lineorientation/03_pc_vertical_180.png b/skia/ext/data/vectorcanvastest/lineorientation/03_pc_vertical_180.png
new file mode 100644
index 0000000..9ac4825
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/lineorientation/03_pc_vertical_180.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/lineorientation/03_vc_vertical_180.png b/skia/ext/data/vectorcanvastest/lineorientation/03_vc_vertical_180.png
new file mode 100644
index 0000000..d9e033a
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/lineorientation/03_vc_vertical_180.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/matrix/00_pc_translate1.png b/skia/ext/data/vectorcanvastest/matrix/00_pc_translate1.png
new file mode 100644
index 0000000..fe27cb3
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/matrix/00_pc_translate1.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/matrix/00_vc_translate1.png b/skia/ext/data/vectorcanvastest/matrix/00_vc_translate1.png
new file mode 100644
index 0000000..fe27cb3
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/matrix/00_vc_translate1.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/matrix/01_pc_translate2.png b/skia/ext/data/vectorcanvastest/matrix/01_pc_translate2.png
new file mode 100644
index 0000000..406bf57
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/matrix/01_pc_translate2.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/matrix/01_vc_translate2.png b/skia/ext/data/vectorcanvastest/matrix/01_vc_translate2.png
new file mode 100644
index 0000000..406bf57
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/matrix/01_vc_translate2.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/matrix/02_pc_scale.png b/skia/ext/data/vectorcanvastest/matrix/02_pc_scale.png
new file mode 100644
index 0000000..9e94fb0
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/matrix/02_pc_scale.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/matrix/02_vc_scale.png b/skia/ext/data/vectorcanvastest/matrix/02_vc_scale.png
new file mode 100644
index 0000000..fde62aa
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/matrix/02_vc_scale.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/matrix/03_pc_rotate.png b/skia/ext/data/vectorcanvastest/matrix/03_pc_rotate.png
new file mode 100644
index 0000000..7a43a2a
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/matrix/03_pc_rotate.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/matrix/03_vc_rotate.png b/skia/ext/data/vectorcanvastest/matrix/03_vc_rotate.png
new file mode 100644
index 0000000..7a22b7f
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/matrix/03_vc_rotate.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/patheffects/00_pc_dash_line.png b/skia/ext/data/vectorcanvastest/patheffects/00_pc_dash_line.png
new file mode 100644
index 0000000..e08d3e2
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/patheffects/00_pc_dash_line.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/patheffects/00_vc_dash_line.png b/skia/ext/data/vectorcanvastest/patheffects/00_vc_dash_line.png
new file mode 100644
index 0000000..e08d3e2
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/patheffects/00_vc_dash_line.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/patheffects/01_pc_dash_path.png b/skia/ext/data/vectorcanvastest/patheffects/01_pc_dash_path.png
new file mode 100644
index 0000000..3a301354
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/patheffects/01_pc_dash_path.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/patheffects/01_vc_dash_path.png b/skia/ext/data/vectorcanvastest/patheffects/01_vc_dash_path.png
new file mode 100644
index 0000000..7868b9a
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/patheffects/01_vc_dash_path.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/patheffects/02_pc_dash_rect.png b/skia/ext/data/vectorcanvastest/patheffects/02_pc_dash_rect.png
new file mode 100644
index 0000000..04f2ceb
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/patheffects/02_pc_dash_rect.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/patheffects/02_vc_dash_rect.png b/skia/ext/data/vectorcanvastest/patheffects/02_vc_dash_rect.png
new file mode 100644
index 0000000..5344eee
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/patheffects/02_vc_dash_rect.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/patheffects/03_pc_circle.png b/skia/ext/data/vectorcanvastest/patheffects/03_pc_circle.png
new file mode 100644
index 0000000..4c267ef
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/patheffects/03_pc_circle.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/patheffects/03_vc_circle.png b/skia/ext/data/vectorcanvastest/patheffects/03_vc_circle.png
new file mode 100644
index 0000000..46ac35d
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/patheffects/03_vc_circle.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/pathorientation/00_pc_drawpath_ltr.png b/skia/ext/data/vectorcanvastest/pathorientation/00_pc_drawpath_ltr.png
new file mode 100644
index 0000000..cefbf87
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/pathorientation/00_pc_drawpath_ltr.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/pathorientation/00_vc_drawpath_ltr.png b/skia/ext/data/vectorcanvastest/pathorientation/00_vc_drawpath_ltr.png
new file mode 100644
index 0000000..cefbf87
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/pathorientation/00_vc_drawpath_ltr.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/pathorientation/01_pc_drawpath_rtl.png b/skia/ext/data/vectorcanvastest/pathorientation/01_pc_drawpath_rtl.png
new file mode 100644
index 0000000..7bcd998
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/pathorientation/01_pc_drawpath_rtl.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/pathorientation/01_vc_drawpath_rtl.png b/skia/ext/data/vectorcanvastest/pathorientation/01_vc_drawpath_rtl.png
new file mode 100644
index 0000000..46c9b0a
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/pathorientation/01_vc_drawpath_rtl.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/uninitialized/00_pc_empty.png b/skia/ext/data/vectorcanvastest/uninitialized/00_pc_empty.png
new file mode 100644
index 0000000..dec6694
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/uninitialized/00_pc_empty.png
Binary files differ
diff --git a/skia/ext/data/vectorcanvastest/uninitialized/00_vc_empty.png b/skia/ext/data/vectorcanvastest/uninitialized/00_vc_empty.png
new file mode 100644
index 0000000..9cbff6e
--- /dev/null
+++ b/skia/ext/data/vectorcanvastest/uninitialized/00_vc_empty.png
Binary files differ
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: