Index: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp |
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp |
index a57a1983b8a24e661d9fba1547ec67e595782560..6d70694598a9152764560929e5323eb183199acf 100644 |
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp |
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp |
@@ -141,10 +141,12 @@ void CanvasRenderingContext2DTest::SetUp() |
m_document->view()->updateAllLifecyclePhases(); |
m_canvasElement = toHTMLCanvasElement(m_document->getElementById("c")); |
- m_fullImageData = ImageData::create(IntSize(10, 10)); |
- m_partialImageData = ImageData::create(IntSize(2, 2)); |
- |
NonThrowableExceptionState exceptionState; |
+ m_fullImageData = ImageData::create(IntSize(10, 10), exceptionState); |
+ EXPECT_FALSE(exceptionState.hadException()); |
+ m_partialImageData = ImageData::create(IntSize(2, 2), exceptionState); |
+ EXPECT_FALSE(exceptionState.hadException()); |
+ |
CanvasGradient* opaqueGradient = CanvasGradient::create(FloatPoint(0, 0), FloatPoint(10, 0)); |
opaqueGradient->addColorStop(0, String("green"), exceptionState); |
EXPECT_FALSE(exceptionState.hadException()); |