Add test cases to tst_QByteArray
authorJędrzej Nowacki <jedrzej.nowacki@nokia.com>
Thu, 22 Mar 2012 08:44:17 +0000 (09:44 +0100)
committerQt by Nokia <qt-info@nokia.com>
Fri, 23 Mar 2012 15:43:43 +0000 (16:43 +0100)
commit98c3b8a44220096a4e2a3967a4e9742c3605a5cd
tree255ba700610f976bcc0c00fe3650fc7a648f82f0
parent425b38ef95f6f4478ffbd4ada0d3046fae2c95e7
Add test cases to tst_QByteArray

Internally we construct QByteArrays from QStaticByteArrays. For example
moc is generating QStaticByteArray structure for every string it saves.
New test cases check if a QByteArray constructed from a QStaticByteArray
behaves as a not statically constructed one.

Change-Id: Ia4aa9a1a5bc0209507636c683a782dda00eae85c
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
tests/auto/corelib/tools/qbytearray/tst_qbytearray.cpp