[gxml/gxml-0.20] Unit Tests: split CssSelector tests
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml/gxml-0.20] Unit Tests: split CssSelector tests
- Date: Mon, 23 Aug 2021 03:06:43 +0000 (UTC)
commit 52befa2ad504aa74687ee267a31a28cb47db2823
Author: Daniel Espinosa <esodan gmail com>
Date: Mon Mar 15 23:06:00 2021 -0600
Unit Tests: split CssSelector tests
test/CssSelectorTest.vala | 9 +++++++--
test/GXmlDomTest.vala | 1 -
test/meson.build | 14 +++++++++++++-
3 files changed, 20 insertions(+), 4 deletions(-)
---
diff --git a/test/CssSelectorTest.vala b/test/CssSelectorTest.vala
index 2b7fbbb9..9a3e8355 100644
--- a/test/CssSelectorTest.vala
+++ b/test/CssSelectorTest.vala
@@ -22,8 +22,9 @@
using GXml;
-class CssSelectorTest : GXmlTest {
- public static void add_tests () {
+class CssSelectorTest : GLib.Object {
+ public static int main (string[] args) {
+ Test.init (ref args);
Test.add_func ("/gxml/css-selector/all", () => {
try {
var cp = new CssSelectorParser ();
@@ -769,5 +770,9 @@ class CssSelectorTest : GXmlTest {
warning ("ERROR: "+e.message);
}
});
+
+ Test.run ();
+
+ return 0;
}
}
diff --git a/test/GXmlDomTest.vala b/test/GXmlDomTest.vala
index ccdd02f1..f1a88457 100644
--- a/test/GXmlDomTest.vala
+++ b/test/GXmlDomTest.vala
@@ -30,7 +30,6 @@ class GXmlTest {
// Sets 29 as fatal flags, 16 + 8 + 4 + 1; bits 0,2,3,4, recursion,error,critical,warning;
we'll want to undo that warning one so we can catch it
Test.init (ref args);
GomSchemaTest.add_tests ();
- CssSelectorTest.add_tests ();
Test.run ();
diff --git a/test/meson.build b/test/meson.build
index ad59dc01..d64e6c5a 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -25,7 +25,6 @@ test ('libxml-tests', xt)
files_tests = files ([
'GXmlDomTest.vala',
- 'CssSelectorTest.vala',
'XsdSchemaTest.vala',
])
@@ -77,6 +76,19 @@ tserialization = executable('serialization', files_serialization_tests + configv
test ('serialization', tserialization)
+files_css_tests = files ([
+ 'CssSelectorTest.vala',
+ ])
+
+tcss = executable('css', files_css_tests + configvapi + configtestvapi,
+ vala_args : [],
+ c_args: tests_cargs,
+ dependencies : [ libgxml_deps, inc_libh_dep, testdirs_dep, inc_rooth_dep],
+ link_with: libgxml
+)
+
+test ('css', tcss)
+
html_tests = files ([
'HtmlDocumentTest.vala',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]