Skip to content
  • Utkarsh Ayachit's avatar
    Convert few more Python UI tests to XML. · 514261f0
    Utkarsh Ayachit authored
    Python UI tests can no longer be supported in ParaView. They are no necessary
    anywways. Most of the testing can be done with XML. Convert few more tests to
    Python.
    
    Adding the following to the top of Python test script helps with the conversion:
    
    class CQtTesting:
      def playCommand(self, o, c, a):
        print '  <pqevent object="%s" command="%s" arguments="%s"/>' % (o,c,a)
    
    class CQtTestingImage:
      def compareImage(self, o, b, w, h):
        print '  <pqcompareview object="%s" baseline="$PARAVIEW_DATA_ROOT/Baseline/%s" width="%d" height="%d" />' % (o, b, w, h)
    
    Change-Id: I04d5a289c58ce503d9beda69839a6c7f1abeee4c
    514261f0