Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
62e9a393
Commit
62e9a393
authored
Jul 19, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(tests/main-view): avoid usage of QTRY_VERIFY_WITH_TIMEOUT
parent
dd794f92
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
TestUtils.hpp
src/tests/TestUtils.hpp
+2
-2
MainViewTest.cpp
src/tests/main-view/MainViewTest.cpp
+2
-2
No files found.
src/tests/TestUtils.hpp
View file @
62e9a393
...
...
@@ -27,8 +27,8 @@
#define CHECK_VIRTUAL_WINDOW_CONTENT_INFO(WINDOW, TYPE, NAME) \
do { \
QQuickItem *virtualWindowContent; \
Q
TRY_VERIFY_WITH_TIMEOUT(virtualWindowContent = TestUtils::getVirtualWindowContent(WINDOW), 1000
); \
QQuickItem *virtualWindowContent
= TestUtils::getVirtualWindowContent(WINDOW)
; \
Q
VERIFY(virtualWindowContent
); \
QVERIFY(!strncmp(virtualWindowContent->metaObject()->className(), TYPE, sizeof TYPE - 1)); \
QCOMPARE(virtualWindowContent->objectName(), QStringLiteral(NAME)); \
} while (0)
...
...
src/tests/main-view/MainViewTest.cpp
View file @
62e9a393
...
...
@@ -39,7 +39,7 @@ void MainViewTest::showAboutPopup () {
// Close popup.
QTest
::
mouseClick
(
mainWindow
,
Qt
::
LeftButton
,
Qt
::
KeyboardModifiers
(),
QPoint
(
476
,
392
));
Q
TRY_VERIFY_WITH_TIMEOUT
(
!
TestUtils
::
getVirtualWindowContent
(
mainWindow
),
1000
);
Q
VERIFY
(
!
TestUtils
::
getVirtualWindowContent
(
mainWindow
)
);
}
void
MainViewTest
::
showManageAccountsPopup
()
{
...
...
@@ -52,7 +52,7 @@ void MainViewTest::showManageAccountsPopup () {
// Close popup.
QTest
::
mouseClick
(
mainWindow
,
Qt
::
LeftButton
,
Qt
::
KeyboardModifiers
(),
QPoint
(
476
,
392
));
Q
TRY_VERIFY_WITH_TIMEOUT
(
!
TestUtils
::
getVirtualWindowContent
(
mainWindow
),
1000
);
Q
VERIFY
(
!
TestUtils
::
getVirtualWindowContent
(
mainWindow
)
);
}
void
MainViewTest
::
showSettingsWindow
()
{
...
...
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