findWidget('Dialog-New Display Method for Mesh <contourable>:method:Cross Section:linewidth:slider').get_adjustment().set_value( 2.1052631578947e+00) findWidget('Dialog-New Display Method for Mesh <contourable>:method:Cross Section:linewidth:slider').get_adjustment().set_value( 2.2105263157895e+00) findWidget('Dialog-New Display Method for Mesh <contourable>:method:Cross Section:linewidth:slider').get_adjustment().set_value( 2.3157894736842e+00) findWidget('Dialog-New Display Method for Mesh <contourable>:method:Cross Section:linewidth:slider').get_adjustment().set_value( 2.4210526315789e+00) findWidget('Dialog-New Display Method for Mesh <contourable>:method:Cross Section:linewidth:slider').get_adjustment().set_value( 2.5263157894737e+00) findWidget('Dialog-New Display Method for Mesh <contourable>:method:Cross Section:linewidth:slider').get_adjustment().set_value( 2.6315789473684e+00) findWidget('Dialog-New Display Method for Mesh <contourable>:method:Cross Section:linewidth:slider').get_adjustment().set_value( 2.7368421052632e+00) findWidget('Dialog-New Display Method for Mesh <contourable>:method:Cross Section:linewidth:slider').get_adjustment().set_value( 2.8421052631579e+00) findWidget('Dialog-New Display Method for Mesh <contourable>:method:Cross Section:linewidth:slider').get_adjustment().set_value( 2.9473684210526e+00) findWidget('Dialog-New Display Method for Mesh <contourable>:method:Cross Section:linewidth:slider').get_adjustment().set_value( 3.0526315789474e+00) findWidget('Dialog-New Display Method for Mesh <contourable>:method:Cross Section:linewidth:slider').get_adjustment().set_value( 3.1578947368421e+00) findWidget('Dialog-New Display Method for Mesh <contourable>:method:Cross Section:linewidth:slider').get_adjustment().set_value( 3.2631578947368e+00) findWidget('Dialog-New Display Method for Mesh <contourable>:method:Cross Section:linewidth:slider').get_adjustment().set_value( 3.3684210526316e+00) # # Check OK button -- should be sensitized. assert tests.is_sensitive('Dialog-New Display Method for Mesh <contourable>:gtk-ok') # findWidget('Dialog-New Display Method for Mesh <contourable>:gtk-ok').clicked() checkpoint layer editor updated checkpoint Graphics_1 Mesh Cross Section sensitized checkpoint Graphics_1 Pixel Info updated checkpoint selection info updated checkpoint Graphics_1 Pixel Selection sensitized checkpoint selection info updated checkpoint selection info updated checkpoint selection info updated checkpoint Graphics_1 Mesh Cross Section sensitized checkpoint OOF.LayerEditor.LayerSet.Send checkpoint layereditor layerset changed checkpoint OOF.LayerEditor.LayerSet.Replace_Method findWidget('OOF2 Graphics Layer Editor').resize(600, 250)
assert findWidget(tbox+':Click:Node').get_active() assert tests.gtkMultiTextCompare({'X':'33.8508','Y':'67.1815'},tbox+":Click",tolerance=1.e-6) assert tests.sensitizationCheck({'NewDataViewer':True,'Prev':True,'Clear':True,'Next':False},tbox) assert tests.gtkMultiTextCompare({'index':'80','type':'FuncNode','position':'(30, 70)'},tbox+":NodeInfo",tolerance=1.e-6) assert tests.gtkMultiTextCompare({'x':'0.318304','y':'5.83039'},'Mesh Data 1:Data',tolerance=1.e-6) assert tests.gtkMultiTextCompare({'meshname':'microstructure:skeleton:mesh','x':'33.8508','y':'67.1815'},'Mesh Data 1:ViewSource',tolerance=1.e-6) assert not findWidget('Mesh Data 1:Freeze:Space').get_active() findWidget('Mesh Data 1:Freeze:Space').clicked() # Froze the mesh viewer. assert tests.gtkMultiTextCompare({'x':'0.318304','y':'5.83039'},'Mesh Data 1:Data',tolerance=1.e-6) assert tests.gtkMultiTextCompare({'meshname':'microstructure:skeleton:mesh','x':'33.8508','y':'67.1815'},'Mesh Data 1:ViewSource',tolerance=1.e-6) assert findWidget('Mesh Data 1:Freeze:Space').get_active() assert tests.is_sensitive('Mesh Data 1:Close') findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2:TBScroll:Mesh Info:NewDataViewer').clicked() checkpoint Mesh_Data_2 position updated checkpoint Mesh_Data_2 time updated checkpoint Mesh_Data_2 mesh updated checkpoint toplevel widget mapped Mesh Data 2 checkpoint Mesh_Data_2 data updated # Brought up a second mesh viewer. assert tests.gtkMultiTextCompare({'x':'0.318304','y':'5.83039'},'Mesh Data 1:Data',tolerance=1.e-6) assert tests.gtkMultiTextCompare({'meshname':'microstructure:skeleton:mesh','x':'33.8508','y':'67.1815'},'Mesh Data 1:ViewSource',tolerance=1.e-6) assert findWidget('Mesh Data 1:Freeze:Space').get_active() assert tests.is_sensitive('Mesh Data 1:Close') assert tests.gtkMultiTextCompare({'x':'0.318304','y':'5.83039'},'Mesh Data 2:Data',tolerance=1.e-6)
canvasobj.emit('event', event(gtk.gdk.BUTTON_PRESS,x= 4.5470588235294e+01,y=-9.4215686274510e+01,state=0,window=findCanvasGdkWindow('Graphics_1'))) canvasobj = findCanvasRoot(findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2:Canvas'), windowname='Graphics_1') canvasobj.emit('event', event(gtk.gdk.BUTTON_RELEASE,x= 4.5470588235294e+01,y=-9.4215686274510e+01,state=256,window=findCanvasGdkWindow('Graphics_1'))) checkpoint Graphics_1 Mesh Info sensitized checkpoint Mesh_Data_1 position updated checkpoint Mesh_Data_1 data updated checkpoint OOF.Graphics_1.Toolbox.Mesh_Info.QueryElement findWidget('OOF2 Graphics 1:Pane0').set_position(280) findWidget('Mesh Data 1').resize(509, 353) # Element query. assert findWidget('Mesh Data 1:ViewSource').get_expanded() assert tests.gtkMultiTextCompare({'xx':'0.00746209','xy':'0.0010901','xz':'0','yy':'0.0705959','yz':'0','zz':'0.00226641'},'Mesh Data 1:Data') assert tests.gtkMultiTextCompare({'meshname':'microstructure:skeleton:mesh','x':'45.2347','y':'86.6034'},'Mesh Data 1:ViewSource') assert not findWidget('Mesh Data 1:Freeze:Space').get_active() assert tests.is_sensitive('Mesh Data 1:Close') findWidget('Mesh Data 1:ViewSource').set_expanded(0) # Source contracted, data unchanged. assert not findWidget('Mesh Data 1:ViewSource').get_expanded() assert tests.gtkMultiTextCompare({'xx':'0.00746209','xy':'0.0010901','xz':'0','yy':'0.0705959','yz':'0','zz':'0.00226641'},'Mesh Data 1:Data') assert tests.gtkMultiTextCompare({'meshname':'microstructure:skeleton:mesh','x':'45.2347','y':'86.6034'},'Mesh Data 1:ViewSource') assert not findWidget('Mesh Data 1:Freeze:Space').get_active() assert tests.is_sensitive('Mesh Data 1:Close') canvasobj = findCanvasRoot(findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2:Canvas'), windowname='Graphics_1') canvasobj.emit('event', event(gtk.gdk.BUTTON_PRESS,x= 6.7039215686275e+01,y=-5.3235294117647e+01,state=0,window=findCanvasGdkWindow('Graphics_1'))) canvasobj = findCanvasRoot(findWidget('OOF2 Graphics 1:Pane0:Pane1:Pane2:Canvas'), windowname='Graphics_1') canvasobj.emit('event', event(gtk.gdk.BUTTON_RELEASE,x= 6.7039215686275e+01,y=-5.3235294117647e+01,state=256,window=findCanvasGdkWindow('Graphics_1')))
checkpoint mesh bdy page updated checkpoint boundary page updated checkpoint mesh bdy page updated checkpoint boundary page updated checkpoint mesh bdy page updated checkpoint boundary page updated checkpoint mesh bdy page updated checkpoint boundary page updated checkpoint OOF.File.Load.Data assert tests.sensitization1() # Create a new Mesh findWidget('OOF2:FE Mesh Page:New').clicked() checkpoint toplevel widget mapped Dialog-Create a new mesh findWidget('Dialog-Create a new mesh').resize(345, 210) # New mesh dialog starts in a self-consistent state, so 'ok is sensitive. assert tests.is_sensitive('Dialog-Create a new mesh:gtk-ok') setComboBox(findWidget('Dialog-Create a new mesh:element_types:Map'), '2') # After changing just one of the interpolation order widgets, the OK # button should not be sensitive assert not tests.is_sensitive('Dialog-Create a new mesh:gtk-ok') # After changing the other one, the button is sensitive again. setComboBox(findWidget('Dialog-Create a new mesh:element_types:Func'), '2') assert tests.is_sensitive('Dialog-Create a new mesh:gtk-ok') findWidget('Dialog-Create a new mesh:gtk-ok').clicked() checkpoint mesh bdy page updated checkpoint mesh bdy page updated checkpoint Field page sensitized checkpoint mesh page subproblems sensitized checkpoint mesh page subproblems sensitized checkpoint mesh page sensitized checkpoint mesh page subproblems sensitized
checkpoint skeleton selection page updated checkpoint contourmap info updated for Graphics_1 checkpoint skeleton page info updated checkpoint skeleton page info updated checkpoint skeleton page sensitized checkpoint boundary page updated checkpoint Field page sensitized checkpoint mesh page subproblems sensitized checkpoint mesh page sensitized checkpoint Solver page sensitized checkpoint skeleton page sensitized checkpoint skeleton page sensitized checkpoint contourmap info updated for Graphics_1 checkpoint OOF.Skeleton.Modify # Check that the OK button is *not* sensitive assert not tests.is_sensitive('OOF2:Skeleton Page:Pane:Modification:OK') findWidget('Adaptive Mesh Refinement:Next').clicked() widget_1 = findWidget('OOF2 Graphics 1:Pane0:LayerScroll:LayerList') widget_1.event(event(gtk.gdk.BUTTON_PRESS,x= 1.1000000000000e+01,y= 6.0000000000000e+00,button=1,state=0,window=widget_1.window)) findCellRenderer(findWidget('OOF2 Graphics 1:Pane0:LayerScroll:LayerList'), col=0, rend=0).emit('toggled', '10') findWidget('OOF2 Graphics 1:Pane0:LayerScroll:LayerList').get_selection().select_path((10,)) findWidget('OOF2 Graphics 1:Pane0:LayerScroll').get_vadjustment().set_value( 4.0000000000000e+01) checkpoint contourmap info updated for Graphics_1 checkpoint Graphics_1 Mesh Info cleared position checkpoint Graphics_1 Mesh Info sensitized checkpoint Graphics_1 Pixel Info updated checkpoint selection info updated checkpoint selection info updated checkpoint Graphics_1 Pixel Selection sensitized checkpoint selection info updated checkpoint selection info updated