OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "config.h" | |
6 #include "core/page/PrintContext.h" | 5 #include "core/page/PrintContext.h" |
7 | 6 |
8 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
9 | 8 |
10 #include "core/frame/FrameView.h" | 9 #include "core/frame/FrameView.h" |
11 #include "core/html/HTMLElement.h" | 10 #include "core/html/HTMLElement.h" |
12 #include "core/layout/LayoutTestHelper.h" | 11 #include "core/layout/LayoutTestHelper.h" |
13 #include "core/layout/LayoutView.h" | 12 #include "core/layout/LayoutView.h" |
14 #include "core/paint/PaintLayer.h" | 13 #include "core/paint/PaintLayer.h" |
15 #include "core/paint/PaintLayerPainter.h" | 14 #include "core/paint/PaintLayerPainter.h" |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 ASSERT_EQ(3u, operations.size()); | 308 ASSERT_EQ(3u, operations.size()); |
310 EXPECT_EQ(MockCanvas::DrawRect, operations[0].type); | 309 EXPECT_EQ(MockCanvas::DrawRect, operations[0].type); |
311 EXPECT_SKRECT_EQ(50, 60, 70, 80, operations[0].rect); // FIXME: the rect sho
uld be clipped. | 310 EXPECT_SKRECT_EQ(50, 60, 70, 80, operations[0].rect); // FIXME: the rect sho
uld be clipped. |
312 EXPECT_EQ(MockCanvas::DrawRect, operations[1].type); | 311 EXPECT_EQ(MockCanvas::DrawRect, operations[1].type); |
313 EXPECT_SKRECT_EQ(150, 160, 170, 180, operations[1].rect); | 312 EXPECT_SKRECT_EQ(150, 160, 170, 180, operations[1].rect); |
314 EXPECT_EQ(MockCanvas::DrawRect, operations[2].type); | 313 EXPECT_EQ(MockCanvas::DrawRect, operations[2].type); |
315 EXPECT_SKRECT_EQ(250, 260, 270, 280, operations[2].rect); | 314 EXPECT_SKRECT_EQ(250, 260, 270, 280, operations[2].rect); |
316 } | 315 } |
317 | 316 |
318 } // namespace blink | 317 } // namespace blink |
OLD | NEW |