[geany/geany] 207279: Import CSS test cases from fishman-ctags

Colomban Wendling git-noreply at xxxxx
Tue Nov 11 00:59:12 UTC 2014


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Tue, 11 Nov 2014 00:59:12 UTC
Commit:      207279728317082bac040e7f32c50697919090b0
             https://github.com/geany/geany/commit/207279728317082bac040e7f32c50697919090b0

Log Message:
-----------
Import CSS test cases from fishman-ctags


Modified Paths:
--------------
    tests/ctags/Makefile.am
    tests/ctags/css-at-rules.css
    tests/ctags/css-at-rules.css.tags
    tests/ctags/css-at-supports.css
    tests/ctags/css-at-supports.css.tags
    tests/ctags/css-attribute-selectors.css
    tests/ctags/css-attribute-selectors.css.tags
    tests/ctags/css-comma-no-space.css
    tests/ctags/css-comma-no-space.css.tags
    tests/ctags/css-namespace-selectors.css
    tests/ctags/css-namespace-selectors.css.tags
    tests/ctags/css-pseudo-classes.css
    tests/ctags/css-pseudo-classes.css.tags
    tests/ctags/css-simple.css
    tests/ctags/css-simple.css.tags
    tests/ctags/css-singlequote-in-comment-issue2.css
    tests/ctags/css-singlequote-in-comment-issue2.css.tags
    tests/ctags/css-tag-types.css
    tests/ctags/css-tag-types.css.tags
    tests/ctags/css-trivial.css
    tests/ctags/css-trivial.css.tags

Modified: tests/ctags/Makefile.am
10 lines changed, 10 insertions(+), 0 deletions(-)
===================================================================
@@ -116,6 +116,16 @@ test_sources = \
 	continuation.f90				\
 	countall.sql					\
 	cpp_destructor.cpp				\
+	css-at-rules.css				\
+	css-at-supports.css				\
+	css-attribute-selectors.css		\
+	css-comma-no-space.css			\
+	css-namespace-selectors.css		\
+	css-pseudo-classes.css			\
+	css-simple.css					\
+	css-singlequote-in-comment-issue2.css	\
+	css-tag-types.css				\
+	css-trivial.css					\
 	cython_sample.pyx				\
 	cython_sample2.pyx				\
 	cxx11enum.cpp					\


