tst_frame: fail on warnings
Enable fail on warnings for all tests in init() method. Also, as a drive-by change, replace 'var' with 'let' Task-number: QTBUG-98718 Change-Id: I3c21ea2a20a4443c1ae3e053e678a01901868970 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commitfba25cca22
) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit2038289803
)
This commit is contained in:
parent
c451dbc171
commit
1ab5777f43
|
@ -52,10 +52,12 @@ TestCase {
|
|||
}
|
||||
}
|
||||
|
||||
function test_empty() {
|
||||
function init() {
|
||||
failOnWarning(/.?/)
|
||||
}
|
||||
|
||||
var control = createTemporaryObject(frame, testCase)
|
||||
function test_empty() {
|
||||
let control = createTemporaryObject(frame, testCase)
|
||||
verify(control)
|
||||
|
||||
verify(control.contentItem)
|
||||
|
@ -66,7 +68,7 @@ TestCase {
|
|||
}
|
||||
|
||||
function test_oneChild() {
|
||||
var control = createTemporaryObject(oneChildFrame, testCase)
|
||||
let control = createTemporaryObject(oneChildFrame, testCase)
|
||||
verify(control)
|
||||
|
||||
compare(control.contentWidth, 100)
|
||||
|
@ -78,7 +80,7 @@ TestCase {
|
|||
}
|
||||
|
||||
function test_twoChildren() {
|
||||
var control = createTemporaryObject(twoChildrenFrame, testCase)
|
||||
let control = createTemporaryObject(twoChildrenFrame, testCase)
|
||||
verify(control)
|
||||
|
||||
compare(control.contentWidth, 0)
|
||||
|
@ -90,7 +92,7 @@ TestCase {
|
|||
}
|
||||
|
||||
function test_contentItem() {
|
||||
var control = createTemporaryObject(contentFrame, testCase)
|
||||
let control = createTemporaryObject(contentFrame, testCase)
|
||||
verify(control)
|
||||
|
||||
compare(control.contentWidth, 100)
|
||||
|
|
Loading…
Reference in New Issue