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

Unified Diff: sky/engine/core/css/CSSSelectorTest.cpp

Issue 809513003: Remove dead methods from CSSStyleSheet and StyleSheetContents. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | sky/engine/core/css/CSSStyleSheet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/CSSSelectorTest.cpp
diff --git a/sky/engine/core/css/CSSSelectorTest.cpp b/sky/engine/core/css/CSSSelectorTest.cpp
deleted file mode 100644
index cffd7b227ddd7a9337ad3a161ad1d1b034368961..0000000000000000000000000000000000000000
--- a/sky/engine/core/css/CSSSelectorTest.cpp
+++ /dev/null
@@ -1,58 +0,0 @@
-// 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 "sky/engine/config.h"
-#include "sky/engine/core/css/CSSTestHelper.h"
-#include "sky/engine/core/css/RuleSet.h"
-
-#include <gtest/gtest.h>
-
-namespace blink {
-
-TEST(CSSSelector, Representations)
-{
- CSSTestHelper helper;
-
- const char* cssRules =
- "summary::-webkit-details-marker { }"
- "* {}"
- "div {}"
- "#id {}"
- ".class {}"
- "[attr] {}"
- "div:hover {}"
- "div:nth-child(2){}"
- ".class#id { }"
- "#id.class { }"
- "[attr]#id { }"
- "div[attr]#id { }"
- "div::content { }"
- "div::first-line { }"
- ".a.b.c { }"
- "div:not(.a) { }" // without class a
- "div:not(:visited) { }" // without the visited pseudo class
-
- "[attr=\"value\"] { }" // Exact equality
- "[attr~=\"value\"] { }" // One of a space-separated list
- "[attr^=\"value\"] { }" // Begins with
- "[attr$=\"value\"] { }" // Ends with
- "[attr*=\"value\"] { }" // Substring equal to
- "[attr|=\"value\"] { }" // One of a hyphen-separated list
-
- ".a .b { }" // .b is a descendant of .a
- ".a > .b { }" // .b is a direct descendant of .a
- ".a ~ .b { }" // .a precedes .b in sibling order
- ".a + .b { }" // .a element immediately precedes .b in sibling order
- ".a, .b { }" // matches .a or .b
-
- ".a.b .c {}";
-
- helper.addCSSRules(cssRules);
- EXPECT_EQ(30u, helper.ruleSet().ruleCount()); // .a, .b counts as two rules.
-#ifndef NDEBUG
- helper.ruleSet().show();
-#endif
-}
-
-} // namespace blink
« no previous file with comments | « no previous file | sky/engine/core/css/CSSStyleSheet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698