Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: skia/ext/vector_canvas_unittest.cc

Issue 2819011: TTF: Reenable some disabled tests. (Closed)
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« sandbox/src/dep_test.cc ('K') | « sandbox/src/dep_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #if !defined(OS_WIN) 7 #if !defined(OS_WIN)
8 #include <unistd.h> 8 #include <unistd.h>
9 #endif 9 #endif
10 10
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 pcanvas_->clipRegion(old_region, SkRegion::kReplace_Op); 917 pcanvas_->clipRegion(old_region, SkRegion::kReplace_Op);
918 } 918 }
919 { 919 {
920 // Verify that the clipping region has been fixed back. 920 // Verify that the clipping region has been fixed back.
921 vcanvas_->drawBitmap(bitmap, 55, 3, NULL); 921 vcanvas_->drawBitmap(bitmap, 55, 3, NULL);
922 pcanvas_->drawBitmap(bitmap, 55, 3, NULL); 922 pcanvas_->drawBitmap(bitmap, 55, 3, NULL);
923 EXPECT_EQ(0., ProcessImage(FILE_PATH_LITERAL("unclipped"))); 923 EXPECT_EQ(0., ProcessImage(FILE_PATH_LITERAL("unclipped")));
924 } 924 }
925 } 925 }
926 926
927 TEST_F(VectorCanvasTest, DISABLED_Matrix) { 927 TEST_F(VectorCanvasTest, FAILS_Matrix) {
James Hawkins 2010/06/18 00:32:38 Should open a bug?
928 SkBitmap bitmap; 928 SkBitmap bitmap;
929 LoadPngFileToSkBitmap(test_file(L"..\\bitmaps\\bitmap_opaque.png"), &bitmap, 929 LoadPngFileToSkBitmap(test_file(L"..\\bitmaps\\bitmap_opaque.png"), &bitmap,
930 true); 930 true);
931 { 931 {
932 vcanvas_->translate(15, 3); 932 vcanvas_->translate(15, 3);
933 pcanvas_->translate(15, 3); 933 pcanvas_->translate(15, 3);
934 vcanvas_->drawBitmap(bitmap, 0, 0, NULL); 934 vcanvas_->drawBitmap(bitmap, 0, 0, NULL);
935 pcanvas_->drawBitmap(bitmap, 0, 0, NULL); 935 pcanvas_->drawBitmap(bitmap, 0, 0, NULL);
936 EXPECT_EQ(0., ProcessImage(FILE_PATH_LITERAL("translate1"))); 936 EXPECT_EQ(0., ProcessImage(FILE_PATH_LITERAL("translate1")));
937 } 937 }
(...skipping 25 matching lines...) Expand all
963 { 963 {
964 vcanvas_->rotate(67); 964 vcanvas_->rotate(67);
965 pcanvas_->rotate(67); 965 pcanvas_->rotate(67);
966 vcanvas_->drawBitmap(bitmap, 20, -50, NULL); 966 vcanvas_->drawBitmap(bitmap, 20, -50, NULL);
967 pcanvas_->drawBitmap(bitmap, 20, -50, NULL); 967 pcanvas_->drawBitmap(bitmap, 20, -50, NULL);
968 EXPECT_EQ(0., ProcessImage(FILE_PATH_LITERAL("rotate"))); 968 EXPECT_EQ(0., ProcessImage(FILE_PATH_LITERAL("rotate")));
969 } 969 }
970 } 970 }
971 971
972 } // namespace skia 972 } // namespace skia
OLDNEW
« sandbox/src/dep_test.cc ('K') | « sandbox/src/dep_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698