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

Side by Side Diff: third_party/WebKit/Source/modules/canvas/HTMLCanvasElementModuleTest.cpp

Issue 2860293002: Change cc::ElementId to be a uint64_t (Closed)
Patch Set: Merge branch 'master' into secondaryid Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/canvas/HTMLCanvasElementModule.h" 5 #include "modules/canvas/HTMLCanvasElementModule.h"
6 6
7 #include "core/dom/DOMNodeIds.h" 7 #include "core/dom/DOMNodeIds.h"
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/frame/FrameView.h" 9 #include "core/frame/FrameView.h"
10 #include "core/html/HTMLCanvasElement.h" 10 #include "core/html/HTMLCanvasElement.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // exclude the part that creates surface layer bridge because a mojo message 43 // exclude the part that creates surface layer bridge because a mojo message
44 // pipe cannot be tested using webkit unit tests. 44 // pipe cannot be tested using webkit unit tests.
45 return HTMLCanvasElementModule::TransferControlToOffscreenInternal( 45 return HTMLCanvasElementModule::TransferControlToOffscreenInternal(
46 CanvasElement(), exception_state); 46 CanvasElement(), exception_state);
47 } 47 }
48 48
49 TEST_F(HTMLCanvasElementModuleTest, TransferControlToOffscreen) { 49 TEST_F(HTMLCanvasElementModuleTest, TransferControlToOffscreen) {
50 NonThrowableExceptionState exception_state; 50 NonThrowableExceptionState exception_state;
51 OffscreenCanvas* offscreen_canvas = 51 OffscreenCanvas* offscreen_canvas =
52 TransferControlToOffscreen(exception_state); 52 TransferControlToOffscreen(exception_state);
53 int canvas_id = offscreen_canvas->PlaceholderCanvasId(); 53 DOMNodeId canvas_id = offscreen_canvas->PlaceholderCanvasId();
54 EXPECT_EQ(canvas_id, DOMNodeIds::IdForNode(&(CanvasElement()))); 54 EXPECT_EQ(canvas_id, DOMNodeIds::IdForNode(&(CanvasElement())));
55 } 55 }
56 56
57 } // namespace blink 57 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/scrolling/ScrollState.cpp ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698