OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "config.h" | |
6 #include "core/css/resolver/FontBuilder.h" | |
7 #include "core/testing/DummyPageHolder.h" | |
8 | |
9 #include <gtest/gtest.h> | |
10 | |
11 namespace blink { | |
12 | |
13 class FontBuilderTest : public ::testing::Test { | |
14 protected: | |
15 RenderStyle* getStyle(const FontBuilder& builder) | |
16 { | |
17 return builder.m_style; | |
18 } | |
19 }; | |
20 | |
21 TEST_F(FontBuilderTest, StylePointerInitialisation) | |
22 { | |
23 OwnPtr<DummyPageHolder> dummy = DummyPageHolder::create(IntSize(800, 600)); | |
24 FontBuilder builder(dummy->document()); | |
25 EXPECT_EQ(0, getStyle(builder)); | |
26 } | |
27 | |
28 } // namespace blink | |
OLD | NEW |