void tst_QScriptValue::isError_data() { QTest::addColumn<QScriptValue>("value"); QTest::addColumn<bool>("expected"); if (m_engine) delete m_engine; m_engine = new QScriptEngine(); QSet<QString> expectedValue; expectedValue.reserve(6); for (uint i = 0; i < 6; ++i) expectedValue.insert(isError_array[i]); for (uint i = 0; i < 135; ++i) { QPair<QString, QScriptValue> testcase = initScriptValues(i); QTest::newRow(testcase.first.toAscii().constData()) << testcase.second << expectedValue.contains(testcase.first); } }
void tst_QScriptValueGenerated::qscriptvalue_castquint32_initData() { QTest::addColumn<quint32>("expected"); initScriptValues(); }
void tst_QScriptValueGenerated::qscriptvalue_castbool_initData() { QTest::addColumn<bool>("expected"); initScriptValues(); }
void tst_QScriptValueGenerated::qscriptvalue_castQString_initData() { QTest::addColumn<QString>("expected"); initScriptValues(); }
void tst_QScriptValueGenerated::assignAndCopyConstruct_initData() { QTest::addColumn<int>("dummy"); initScriptValues(); }
void tst_QScriptValueGenerated::isError_initData() { QTest::addColumn<bool>("expected"); initScriptValues(); }