If a FillWindowOperation didn't load a full amount of messages, it just assumed that there were no more to load. This is not true however when loading locally, the folder's vector isn't fully expanded, and it gets to the end of the vector. This patch fixes the operation to also queue another fill if the monitor's folder message window is smaller than the folder's total message count. Fixes #289
155 lines
4.7 KiB
Meson
155 lines
4.7 KiB
Meson
subdir('data')
|
|
|
|
geary_test_lib_sources = [
|
|
'mock-object.vala',
|
|
'test-case.vala',
|
|
]
|
|
|
|
geary_test_engine_sources = [
|
|
'test-engine.vala',
|
|
|
|
# These should be included in the test lib sources, but we can't
|
|
# since that would make the test lib depend on geary-engine.vapi,
|
|
# and the engine test sute needs to depend
|
|
# geary-engine_internal.vapi, which leads to duplicate symbols when
|
|
# linking
|
|
'engine/api/geary-account-mock.vala',
|
|
'engine/api/geary-credentials-mediator-mock.vala',
|
|
'engine/api/geary-email-identifier-mock.vala',
|
|
'engine/api/geary-email-properties-mock.vala',
|
|
'engine/api/geary-folder-mock.vala',
|
|
'engine/api/geary-folder-properties-mock.vala',
|
|
|
|
'engine/api/geary-account-information-test.vala',
|
|
'engine/api/geary-attachment-test.vala',
|
|
'engine/api/geary-engine-test.vala',
|
|
'engine/api/geary-folder-path-test.vala',
|
|
'engine/api/geary-service-information-test.vala',
|
|
'engine/app/app-conversation-test.vala',
|
|
'engine/app/app-conversation-monitor-test.vala',
|
|
'engine/app/app-conversation-set-test.vala',
|
|
'engine/db/db-database-test.vala',
|
|
'engine/db/db-versioned-database-test.vala',
|
|
'engine/imap/command/imap-create-command-test.vala',
|
|
'engine/imap/command/imap-fetch-command-test.vala',
|
|
'engine/imap/message/imap-data-format-test.vala',
|
|
'engine/imap/message/imap-mailbox-specifier-test.vala',
|
|
'engine/imap/parameter/imap-list-parameter-test.vala',
|
|
'engine/imap/response/imap-namespace-response-test.vala',
|
|
'engine/imap/transport/imap-deserializer-test.vala',
|
|
'engine/imap-db/imap-db-account-test.vala',
|
|
'engine/imap-db/imap-db-attachment-test.vala',
|
|
'engine/imap-db/imap-db-database-test.vala',
|
|
'engine/imap-db/imap-db-folder-test.vala',
|
|
'engine/imap-engine/account-processor-test.vala',
|
|
'engine/mime-content-type-test.vala',
|
|
'engine/rfc822-mailbox-address-test.vala',
|
|
'engine/rfc822-mailbox-addresses-test.vala',
|
|
'engine/rfc822-message-test.vala',
|
|
'engine/rfc822-message-data-test.vala',
|
|
'engine/rfc822-part-test.vala',
|
|
'engine/rfc822-utils-test.vala',
|
|
'engine/util-ascii-test.vala',
|
|
'engine/util-config-file-test.vala',
|
|
'engine/util-html-test.vala',
|
|
'engine/util-idle-manager-test.vala',
|
|
'engine/util-inet-test.vala',
|
|
'engine/util-js-test.vala',
|
|
'engine/util-string-test.vala',
|
|
'engine/util-timeout-manager-test.vala',
|
|
|
|
geary_test_engine_resources
|
|
]
|
|
|
|
geary_test_client_sources = [
|
|
'test-client.vala',
|
|
|
|
# These should be included in the test lib sources, but we can't
|
|
# since that would make the test lib depend on geary-engine.vapi,
|
|
# and the engine test sute needs to depend
|
|
# geary-engine_internal.vapi, which leads to duplicate symbols when
|
|
# linking
|
|
'engine/api/geary-email-identifier-mock.vala',
|
|
'engine/api/geary-credentials-mediator-mock.vala',
|
|
|
|
'client/accounts/accounts-manager-test.vala',
|
|
'client/application/geary-configuration-test.vala',
|
|
'client/components/client-web-view-test.vala',
|
|
'client/components/client-web-view-test-case.vala',
|
|
'client/composer/composer-web-view-test.vala',
|
|
'client/util/util-avatar-test.vala',
|
|
'client/util/util-email-test.vala',
|
|
|
|
'js/client-page-state-test.vala',
|
|
'js/composer-page-state-test.vala',
|
|
'js/conversation-page-state-test.vala',
|
|
|
|
geary_compiled_schema,
|
|
geary_resources
|
|
]
|
|
|
|
geary_test_integration_sources = [
|
|
'test-integration.vala',
|
|
|
|
'integration/imap/client-session.vala',
|
|
]
|
|
|
|
geary_test_lib_dependencies = [
|
|
gee,
|
|
gio,
|
|
glib
|
|
]
|
|
|
|
geary_test_engine_dependencies = [
|
|
geary_engine_internal_dep
|
|
]
|
|
geary_test_engine_dependencies += geary_engine_dependencies
|
|
|
|
geary_test_client_dependencies = [
|
|
geary_client_dep
|
|
]
|
|
geary_test_client_dependencies += geary_client_dependencies
|
|
|
|
geary_test_lib = static_library('test-lib',
|
|
geary_test_lib_sources,
|
|
dependencies: geary_test_lib_dependencies,
|
|
include_directories: config_h_dir,
|
|
vala_args: geary_vala_options,
|
|
c_args: geary_c_options,
|
|
)
|
|
|
|
geary_test_engine_bin = executable('test-engine',
|
|
geary_test_engine_sources,
|
|
link_with: geary_test_lib,
|
|
dependencies: geary_test_engine_dependencies,
|
|
include_directories: config_h_dir,
|
|
vala_args: geary_vala_options,
|
|
c_args: geary_c_options,
|
|
)
|
|
|
|
geary_test_client_bin = executable('test-client',
|
|
geary_test_client_sources,
|
|
dependencies: geary_test_client_dependencies,
|
|
link_with: geary_test_lib,
|
|
include_directories: config_h_dir,
|
|
vala_args: geary_vala_options,
|
|
c_args: geary_c_options,
|
|
)
|
|
|
|
geary_test_integration_bin = executable('test-integration',
|
|
geary_test_integration_sources,
|
|
dependencies: [
|
|
geary_engine_dep,
|
|
gee,
|
|
gio,
|
|
gmime,
|
|
webkit2gtk,
|
|
],
|
|
link_with: geary_test_lib,
|
|
include_directories: config_h_dir,
|
|
vala_args: geary_vala_options,
|
|
c_args: geary_c_options,
|
|
)
|
|
|
|
test('engine-tests', geary_test_engine_bin)
|
|
test('client-tests', geary_test_client_bin)
|