From 02c3817bb0e14f4ca3b4457361183be99714bc35 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Thu, 24 Mar 2016 00:43:51 +0100 Subject: uitest: remove all references to the screenshot functionality Change-Id: I3fb853fafbb2bc8271597cc1743fee99913257af --- uitest/calc_tests/about_test.py | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'uitest/calc_tests') 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()) -- cgit