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
d66e2841
Kaydet (Commit)
d66e2841
authored
Tem 16, 2016
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
uitest: add some initial math ui tests
Change-Id: Iad02a40b683d7b3bbbad0214c82ad4b5b6878ea9
üst
72dd364f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
start.py
uitest/math_tests/start.py
+43
-0
No files found.
uitest/math_tests/start.py
0 → 100644
Dosyayı görüntüle @
d66e2841
# -*- 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
uitest.uihelper.common
import
get_state_as_dict
from
libreoffice.uno.propertyvalue
import
mkPropertyValues
from
uitest.framework
import
UITestCase
import
time
import
unittest
class
SimpleMathTest
(
UITestCase
):
def
test_start_math
(
self
):
self
.
ui_test
.
create_doc_in_start_center
(
"math"
)
xMathDoc
=
self
.
xUITest
.
getTopFocusWindow
()
self
.
ui_test
.
close_doc
()
def
test_docking_window_listbox
(
self
):
self
.
ui_test
.
create_doc_in_start_center
(
"math"
)
xMathDoc
=
self
.
xUITest
.
getTopFocusWindow
()
xList
=
xMathDoc
.
getChild
(
"listbox"
)
state
=
get_state_as_dict
(
xList
)
self
.
assertEqual
(
state
[
"SelectEntryText"
],
"Unary/Binary Operators"
)
xList
.
executeAction
(
"SELECT"
,
mkPropertyValues
({
"POS"
:
"1"
}))
state
=
get_state_as_dict
(
xList
)
self
.
assertEqual
(
state
[
"SelectEntryText"
],
"Relations"
)
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