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
37e7954c
Commit
37e7954c
authored
Oct 21, 2016
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(app): fix code style in spec files
parent
7b99d70d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
30 deletions
+33
-30
ConfirmDialog.spec.qml
tests/ui/modules/Common/Dialog/ConfirmDialog.spec.qml
+23
-19
ExclusiveButtons.spec.qml
tests/ui/modules/Common/Form/ExclusiveButtons.spec.qml
+9
-8
InvertedMouseArea.spec.qml
tests/ui/modules/Common/InvertedMouseArea.spec.qml
+1
-1
utils.spec.qml
tests/ui/scripts/Utils/utils.spec.qml
+0
-2
No files found.
tests/ui/modules/Common/Dialog/ConfirmDialog.spec.qml
View file @
37e7954c
...
...
@@ -6,25 +6,6 @@ import QtTest 1.1
TestCase
{
id
:
testCase
name
:
'
ConfirmDialogTests
'
Component
{
id
:
builder
Item
{
ConfirmDialog
{
id
:
confirmDialog
}
SignalSpy
{
id
:
spy
signalName
:
'
exitStatus
'
target
:
confirmDialog
}
}
}
function
buildConfirmDialog
()
{
var
container
=
builder
.
createObject
(
testCase
)
verify
(
container
)
...
...
@@ -35,6 +16,8 @@ TestCase {
return
container
}
// -----------------------------------------------------------------
function
test_exitStatusViaButtons_data
()
{
return
[
{
button
:
0
,
expectedStatus
:
0
},
...
...
@@ -52,6 +35,8 @@ TestCase {
compare
(
spy
.
signalArguments
[
0
][
0
],
data
.
expectedStatus
)
}
// -----------------------------------------------------------------
function
test_exitStatusViaClose
()
{
var
container
=
buildConfirmDialog
()
var
dialog
=
container
.
data
[
0
]
...
...
@@ -61,4 +46,23 @@ TestCase {
spy
.
wait
(
100
)
compare
(
spy
.
signalArguments
[
0
][
0
],
0
)
}
// -----------------------------------------------------------------
Component
{
id
:
builder
Item
{
ConfirmDialog
{
id
:
confirmDialog
}
SignalSpy
{
id
:
spy
signalName
:
'
exitStatus
'
target
:
confirmDialog
}
}
}
}
tests/ui/modules/Common/Form/ExclusiveButtons.spec.qml
View file @
37e7954c
...
...
@@ -6,6 +6,14 @@ import QtTest 1.1
Item
{
id
:
root
function
buildExclusiveButtons
(
defaultSelectedButton
)
{
var
container
=
builder
.
createObject
(
root
)
testCase
.
verify
(
container
)
container
.
data
[
0
].
selectedButton
=
defaultSelectedButton
return
container
}
// Avoid `Test 'XXX' has invalid size QSize(0, 0), resizing.` warning.
height
:
100
width
:
300
...
...
@@ -35,17 +43,10 @@ Item {
}
}
function
buildExclusiveButtons
(
defaultSelectedButton
)
{
var
container
=
builder
.
createObject
(
root
)
testCase
.
verify
(
container
)
container
.
data
[
0
].
selectedButton
=
defaultSelectedButton
return
container
}
// -----------------------------------------------------------------
TestCase
{
id
:
testCase
name
:
'
ExclusiveButtonsTests
'
when
:
windowShown
function
test_signals_data
()
{
...
...
tests/ui/modules/Common/InvertedMouseArea.spec.qml
View file @
37e7954c
...
...
@@ -88,7 +88,7 @@ Rectangle {
{
x
:
item
.
x
+
item
.
width
-
1
,
y
:
item
.
y
},
{
x
:
item
.
x
,
y
:
item
.
y
+
item
.
height
-
1
},
{
x
:
item
.
x
+
item
.
width
-
1
,
y
:
item
.
y
+
item
.
height
-
1
},
{
}
// item center.
{
}
//
(x, y) =
item center.
]
}
...
...
tests/ui/scripts/Utils/utils.spec.qml
View file @
37e7954c
...
...
@@ -10,8 +10,6 @@ import './utils.js' as Utils
TestCase
{
id
:
testCase
name
:
'
UtilsTests
'
// Test only if a confirm dialog can be opened.
// The other tests are launched by `ConfirmDialog.spec.qml`.
function
test_openConfirmDialog
()
{
...
...
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