fix mismatching gb_Trace_StartRange and gb_Trace_EndRage
[LibreOffice.git] / uitest / demo_ui / gridwin.py
blob272cdffc109ffd36c3eb6f4b3bc17ac3060aba13
1 # -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 from libreoffice.uno.propertyvalue import mkPropertyValues
12 from uitest.framework import UITestCase
14 class GridWinTest(UITestCase):
16 def test_select_cell(self):
18 with self.ui_test.create_doc_in_start_center("calc"):
19 xCalcDoc = self.xUITest.getTopFocusWindow()
20 xGridWindow = xCalcDoc.getChild("grid_window")
22 selectProps = mkPropertyValues({"CELL": "B10"})
23 xGridWindow.executeAction("SELECT", selectProps)
26 def test_select_range(self):
28 with self.ui_test.create_doc_in_start_center("calc"):
29 xCalcDoc = self.xUITest.getTopFocusWindow()
30 xGridWindow = xCalcDoc.getChild("grid_window")
32 selectProps = mkPropertyValues({"RANGE": "B10:C20"})
33 xGridWindow.executeAction("SELECT", selectProps)
36 def test_extend_range(self):
38 with self.ui_test.create_doc_in_start_center("calc"):
39 xTopWindow = self.xUITest.getTopFocusWindow()
41 xGridWindow = xTopWindow.getChild("grid_window")
43 selectProps = mkPropertyValues({"RANGE": "B10:C20"})
44 xGridWindow.executeAction("SELECT", selectProps)
46 select2Props = mkPropertyValues({"RANGE": "D3:F5", "EXTEND": "true"})
47 xGridWindow.executeAction("SELECT", select2Props)
50 # vim: set shiftwidth=4 softtabstop=4 expandtab: