[7d97e2d] | 1 | function main() { |
---|
| 2 | startApplication("sasview"); |
---|
| 3 | activateItem(waitForObjectItem(":MainWindow.menubar_QMenuBar", "Tool")); |
---|
| 4 | activateItem(waitForObjectItem(":MainWindow.menuTool_QMenu", "Kiessig Thickness Calculator")); |
---|
| 5 | test.compare(waitForObjectExists(":KiessigPanel_KiessigPanel").windowTitle, "Kiessig Thickness Calculator"); |
---|
| 6 | test.compare(waitForObjectExists(":KiessigPanel_KiessigPanel").visible, true); |
---|
| 7 | test.compare(waitForObjectExists(":groupBox.deltaq_in_QLineEdit").text, "0.05"); |
---|
| 8 | test.compare(waitForObjectExists(":groupBox.deltaq_in_QLineEdit").readOnly, false); |
---|
| 9 | test.compare(waitForObjectExists(":groupBox_2.lengthscale_out_QLineEdit").text, ""); |
---|
| 10 | test.compare(waitForObjectExists(":groupBox_2.lengthscale_out_QLineEdit").readOnly, true); |
---|
| 11 | type(waitForObject(":groupBox.deltaq_in_QLineEdit"), "<Backspace>"); |
---|
| 12 | type(waitForObject(":groupBox.deltaq_in_QLineEdit"), "<Backspace>"); |
---|
| 13 | type(waitForObject(":groupBox.deltaq_in_QLineEdit"), "1"); |
---|
| 14 | type(waitForObject(":groupBox.deltaq_in_QLineEdit"), "<Tab>"); |
---|
| 15 | clickButton(waitForObject(":KiessigPanel.computeButton_QPushButton")); |
---|
| 16 | test.compare(waitForObjectExists(":groupBox_2.lengthscale_out_QLineEdit").text, "62.832"); |
---|
| 17 | test.compare(waitForObjectExists(":groupBox_2.lengthscale_out_QLineEdit").readOnly, true); |
---|
| 18 | mouseDrag(waitForObject(":groupBox.deltaq_in_QLineEdit"), 34, 7, -67, 5, 1, Qt.LeftButton); |
---|
| 19 | type(waitForObject(":groupBox.deltaq_in_QLineEdit"), "rrrr"); |
---|
| 20 | clickButton(waitForObject(":KiessigPanel.computeButton_QPushButton")); |
---|
| 21 | test.compare(waitForObjectExists(":groupBox_2.lengthscale_out_QLineEdit").text, ""); |
---|
| 22 | test.compare(waitForObjectExists(":groupBox_2.lengthscale_out_QLineEdit").readOnly, true); |
---|
| 23 | mouseDrag(waitForObject(":groupBox.deltaq_in_QLineEdit"), 35, 6, -94, 10, 1, Qt.LeftButton); |
---|
| 24 | type(waitForObject(":groupBox.deltaq_in_QLineEdit"), "0"); |
---|
| 25 | clickButton(waitForObject(":KiessigPanel.computeButton_QPushButton")); |
---|
| 26 | mouseDrag(waitForObject(":groupBox.deltaq_in_QLineEdit"), 20, 13, -33, -1, 1, Qt.LeftButton); |
---|
| 27 | type(waitForObject(":groupBox.deltaq_in_QLineEdit"), "<Backspace>"); |
---|
| 28 | mouseClick(waitForObject(":groupBox_2.lengthscale_out_QLineEdit"), 44, 8, 0, Qt.LeftButton); |
---|
| 29 | sendEvent("QCloseEvent", waitForObject(":KiessigPanel_KiessigPanel")); |
---|
| 30 | } |
---|