[gxml] Removing warnings on GHtmlDocument tests
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] Removing warnings on GHtmlDocument tests
- Date: Wed, 6 Sep 2017 13:52:29 +0000 (UTC)
commit 434fa32641b63d4a946387fa695e7c609390b360
Author: Daniel Espinosa <esodan gmail com>
Date: Mon Sep 4 20:50:41 2017 -0700
Removing warnings on GHtmlDocument tests
test/GHtmlDocumentTest.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/test/GHtmlDocumentTest.vala b/test/GHtmlDocumentTest.vala
index 70b6f59..9e48cde 100644
--- a/test/GHtmlDocumentTest.vala
+++ b/test/GHtmlDocumentTest.vala
@@ -71,6 +71,7 @@ class GHtmlDocumentTest : GXmlTest {
}
});
Test.add_func ("/gxml/GHtmlDocument/fom_string_doc", () => {
+ try {
var sdoc = "<!doctype html>
<html>
<head>
@@ -105,6 +106,10 @@ class GHtmlDocumentTest : GXmlTest {
var s = doc.to_html ();
message (s);
assert ("style>\n * { color: red; }\n </style>" in s);
+ } catch (GLib.Error e){
+ Test.message ("ERROR: "+e.message);
+ assert_not_reached ();
+ }
});
// Test.add_func ("/gxml/GHtmlDocument/uri", () => {
// try {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]