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
0b4a1725
Commit
0b4a1725
authored
Dec 19, 2016
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ui/scripts/Utils/utils): Qt (5.7.1) crash when a variable in a js file is compared to null
parent
265965da
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
InvertedMouseArea.spec.qml
tests/ui/modules/Common/InvertedMouseArea.spec.qml
+4
-4
utils.js
tests/ui/scripts/Utils/utils.js
+2
-2
No files found.
tests/ui/modules/Common/InvertedMouseArea.spec.qml
View file @
0b4a1725
...
@@ -3,7 +3,7 @@ import QtTest 1.1
...
@@ -3,7 +3,7 @@ import QtTest 1.1
import
Utils
1.0
import
Utils
1.0
// ===================================================================
// ===================================================================
==========
Rectangle
{
Rectangle
{
id
:
root
id
:
root
...
@@ -54,7 +54,7 @@ Rectangle {
...
@@ -54,7 +54,7 @@ Rectangle {
compare
(
spy
.
count
,
0
,
'
`pressed` signal was emitted
'
)
compare
(
spy
.
count
,
0
,
'
`pressed` signal was emitted
'
)
}
}
// ---------------------------------------------------------------
// ---------------------------------------------------------------
----------
function
test_randomClickOutsideMouseArea
()
{
function
test_randomClickOutsideMouseArea
()
{
Utils
.
times
(
50
,
function
()
{
Utils
.
times
(
50
,
function
()
{
...
@@ -80,7 +80,7 @@ Rectangle {
...
@@ -80,7 +80,7 @@ Rectangle {
})
})
}
}
// ---------------------------------------------------------------
// ---------------------------------------------------------------
----------
function
test_clickInsideMouseArea_data
()
{
function
test_clickInsideMouseArea_data
()
{
return
[
return
[
...
@@ -98,7 +98,7 @@ Rectangle {
...
@@ -98,7 +98,7 @@ Rectangle {
compare
(
spy
.
count
,
0
,
'
`pressed` signal was emitted
'
)
compare
(
spy
.
count
,
0
,
'
`pressed` signal was emitted
'
)
}
}
// ---------------------------------------------------------------
// ---------------------------------------------------------------
----------
function
test_clickOutsideMouseArea_data
()
{
function
test_clickOutsideMouseArea_data
()
{
return
[
return
[
...
...
tests/ui/scripts/Utils/utils.js
View file @
0b4a1725
...
@@ -34,7 +34,7 @@ function connectOnce (signal, cb) {
...
@@ -34,7 +34,7 @@ function connectOnce (signal, cb) {
function
encodeTextToQmlRichFormat
(
text
,
options
)
{
function
encodeTextToQmlRichFormat
(
text
,
options
)
{
var
images
=
''
var
images
=
''
if
(
options
==
null
)
{
if
(
!
options
)
{
options
=
{}
options
=
{}
}
}
...
@@ -218,7 +218,7 @@ function setTimeout (parent, delay, cb) {
...
@@ -218,7 +218,7 @@ function setTimeout (parent, delay, cb) {
// ===================================================================
// ===================================================================
function
_computeOptimizedCb
(
func
,
context
)
{
function
_computeOptimizedCb
(
func
,
context
)
{
return
(
context
!=
null
)
return
context
?
(
function
()
{
?
(
function
()
{
return
func
.
apply
(
context
,
arguments
)
return
func
.
apply
(
context
,
arguments
)
})
:
func
})
:
func
...
...
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