-
-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test some QML
components
#5375
Test some QML
components
#5375
Conversation
🎉 Ta-daaa, freshly created APKs are available for 1f9226e: arm64-android |
Still need to enhance the coverage of this basic test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mohsenD98 , just a few comments, thanks, this already adds good additional CI checks. Lovely.
test/test_qml.cpp
Outdated
#include <qgsvectorlayereditbuffer.h> | ||
#include <qgswkbtypes.h> | ||
|
||
#include <valuemapmodel.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one last thing @mohsenD98, this is one of our own header, it should go up alongside the #include "positioning.h" and not use <>.
This pull request adds a set of tests for the QML components provided by the EditorWidgets module. The tests cover various aspects of each component, including their initial state, configuration options, and functionality. The tests are organized into separate functions, each of which focuses on a specific component.
The components tested in this pull request are:
TextEdit: Tests its ability to set and get values, as well as its configuration options for multiline and HTML text.
Range: Verifies its initial value, default values, and configuration options for style, precision, min, max, step, and suffix.
DateTime: Tests its display formats, calendar popup, and field format options.
CheckBox: Verifies its initial state, checked and unchecked states, and configuration options for display method and type.
ValueMap: Tests its properties, including toggle buttons and combobox models, as well as its value and current key value.
UuidGenerator: Verifies its initial state and value, as well as its isLoaded and isAdding properties.