summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorAurindam Jana <aurindam.jana@nokia.com>2011-06-14 13:57:49 (GMT)
committerAurindam Jana <aurindam.jana@nokia.com>2011-06-14 15:17:36 (GMT)
commit26a265924055bf8ccc74728620711b9f44626cb1 (patch)
tree524adb2b1425829b4adfffd7d6662f768053e97e /src/declarative
parent85b6b4006609914733461e777b0e051b6946344f (diff)
downloadQt-26a265924055bf8ccc74728620711b9f44626cb1.zip
Qt-26a265924055bf8ccc74728620711b9f44626cb1.tar.gz
Qt-26a265924055bf8ccc74728620711b9f44626cb1.tar.bz2
Rewrite autotests for js debugging
Change-Id: I5cb0e53ceab136bfe7c53a3d6c51c8865b76761b Reviewed-by: kkoehne
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/debugger/qjsdebuggeragent_p.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/declarative/debugger/qjsdebuggeragent_p.h b/src/declarative/debugger/qjsdebuggeragent_p.h
index 309588e..4b27fc8 100644
--- a/src/declarative/debugger/qjsdebuggeragent_p.h
+++ b/src/declarative/debugger/qjsdebuggeragent_p.h
@@ -94,6 +94,12 @@ inline QDataStream &operator<<(QDataStream &s, const JSAgentWatchData &data)
<< data.type << data.hasChildren << data.objectId;
}
+inline QDataStream &operator>>(QDataStream &s, JSAgentWatchData &data)
+{
+ return s >> data.exp >> data.name >> data.value
+ >> data.type >> data.hasChildren >> data.objectId;
+}
+
struct JSAgentStackData
{
QByteArray functionName;
@@ -106,6 +112,11 @@ inline QDataStream &operator<<(QDataStream &s, const JSAgentStackData &data)
return s << data.functionName << data.fileUrl << data.lineNumber;
}
+inline QDataStream &operator>>(QDataStream &s, JSAgentStackData &data)
+{
+ return s >> data.functionName >> data.fileUrl >> data.lineNumber;
+}
+
struct JSAgentBreakpointData
{
QByteArray functionName;