diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-07-28 13:12:33 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-07-28 13:16:37 (GMT) |
commit | f7455c339077078ed5986a09ee862410e0525a77 (patch) | |
tree | 666d18b649ef7f4c6adebe415b1e2fae61188704 /tests/auto/qscriptcontext/tst_qscriptcontext.cpp | |
parent | 90a8b91b518f7fb1e9bed2700826ad172e362c31 (diff) | |
download | Qt-f7455c339077078ed5986a09ee862410e0525a77.zip Qt-f7455c339077078ed5986a09ee862410e0525a77.tar.gz Qt-f7455c339077078ed5986a09ee862410e0525a77.tar.bz2 |
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.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/auto/qscriptcontext/tst_qscriptcontext.cpp b/tests/auto/qscriptcontext/tst_qscriptcontext.cpp index 524fff2..8b3d1d7 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; |