diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-07-28 12:28:24 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-07-28 12:28:24 (GMT) |
commit | e7a986d9348062297471c2f15b2e577154ebf19c (patch) | |
tree | 338f718797721fa5c96db2a133de9bfb1a9f5c70 /tests/auto/qscriptvalue | |
parent | aec5f2e797aa1e4b44d0713e0f75b456e44c571b (diff) | |
download | Qt-e7a986d9348062297471c2f15b2e577154ebf19c.zip Qt-e7a986d9348062297471c2f15b2e577154ebf19c.tar.gz Qt-e7a986d9348062297471c2f15b2e577154ebf19c.tar.bz2 |
get rid of test that tests quirk of old back-end
There's no requirement that native function objects should have
an arguments property, so don't implement it for now.
Diffstat (limited to 'tests/auto/qscriptvalue')
-rw-r--r-- | tests/auto/qscriptvalue/tst_qscriptvalue.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp index f2ac385..f454d2e 100644 --- a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp +++ b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp @@ -2089,14 +2089,11 @@ void tst_QScriptValue::getSetProperty() QVERIFY(object.property(foo).strictlyEquals(num)); QVERIFY(object.property("foo").strictlyEquals(num)); - // can't set arguments and length property of function objects + // can't set length property of native function objects { QScriptValue fun = eng.newFunction(getterSetter, /*length=*/2); for (int x = 0; x < 2; ++x) { - QEXPECT_FAIL("", "function.arguments should be null", Continue); - QVERIFY(fun.property("arguments").isNull()); QVERIFY(fun.property("length").strictlyEquals(QScriptValue(&eng, 2))); - fun.setProperty("arguments", QScriptValue()); fun.setProperty("length", QScriptValue()); } } |