blob: 21c8cc807e36e5ba5e714b68cf4be987b660a7b5 [file] [log] [blame]
// 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/LayoutInline.h"
#include "core/layout/LayoutTestHelper.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace blink {
class LayoutInlineTest : public RenderingTest {
};
TEST_F(LayoutInlineTest, LayoutNameCalledWithNullStyle)
{
LayoutObject* obj = LayoutInline::createAnonymous(&document());
EXPECT_FALSE(obj->style());
EXPECT_STREQ("LayoutInline (anonymous)", obj->decoratedName().ascii().data());
obj->destroy();
}
} // namespace blink