aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-06-12 09:19:54 +0200
committerLars Knoll <lars.knoll@digia.com>2013-06-12 10:51:25 +0200
commit8bcc2dea2b10e1d61096d085353159628835f9f7 (patch)
tree06e9830982f93b8a2429c01fe1bc98f34cf3924f /tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
parentfc7ad77b06f1e9ffa8a33557c8f323242c58f2ff (diff)
Small fix in tst_qqmlecmascript
EVALUATE_ERROR is supposed to return true if an exception was caught Change-Id: I8371206e4a4e9d0c3d40ef09cf61d28ed19e40aa Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp')
-rw-r--r--tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
index d438fd1a86..f49b85a6bc 100644
--- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
+++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
@@ -2180,9 +2180,9 @@ static inline bool evaluate_error(QV8Engine *engine, v8::Handle<v8::Object> o, c
function->call(engine->global(), args, 1);
} catch (QV4::Exception &e) {
e.accept(ctx);
- return false;
+ return true;
}
- return true;
+ return false;
}
static inline bool evaluate_value(QV8Engine *engine, v8::Handle<v8::Object> o,