Skip to content

Commit

Permalink
Improve the test
Browse files Browse the repository at this point in the history
  • Loading branch information
ntadej committed Aug 30, 2024
1 parent 566a8be commit 70139fb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/qml/qt6/tst_style_parameters.qml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,13 @@ Item {
}

function test_style_1_filter_change() {
filterParam.expression = ["==", "ADM0_A3", "USA"]
compare(filterParam.expression, ["==", "ADM0_A3", "USA"])
wait(500)
// Test graceful handling of invalid filter
filterParam.expression = [123, "ADM0_A3", 123]
compare(filterParam.expression, [123, "ADM0_A3", 123])
// Test updating of the filter
filterParam.expression = ["==", "ADM0_A3", "USA"]
compare(filterParam.expression, ["==", "ADM0_A3", "USA"])
wait(500)
}

function test_style_2_filter_remove() {
Expand Down

0 comments on commit 70139fb

Please sign in to comment.