[gxml] Added Unit Test for CssSelectorParser



commit ea276c62d2fe8459838931f5a0ede752d8ba1c27
Author: Daniel Espinosa <esodan gmail com>
Date:   Tue Sep 5 15:51:22 2017 -0700

    Added Unit Test for CssSelectorParser

 gxml/Makefile.am              |    1 +
 gxml/css-selector-parser.vala |    2 +-
 test/GXmlTest.vala            |    1 +
 test/Makefile.am              |    1 +
 test/meson.build              |    1 +
 5 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gxml/Makefile.am b/gxml/Makefile.am
index 5f6e2e1..ac40c0a 100644
--- a/gxml/Makefile.am
+++ b/gxml/Makefile.am
@@ -12,6 +12,7 @@ BUILT_SOURCES=
 
 # Vala source code
 sources = \
+        css-selector-parser.vala \
        gxml-init.vala \
        namespace-info.vala \
        Attribute.vala \
diff --git a/gxml/css-selector-parser.vala b/gxml/css-selector-parser.vala
index 8f22413..d8c62b7 100644
--- a/gxml/css-selector-parser.vala
+++ b/gxml/css-selector-parser.vala
@@ -55,7 +55,7 @@ public struct GXml.CssSelectorData {
        public string value;
 }
 
-public class GXml.CssCssSelectorParser : GLib.Object {
+public class GXml.CssSelectorParser : GLib.Object {
        Gee.ArrayList<CssSelectorData?> list;
        
        construct {
diff --git a/test/GXmlTest.vala b/test/GXmlTest.vala
index 9efba8b..313c1fb 100644
--- a/test/GXmlTest.vala
+++ b/test/GXmlTest.vala
@@ -65,6 +65,7 @@ class GXmlTest {
                GomElementTest.add_tests ();
                GomSerializationTest.add_tests ();
                GomSchemaTest.add_tests ();
+               CssSelectorTest.add_tests ();
 
                                Test.run ();
 
diff --git a/test/Makefile.am b/test/Makefile.am
index c2067b1..cdfcb32 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -26,6 +26,7 @@ noinst_PROGRAMS = $(TEST_PROGS)
 TEST_PROGS += gxml_test
 
 sources = \
+        CssSelectorTest.vala \
        GXmlTest.vala \
        NodeListTest.vala \
        ValaLibxml2Test.vala \
diff --git a/test/meson.build b/test/meson.build
index cb915e1..d9099f5 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -5,6 +5,7 @@ testdirs_dep = declare_dependency (compile_args : [
 
 files_tests = ([
                'GXmlTest.vala',
+               'CssSelectorTest.vala',
                'NodeListTest.vala',
                'ValaLibxml2Test.vala',
                'EnumerationTest.vala',


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