Commit 143d8a7a authored by T.J. Corona's avatar T.J. Corona
Browse files

Add tests for widgets

parent 0629029d
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
This source diff could not be displayed because it is stored in LFS. You can view the blob instead.
......@@ -19,3 +19,7 @@ vtk_module_link(smtkPQWidgetsExt
smtkQtExt
PRIVATE
vtkSMTKWidgetsExt)
if (SMTK_ENABLE_TESTING)
add_subdirectory(testing)
endif()
<?xml version="1.0" ?>
<pqevents>
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionServerDisconnect" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/attribute/widgets/gallery-box.sbt" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/cameraToolbar/actionResetCamera" command="activate" arguments="" />
</pqevents>
set(TESTS_WITH_BASELINES
${CMAKE_CURRENT_SOURCE_DIR}/BoxWidget.xml
${CMAKE_CURRENT_SOURCE_DIR}/ConeWidget.xml
${CMAKE_CURRENT_SOURCE_DIR}/LineWidget.xml
${CMAKE_CURRENT_SOURCE_DIR}/PlaneWidget.xml
${CMAKE_CURRENT_SOURCE_DIR}/PointWidget.xml
${CMAKE_CURRENT_SOURCE_DIR}/SphereWidget.xml
${CMAKE_CURRENT_SOURCE_DIR}/SplineWidget.xml
)
include(SMTKPVTestingMacros)
#TODO: this should be set for the entire project's xml tests
set(ConeWidget_USES_DIRECT_DATA ON)
set(BoxWidget_USES_DIRECT_DATA ON)
set(LineWidget_USES_DIRECT_DATA ON)
set(PlaneWidget_USES_DIRECT_DATA ON)
set(PointWidget_USES_DIRECT_DATA ON)
set(SphereWidget_USES_DIRECT_DATA ON)
set(SplineWidget_USES_DIRECT_DATA ON)
if (SMTK_DATA_DIR)
smtk_add_client_tests(
# LABEL "pv_meshsession"
TEST_SCRIPTS ${TESTS_WITH_BASELINES}
LOAD_PLUGINS
smtkPVServerExtPlugin
smtkPQComponentsPlugin
smtkPQWidgetsPlugin
PLUGIN_PATHS
$<TARGET_FILE_DIR:smtkPQComponentsPlugin>/..
$<TARGET_FILE_DIR:smtkPVServerExtPlugin>/..
$<TARGET_FILE_DIR:smtkPQWidgetsPlugin>/..
DATA_DIRECTORY ${PROJECT_SOURCE_DIR}/data
BASELINE_DIR ${PROJECT_SOURCE_DIR}/data/baseline/smtk/widgets
)
endif()
<?xml version="1.0" ?>
<pqevents>
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionServerDisconnect" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/attribute/widgets/gallery-cone.sbt" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/cameraToolbar/actionResetCamera" command="activate" arguments="" />
</pqevents>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment