Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
5f5575f8
Kaydet (Commit)
5f5575f8
authored
Tem 16, 2016
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
uitest: add demo for handling two files
Change-Id: I03cbe67922df521a6cef5f3448c0c9dce10b662d
üst
f260194a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
handle_multiple_files.py
uitest/demo_ui/handle_multiple_files.py
+41
-0
No files found.
uitest/demo_ui/handle_multiple_files.py
0 → 100644
Dosyayı görüntüle @
5f5575f8
# -*- Mode: python; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
from
libreoffice.uno.propertyvalue
import
mkPropertyValues
from
libreoffice.uno.eventlistener
import
EventListener
from
uitest.framework
import
UITestCase
from
uitest.debug
import
sleep
import
time
class
HandleFiles
(
UITestCase
):
def
test_load_file
(
self
):
calc_file
=
self
.
ui_test
.
load_file
(
"file:///home/moggi/devel/libo9/uitest/data/test.ods"
)
calc_file2
=
self
.
ui_test
.
load_file
(
"file:///home/moggi/devel/libo9/uitest/data/test2.ods"
)
frames
=
self
.
ui_test
.
get_frames
()
self
.
assertEqual
(
len
(
frames
),
2
)
self
.
ui_test
.
close_doc
()
frames
=
self
.
ui_test
.
get_frames
()
self
.
assertEqual
(
len
(
frames
),
1
)
# this is currently still necessary as otherwise
# the command is not forwarded to the correct frame
# TODO: provide an additional event that we can use
# and get rid of the sleep
time
.
sleep
(
1
)
self
.
ui_test
.
close_doc
()
# vim:set shiftwidth=4 softtabstop=4 expandtab: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment