tests: Fix ComposerWebViewTest:get_html_for_draft
Our test wasn't using the appropriate callback `.end()` function, which was failing the test with the latest Vala nightly releases, breaking the Flatpak build in our CI already too. This should fix that issue.
This commit is contained in:
parent
b1e53e5e7d
commit
54d6fe2601
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ public class Composer.WebViewTest : Components.WebViewTestCase<Composer.WebView>
|
||||||
string BODY = "<p>para</p>";
|
string BODY = "<p>para</p>";
|
||||||
load_body_fixture(BODY);
|
load_body_fixture(BODY);
|
||||||
this.test_view.get_html_for_draft.begin(this.async_completion);
|
this.test_view.get_html_for_draft.begin(this.async_completion);
|
||||||
string html = this.test_view.get_html.end(async_result());
|
string html = this.test_view.get_html_for_draft.end(async_result());
|
||||||
assert_equal(html, PageStateTest.COMPLETE_BODY_TEMPLATE.printf(BODY));
|
assert_equal(html, PageStateTest.COMPLETE_BODY_TEMPLATE.printf(BODY));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue