[geary/wip/726281-text-attachment-crlf: 12/13] Push GResource URL for test data down so it's accessible to all tests.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/726281-text-attachment-crlf: 12/13] Push GResource URL for test data down so it's accessible to all tests.
- Date: Fri, 18 May 2018 23:28:02 +0000 (UTC)
commit f78939ce0027af7de5599998722f443f0e05b78b
Author: Michael James Gratton <mike vee net>
Date: Sat May 19 09:22:23 2018 +1000
Push GResource URL for test data down so it's accessible to all tests.
test/engine/rfc822-message-test.vala | 1 -
test/test-case.vala | 5 +++++
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/test/engine/rfc822-message-test.vala b/test/engine/rfc822-message-test.vala
index 75affed..f32f871 100644
--- a/test/engine/rfc822-message-test.vala
+++ b/test/engine/rfc822-message-test.vala
@@ -7,7 +7,6 @@
class Geary.RFC822.MessageTest : TestCase {
- private const string RESOURCE_URI = "resource:///org/gnome/GearyTest";
private const string BASIC_TEXT_PLAIN = "basic-text-plain.eml";
private const string BASIC_TEXT_HTML = "basic-text-html.eml";
diff --git a/test/test-case.vala b/test/test-case.vala
index 1d72561..166bf32 100644
--- a/test/test-case.vala
+++ b/test/test-case.vala
@@ -152,9 +152,14 @@ private inline void print_assert(string message, string? context) {
GLib.stderr.putc('\n');
}
+
public abstract class TestCase : Object {
+ /** GLib.File URI for resources in test/data. */
+ public const string RESOURCE_URI = "resource:///org/gnome/GearyTest";
+
+
private class SignalWaiter : Object {
public bool was_fired = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]