[gtk/wip/otte/css: 124/128] testsuite: Remove the stylecontext test
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/css: 124/128] testsuite: Remove the stylecontext test
- Date: Wed, 5 Feb 2020 02:49:24 +0000 (UTC)
commit 2e17d0771fe60c0d8ff49807796a876da919c590
Author: Benjamin Otte <otte redhat com>
Date: Wed Feb 5 02:59:11 2020 +0100
testsuite: Remove the stylecontext test
Stylecontexts are on their way out and I'm removing API that the
testsuite was relying on, so remove the tests.
Put the useful parts of the tests elsewhere.
testsuite/css/parser/meson.build | 2 +
testsuite/css/parser/selector-original.css | 39 ++++++++
testsuite/css/parser/selector-original.ref.css | 0
testsuite/gtk/meson.build | 1 -
testsuite/gtk/stylecontext.c | 132 -------------------------
5 files changed, 41 insertions(+), 133 deletions(-)
---
diff --git a/testsuite/css/parser/meson.build b/testsuite/css/parser/meson.build
index 607faab0bb..b378a5e9f3 100644
--- a/testsuite/css/parser/meson.build
+++ b/testsuite/css/parser/meson.build
@@ -406,6 +406,8 @@ test_data = [
'radial.ref.css',
'selector.css',
'selector.ref.css',
+ 'selector-original.css',
+ 'selector-original.ref.css',
'shadow.css',
'shadow.ref.css',
'shadow-ordering.css',
diff --git a/testsuite/css/parser/selector-original.css b/testsuite/css/parser/selector-original.css
new file mode 100644
index 0000000000..a3569e268c
--- /dev/null
+++ b/testsuite/css/parser/selector-original.css
@@ -0,0 +1,39 @@
+* {}
+E {}
+E F {}
+E > F {}
+E + F {}
+E#id {}
+#id {}
+tab:first-child {}
+tab:last-child {}
+tab:first-child {}
+tab:last-child {}
+tab:nth-child(even) {}
+tab:nth-child(odd) {}
+.some-class {}
+.some-class.another-class {}
+.some-class .another-class {}
+E * {}
+E .class {}
+E > .foo {}
+E > #id {}
+E:active {}
+E:hover {}
+E:selected {}
+E:disabled {}
+E:indeterminate {}
+E:focus {}
+E:active:hover {}
+* > .notebook tab:first-child .label:focus {}
+E, F {}
+E, F /* comment here */ {}
+E,/* comment here */ F {}
+E1.e1_2 #T3_4 {}
+E:first-child {}
+E:last-child {}
+E:first-child {}
+E:last-child {}
+E:nth-child(even) {}
+E:nth-child(odd) {}
+E:focus tab {}
diff --git a/testsuite/css/parser/selector-original.ref.css b/testsuite/css/parser/selector-original.ref.css
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/testsuite/gtk/meson.build b/testsuite/gtk/meson.build
index e721ceaf49..e232522841 100644
--- a/testsuite/gtk/meson.build
+++ b/testsuite/gtk/meson.build
@@ -54,7 +54,6 @@ tests = [
['slicelistmodel'],
['sortlistmodel'],
['spinbutton'],
- ['stylecontext'],
['templates'],
['textbuffer'],
['textiter'],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]