From: Simon Hausmann Date: Wed, 12 Jun 2013 07:19:54 +0000 (+0200) Subject: Small fix in tst_qqmlecmascript X-Git-Tag: upstream/5.2.1~669^2~258 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8bcc2dea2b10e1d61096d085353159628835f9f7;p=platform%2Fupstream%2Fqtdeclarative.git Small fix in tst_qqmlecmascript EVALUATE_ERROR is supposed to return true if an exception was caught Change-Id: I8371206e4a4e9d0c3d40ef09cf61d28ed19e40aa Reviewed-by: Lars Knoll --- diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp index d438fd1..f49b85a 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 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 o,