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

Unified Diff: skia/ext/vector_canvas_unittest.cc

Issue 9416017: Optionally clear PlatformCanvas instances. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Address comments. Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/ext/platform_canvas_win.cc ('k') | skia/ext/vector_platform_device_emf_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/vector_canvas_unittest.cc
===================================================================
--- skia/ext/vector_canvas_unittest.cc (revision 127021)
+++ skia/ext/vector_canvas_unittest.cc (working copy)
@@ -448,26 +448,6 @@
////////////////////////////////////////////////////////////////////////////////
// Actual tests
-TEST_F(VectorCanvasTest, Uninitialized) {
- // Do a little mubadumba do get uninitialized stuff.
- VectorCanvasTest::TearDown();
-
- // The goal is not to verify that have the same uninitialized data.
- compare_canvas_ = false;
-
- context_ = new Context();
- bitmap_ = new Bitmap(*context_, size_, size_);
- vcanvas_ = new VectorCanvas(VectorPlatformDeviceEmf::CreateDevice(
- size_, size_, true, context_->context()));
- pcanvas_ = new PlatformCanvas(size_, size_, false);
-
- // VectorCanvas default initialization is black.
- // PlatformCanvas default initialization is almost white 0x01FFFEFD (invalid
- // Skia color) in both Debug and Release. See magicTransparencyColor in
- // platform_device.cc
- EXPECT_EQ(0., ProcessImage(FILE_PATH_LITERAL("empty")));
-}
-
TEST_F(VectorCanvasTest, BasicDrawing) {
EXPECT_EQ(Image(*vcanvas_).PercentageDifferent(Image(*pcanvas_)), 0.)
<< L"clean";
« no previous file with comments | « skia/ext/platform_canvas_win.cc ('k') | skia/ext/vector_platform_device_emf_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698