Commit 4276964f authored by Cory Quammen's avatar Cory Quammen

Added test for color legend scaling

The test does not work property on Macs connected to hi-resolution
displays, so for now it is disabled on Apple.
parent 06b65776
......@@ -128,6 +128,13 @@ SET (TESTS_WITH_INLINE_COMPARES
${CMAKE_CURRENT_SOURCE_DIR}/XYHistogram.xml
)
if(NOT APPLE)
# Workaround to avoid testing failures on high-res Retina displays on Macs
list(APPEND TESTS_WITH_INLINE_COMPARES
${CMAKE_CURRENT_SOURCE_DIR}/ColorLegendScaledScreenshot.xml
)
endif()
SET(TESTS_WITH_BASELINES
${CMAKE_CURRENT_SOURCE_DIR}/MoleculeScalarBar.xml
${CMAKE_CURRENT_SOURCE_DIR}/TestDataGridAxes.xml
......
<?xml version="1.0" ?>
<pqevents>
<pqevent object="pqClientMainWindow/menubar/menuSources" command="activate" arguments="SphereSource" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/variableToolbar/displayColor/Variables" command="activated" arguments="Normals" />
<pqevent object="pqClientMainWindow/variableToolbar/displayColor/Components" command="activated" arguments="X" />
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
<pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionTesting_Window_Size_Custom" />
<pqevent object="pqClientMainWindow/pqLockViewSizeCustomDialog/Width" command="set_string" arguments="300" />
<pqevent object="pqClientMainWindow/pqLockViewSizeCustomDialog/Height" command="set_string" arguments="300" />
<pqevent object="pqClientMainWindow/pqLockViewSizeCustomDialog/ButtonBox/1QPushButton0" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/menubar/menu_File" command="activate" arguments="actionFileSaveScreenshot" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/scrollArea/qt_scrollarea_viewport/Container/ProxyWidget/ImageResolution/scaleTwice" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/widget/OKButton" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileSaveScreenshotDialog" command="filesSelected" arguments="$PARAVIEW_TEST_ROOT/colorlegendscaledscreenshot.png" />
<!-- compare the saved screenshot -->
<pqcompareimage image="$PARAVIEW_TEST_ROOT/colorlegendscaledscreenshot.png" baseline="$PARAVIEW_DATA_ROOT/Baseline/ColorLegendScaledScreenshot.png" />
</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