Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Network
Konqueror
Commits
77df7a44
Commit
77df7a44
authored
Sep 17, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use qcompare
parent
c5db041e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
autotests/konqviewmgrtest.cpp
autotests/konqviewmgrtest.cpp
+4
-4
No files found.
autotests/konqviewmgrtest.cpp
View file @
77df7a44
...
...
@@ -319,7 +319,7 @@ void ViewMgrTest::testSplitView()
QVERIFY
(
!
frame2
->
isHidden
());
// Check container
Q
VERIFY
(
view
->
frame
()
->
parentContainer
()
->
frameType
()
==
KonqFrameBase
::
Container
);
Q
COMPARE
(
view
->
frame
()
->
parentContainer
()
->
frameType
()
,
KonqFrameBase
::
Container
);
KonqFrameContainer
*
container
=
static_cast
<
KonqFrameContainer
*>
(
view
->
frame
()
->
parentContainer
());
QVERIFY
(
container
);
QCOMPARE
(
container
->
count
(),
2
);
...
...
@@ -400,8 +400,8 @@ void ViewMgrTest::testSplitMainContainer()
QVERIFY
(
!
frame2
->
isHidden
());
// Check container
Q
VERIFY
(
view
->
frame
()
->
parentContainer
()
->
frameType
()
==
KonqFrameBase
::
Tabs
);
Q
VERIFY
(
view2
->
frame
()
->
parentContainer
()
->
frameType
()
==
KonqFrameBase
::
Container
);
Q
COMPARE
(
view
->
frame
()
->
parentContainer
()
->
frameType
()
,
KonqFrameBase
::
Tabs
);
Q
COMPARE
(
view2
->
frame
()
->
parentContainer
()
->
frameType
()
,
KonqFrameBase
::
Container
);
KonqFrameContainer
*
container
=
static_cast
<
KonqFrameContainer
*>
(
view2
->
frame
()
->
parentContainer
());
QVERIFY
(
container
);
QCOMPARE
(
container
->
count
(),
2
);
...
...
@@ -684,7 +684,7 @@ void ViewMgrTest::testDuplicateSplittedTab()
KonqFrameContainer
*
container
=
static_cast
<
KonqFrameContainer
*>
(
view
->
frame
()
->
parentContainer
());
QVERIFY
(
container
);
Q
VERIFY
(
container
->
parentContainer
()
->
frameType
()
==
KonqFrameBase
::
Tabs
);
Q
COMPARE
(
container
->
parentContainer
()
->
frameType
()
,
KonqFrameBase
::
Tabs
);
viewManager
->
duplicateTab
(
0
);
// TODO shouldn't it return a KonqFrameBase?
QCOMPARE
(
DebugFrameVisitor
::
inspect
(
&
mainWindow
),
QString
(
"MT[C(FF)C(FF)]."
));
// mainWindow, tab widget, two tabs
...
...
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