This allows people with dark themes to apply style to the cmoposer's body editor as well as to conversation bodies. Note that this CSS does not get sent, so WYSIWYG will break if people choose to do this. Also renames the user CSS file from user-message.css to user-style.css, but still looks for the old name for now. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=714129
34 lines
1,017 B
Vala
34 lines
1,017 B
Vala
/*
|
|
* Copyright 2016 Michael Gratton <mike@vee.net>
|
|
*
|
|
* This software is licensed under the GNU Lesser General Public License
|
|
* (version 2.1 or later). See the COPYING file in this distribution.
|
|
*/
|
|
|
|
public class ClientWebViewTest : TestCase {
|
|
|
|
public ClientWebViewTest() {
|
|
base("ClientWebViewTest");
|
|
add_test("init_web_context", init_web_context);
|
|
add_test("load_resources", load_resources);
|
|
}
|
|
|
|
public void init_web_context() throws Error {
|
|
Configuration config = new Configuration(GearyApplication.APP_ID);
|
|
ClientWebView.init_web_context(
|
|
config,
|
|
File.new_for_path(_BUILD_ROOT_DIR).get_child("src"),
|
|
File.new_for_path("/tmp"), // XXX use something better here
|
|
true
|
|
);
|
|
}
|
|
|
|
public void load_resources() throws GLib.Error {
|
|
try {
|
|
ClientWebView.load_resources(GLib.File.new_for_path("/tmp"));
|
|
} catch (GLib.Error err) {
|
|
assert_not_reached();
|
|
}
|
|
}
|
|
|
|
}
|