[gxml] Unit Test: avoid test against external resource
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] Unit Test: avoid test against external resource
- Date: Wed, 9 Feb 2022 20:54:41 +0000 (UTC)
commit dc1075c56fd0960c7a596705bde62e5bc0f40de7
Author: Daniel Espinosa <esodan gmail com>
Date: Wed Feb 9 14:53:39 2022 -0600
Unit Test: avoid test against external resource
test/XHtmlDocumentTest.vala | 17 +----------------
1 file changed, 1 insertion(+), 16 deletions(-)
---
diff --git a/test/XHtmlDocumentTest.vala b/test/XHtmlDocumentTest.vala
index 2832567..3908655 100644
--- a/test/XHtmlDocumentTest.vala
+++ b/test/XHtmlDocumentTest.vala
@@ -141,21 +141,6 @@ class XHtmlDocumentTest : GLib.Object {
warning ("ERROR: "+e.message);
}
});
- Test.add_func ("/gxml/XHtmlDocument/uri", () => {
- try {
- NetworkMonitor monitor = NetworkMonitor.get_default ();
- if (!monitor.network_available) {
- message ("Network not available, abortind test");
- return;
- }
- DomDocument doc;
- doc = new XHtmlDocument.from_uri
("http://www.omgubuntu.co.uk/2017/05/kde-neon-5-10-available-download-comes-plasma-5-10");
- message (((XDocument) doc).to_string ());
- } catch (GLib.Error e){
- message ("ERROR: "+e.message);
- assert_not_reached ();
- }
- });
Test.add_func ("/gxml/XHtmlDocument/element-by-property", () => {
var src = """
<!--[if lt IE 7]> <html dir="ltr" lang="fr" data-locale="fr" data-locale-long="fr_FR"
data-locale-name="French (France)" data-locale-facebook="fr_FR" data-locale-twitter="fr"
data-locale-google="fr" data-locale-linkedin="fr_FR" class="no-js lt-ie9 lt-ie8 lt-ie7 "> <![endif]-->
@@ -1489,7 +1474,7 @@ cleanVideoTitle();
<a href="/fr/rejoindre-la-communaute" target="_self" class="">Présentation</a>
</li>
<li>
- <a href="/fr/rejoindre-communaute/faq" target="_self" class="">Aide</a>
+ <a href="/fr/rejoindre-communaute/faq" target="_self"to_string class="">Aide</a>
</li>
</ul></div>
</div>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]