Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
4ca5e42f
Commit
4ca5e42f
authored
Mar 18, 2010
by
Kai Koehne
Browse files
QmlDesigner: Autotest cosmetics
parent
497e5141
Changes
3
Hide whitespace changes
Inline
Side-by-side
tests/auto/qml/qmldesigner/common/statichelpers.cpp
View file @
4ca5e42f
...
...
@@ -27,27 +27,27 @@
**
**************************************************************************/
static
void
testMessageOutput
(
QtMsgType
type
,
const
char
*
msg
)
{
switch
(
type
)
{
case
QtDebugMsg
:
#ifdef QDEBUG_IN_TESTS
std
::
fprintf
(
stderr
,
"Debug: %s
\n
"
,
msg
);
#endif // QDEBUG_IN_TESTS
break
;
case
QtWarningMsg
:
#ifdef WARNINGS_IN_TESTS
std
::
fprintf
(
stderr
,
"Warning: %s
\n
"
,
msg
);
#endif // WARNINGS_IN_TESTS
break
;
case
QtCriticalMsg
:
std
::
fprintf
(
stderr
,
"Critical: %s
\n
"
,
msg
);
break
;
case
QtFatalMsg
:
std
::
fprintf
(
stderr
,
"Fatal: %s
\n
"
,
msg
);
break
;
}
}
//
static void testMessageOutput(QtMsgType type, const char *msg)
//
{
//
switch (type) {
//
case QtDebugMsg:
//
#ifdef QDEBUG_IN_TESTS
//
std::fprintf(stderr, "Debug: %s\n", msg);
//
#endif // QDEBUG_IN_TESTS
//
break;
//
case QtWarningMsg:
//
#ifdef WARNINGS_IN_TESTS
//
std::fprintf(stderr, "Warning: %s\n", msg);
//
#endif // WARNINGS_IN_TESTS
//
break;
//
case QtCriticalMsg:
//
std::fprintf(stderr, "Critical: %s\n", msg);
//
break;
//
case QtFatalMsg:
//
std::fprintf(stderr, "Fatal: %s\n", msg);
//
break;
//
}
//
}
static
ModelNode
addChildNode
(
const
ModelNode
&
parentNode
,
const
QString
&
typeName
,
int
major
,
int
minor
,
const
QString
&
parentProperty
)
{
...
...
tests/auto/qml/qmldesigner/coretests/testcore.cpp
View file @
4ca5e42f
...
...
@@ -2539,7 +2539,7 @@ void TestCore::testRewriterNodeSliding()
QCOMPARE
(
rootNode
.
nodeListProperty
(
QLatin1String
(
"data"
)).
toModelNodeList
().
at
(
1
).
id
(),
QLatin1String
(
"rectangle2"
));
}
void
TestCore
::
testRewriterEx
e
cptionHandling
()
void
TestCore
::
testRewriterExc
e
ptionHandling
()
{
const
QLatin1String
qmlString
(
"import Qt 4.6
\n
"
"Text {
\n
"
...
...
tests/auto/qml/qmldesigner/coretests/testcore.h
View file @
4ca5e42f
...
...
@@ -117,7 +117,7 @@ private slots:
void
testRewriterForArrayMagic
();
void
testRewriterWithSignals
();
void
testRewriterNodeSliding
();
void
testRewriterEx
e
cptionHandling
();
void
testRewriterExc
e
ptionHandling
();
//
// unit tests QmlModelNodeFacade/QmlModelState
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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