summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptcontext/tst_qscriptcontext.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-07-28 15:12:33 +0200
committerOlivier Goffart <ogoffart@trolltech.com>2009-07-28 15:16:37 +0200
commitf7455c339077078ed5986a09ee862410e0525a77 (patch)
tree666d18b649ef7f4c6adebe415b1e2fae61188704 /tests/auto/qscriptcontext/tst_qscriptcontext.cpp
parent90a8b91b518f7fb1e9bed2700826ad172e362c31 (diff)
Set the this object on the global context sets the global object
Reviewed-by: Kent Hansen
Diffstat (limited to 'tests/auto/qscriptcontext/tst_qscriptcontext.cpp')
-rw-r--r--tests/auto/qscriptcontext/tst_qscriptcontext.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/auto/qscriptcontext/tst_qscriptcontext.cpp b/tests/auto/qscriptcontext/tst_qscriptcontext.cpp
index 524fff2c2d..8b3d1d79ad 100644
--- a/tests/auto/qscriptcontext/tst_qscriptcontext.cpp
+++ b/tests/auto/qscriptcontext/tst_qscriptcontext.cpp
@@ -286,10 +286,8 @@ void tst_QScriptContext::thisObject()
{
QScriptValue obj = eng.newObject();
eng.currentContext()->setThisObject(obj);
- QEXPECT_FAIL("", "Setting this-object of global context doesn't work", Continue);
QVERIFY(eng.currentContext()->thisObject().equals(obj));
eng.currentContext()->setThisObject(QScriptValue());
- QEXPECT_FAIL("", "Setting this-object of global context doesn't work", Continue);
QVERIFY(eng.currentContext()->thisObject().equals(obj));
QScriptEngine eng2;