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

Unified Diff: Source/core/frame/ImageBitmapTest.cpp

Issue 540033002: use tryAllocPixels to check the result, allocPixels to require success (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | Source/platform/DragImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/ImageBitmapTest.cpp
diff --git a/Source/core/frame/ImageBitmapTest.cpp b/Source/core/frame/ImageBitmapTest.cpp
index 6f0ce2970949a15d47c11be7dc1c62ca395cab45..d9e08db8963d87c5edfc9b23abe7a9c954054616 100644
--- a/Source/core/frame/ImageBitmapTest.cpp
+++ b/Source/core/frame/ImageBitmapTest.cpp
@@ -54,10 +54,10 @@ class ImageBitmapTest : public ::testing::Test {
protected:
virtual void SetUp()
{
- ASSERT_TRUE(m_bitmap.allocN32Pixels(10, 10));
+ m_bitmap.allocN32Pixels(10, 10);
m_bitmap.eraseColor(0xFFFFFFFF);
- ASSERT_TRUE(m_bitmap2.allocN32Pixels(5, 5));
+ m_bitmap2.allocN32Pixels(5, 5);
m_bitmap2.eraseColor(0xAAAAAAAA);
// Save the global memory cache to restore it upon teardown.
« no previous file with comments | « no previous file | Source/platform/DragImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698