[gxml] Moved XPath tests to one generic file



commit 178aa9aaa25b8766bc5886a50ad50d27238ab0ff
Author: Daniel Espinosa <esodan gmail com>
Date:   Mon Oct 3 18:43:08 2016 -0500

    Moved XPath tests to one generic file

 test/GXmlTest.vala                              |    2 +-
 test/Makefile.am                                |    2 +-
 test/{GElementXPathTest.vala => XPathTest.vala} |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/test/GXmlTest.vala b/test/GXmlTest.vala
index 4e15c12..e58bc24 100644
--- a/test/GXmlTest.vala
+++ b/test/GXmlTest.vala
@@ -86,7 +86,7 @@ class GXmlTest {
                GAttributeTest.add_tests ();
                HtmlDocumentTest.add_tests ();
                DomGDocumentTest.add_tests ();
-               GElementXPathTest.add_tests ();
+               XPathTest.add_tests ();
 
                Test.run ();
 
diff --git a/test/Makefile.am b/test/Makefile.am
index c63081c..8187efa 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -64,7 +64,7 @@ sources = \
        GAttributeTest.vala \
        HtmlDocumentTest.vala \
        DomGDocumentTest.vala \
-       GElementXPathTest.vala \
+       XPathTest.vala \
        $(NULL)
 
 vala-stamp: $(sources)
diff --git a/test/GElementXPathTest.vala b/test/XPathTest.vala
similarity index 99%
rename from test/GElementXPathTest.vala
rename to test/XPathTest.vala
index ee5f873..d3de39a 100644
--- a/test/GElementXPathTest.vala
+++ b/test/XPathTest.vala
@@ -24,7 +24,7 @@
 
 using GXml;
 
-class GElementXPathTest : GXmlTest  {
+class XPathTest : GXmlTest  {
   // Taken from:
   const string BOOKS = """<bookstore><book category="COOKING"><title lang="en">Everyday 
Italian</title><author>Giada De Laurentiis</author><year>2005</year><price>30.00</price></book><book 
category="CHILDREN"><title lang="en">Harry Potter</title><author>J K. 
Rowling</author><year>2005</year><price>29.99</price></book><book category="WEB"><title lang="en">XQuery Kick 
Start</title><author>James McGovern</author><author>Per Bothner</author><author>Kurt 
Cagle</author><author>James Linn</author><author>Vaidyanathan 
Nagarajan</author><year>2003</year><price>49.99</price></book><book category="WEB"><title lang="en">Learning 
XML</title><author>Erik T. Ray</author><year>2003</year><price>39.95</price></book></bookstore>""";
   public static void add_tests () {


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