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
eeb073e9
Commit
eeb073e9
authored
Jun 15, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(UnitTests): add a `Units` mock
parent
b9353adc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
2 deletions
+18
-2
test_qml
tools/test_qml
+2
-1
update_resources
tools/update_resources
+1
-1
Units.qml
ui/dev-modules/Units/Units.qml
+8
-0
qmldir
ui/dev-modules/Units/qmldir
+7
-0
No files found.
tools/test_qml
View file @
eeb073e9
...
...
@@ -9,6 +9,7 @@ TEST_RUNNER='qmltestrunner'
RESOURCES_FILE
=
'resources.qrc'
TEST_FILE_EXTENSION
=
'spec.qml'
DEV_MODULES_PATH
=
'./ui/dev-modules'
MODULES_PATH
=
'./ui/modules'
SCRIPTS_PATH
=
'./ui/scripts'
...
...
@@ -41,7 +42,7 @@ do
if
[
-f
$spec_file
]
;
then
printf
"
${
BLUE
}
Running unit qml tests of '
${
source_file
}
'...
${
NC
}
\n
"
$TEST_RUNNER
-import
$MODULES_PATH
-import
$SCRIPTS_PATH
-input
"
$spec_file
"
$TEST_RUNNER
-import
$
DEV_MODULES_PATH
-import
$
MODULES_PATH
-import
$SCRIPTS_PATH
-input
"
$spec_file
"
if
[[
$?
==
0
]]
;
then
printf
"
${
GREEN
}
All unit tests have succeeded for '
${
spec_file
}
'.
\n
"
...
...
tools/update_resources
View file @
eeb073e9
...
...
@@ -18,7 +18,7 @@ cd $SCRIPT_DIR/..
echo
'<!DOCTYPE RCC><RCC version="1.0">
<qresource prefix="/">'
>
$RESOURCES_FILE
for
filename
in
$(
find ui/ assets/
-type
f |
sort
)
for
filename
in
$(
find ui/
modules/ ui/scripts/ ui/views/
assets/
-type
f |
sort
)
do
basename
=
"
${
filename
##*/
}
"
extension
=
"
${
filename
##*.
}
"
...
...
ui/dev-modules/Units/Units.qml
0 → 100644
View file @
eeb073e9
pragma
Singleton
import
QtQml
2.2
// =============================================================================
QtObject
{
property
real
dp
:
1.0
}
ui/dev-modules/Units/qmldir
0 → 100644
View file @
eeb073e9
# ==============================================================================
# Units component to export.
# ==============================================================================
module Units
singleton Units 1.0 Units.qml
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