diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-03-24 00:43:51 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-18 17:01:42 +0200 |
commit | 02c3817bb0e14f4ca3b4457361183be99714bc35 (patch) | |
tree | 4f51065401ad1ce209fd9d5070cc25a91855588b /uitest/calc_tests | |
parent | 29cd5a2f5e14a7f3d95cacb644a69a2df91ea8f8 (diff) |
uitest: remove all references to the screenshot functionality
Change-Id: I3fb853fafbb2bc8271597cc1743fee99913257af
Diffstat (limited to 'uitest/calc_tests')
-rw-r--r-- | uitest/calc_tests/about_test.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/uitest/calc_tests/about_test.py b/uitest/calc_tests/about_test.py index d90ee06c5a75..a9beb8e3793a 100644 --- a/uitest/calc_tests/about_test.py +++ b/uitest/calc_tests/about_test.py @@ -8,20 +8,6 @@ import time from uitest_helper import UITest -from helper import Screenshot - -def get_bounding_box(props): - size_str = None - pos_str = None - for prop in props: - if prop.Name == "AbsPosition": - pos_str = prop.Value - elif prop.Name == "Size": - size_str = prop.Value - - x1, y1 = pos_str.split("x") - dx, dy = size_str.split("x") - return x1, y1, str(int(x1) + int(dx)), str(int(y1) + int(dy)) def test_about_dlg_with_screenshot(xContext): xUITest = xContext.ServiceManager.createInstanceWithContext( @@ -35,13 +21,6 @@ def test_about_dlg_with_screenshot(xContext): xAboutDlg = xUITest.getTopFocusWindow() - # take the screenshot - time.sleep(1) - aboutDlgState = xAboutDlg.getState() - x1, y1, x2, y2 = get_bounding_box(aboutDlgState) - screenshot = Screenshot() - screenshot.take_screenshot(x1, y1, x2, y2) - xCloseBtn = xAboutDlg.getChild("close") xCloseBtn.executeAction("CLICK", tuple()) |