Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync master #1296

Merged
merged 38 commits into from
May 8, 2015
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
5901761
Fixed resizing issue and added two tests to cover it
Apr 29, 2015
d82a6e1
grid var name hadn't been renamed everywhere...
doutriaux1 Apr 29, 2015
aaa238d
added test
doutriaux1 Apr 29, 2015
180c61b
Rewrote test I accidentally deleted
May 1, 2015
024a6da
Fix issue where colorpicker couldn't pick colors
May 1, 2015
7ae5bf7
Colorpicker selection fixed, test added
May 1, 2015
f9a7c09
Added new script to run tests
aashish24 May 1, 2015
a8213ca
Using cdat macro for testing
aashish24 May 1, 2015
68652da
Converted last of tests to use cdat test macro
aashish24 May 2, 2015
3aaa5da
Removed osx as its failing on travis
aashish24 May 2, 2015
c4c39c0
Merge pull request #1247 from UV-CDAT/issue_1245_meshfill_grid_error
aashish24 May 2, 2015
32f3893
Merge pull request #1258 from chaosphere2112/colorpicker_renderer_sel…
May 4, 2015
a446afb
added option to turn paraview build on/off
doutriaux1 May 4, 2015
1c6cae7
cdat paraview deps flag correct now
doutriaux1 May 4, 2015
f63908b
Remove references to Variable.name
ThomasMaxwell May 4, 2015
3c0155b
Fix missing time axis
ThomasMaxwell May 4, 2015
c32b6fe
Fixes more typos in raise statements
remram44 May 4, 2015
77bcd01
Merge pull request #1269 from UV-CDAT/vcs3D-fix_release_issues
doutriaux1 May 4, 2015
6ea8a64
Merge pull request #1270 from UV-CDAT/fix-cdms-exceptions
doutriaux1 May 5, 2015
1d4a7ef
Fix textbox_blank_text test
jbeezley May 5, 2015
821011d
Merge pull request #1261 from UV-CDAT/fix_run_tests_buildbot
aashish24 May 5, 2015
5c2baa4
Merge branch 'release' into issue_903_turn_off_paraview
doutriaux1 May 5, 2015
3650d29
Merged master
May 5, 2015
c185855
Added toolbar display, open, and close tests
chaosphere2112 May 4, 2015
908c869
Added a sprinkling of assertions
chaosphere2112 May 4, 2015
98464ec
Fixed an issue where togglebuttons were doing waaay too much work
chaosphere2112 May 5, 2015
7f68b7a
Added test for get_text on toggle buttons
chaosphere2112 May 5, 2015
e33e312
Updated toolbar open/close to go through more of open/close process
chaosphere2112 May 5, 2015
03fd1af
Added toolbar_in_toolbar tests
chaosphere2112 May 5, 2015
01621d9
Fixed some layout bugs with toolbars
chaosphere2112 May 5, 2015
c979e41
Added tests to CMakeLists
chaosphere2112 May 5, 2015
2076acf
Added state_advance test for buttons
chaosphere2112 May 5, 2015
2c51812
Tabs -> spaces
chaosphere2112 May 5, 2015
3850d33
Merge pull request #1242 from chaosphere2112/text_resizing_window_place
doutriaux1 May 5, 2015
5d7882e
Merge pull request #1273 from chaosphere2112/toolbar_layout_fixes
May 6, 2015
66ff3ff
Fix list method
ThomasMaxwell May 6, 2015
94f63d6
Merge pull request #1287 from UV-CDAT/vcs3D_fix_dv3d_list
doutriaux1 May 6, 2015
8a9b545
Merge pull request #1267 from UV-CDAT/issue_903_turn_off_paraview
aashish24 May 7, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Colorpicker selection fixed, test added
Sam Fries committed May 1, 2015
commit 7ae5bf785f81f7f1ee07200a49034c30540a26c8
2 changes: 1 addition & 1 deletion Packages/vcs/Lib/colorpicker.py
Original file line number Diff line number Diff line change
@@ -117,7 +117,7 @@ def cancel(self, state):
self.close()

def selectCell(self, cellId):
if cellId == -1:
if cellId in (None, -1):
return
ids = vtk.vtkIdTypeArray();
ids.SetNumberOfComponents(1);
5 changes: 5 additions & 0 deletions testing/vcs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -618,6 +618,11 @@ cdat_add_test(vcs_test_endconfigure
${cdat_SOURCE_DIR}/testing/vcs/test_vcs_endconfigure.py
)

cdat_add_test(vcs_test_colorpicker_selection
"${PYTHON_EXECUTABLE}"
${cdat_SOURCE_DIR}/testing/vcs/test_vcs_colorpicker_selection.py
)

cdat_add_test(vcs_test_configurator_click_text
"${PYTHON_EXECUTABLE}"
${cdat_SOURCE_DIR}/testing/vcs/test_vcs_configurator_click_text.py
19 changes: 19 additions & 0 deletions testing/vcs/test_vcs_colorpicker_selection.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import vcs, sys

passing = False


def save_clicked(colormap, color):
if color == 135:
global passing
passing = True


picker = vcs.colorpicker.ColorPicker(500, 500, None, None, on_save=save_clicked)

interactor = picker.render_window.GetInteractor()
interactor.SetEventInformation(250, 260)
picker.clickEvent(None, None)
picker.save(0)

sys.exit(0 if passing else 1)