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