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
d5c3f1bf
Kaydet (Commit)
d5c3f1bf
authored
Ara 09, 2015
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
uitest: add groundwork for ui testing framework
Change-Id: I51b81da870fd220d56b32c20b9e6c4604912a014
üst
af5b0086
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
152 additions
and
0 deletions
+152
-0
Repository.mk
Repository.mk
+1
-0
uiobject.hxx
include/test/uiobject.hxx
+46
-0
uitest.hxx
include/test/uitest.hxx
+12
-0
Library_uitest.mk
test/Library_uitest.mk
+45
-0
Module_test.mk
test/Module_test.mk
+1
-0
uiobject.cxx
test/source/uitest/uiobject.cxx
+35
-0
uitest.cxx
test/source/uitest/uitest.cxx
+12
-0
No files found.
Repository.mk
Dosyayı görüntüle @
d5c3f1bf
...
...
@@ -486,6 +486,7 @@ $(eval $(call gb_Helper_register_libraries,PLAINLIBS_NONE, \
testtools_cppobj \
testtools_bridgetest \
testtools_constructors \
uitest \
unobootstrapprotector \
unoexceptionprotector \
unotest \
...
...
include/test/uiobject.hxx
0 → 100644
Dosyayı görüntüle @
d5c3f1bf
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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/.
*/
#include <rtl/ustring.hxx>
#include <map>
enum
class
UIObjectType
{
DIALOG
,
UNKNOWN
};
/**
* This class wraps a UI object like vcl::Window and provides
* an interface for the UI testing.
*
* This class should only have virtual methods.
*/
class
UIObject
{
public
:
virtual
~
UIObject
();
/**
* returns the state of the wrapped UI object
*/
virtual
std
::
map
<
const
OUString
,
OUString
>
get_state
();
/**
* executes an action on the wrapped UI object,
* possibly with some additional parameters
*/
virtual
void
execute
(
const
OUString
&
rAction
,
const
std
::
map
<
const
OUString
,
OUString
>&
rParameters
);
virtual
UIObjectType
getType
();
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
include/test/uitest.hxx
0 → 100644
Dosyayı görüntüle @
d5c3f1bf
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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/.
*/
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
test/Library_uitest.mk
0 → 100644
Dosyayı görüntüle @
d5c3f1bf
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# 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/.
#
$(eval $(call gb_Library_Library,uitest))
$(eval $(call gb_Library_add_defs,uitest,\
-DOOO_DLLIMPLEMENTATION_UITEST \
))
$(eval $(call gb_Library_use_sdk_api,uitest))
$(eval $(call gb_Library_use_externals,uitest,\
boost_headers \
cppunit \
libxml2 \
))
$(eval $(call gb_Library_use_libraries,uitest,\
basegfx \
comphelper \
cppu \
cppuhelper \
drawinglayer \
i18nlangtag \
sal \
svt \
tl \
unotest \
utl \
vcl \
$(gb_UWINAPI) \
))
$(eval $(call gb_Library_add_exception_objects,uitest,\
test/source/uitest/uitest \
test/source/uitest/uiobject \
))
# vim: set noet sw=4 ts=4:
test/Module_test.mk
Dosyayı görüntüle @
d5c3f1bf
...
...
@@ -14,6 +14,7 @@ ifneq (,$(filter DESKTOP,$(BUILD_TYPE)))
$(eval $(call gb_Module_add_targets,test,\
Library_test \
Library_subsequenttest \
Library_uitest \
Library_vclbootstrapprotector \
Package_unittest \
))
...
...
test/source/uitest/uiobject.cxx
0 → 100644
Dosyayı görüntüle @
d5c3f1bf
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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/.
*/
#include <test/uiobject.hxx>
UIObject
::~
UIObject
()
{
}
std
::
map
<
const
OUString
,
OUString
>
UIObject
::
get_state
()
{
std
::
map
<
const
OUString
,
OUString
>
aMap
;
aMap
[
"NotImplemented"
]
=
"NotImplemented"
;
return
aMap
;
}
void
UIObject
::
execute
(
const
OUString
&
/*rAction*/
,
const
std
::
map
<
const
OUString
,
OUString
>&
/*rParameters*/
)
{
// should never be called
throw
std
::
exception
();
}
UIObjectType
UIObject
::
getType
()
{
return
UIObjectType
::
UNKNOWN
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
test/source/uitest/uitest.cxx
0 → 100644
Dosyayı görüntüle @
d5c3f1bf
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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/.
*/
#include <test/uitest.hxx>
/* 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