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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DAPITest.cpp

Issue 1414553002: Fix out-of-memory crashes related to ArrayBuffer allocation Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+more tweaks Created 5 years, 1 month 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
Index: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DAPITest.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DAPITest.cpp b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DAPITest.cpp
index 48eeb0c2ff23f861597c0939dc803a738f35cb9c..d6259683a7a88125fc2d201df0018543179c8383 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DAPITest.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DAPITest.cpp
@@ -217,7 +217,8 @@ TEST_F(CanvasRenderingContext2DAPITest, CreateImageData)
// createImageData(imageData) should create a new ImageData of the same size as 'imageData'
// but filled with transparent black
- ImageData* sameSizeImageData = context2d()->createImageData(imageData);
+ ImageData* sameSizeImageData = context2d()->createImageData(imageData, exceptionState);
+ EXPECT_FALSE(exceptionState.hadException());
EXPECT_EQ(100, sameSizeImageData->width());
EXPECT_EQ(50, sameSizeImageData->height());
EXPECT_EQ(0, sameSizeImageData->data()->data()[32]);

Powered by Google App Engine
This is Rietveld 408576698