[gtk+/parser: 68/74] tests: Add a test for importing nonexistant files



commit 1d95eac607cddb9dc7845fa10b52fb819ee3ab69
Author: Benjamin Otte <otte redhat com>
Date:   Tue Apr 12 04:35:22 2011 +0200

    tests: Add a test for importing nonexistant files

 tests/css/parser/Makefile.am                |    3 +++
 tests/css/parser/import-nonexistant.css     |    5 +++++
 tests/css/parser/import-nonexistant.errors  |    1 +
 tests/css/parser/import-nonexistant.ref.css |    3 +++
 4 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am
index 94b9f9b..62f739f 100644
--- a/tests/css/parser/Makefile.am
+++ b/tests/css/parser/Makefile.am
@@ -49,6 +49,9 @@ EXTRA_DIST += \
 	import-cyclic-3.css \
 	import-cyclic-3.errors \
 	import-cyclic-3.ref.css \
+	import-nonexistant.css \
+	import-nonexistant.errors \
+	import-nonexistant.ref.css \
 	import-recursive.css \
 	import-recursive.errors \
 	import-recursive.ref.css \
diff --git a/tests/css/parser/import-nonexistant.css b/tests/css/parser/import-nonexistant.css
new file mode 100644
index 0000000..b222377
--- /dev/null
+++ b/tests/css/parser/import-nonexistant.css
@@ -0,0 +1,5 @@
+ import url("if-this-file-ever-starts-to-exist-you-have-a-weird-sense-of-naming-files.css");
+
+a {
+  string-property: "make sure it didn't stop parsing";
+}
diff --git a/tests/css/parser/import-nonexistant.errors b/tests/css/parser/import-nonexistant.errors
new file mode 100644
index 0000000..428d111
--- /dev/null
+++ b/tests/css/parser/import-nonexistant.errors
@@ -0,0 +1 @@
+import-nonexistant.css:1: error: GTK_CSS_PROVIDER_ERROR_IMPORT
diff --git a/tests/css/parser/import-nonexistant.ref.css b/tests/css/parser/import-nonexistant.ref.css
new file mode 100644
index 0000000..a967eb3
--- /dev/null
+++ b/tests/css/parser/import-nonexistant.ref.css
@@ -0,0 +1,3 @@
+a {
+  string-property: "make sure it didn't stop parsing";
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]