[geary: 1/3] tests/client: Make sure WebView tests load resources




commit fe30e49b747cb16c25ba9f4ae32350b93dd70c49
Author: Guido Günther <agx sigxcpu org>
Date:   Mon Jul 5 11:47:19 2021 +0200

    tests/client: Make sure WebView tests load resources
    
    Without that the client tests fail like
    
      ** (test-client:74671): CRITICAL **: 11:32:40.613: void 
webkit_user_content_manager_add_style_sheet(WebKitUserContentManager*, WebKitUserStyleSheet*): assertion 
'styleSheet' failed
    
    This was so far masked since the composer-page-state-test JS tests did
    that but test suites should be independent.

 test/client/composer/composer-web-view-test.vala | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/test/client/composer/composer-web-view-test.vala 
b/test/client/composer/composer-web-view-test.vala
index 31005d5f0..8d02f0d22 100644
--- a/test/client/composer/composer-web-view-test.vala
+++ b/test/client/composer/composer-web-view-test.vala
@@ -24,6 +24,12 @@ public class Composer.WebViewTest : Components.WebViewTestCase<Composer.WebView>
         add_test("get_text_with_url_link", get_text_with_named_link);
         add_test("get_text_with_surrounding_nbsps", get_text_with_surrounding_nbsps);
         add_test("update_signature", update_signature);
+
+        try {
+            WebView.load_resources();
+        } catch (Error err) {
+            GLib.assert_not_reached();
+        }
     }
 
     public void load_resources() throws Error {


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