diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-08-01 21:39:35 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-08-02 20:25:18 +0000 |
commit | 245cb6b6a3e5a04dc43a3c4ce15831f68309e97f (patch) | |
tree | da8e49f1110967f28a8f37dcd3e5a373297b0297 /tests/auto/qml/qjsvalue | |
parent | f289141524d9331bdafd9f88d95e0fa9b29ccdee (diff) |
Fix a couple of test failures related to error objects
Set up the prototype chain for error objects correctly, and make
them inherit from the right classes.
Change-Id: I7bb12b3bb285950a1bff25e5c62954287a95970a
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/qjsvalue')
-rw-r--r-- | tests/auto/qml/qjsvalue/tst_qjsvalue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/qjsvalue/tst_qjsvalue.cpp b/tests/auto/qml/qjsvalue/tst_qjsvalue.cpp index 6384369ef0..f9718e3699 100644 --- a/tests/auto/qml/qjsvalue/tst_qjsvalue.cpp +++ b/tests/auto/qml/qjsvalue/tst_qjsvalue.cpp @@ -1259,7 +1259,7 @@ void tst_QJSValue::isError_propertiesOfGlobalObject() for (int i = 0; i < errors.size(); ++i) { QJSValue ctor = eng.globalObject().property(errors.at(i)); QVERIFY(ctor.isCallable()); - QVERIFY(ctor.property("prototype").isError()); + QVERIFY(ctor.property("prototype").isObject()); } } |