diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-07-17 00:19:29 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-07-17 00:21:32 +0200 |
commit | 07403d67e43da90563a6a8dc4817f1e90feefa59 (patch) | |
tree | 27821ee1208acdfc1ad09bfeb051950cf7e2555c /uitest | |
parent | b29d15dec890f1defd99a792c28d3a1f576847e0 (diff) |
uitest: add demo showing how to select active frame
Change-Id: I76bb79047b9d15228dc29379203300ccf50fc4f1
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/demo_ui/handle_multiple_files.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/uitest/demo_ui/handle_multiple_files.py b/uitest/demo_ui/handle_multiple_files.py index 9fdcd8627302..ab56c5533d91 100644 --- a/uitest/demo_ui/handle_multiple_files.py +++ b/uitest/demo_ui/handle_multiple_files.py @@ -48,4 +48,19 @@ class HandleFiles(UITestCase): self.ui_test.close_doc() + def test_select_frame(self): + calc_file = self.ui_test.load_file(get_url_for_data_file("test.ods")) + + calc_file2 = self.ui_test.load_file(get_url_for_data_file("test2.ods")) + frames = self.ui_test.get_frames() + self.assertEqual(len(frames), 2) + frames[0].activate() + + self.ui_test.close_doc() + + frames = self.ui_test.get_frames() + self.assertEqual(len(frames), 1) + + self.assertTrue(frames[0].getTitle().startswith("test2.ods")) + # vim:set shiftwidth=4 softtabstop=4 expandtab: */ |