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

Unified Diff: third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModuleTest.cpp

Issue 1862033002: Make OffscreenCanvas Transferable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: no need to register, taking the same approach as extractTransferables Created 4 years, 8 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
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

Powered by Google App Engine
This is Rietveld 408576698