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

Unified Diff: third_party/WebKit/Source/core/css/ActiveStyleSheetsTest.cpp

Issue 2843883002: Remove, or rewrite if necessary, tests which use /deep/ or ::shadow (Closed)
Patch Set: rev 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/ActiveStyleSheetsTest.cpp
diff --git a/third_party/WebKit/Source/core/css/ActiveStyleSheetsTest.cpp b/third_party/WebKit/Source/core/css/ActiveStyleSheetsTest.cpp
index a15baaef9b941016561ce2fce409145a7566d684..d689eaf13e11076f089683080e7389f9f390f69c 100644
--- a/third_party/WebKit/Source/core/css/ActiveStyleSheetsTest.cpp
+++ b/third_party/WebKit/Source/core/css/ActiveStyleSheetsTest.cpp
@@ -475,42 +475,6 @@ TEST_F(ApplyRulesetsTest, AddUniversalRuleToShadowTree) {
EXPECT_EQ(kSubtreeStyleChange, host->GetStyleChangeType());
}
-TEST_F(ApplyRulesetsTest, AddShadowV0BoundaryCrossingRuleToDocument) {
- GetDocument().View()->UpdateAllLifecyclePhases();
-
- CSSStyleSheet* sheet = CreateSheet(".a /deep/ .b { color:red }");
-
- ActiveStyleSheetVector new_style_sheets;
- new_style_sheets.push_back(
- std::make_pair(sheet, &sheet->Contents()->GetRuleSet()));
-
- GetStyleEngine().ApplyRuleSetChanges(GetDocument(), ActiveStyleSheetVector(),
- new_style_sheets);
-
- EXPECT_EQ(kSubtreeStyleChange, GetDocument().GetStyleChangeType());
-}
-
-TEST_F(ApplyRulesetsTest, AddShadowV0BoundaryCrossingRuleToShadowTree) {
- GetDocument().body()->setInnerHTML("<div id=host></div>");
- Element* host = GetDocument().GetElementById("host");
- ASSERT_TRUE(host);
-
- ShadowRoot& shadow_root = AttachShadow(*host);
- GetDocument().View()->UpdateAllLifecyclePhases();
-
- CSSStyleSheet* sheet = CreateSheet(".a /deep/ .b { color:red }");
-
- ActiveStyleSheetVector new_style_sheets;
- new_style_sheets.push_back(
- std::make_pair(sheet, &sheet->Contents()->GetRuleSet()));
-
- GetStyleEngine().ApplyRuleSetChanges(shadow_root, ActiveStyleSheetVector(),
- new_style_sheets);
-
- EXPECT_FALSE(GetDocument().NeedsStyleRecalc());
- EXPECT_EQ(kSubtreeStyleChange, host->GetStyleChangeType());
-}
-
TEST_F(ApplyRulesetsTest, AddFontFaceRuleToDocument) {
GetDocument().View()->UpdateAllLifecyclePhases();
« no previous file with comments | « third_party/WebKit/LayoutTests/svg/dom/custom-elements.html ('k') | third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698