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

Unified Diff: LayoutTests/fast/css/counters/getCounterValue.html

Issue 689323002: Remove tests which are only testing getPropertyCSSValue, etc. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/css/counters/getCounterValue.html
diff --git a/LayoutTests/fast/css/counters/getCounterValue.html b/LayoutTests/fast/css/counters/getCounterValue.html
deleted file mode 100644
index 9330ddefdedbd5cf10d758b3b6d2cd5e2e0ae3fe..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/css/counters/getCounterValue.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<html>
-<head>
-<style>
-body {
- counter-reset: section;
-}
-h1 {
- counter-increment: section;
-}
-h2:before {
- content: counter(section);
-}
-h2:after {
- content: counters(section, ":", decimal);
-}
-h3:before {
- content: counter(section, lower-roman);
-}
-h3:after {
- content: counters(section, ",", upper-roman);
-}
-h3:before {
- content: counter(section, none);
-}
-</style>
-<script src="../../../resources/js-test.js"></script>
-</head>
-<body>
-<script>
-description("Test the Counter object returned by the getCounterValue method of CSSPrimitiveValues");
-
-function getCounter(cssRule) {
- return cssRule.style.getPropertyCSSValue('content')[0].getCounterValue();
-}
-
-var rules = document.styleSheets[0].cssRules;
-var counters = [];
-for (var i = 2; i < rules.length; i++) {
- counters.push(getCounter(rules[i]));
-}
-shouldBeEqualToString("counters[0].identifier", "section");
-shouldBeEqualToString("counters[0].listStyle", "decimal");
-shouldBeEqualToString("counters[0].separator", "");
-
-shouldBeEqualToString("counters[1].identifier", "section");
-shouldBeEqualToString("counters[1].listStyle", "decimal");
-shouldBeEqualToString("counters[1].separator", ":");
-
-shouldBeEqualToString("counters[2].identifier", "section");
-shouldBeEqualToString("counters[2].listStyle", "lower-roman");
-shouldBeEqualToString("counters[2].separator", "");
-
-shouldBeEqualToString("counters[3].identifier", "section");
-shouldBeEqualToString("counters[3].listStyle", "upper-roman");
-shouldBeEqualToString("counters[3].separator", ",");
-
-shouldBeEqualToString("counters[4].identifier", "section");
-shouldBeEqualToString("counters[4].listStyle", "none");
-shouldBeEqualToString("counters[4].separator", "");
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698