[gtk+/parser: 71/79] tests: Add a test for importing nonexistant files
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/parser: 71/79] tests: Add a test for importing nonexistant files
- Date: Fri, 15 Apr 2011 12:43:16 +0000 (UTC)
commit 1d65aa6f4ae53decea067191bfae43b8c9c82537
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]