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/layout/LayoutBlock.h" | 5 #include "core/layout/LayoutBlock.h" |
7 | 6 |
8 #include "core/layout/LayoutBlockFlow.h" | 7 #include "core/layout/LayoutBlockFlow.h" |
9 #include "core/layout/LayoutTestHelper.h" | 8 #include "core/layout/LayoutTestHelper.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
11 | 10 |
12 namespace blink { | 11 namespace blink { |
13 | 12 |
14 class LayoutBlockTest : public RenderingTest { | 13 class LayoutBlockTest : public RenderingTest { |
15 }; | 14 }; |
16 | 15 |
17 TEST_F(LayoutBlockTest, LayoutNameCalledWithNullStyle) | 16 TEST_F(LayoutBlockTest, LayoutNameCalledWithNullStyle) |
18 { | 17 { |
19 LayoutObject* obj = LayoutBlockFlow::createAnonymous(&document()); | 18 LayoutObject* obj = LayoutBlockFlow::createAnonymous(&document()); |
20 EXPECT_FALSE(obj->style()); | 19 EXPECT_FALSE(obj->style()); |
21 EXPECT_STREQ("LayoutBlockFlow (anonymous)", obj->decoratedName().ascii().dat
a()); | 20 EXPECT_STREQ("LayoutBlockFlow (anonymous)", obj->decoratedName().ascii().dat
a()); |
22 obj->destroy(); | 21 obj->destroy(); |
23 } | 22 } |
24 | 23 |
25 } | 24 } |
OLD | NEW |