Modified: tests/ctags/css-at-rules.css
27 lines changed, 27 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,27 @@
+
+ at import "foo.css";
+
+ at namespace url(http://www.w3.org/1999/xhtml);
+ at namespace svg url(http://www.w3.org/2000/svg);
+
+ at media screen {
+  body { font-size: 10pt; }
+}
+ at media print {
+  body { font-size: 12px; }
+}
+ at media screen, print {
+  body { line-height: 1.2 }
+}
+
+ at page :first {
+  margin: 2in;
+}
+
+ at font-face {
+  font-family: Sample;
+  src: local("Sample"),
+       url(Sample.ttf);
+}
+
+html { color: blue; }


Modified: tests/ctags/css-at-rules.css.tags
3 lines changed, 3 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,3 @@
+# format=tagmanager
+body �2048�0
+html �2048�0


Modified: tests/ctags/css-at-supports.css
6 lines changed, 6 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,6 @@
+
+ at supports ((test-property: 42) or (test-property2: 42)) {
+  html { test-property: 42; }
+}
+
+html { color: blue; }


Modified: tests/ctags/css-at-supports.css.tags
5 lines changed, 5 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,5 @@
+# format=tagmanager
+html �2048�0
+or �2048�0
+test-property2: 42�2048�0
+test-property: 42�2048�0


Modified: tests/ctags/css-attribute-selectors.css
6 lines changed, 6 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,6 @@
+
+body { color: black; }
+a[href^="http://"] { color: red; }
+a[href^="https://"] { color: green; }
+a[lang~=en] { background-color: light-green; }
+p { color: gray }


Modified: tests/ctags/css-attribute-selectors.css.tags
12 lines changed, 12 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,12 @@
+# format=tagmanager
+a�2048�0
+background-color: light-green�2048�0
+body �2048�0
+color: green�2048�0
+color: red�2048�0
+en�2048�0
+href�2048�0
+http:�2048�0
+https:�2048�0
+lang�2048�0
+p �2048�0


Modified: tests/ctags/css-comma-no-space.css
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1 @@
+input,textarea{border: 1px solid red;}


Modified: tests/ctags/css-comma-no-space.css.tags
3 lines changed, 3 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,3 @@
+# format=tagmanager
+input�2048�0
+textarea�2048�0


Modified: tests/ctags/css-namespace-selectors.css
4 lines changed, 4 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,4 @@
+
+|a { color: red; }
+svg|a { color: green; }
+*|div { color: blue; }


Modified: tests/ctags/css-namespace-selectors.css.tags
5 lines changed, 5 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,5 @@
+# format=tagmanager
+*�2048�0
+a �2048�0
+div �2048�0
+svg�2048�0


Modified: tests/ctags/css-pseudo-classes.css
15 lines changed, 15 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,15 @@
+
+tr:nth-child(2n+1) { background-color: light-gray }
+tr:nth-child(odd) { background-color: light-gray }
+tr:nth-child(2n) { background-color: light-gray }
+tr:nth-child(even) { background-color: light-gray }
+tr:nth-child(10n+0) { background-color: gray }
+
+span:nth-child(0n+1) { color: lime; }
+span:nth-child(1) { color: lime; }
+span:nth-child(-n+3) { color: lime; }
+
+span:not(:first-child) { color: red; }
+body :not(span) { color: green; }
+
+a:lang(en):after { content: "[en]" }


Modified: tests/ctags/css-pseudo-classes.css.tags
23 lines changed, 23 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,23 @@
+# format=tagmanager
+0n+1�2048�0
+1�2048�0
+10n+0�2048�0
+2n�2048�0
+2n+1�2048�0
+a:lang�2048�0
+after �2048�0
+background-color: gray �2048�0
+background-color: light-gray �2048�0
+body :not�2048�0
+color: green�2048�0
+color: lime�2048�0
+color: red�2048�0
+en�2048�0
+even�2048�0
+first-child�2048�0
+n+3�2048�0
+odd�2048�0
+span�2048�0
+span:not�2048�0
+span:nth-child�2048�0
+tr:nth-child�2048�0


Modified: tests/ctags/css-simple.css
27 lines changed, 27 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,27 @@
+
+* { padding:0; }
+
+html
+{
+  margin: 0
+}
+
+.header { font-size: 200%; }
+
+#footer { font-size: 80%; }
+
+div.magic 
+
+{
+/* haha */
+text-decoration: blink;
+}
+
+.red { color: red }
+
+ul li { padding-left: 1em; }
+.foo a, .foo b { color: blue; }
+
+ul > li > a {
+  font: monospace;
+}


Modified: tests/ctags/css-simple.css.tags
11 lines changed, 11 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,11 @@
+# format=tagmanager
+#footer �16384�0
+* �2048�0
+.foo a�1�0
+.foo b �1�0
+.header �1�0
+.red �1�0
+div.magic �1�0
+html�2048�0
+ul > li > a �2048�0
+ul li �2048�0


Modified: tests/ctags/css-singlequote-in-comment-issue2.css
2 lines changed, 2 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,2 @@
+a{x:0;/*'*/}
+b{y:0;}


Modified: tests/ctags/css-singlequote-in-comment-issue2.css.tags
2 lines changed, 2 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,2 @@
+# format=tagmanager
+a�2048�0


Modified: tests/ctags/css-tag-types.css
38 lines changed, 38 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,38 @@
+a foo{ color: red }
+a #foo{ color: red }
+a .foo{ color: red }
+a foo bar{ color: red }
+a foo #bar{ color: red }
+a foo .bar{ color: red }
+a #foo bar{ color: red }
+a #foo #bar{ color: red }
+a #foo .bar{ color: red }
+a .foo bar{ color: red }
+a .foo #bar{ color: red }
+a .foo .bar{ color: red }
+
+#a foo{ color: red }
+#a #foo{ color: red }
+#a .foo{ color: red }
+#a foo bar{ color: red }
+#a foo #bar{ color: red }
+#a foo .bar{ color: red }
+#a #foo bar{ color: red }
+#a #foo #bar{ color: red }
+#a #foo .bar{ color: red }
+#a .foo bar{ color: red }
+#a .foo #bar{ color: red }
+#a .foo .bar{ color: red }
+
+.a foo{ color: red }
+.a #foo{ color: red }
+.a .foo{ color: red }
+.a foo bar{ color: red }
+.a foo #bar{ color: red }
+.a foo .bar{ color: red }
+.a #foo bar{ color: red }
+.a #foo #bar{ color: red }
+.a #foo .bar{ color: red }
+.a .foo bar{ color: red }
+.a .foo #bar{ color: red }
+.a .foo .bar{ color: red }


Modified: tests/ctags/css-tag-types.css.tags
37 lines changed, 37 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,37 @@
+# format=tagmanager
+#a #foo�16384�0
+#a #foo #bar�16384�0
+#a #foo .bar�16384�0
+#a #foo bar�16384�0
+#a .foo�16384�0
+#a .foo #bar�16384�0
+#a .foo .bar�16384�0
+#a .foo bar�16384�0
+#a foo�16384�0
+#a foo #bar�16384�0
+#a foo .bar�16384�0
+#a foo bar�16384�0
+.a #foo�1�0
+.a #foo #bar�1�0
+.a #foo .bar�1�0
+.a #foo bar�1�0
+.a .foo�1�0
+.a .foo #bar�1�0
+.a .foo .bar�1�0
+.a .foo bar�1�0
+.a foo�1�0
+.a foo #bar�1�0
+.a foo .bar�1�0
+.a foo bar�1�0
+a #foo�16384�0
+a #foo #bar�16384�0
+a #foo .bar�16384�0
+a #foo bar�16384�0
+a .foo�1�0
+a .foo #bar�1�0
+a .foo .bar�1�0
+a .foo bar�1�0
+a foo�2048�0
+a foo #bar�16384�0
+a foo .bar�1�0
+a foo bar�2048�0


Modified: tests/ctags/css-trivial.css
5 lines changed, 5 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,5 @@
+
+html{ font: sans-serif; }
+a{ color: red; }
+p{ text-align: justify; }
+input, textarea{ border: 1px solid green; }


Modified: tests/ctags/css-trivial.css.tags
6 lines changed, 6 insertions(+), 0 deletions(-)
===================================================================
@@ -0,0 +1,6 @@
+# format=tagmanager
+a�2048�0
+html�2048�0
+input�2048�0
+p�2048�0
+textarea�2048�0



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list