[geary/wip/713530-background-sync: 1/9] Update unit tests after recent changes.



commit b8304b594b1fad6a651a86554b6d1696aeca662b
Author: Michael James Gratton <mike vee net>
Date:   Thu Nov 23 09:37:59 2017 +1100

    Update unit tests after recent changes.

 .../response/imap-namespace-response-test.vala     |   10 +++++-----
 test/engine/util-html-test.vala                    |    4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/test/engine/imap/response/imap-namespace-response-test.vala 
b/test/engine/imap/response/imap-namespace-response-test.vala
index d897e11..04a19ba 100644
--- a/test/engine/imap/response/imap-namespace-response-test.vala
+++ b/test/engine/imap/response/imap-namespace-response-test.vala
@@ -43,17 +43,17 @@ class Geary.Imap.NamespaceResponseTest : Gee.TestCase {
 
             NamespaceResponse response = NamespaceResponse.decode(data);
             assert(response.personal != null);
-            assert(response.personal.length == 1);
+            assert(response.personal.size == 1);
             assert(response.personal[0].prefix == "");
             assert(response.personal[0].delim == "/");
 
             assert(response.user != null);
-            assert(response.user.length == 1);
+            assert(response.user.size == 1);
             assert(response.user[0].prefix == "~");
             assert(response.user[0].delim == "/");
 
             assert(response.shared != null);
-            assert(response.shared.length == 1);
+            assert(response.shared.size == 1);
             assert(response.shared[0].prefix == "#shared/");
             assert(response.shared[0].delim == "/");
         } catch (Error err) {
@@ -76,7 +76,7 @@ class Geary.Imap.NamespaceResponseTest : Gee.TestCase {
             assert(response.personal[0].delim == ".");
             assert(response.user == null);
             assert(response.shared != null);
-            assert(response.shared.length == 1);
+            assert(response.shared.size == 1);
             assert(response.shared[0].prefix == "");
             assert(response.shared[0].delim == ".");
         } catch (Error err) {
@@ -95,7 +95,7 @@ class Geary.Imap.NamespaceResponseTest : Gee.TestCase {
             assert(response.personal == null);
             assert(response.user == null);
             assert(response.shared != null);
-            assert(response.shared.length == 1);
+            assert(response.shared.size == 1);
             assert(response.shared[0].prefix == "");
             assert(response.shared[0].delim == ",");
         } catch (Error err) {
diff --git a/test/engine/util-html-test.vala b/test/engine/util-html-test.vala
index 3eb25de..4a6bf6c 100644
--- a/test/engine/util-html-test.vala
+++ b/test/engine/util-html-test.vala
@@ -46,12 +46,12 @@ class Geary.HTML.UtilTest : Gee.TestCase {
 
     public void smart_escape_text() {
         string text = "some text";
-        assert(Geary.HTML.smart_escape(text, false) == "<div style='white-space: pre;'>some text</div>");
+        assert(Geary.HTML.smart_escape(text, false) == "<div style='white-space: pre-wrap;'>some 
text</div>");
     }
 
     public void smart_escape_text_url() {
         string text = "<http://example.com>";
-        assert(Geary.HTML.smart_escape(text, false) == "<div style='white-space: 
pre;'>&lt;http://example.com&gt;</div>");
+        assert(Geary.HTML.smart_escape(text, false) == "<div style='white-space: 
pre-wrap;'>&lt;http://example.com&gt;</div>");
     }
 
     public void remove_html_tags() {


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