diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2014-11-18 14:32:38 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2015-01-11 03:40:38 +0100 |
commit | 2c01d402e19b6137cf24794cbc4533a2b8b2d816 (patch) | |
tree | d0c0aaa93128a007b604fa3fcd25b8d9c5008723 /tests/auto/testlib | |
parent | e00d8ad86b8961e514fc91534127f5aa62c3b22f (diff) |
QDebug: pretty-print QStrings and QStringRefs
[ChangeLog][QtCore][QDebug] Printing of QStrings and QStringRefs
whenever "noquote" is not active now prints the strings in a format that
can be copied back to C++ code. All characters that aren't printable in
US-ASCII are escaped (this includes printable Unicode characters outside
of US-ASCII). Pretty-printing will not respect QTextFormat padding or
field widths.
Change-Id: I169a8a0508e24693f5652f0129defe7f709e5d08
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/testlib')
-rw-r--r-- | tests/auto/testlib/selftests/expected_badxml.lightxml | 2 | ||||
-rw-r--r-- | tests/auto/testlib/selftests/expected_badxml.xml | 2 | ||||
-rw-r--r-- | tests/auto/testlib/selftests/expected_badxml.xunitxml | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/testlib/selftests/expected_badxml.lightxml b/tests/auto/testlib/selftests/expected_badxml.lightxml index 94f479a79a..e0de44f0be 100644 --- a/tests/auto/testlib/selftests/expected_badxml.lightxml +++ b/tests/auto/testlib/selftests/expected_badxml.lightxml @@ -113,7 +113,7 @@ </TestFunction> <TestFunction name="encoding"> <Message type="qdebug" file="" line="0"> - <Description><![CDATA["Ülrich Ümläut"]]></Description> + <Description><![CDATA["\u00DClrich \u00DCml\u00E4ut"]]></Description> </Message> <Incident type="pass" file="" line="0" /> <Duration msecs="0"/> diff --git a/tests/auto/testlib/selftests/expected_badxml.xml b/tests/auto/testlib/selftests/expected_badxml.xml index c1266bfeed..8667c2d9cd 100644 --- a/tests/auto/testlib/selftests/expected_badxml.xml +++ b/tests/auto/testlib/selftests/expected_badxml.xml @@ -115,7 +115,7 @@ </TestFunction> <TestFunction name="encoding"> <Message type="qdebug" file="" line="0"> - <Description><![CDATA["Ülrich Ümläut"]]></Description> + <Description><![CDATA["\u00DClrich \u00DCml\u00E4ut"]]></Description> </Message> <Incident type="pass" file="" line="0" /> <Duration msecs="0"/> diff --git a/tests/auto/testlib/selftests/expected_badxml.xunitxml b/tests/auto/testlib/selftests/expected_badxml.xunitxml index 49048fdad6..46f4be4391 100644 --- a/tests/auto/testlib/selftests/expected_badxml.xunitxml +++ b/tests/auto/testlib/selftests/expected_badxml.xunitxml @@ -30,7 +30,7 @@ <failure message="failure message" result="fail"/> </testcase> <testcase result="pass" name="encoding"> - <!-- message=""Ülrich Ümläut"" type="qdebug" --> + <!-- message=""\u00DClrich \u00DCml\u00E4ut"" type="qdebug" --> </testcase> <testcase result="pass" name="cleanupTestCase"/> <system-err> @@ -46,6 +46,6 @@ <![CDATA[quotes " text" more text]]> <![CDATA[xml close > open < tags < text]]> <![CDATA[all > " mixed ]]]><![CDATA[]> up > " in < the ]]]><![CDATA[]> hopes < of triggering "< ]]]><![CDATA[]> bugs]]> -<![CDATA["Ülrich Ümläut"]]> +<![CDATA["\u00DClrich \u00DCml\u00E4ut"]]> </system-err> </testsuite> |