summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptenginedebugger/tst_qscriptenginedebugger.cpp
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-06-17 11:17:16 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-06-17 11:17:16 (GMT)
commitf136f7410a30b090646a58c1791e15adfa18de85 (patch)
tree823e5adc4ee03eaf65aa10d26b60fd9d2665ffff /tests/auto/qscriptenginedebugger/tst_qscriptenginedebugger.cpp
parente97b1187391e16208a2da0e4c7f9e6daa540aa93 (diff)
downloadQt-f136f7410a30b090646a58c1791e15adfa18de85.zip
Qt-f136f7410a30b090646a58c1791e15adfa18de85.tar.gz
Qt-f136f7410a30b090646a58c1791e15adfa18de85.tar.bz2
fix the QScriptEngineDebugger::state() logic, add test, improve docs
Diffstat (limited to 'tests/auto/qscriptenginedebugger/tst_qscriptenginedebugger.cpp')
-rw-r--r--tests/auto/qscriptenginedebugger/tst_qscriptenginedebugger.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qscriptenginedebugger/tst_qscriptenginedebugger.cpp b/tests/auto/qscriptenginedebugger/tst_qscriptenginedebugger.cpp
index 5d9f56f..7f3f9f3 100644
--- a/tests/auto/qscriptenginedebugger/tst_qscriptenginedebugger.cpp
+++ b/tests/auto/qscriptenginedebugger/tst_qscriptenginedebugger.cpp
@@ -111,9 +111,11 @@ void tst_QScriptEngineDebugger::attachAndDetach()
{
{
QScriptEngineDebugger debugger;
+ QCOMPARE(debugger.state(), QScriptEngineDebugger::SuspendedState);
debugger.attachTo(0);
QScriptEngine engine;
debugger.attachTo(&engine);
+ QCOMPARE(debugger.state(), QScriptEngineDebugger::SuspendedState);
}
{
QScriptEngineDebugger debugger;