diff --git a/main/tests/server/src/com/google/refine/tests/expr/functions/html/ParseHtmlTests.java b/main/tests/server/src/com/google/refine/tests/expr/functions/html/ParseHtmlTests.java index 0442acb1b..b6838331b 100644 --- a/main/tests/server/src/com/google/refine/tests/expr/functions/html/ParseHtmlTests.java +++ b/main/tests/server/src/com/google/refine/tests/expr/functions/html/ParseHtmlTests.java @@ -79,6 +79,7 @@ public class ParseHtmlTests extends RefineTest { Assert.assertTrue(invoke("innerHtml",Jsoup.parse(h).select("p").first()) instanceof String); Assert.assertEquals(invoke("innerHtml",Jsoup.parse(h).select("p").first()),"para1 strong text"); Assert.assertEquals(invoke("htmlAttr",Jsoup.parse(h).select("div").first(),"class"),"class1"); + Assert.assertEquals(invoke("htmlText",Jsoup.parse(h).select("div").first()),"para1 strong text para2"); Assert.assertEquals(invoke("ownText",Jsoup.parse(h).select("p").first()),"para1"); } } diff --git a/main/tests/server/src/com/google/refine/tests/expr/functions/xml/ParseXmlTests.java b/main/tests/server/src/com/google/refine/tests/expr/functions/xml/ParseXmlTests.java index c1babf345..e58f6b101 100644 --- a/main/tests/server/src/com/google/refine/tests/expr/functions/xml/ParseXmlTests.java +++ b/main/tests/server/src/com/google/refine/tests/expr/functions/xml/ParseXmlTests.java @@ -86,6 +86,7 @@ public class ParseXmlTests extends RefineTest { Assert.assertEquals(invoke("innerXml",Jsoup.parse(x,"",Parser.xmlParser()).select("foaf|Person").first()),"\n John Doe\n\n\n head1\n\n\n head2\n\n\n body1\n\n"); Assert.assertEquals(invoke("xmlAttr",Jsoup.parse(x,"",Parser.xmlParser()).select("foaf|homepage").first(),"rdf:resource"),"http://www.example.com"); Assert.assertEquals(invoke("ownText",Jsoup.parse(x,"",Parser.xmlParser()).select("BODY").first()),"body1"); + Assert.assertEquals(invoke("xmlText",Jsoup.parse(x,"",Parser.xmlParser()).select("foaf|Person").first()),"John Doe head1 head2 body1"); } }