Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
biscuitcakes committed Oct 10, 2024
1 parent 7e2db6e commit bf91bcc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ file(GLOB QML_TEST_FILES
qml/ColorPalette.qml
qml/Constants.qml
qml/AppStyle.qml
qml/common/FirelightButton.qml
qml/common/DetailsButton.qml
qml/common/RightClickMenu.qml
qml/common/RightClickMenuItem.qml
Expand Down Expand Up @@ -298,7 +299,7 @@ set_target_properties(fl_qml_test PROPERTIES
target_link_libraries(fl_qml_test PUBLIC firelight_lib)
add_definitions(-DQUICK_TEST_SOURCE_DIR="${CMAKE_CURRENT_SOURCE_DIR}")

add_test(NAME QMLTests COMMAND fl_qml_test -platform offscreen)
#add_test(NAME QMLTests COMMAND fl_qml_test -platform offscreen)

#target_compile_options(fl_test PUBLIC "-fprofile-instr-generate" "-fcoverage-mapping")
#target_link_options(fl_test PUBLIC "-fprofile-instr-generate" "-fcoverage-mapping")
Expand Down
12 changes: 6 additions & 6 deletions qml_tests/common/tst_NavigationTabBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ Item {

compare(control.currentIndex, 0, "currentIndex is correct")
compare(highlight.width, 100, "highlight width is correct")
compare(highlight.height, 2, "highlight height is correct")
compare(highlight.radius, 1, "highlight radius is correct")
compare(highlight.height, 4, "highlight height is correct")
compare(highlight.radius, 2, "highlight radius is correct")
compare(highlight.color, "#ffffff", "highlight color is correct")
compare(highlight.y, 100, "highlight y is correct")
compare(highlight.x, 0, "highlight x is correct")
Expand Down Expand Up @@ -81,27 +81,27 @@ Item {

compare(textOne.text, "Hi", "buttonOne text is correct")
compare(textOne.color, "#ffffff", "text color is correct")
compare(textOne.font.pointSize, 11, "text pointSize is correct")
compare(textOne.font.pixelSize, 15, "text pointSize is correct")
compare(textOne.font.weight, Font.Bold, "text weight is correct")
verify(buttonOne.checked, "buttonOne is checked")

compare(textTwo.text, "There", "buttonTwo text is correct")
compare(textTwo.color, "#ffffff", "text color is correct")
compare(textTwo.font.pointSize, 11, "text pointSize is correct")
compare(textTwo.font.pixelSize, 15, "text pointSize is correct")
compare(textTwo.font.weight, Font.Normal, "text weight is correct")
verify(!buttonTwo.checked, "buttonTwo is not checked")

mouseClick(buttonTwo)

compare(textTwo.text, "There", "buttonTwo text is correct")
compare(textTwo.color, "#ffffff", "text color is correct")
compare(textTwo.font.pointSize, 11, "text pointSize is correct")
compare(textTwo.font.pixelSize, 15, "text pointSize is correct")
compare(textTwo.font.weight, Font.Bold, "text weight is correct")
verify(buttonTwo.checked, "buttonTwo is checked")

compare(textOne.text, "Hi", "buttonOne text is correct")
compare(textOne.color, "#ffffff", "text color is correct")
compare(textOne.font.pointSize, 11, "text pointSize is correct")
compare(textOne.font.pixelSize, 15, "text pointSize is correct")
compare(textOne.font.weight, Font.Normal, "text weight is correct")
verify(!buttonOne.checked, "buttonOne is not checked")

Expand Down

0 comments on commit bf91bcc

Please sign in to comment.