summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/Source/core/layout/LayoutBlockTest.cpp
blob: 5df41f8ce2fbafff09c3944e004a439152d55eb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "core/layout/LayoutBlock.h"

#include "core/layout/LayoutBlockFlow.h"
#include "core/layout/LayoutTestHelper.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace blink {

class LayoutBlockTest : public RenderingTest {
};

TEST_F(LayoutBlockTest, LayoutNameCalledWithNullStyle)
{
    LayoutObject* obj = LayoutBlockFlow::createAnonymous(&document());
    EXPECT_FALSE(obj->style());
    EXPECT_STREQ("LayoutBlockFlow (anonymous)", obj->decoratedName().ascii().data());
    obj->destroy();
}

} // namespace blink