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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializerTest.cpp

Issue 2493673002: Synchronize OffscreenCanvas content with the placeholder canvas (Closed)
Patch Set: fix obsolete test Created 4 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/bindings/core/v8/serialization/V8ScriptValueSerializerTest.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializerTest.cpp b/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializerTest.cpp
index 1fb262cbe0a7b59c59db6de2505fd30160fe4984..56ab63e3309ae6fa67c885eb4fd25d99ad662c30 100644
--- a/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializerTest.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializerTest.cpp
@@ -515,7 +515,7 @@ TEST(V8ScriptValueSerializerTest, TransferOffscreenCanvas) {
ScopedEnableV8BasedStructuredClone enable;
V8TestingScope scope;
OffscreenCanvas* canvas = OffscreenCanvas::create(10, 7);
- canvas->setAssociatedCanvasId(519);
+ canvas->setPlaceholderCanvasId(519);
v8::Local<v8::Value> wrapper = toV8(canvas, scope.getScriptState());
Transferables transferables;
transferables.offscreenCanvases.append(canvas);
@@ -525,7 +525,7 @@ TEST(V8ScriptValueSerializerTest, TransferOffscreenCanvas) {
OffscreenCanvas* newCanvas =
V8OffscreenCanvas::toImpl(result.As<v8::Object>());
EXPECT_EQ(IntSize(10, 7), newCanvas->size());
- EXPECT_EQ(519, newCanvas->getAssociatedCanvasId());
+ EXPECT_EQ(519, newCanvas->placeholderCanvasId());
EXPECT_TRUE(canvas->isNeutered());
EXPECT_FALSE(newCanvas->isNeutered());
}

Powered by Google App Engine
This is Rietveld 408576698