Console API: Add console.assert
authorAurindam Jana <aurindam.jana@nokia.com>
Tue, 17 Jan 2012 11:37:07 +0000 (12:37 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 24 Jan 2012 13:11:52 +0000 (14:11 +0100)
commitb514fecbeae6a4fed9e593ea6405dbeec7fe7883
tree05c6dd3f6407a715f6ad482eac9f54a2bcc2b507
parent47a5c708bf4e555cb8febef583f32c99f7d8ea1e
Console API: Add console.assert

console.assert tests if an expression is true. If it is false,
it writes a message to the console and prints the JavaScript
stack trace at that point.

Change-Id: I5487552cb8a947e1947914166834e0bdedba3354
Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
doc/src/declarative/qdeclarativedebugging.qdoc
src/declarative/qml/v8/qdeclarativebuiltinfunctions.cpp
src/declarative/qml/v8/qdeclarativebuiltinfunctions_p.h
src/declarative/qml/v8/qv8engine.cpp
tests/auto/declarative/qdeclarativeconsole/data/assert.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeconsole/tst_qdeclarativeconsole.cpp