aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2015-02-05 10:45:42 +0100
committerhjk <hjk@theqtcompany.com>2015-02-12 10:26:27 +0000
commitbf1491b7c97180346814045d85c713b5bbd1b27a (patch)
tree223d47359902c9d7468466fae203774c1fed22e6
parent1574ba82e6a3dae03fc129973da1da9b0f6a5543 (diff)
Add offset test for QV4::Heap::String::text
This is used in Qt Creator's "native mixed" access to runtimeStrings. Change-Id: I5c94ec8bff0734e5dc032aa739bfbb51af9b9820 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com> Reviewed-by: hjk <hjk@theqtcompany.com>
-rw-r--r--tests/auto/toolsupport/tst_toolsupport.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/toolsupport/tst_toolsupport.cpp b/tests/auto/toolsupport/tst_toolsupport.cpp
index 464c8debbc..d8cefcd1e3 100644
--- a/tests/auto/toolsupport/tst_toolsupport.cpp
+++ b/tests/auto/toolsupport/tst_toolsupport.cpp
@@ -39,6 +39,7 @@
#include <private/qobject_p.h>
#include <private/qv4compileddata_p.h>
+#include <private/qv4string_p.h>
#include <qobject.h>
#if defined(Q_CC_GNU) || defined(Q_CC_MSVC)
@@ -116,6 +117,14 @@ void tst_toolsupport::offsets_data()
data << 16 << 32;
}
+ {
+ QTestData &data
+ = QTest::newRow("Heap::String::text")
+ << pmm_to_offsetof(&QV4::Heap::String::text);
+
+ data << 4 << 8;
+ }
+
#endif // RUN_MEMBER_OFFSET_TEST
}