diff options
-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: */ |