Fix instanceStateValues xhr test
authorSimon Hausmann <simon.hausmann@digia.com>
Thu, 20 Jun 2013 06:01:58 +0000 (08:01 +0200)
committerLars Knoll <lars.knoll@digia.com>
Thu, 20 Jun 2013 06:50:21 +0000 (08:50 +0200)
commit0117641a5bfb8f53ff80b291197db5426f689d0d
tree93eb6d018eaa362fb9cd21f95d6c7ddffb9bba30
parent1e6dbe88cbafcaed831231bb3bb96c09db3530fa
Fix instanceStateValues xhr test

Writing to a read-only property or trying to deleting will throw an exception
in strict mode and thus abort the execution. Make the test work in strict and
non-strict mode by surrounding the offending statements with individual
try/catch pairs.

Change-Id: I25f803b6ffd7ef721ac874f53a37b3208b5c05ab
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
tests/auto/qml/qqmlxmlhttprequest/data/instanceStateValues.qml