Index: third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModuleTest.cpp |
diff --git a/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModuleTest.cpp b/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModuleTest.cpp |
index 13881835c01bb67a3dd26e1ffa330ec47b7012cb..9e793b69f5ee2d49902096823e3440cbfac4cb76 100644 |
--- a/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModuleTest.cpp |
+++ b/third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModuleTest.cpp |
@@ -4,6 +4,7 @@ |
#include "modules/canvas/HTMLCanvasElementModule.h" |
+#include "core/dom/DOMNodeIds.h" |
#include "core/frame/FrameView.h" |
#include "core/html/HTMLCanvasElement.h" |
#include "core/html/HTMLDocument.h" |
@@ -36,8 +37,8 @@ TEST_F(HTMLCanvasElementModuleTest, TransferControlToOffscreen) |
{ |
NonThrowableExceptionState exceptionState; |
OffscreenCanvas* offscreenCanvas = HTMLCanvasElementModule::transferControlToOffscreen(canvasElement(), exceptionState); |
- HTMLCanvasElement* canvas = offscreenCanvas->getAssociatedCanvas(); |
- EXPECT_EQ(canvas, canvasElement()); |
+ int canvasId = offscreenCanvas->getAssociatedCanvasId(); |
+ EXPECT_EQ(canvasId, DOMNodeIds::idForNode(&(canvasElement()))); |
} |
} // namespace blink |