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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/ScopedStyleResolverTest.cpp

Issue 2834053003: Split V8Binding (Closed)
Patch Set: Rebase Created 3 years, 8 months 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/css/resolver/ScopedStyleResolver.h" 5 #include "core/css/resolver/ScopedStyleResolver.h"
6 6
7 #include "bindings/core/v8/V8Binding.h" 7 #include "bindings/core/v8/V8BindingForCore.h"
8 #include "core/dom/shadow/ShadowRoot.h" 8 #include "core/dom/shadow/ShadowRoot.h"
9 #include "core/dom/shadow/ShadowRootInit.h" 9 #include "core/dom/shadow/ShadowRootInit.h"
10 #include "core/frame/FrameView.h" 10 #include "core/frame/FrameView.h"
11 #include "core/html/HTMLElement.h" 11 #include "core/html/HTMLElement.h"
12 #include "core/testing/DummyPageHolder.h" 12 #include "core/testing/DummyPageHolder.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 namespace blink { 15 namespace blink {
16 16
17 class ScopedStyleResolverTest : public ::testing::Test { 17 class ScopedStyleResolverTest : public ::testing::Test {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // the case when the source text is the same. The comparison will fail when 99 // the case when the source text is the same. The comparison will fail when
100 // adding an extra space to one of the sheets. 100 // adding an extra space to one of the sheets.
101 root1.setInnerHTML("<style>::slotted(#dummy){color:pink}</style>"); 101 root1.setInnerHTML("<style>::slotted(#dummy){color:pink}</style>");
102 root2.setInnerHTML("<style>::slotted(#dummy){ color:pink}</style>"); 102 root2.setInnerHTML("<style>::slotted(#dummy){ color:pink}</style>");
103 GetDocument().View()->UpdateAllLifecyclePhases(); 103 GetDocument().View()->UpdateAllLifecyclePhases();
104 EXPECT_FALSE(ScopedStyleResolver::HaveSameStyles( 104 EXPECT_FALSE(ScopedStyleResolver::HaveSameStyles(
105 &root1.EnsureScopedStyleResolver(), &root2.EnsureScopedStyleResolver())); 105 &root1.EnsureScopedStyleResolver(), &root2.EnsureScopedStyleResolver()));
106 } 106 }
107 107
108 } // namespace blink 108 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698