Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: Source/core/css/resolver/FontBuilderTest.cpp

Issue 714163002: Remove RenderStyle member from FontBuilder. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Ensure font is created before taking animation snapshot. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698