summaryrefslogtreecommitdiffstats
path: root/tests/auto/qcssparser/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qcssparser/testdata')
-rw-r--r--tests/auto/qcssparser/testdata/scanner/comments/input1
-rw-r--r--tests/auto/qcssparser/testdata/scanner/comments/output4
-rw-r--r--tests/auto/qcssparser/testdata/scanner/comments2/input1
-rw-r--r--tests/auto/qcssparser/testdata/scanner/comments2/output12
-rw-r--r--tests/auto/qcssparser/testdata/scanner/comments3/input1
-rw-r--r--tests/auto/qcssparser/testdata/scanner/comments3/output4
-rw-r--r--tests/auto/qcssparser/testdata/scanner/comments4/input1
-rw-r--r--tests/auto/qcssparser/testdata/scanner/comments4/output3
-rw-r--r--tests/auto/qcssparser/testdata/scanner/quotedstring/input1
-rw-r--r--tests/auto/qcssparser/testdata/scanner/quotedstring/output5
-rw-r--r--tests/auto/qcssparser/testdata/scanner/simple/input1
-rw-r--r--tests/auto/qcssparser/testdata/scanner/simple/output9
-rw-r--r--tests/auto/qcssparser/testdata/scanner/unicode/input1
-rw-r--r--tests/auto/qcssparser/testdata/scanner/unicode/output3
14 files changed, 47 insertions, 0 deletions
diff --git a/tests/auto/qcssparser/testdata/scanner/comments/input b/tests/auto/qcssparser/testdata/scanner/comments/input
new file mode 100644
index 0000000000..af2b659a5b
--- /dev/null
+++ b/tests/auto/qcssparser/testdata/scanner/comments/input
@@ -0,0 +1 @@
+/* let's see if comments actually work *//*foo*/ "it /*should be preserved \"in strings*/ though"
diff --git a/tests/auto/qcssparser/testdata/scanner/comments/output b/tests/auto/qcssparser/testdata/scanner/comments/output
new file mode 100644
index 0000000000..80ede0ba22
--- /dev/null
+++ b/tests/auto/qcssparser/testdata/scanner/comments/output
@@ -0,0 +1,4 @@
+S|/* let's see if comments actually work */
+S|/*foo*/
+S|
+STRING|"it /*should be preserved "in strings*/ though"
diff --git a/tests/auto/qcssparser/testdata/scanner/comments2/input b/tests/auto/qcssparser/testdata/scanner/comments2/input
new file mode 100644
index 0000000000..3135acd78c
--- /dev/null
+++ b/tests/auto/qcssparser/testdata/scanner/comments2/input
@@ -0,0 +1 @@
+/*foo*/{/*foo*/+/*foo*/>/*foo*/,/*foo*/}/*foo*/-
diff --git a/tests/auto/qcssparser/testdata/scanner/comments2/output b/tests/auto/qcssparser/testdata/scanner/comments2/output
new file mode 100644
index 0000000000..d1f1259869
--- /dev/null
+++ b/tests/auto/qcssparser/testdata/scanner/comments2/output
@@ -0,0 +1,12 @@
+S|/*foo*/
+LBRACE|{
+S|/*foo*/
+PLUS|+
+S|/*foo*/
+GREATER|>
+S|/*foo*/
+COMMA|,
+S|/*foo*/
+RBRACE|}
+S|/*foo*/
+MINUS|-
diff --git a/tests/auto/qcssparser/testdata/scanner/comments3/input b/tests/auto/qcssparser/testdata/scanner/comments3/input
new file mode 100644
index 0000000000..8634543a8f
--- /dev/null
+++ b/tests/auto/qcssparser/testdata/scanner/comments3/input
@@ -0,0 +1 @@
+url(/*comment*/"www.kde.org")
diff --git a/tests/auto/qcssparser/testdata/scanner/comments3/output b/tests/auto/qcssparser/testdata/scanner/comments3/output
new file mode 100644
index 0000000000..af7bad752a
--- /dev/null
+++ b/tests/auto/qcssparser/testdata/scanner/comments3/output
@@ -0,0 +1,4 @@
+FUNCTION|url(
+S|/*comment*/
+STRING|"www.kde.org"
+RPAREN|)
diff --git a/tests/auto/qcssparser/testdata/scanner/comments4/input b/tests/auto/qcssparser/testdata/scanner/comments4/input
new file mode 100644
index 0000000000..62d039b00c
--- /dev/null
+++ b/tests/auto/qcssparser/testdata/scanner/comments4/input
@@ -0,0 +1 @@
+!/*hmm*/important
diff --git a/tests/auto/qcssparser/testdata/scanner/comments4/output b/tests/auto/qcssparser/testdata/scanner/comments4/output
new file mode 100644
index 0000000000..eb86e7bd15
--- /dev/null
+++ b/tests/auto/qcssparser/testdata/scanner/comments4/output
@@ -0,0 +1,3 @@
+EXCLAMATION_SYM|!
+S|/*hmm*/
+IDENT|important
diff --git a/tests/auto/qcssparser/testdata/scanner/quotedstring/input b/tests/auto/qcssparser/testdata/scanner/quotedstring/input
new file mode 100644
index 0000000000..deae3a8dab
--- /dev/null
+++ b/tests/auto/qcssparser/testdata/scanner/quotedstring/input
@@ -0,0 +1 @@
+background: 'test_bug.png';
diff --git a/tests/auto/qcssparser/testdata/scanner/quotedstring/output b/tests/auto/qcssparser/testdata/scanner/quotedstring/output
new file mode 100644
index 0000000000..ed52419594
--- /dev/null
+++ b/tests/auto/qcssparser/testdata/scanner/quotedstring/output
@@ -0,0 +1,5 @@
+IDENT|background
+COLON|:
+S|
+STRING|'test_bug.png'
+SEMICOLON|;
diff --git a/tests/auto/qcssparser/testdata/scanner/simple/input b/tests/auto/qcssparser/testdata/scanner/simple/input
new file mode 100644
index 0000000000..b37e587661
--- /dev/null
+++ b/tests/auto/qcssparser/testdata/scanner/simple/input
@@ -0,0 +1 @@
+p { display:block; }
diff --git a/tests/auto/qcssparser/testdata/scanner/simple/output b/tests/auto/qcssparser/testdata/scanner/simple/output
new file mode 100644
index 0000000000..71c60ec9bf
--- /dev/null
+++ b/tests/auto/qcssparser/testdata/scanner/simple/output
@@ -0,0 +1,9 @@
+IDENT|p
+LBRACE| {
+S|
+IDENT|display
+COLON|:
+IDENT|block
+SEMICOLON|;
+S|
+RBRACE|}
diff --git a/tests/auto/qcssparser/testdata/scanner/unicode/input b/tests/auto/qcssparser/testdata/scanner/unicode/input
new file mode 100644
index 0000000000..2c33f7be97
--- /dev/null
+++ b/tests/auto/qcssparser/testdata/scanner/unicode/input
@@ -0,0 +1 @@
+\41"\7E"\00006Df
diff --git a/tests/auto/qcssparser/testdata/scanner/unicode/output b/tests/auto/qcssparser/testdata/scanner/unicode/output
new file mode 100644
index 0000000000..0829c37e28
--- /dev/null
+++ b/tests/auto/qcssparser/testdata/scanner/unicode/output
@@ -0,0 +1,3 @@
+IDENT|A
+STRING|"~"
+IDENT|mf