Commit 6c4dd494 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

Update tests after SaveScreenshot dialog changes.

parent 5ae0df07
......@@ -41,7 +41,6 @@ paraview_test_load_data(""
dualSphereAnimation.clone.pvd
dualSphereAnimation.pvd
"iron protein.vtk"
LoadStateMultiView.pvsm
LoadState.pvsm
minimal.nii
MultiBlockWithPieces_0_0.vtp
......@@ -796,7 +795,7 @@ SET (NiftiReaderWriterPlugin_DISABLE_CS TRUE)
SET (NiftiReaderWriterPlugin_DISABLE_CRS TRUE)
# Set image threshold overrides for the tests.
SET(SaveLargeScreenshot_THRESHOLD 10000)
SET(SaveLargeScreenshot_THRESHOLD 40)
# Make these tests use reverse connection.
SET (CutMulti_REVERSE_CONNECT TRUE)
......
......@@ -27,24 +27,21 @@
<pqevent object="pqClientMainWindow/menubar/menu_File" command="activate" arguments="actionFileLoadServerState" />
<pqevent object="pqClientMainWindow/FileLoadServerStateDialog" command="filesSelected" arguments="$PARAVIEW_TEST_ROOT/LoadStateMultiView.pvsm" />
<!-- add a 3 pixel multi-view border in red -->
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menu_Edit" />
<pqevent object="pqClientMainWindow/menubar/menu_Edit" command="activate" arguments="actionEditSettings" />
<pqevent object="pqClientMainWindow/ApplicationSettings/SearchBox/SearchLineEdit" command="set_string" arguments="border" />
<pqevent object="pqClientMainWindow/ApplicationSettings/stackedWidget/ScrollAreaGeneralSettings/qt_scrollarea_viewport/Container/ProxyWidget/MultiViewImageBorderColor/ColorButton" command="setChosenColor" arguments="170,0,0" />
<pqevent object="pqClientMainWindow/ApplicationSettings/stackedWidget/ScrollAreaGeneralSettings/qt_scrollarea_viewport/Container/ProxyWidget/MultiViewImageBorderWidth/IntRangeWidget/LineEdit" command="set_string" arguments="3" />
<pqevent object="pqClientMainWindow/ApplicationSettings/buttonBox/1QPushButton0" command="activate" arguments="" />
<!-- now save a multiview screenshot with a size deliberately less than the application window.
This excercises a different component of the screen capture than when the size is greater,
which is already tested by another test. -->
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menu_File" />
<pqevent object="pqClientMainWindow/menubar/menu_File" command="activate" arguments="actionFileSaveScreenshot" />
<pqevent object="pqClientMainWindow/SaveSnapshotDialog/selectedViewOnly" command="set_boolean" arguments="false" />
<pqevent object="pqClientMainWindow/SaveSnapshotDialog/width" command="set_string" arguments="500" />
<pqevent object="pqClientMainWindow/SaveSnapshotDialog/height" command="set_string" arguments="500" />
<pqevent object="pqClientMainWindow/SaveSnapshotDialog/ok" command="activate" arguments="" />
<!-- save all views -->
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/scrollArea/qt_scrollarea_viewport/Container/ProxyWidget/SaveAllViews/CheckBox" command="set_boolean" arguments="true" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/scrollArea/qt_scrollarea_viewport/Container/ProxyWidget/ImageResolution/width" command="set_string" arguments="500" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/scrollArea/qt_scrollarea_viewport/Container/ProxyWidget/ImageResolution/height" command="set_string" arguments="500" />
<!-- add a 3 pixel multi-view border in red -->
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/scrollArea/qt_scrollarea_viewport/Container/ProxyWidget/SeparatorWidth/IntRangeWidget/LineEdit" command="set_string" arguments="3" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/scrollArea/qt_scrollarea_viewport/Container/ProxyWidget/SeparatorColor/ColorButton" command="setChosenColor" arguments="170,0,0" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/scrollArea/qt_scrollarea_viewport/Container/ProxyWidget/OverrideColorPalette/ComboBox" command="activated" arguments="White Background" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/widget/OKButton" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileSaveScreenshotDialog" command="filesSelected" arguments="$PARAVIEW_TEST_ROOT/testmultiviewcapture.png" />
<!-- compare the saved screenshot -->
......
......@@ -9,6 +9,11 @@
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuFilters" />
<pqevent object="pqClientMainWindow/menubar/menuFilters/DataAnalysis" command="activate" arguments="PlotAttributes" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<!-- for now, hide showing data til paraview/paraview#17308 is fixed. -->
<pqevent object="pqClientMainWindow/pipelineBrowserDock/pipelineBrowser" command="mousePress" arguments="1,1,0,14,10,/0:0/0:0/0:0/0:1" />
<pqevent object="pqClientMainWindow/pipelineBrowserDock/pipelineBrowser" command="mouseRelease" arguments="1,0,0,14,10,/0:0/0:0/0:0/0:1" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Splitter.0/Frame.2/SplitVertical" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Splitter.0/Splitter.2/Frame.6/CentralWidgetFrame/EmptyView/scrollArea/qt_scrollarea_viewport/widgetFoo/ConvertActionsFrame/RenderView" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Splitter.0/Frame.1/SplitVertical" command="activate" arguments="" />
......@@ -16,10 +21,16 @@
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Splitter.0/Splitter.2/Frame.5/TitleBar" command="mouseRelease" arguments="1,0,0,148,7" />
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menu_File" />
<pqevent object="pqClientMainWindow/menubar/menu_File" command="activate" arguments="actionFileSaveScreenshot" />
<pqevent object="pqClientMainWindow/SaveSnapshotDialog/selectedViewOnly" command="set_boolean" arguments="false" />
<pqevent object="pqClientMainWindow/SaveSnapshotDialog/width" command="set_string" arguments="900" />
<pqevent object="pqClientMainWindow/SaveSnapshotDialog/height" command="set_string" arguments="900" />
<pqevent object="pqClientMainWindow/SaveSnapshotDialog/ok" command="activate" arguments="" />
<!-- save all views -->
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/scrollArea/qt_scrollarea_viewport/Container/ProxyWidget/SaveAllViews/CheckBox" command="set_boolean" arguments="true" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/scrollArea/qt_scrollarea_viewport/Container/ProxyWidget/ImageResolution/width" command="set_string" arguments="900" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/scrollArea/qt_scrollarea_viewport/Container/ProxyWidget/ImageResolution/height" command="set_string" arguments="900" />
<!-- add a 0 pixel multi-view border in black -->
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/scrollArea/qt_scrollarea_viewport/Container/ProxyWidget/SeparatorWidth/IntRangeWidget/LineEdit" command="set_string" arguments="0" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/scrollArea/qt_scrollarea_viewport/Container/ProxyWidget/SeparatorColor/ColorButton" command="setChosenColor" arguments="0,0,0" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/widget/OKButton" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileSaveScreenshotDialog" command="remove" arguments="$PARAVIEW_TEST_ROOT/savelargescreenshot.test.png" />
<pqevent object="pqClientMainWindow/FileSaveScreenshotDialog" command="filesSelected" arguments="$PARAVIEW_TEST_ROOT/savelargescreenshot.test.png" />
<pqcompareimage image="$PARAVIEW_TEST_ROOT/savelargescreenshot.test.png" baseline="$PARAVIEW_DATA_ROOT/Baseline/SaveLargeScreenshot.png" />
......
......@@ -40,10 +40,11 @@
<!-- save a multiview screenshot -->
<pqevent object="pqClientMainWindow/menubar/menu_File" command="activate" arguments="actionFileSaveScreenshot" />
<pqevent object="pqClientMainWindow/SaveSnapshotDialog/selectedViewOnly" command="set_boolean" arguments="false" />
<pqevent object="pqClientMainWindow/SaveSnapshotDialog/width" command="set_string" arguments="800" />
<pqevent object="pqClientMainWindow/SaveSnapshotDialog/height" command="set_string" arguments="800" />
<pqevent object="pqClientMainWindow/SaveSnapshotDialog/ok" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/scrollArea/qt_scrollarea_viewport/Container/ProxyWidget/SaveAllViews/CheckBox" command="set_boolean" arguments="true" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/scrollArea/qt_scrollarea_viewport/Container/ProxyWidget/ImageResolution/width" command="set_string" arguments="800" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/scrollArea/qt_scrollarea_viewport/Container/ProxyWidget/ImageResolution/height" command="set_string" arguments="800" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/widget/OKButton" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileSaveScreenshotDialog" command="remove" arguments="$PARAVIEW_TEST_ROOT/TraceMultiViewsScreenshot.png" />
<pqevent object="pqClientMainWindow/FileSaveScreenshotDialog" command="filesSelected" arguments="$PARAVIEW_TEST_ROOT/TraceMultiViewsScreenshot.png" />
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
......
......@@ -21,17 +21,19 @@
<pqevent object="pqClientMainWindow/variableToolbar/1QToolButton1" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menu_File" />
<pqevent object="pqClientMainWindow/menubar/menu_File" command="activate" arguments="actionFileSaveScreenshot" />
<pqevent object="pqClientMainWindow/SaveSnapshotDialog/width" command="set_string" arguments="300" />
<pqevent object="pqClientMainWindow/SaveSnapshotDialog/height" command="set_string" arguments="300" />
<pqevent object="pqClientMainWindow/SaveSnapshotDialog/ok" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/scrollArea/qt_scrollarea_viewport/Container/ProxyWidget/ImageResolution/width" command="set_string" arguments="300" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/scrollArea/qt_scrollarea_viewport/Container/ProxyWidget/ImageResolution/height" command="set_string" arguments="300" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/widget/OKButton" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileSaveScreenshotDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Baseline/TransferFunctionResetOnVisibilityChange_OneBlock.png" />
<pqevent object="pqClientMainWindow/pipelineBrowserDock/pipelineBrowser" command="mousePress" arguments="1,1,0,15,9,/0:0/0:1" />
<pqevent object="pqClientMainWindow/pipelineBrowserDock/pipelineBrowser" command="mouseRelease" arguments="1,0,0,15,9,/0:0/0:1" />
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menu_File" />
<pqevent object="pqClientMainWindow/menubar/menu_File" command="activate" arguments="actionFileSaveScreenshot" />
<pqevent object="pqClientMainWindow/SaveSnapshotDialog/width" command="set_string" arguments="300" />
<pqevent object="pqClientMainWindow/SaveSnapshotDialog/height" command="set_string" arguments="300" />
<pqevent object="pqClientMainWindow/SaveSnapshotDialog/ok" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/scrollArea/qt_scrollarea_viewport/Container/ProxyWidget/ImageResolution/width" command="set_string" arguments="300" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/scrollArea/qt_scrollarea_viewport/Container/ProxyWidget/ImageResolution/height" command="set_string" arguments="300" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/widget/OKButton" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileSaveScreenshotDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Baseline/TransferFunctionResetOnVisibilityChange_AllBlocks.png" />
<pqevent object="pqClientMainWindow/pipelineBrowserDock/pipelineBrowser" command="mousePress" arguments="1,1,0,57,9,/0:0/0:0/0:0" />
<pqevent object="pqClientMainWindow/pipelineBrowserDock/pipelineBrowser" command="mouseRelease" arguments="1,0,0,57,9,/0:0/0:0/0:0" />
......@@ -41,8 +43,9 @@
<pqevent object="pqClientMainWindow/pipelineBrowserDock/pipelineBrowser" command="mouseRelease" arguments="1,0,0,12,11,/0:0/0:1" />
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menu_File" />
<pqevent object="pqClientMainWindow/menubar/menu_File" command="activate" arguments="actionFileSaveScreenshot" />
<pqevent object="pqClientMainWindow/SaveSnapshotDialog/width" command="set_string" arguments="300" />
<pqevent object="pqClientMainWindow/SaveSnapshotDialog/height" command="set_string" arguments="300" />
<pqevent object="pqClientMainWindow/SaveSnapshotDialog/ok" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/scrollArea/qt_scrollarea_viewport/Container/ProxyWidget/ImageResolution/width" command="set_string" arguments="300" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/scrollArea/qt_scrollarea_viewport/Container/ProxyWidget/ImageResolution/height" command="set_string" arguments="300" />
<pqevent object="pqClientMainWindow/SaveScreenshotDialog/widget/OKButton" command="activate" arguments="" />
<pqevent object="pqClientMainWindow/FileSaveScreenshotDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Baseline/TransferFunctionResetOnVisibilityChange_TwoBlocks.png" />
</pqevents>
d561442220f264e663c11fdff56e4605
f789cdb2aca3fc29f32cf74010477631
181c1e0dcb42d1e99e7feb1b6dcedff0
9e86839bfab38e0ea6d36fafa181da36
cd16d811b9845b09b2e1a43e699343fa
44a421a69744c931ed13ae4ab6a180ee
......@@ -43,3 +43,4 @@ LoadStateMultiView_1.png - bigmac-osx-shared-debug+clang+gui+opengl2+python
LoadStateMultiView_2.png - nemesis-windows-shared-release+gui+mpi+opengl2
AxesGridTestLines_1.png - amber8-linux-static-release+mpi+offscreen+osmesa+python
TestSubhaloFinder_1.png - vall-linux-shared-debug+doc+extdeps+gui+mpi+python+python3
SaveLargeScreenshot_1.png - nemesis-windows-shared-release+gui+kits+mpi+python
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