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

Unified Diff: Source/platform/DragImageTest.cpp

Issue 1290133002: SkImage-ify DragImage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: expectations Created 5 years, 4 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 | « Source/platform/DragImage.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/DragImageTest.cpp
diff --git a/Source/platform/DragImageTest.cpp b/Source/platform/DragImageTest.cpp
index 7bd55df019c95d5bcb5555e668bb55062f3ee00d..2659aa9e1de38e4a21ce0b24ef067316d3891495 100644
--- a/Source/platform/DragImageTest.cpp
+++ b/Source/platform/DragImageTest.cpp
@@ -118,29 +118,16 @@ TEST(DragImageTest, NonNullHandling)
IntSize size = dragImage->size();
EXPECT_EQ(1, size.width());
EXPECT_EQ(1, size.height());
-
- dragImage->dissolveToFraction(0.5);
}
TEST(DragImageTest, CreateDragImage)
{
{
// Tests that the DrageImage implementation doesn't choke on null values
- // of bitmapForCurrentFrame().
+ // of imageForCurrentFrame().
RefPtr<TestImage> testImage(TestImage::create(IntSize()));
EXPECT_FALSE(DragImage::create(testImage.get()));
}
-
- {
- // Tests that the drag image is a deep copy.
- RefPtr<TestImage> testImage(TestImage::create(IntSize(1, 1)));
- OwnPtr<DragImage> dragImage = DragImage::create(testImage.get());
- ASSERT_TRUE(dragImage);
- SkBitmap bitmap;
- EXPECT_TRUE(testImage->deprecatedBitmapForCurrentFrame(&bitmap));
- SkAutoLockPixels lock1(dragImage->bitmap()), lock2(bitmap);
- EXPECT_NE(dragImage->bitmap().getPixels(), bitmap.getPixels());
- }
}
TEST(DragImageTest, TrimWhitespace)
« no previous file with comments | « Source/platform/DragImage.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698