diff options
Diffstat (limited to 'tests/auto/qscriptvalue/testgen/data.txt')
-rw-r--r-- | tests/auto/qscriptvalue/testgen/data.txt | 161 |
1 files changed, 0 insertions, 161 deletions
diff --git a/tests/auto/qscriptvalue/testgen/data.txt b/tests/auto/qscriptvalue/testgen/data.txt deleted file mode 100644 index 73677ec..0000000 --- a/tests/auto/qscriptvalue/testgen/data.txt +++ /dev/null @@ -1,161 +0,0 @@ -# Data set for QScriptValue autotest. - -# Each line is a c++ code that should return a QScriptValue object. -# Lines that are empty or start with '#' will be ignored - -QScriptValue() - -#Unbound values -QScriptValue(QScriptValue::UndefinedValue) -QScriptValue(QScriptValue::NullValue) -QScriptValue(true) -QScriptValue(false) -QScriptValue(int(122)) -QScriptValue(uint(124)) -QScriptValue(0) -QScriptValue(0.0) -QScriptValue(123.0) -QScriptValue(6.37e-8) -QScriptValue(-6.37e-8) -QScriptValue(0x43211234) -QScriptValue(0x10000) -QScriptValue(0x10001) -QScriptValue(qSNaN()) -QScriptValue(qQNaN()) -QScriptValue(qInf()) -QScriptValue(-qInf()) -QScriptValue("NaN") -QScriptValue("Infinity") -QScriptValue("-Infinity") -QScriptValue("ciao") -QScriptValue(QString::fromLatin1("ciao")) -QScriptValue(QString("")) -QScriptValue(QString()) -QScriptValue(QString("0")) -QScriptValue(QString("123")) -QScriptValue(QString("12.4")) -#QScriptValue(QString::fromUtf8("ąśćżźółńę")) - -#Unbound values (bound to a null engine) -QScriptValue(0, QScriptValue::UndefinedValue) -QScriptValue(0, QScriptValue::NullValue) -QScriptValue(0, true) -QScriptValue(0, false) -QScriptValue(0, int(122)) -QScriptValue(0, uint(124)) -QScriptValue(0, 0) -QScriptValue(0, 0.0) -QScriptValue(0, 123.0) -QScriptValue(0, 6.37e-8) -QScriptValue(0, -6.37e-8) -QScriptValue(0, 0x43211234) -QScriptValue(0, 0x10000) -QScriptValue(0, 0x10001) -QScriptValue(0, qSNaN()) -QScriptValue(0, qQNaN()) -QScriptValue(0, qInf()) -QScriptValue(0, -qInf()) -QScriptValue(0, "NaN") -QScriptValue(0, "Infinity") -QScriptValue(0, "-Infinity") -QScriptValue(0, "ciao") -QScriptValue(0, QString::fromLatin1("ciao")) -QScriptValue(0, QString("")) -QScriptValue(0, QString()) -QScriptValue(0, QString("0")) -QScriptValue(0, QString("123")) -QScriptValue(0, QString("12.3")) -#QScriptValue(0, QString::fromUtf8("ąśćżźółńę")) - -#Bound values -QScriptValue(engine, QScriptValue::UndefinedValue) -QScriptValue(engine, QScriptValue::NullValue) -QScriptValue(engine, true) -QScriptValue(engine, false) -QScriptValue(engine, int(122)) -QScriptValue(engine, uint(124)) -QScriptValue(engine, 0) -QScriptValue(engine, 0.0) -QScriptValue(engine, 123.0) -QScriptValue(engine, 6.37e-8) -QScriptValue(engine, -6.37e-8) -QScriptValue(engine, 0x43211234) -QScriptValue(engine, 0x10000) -QScriptValue(engine, 0x10001) -QScriptValue(engine, qSNaN()) -QScriptValue(engine, qQNaN()) -QScriptValue(engine, qInf()) -QScriptValue(engine, -qInf()) -QScriptValue(engine, "NaN") -QScriptValue(engine, "Infinity") -QScriptValue(engine, "-Infinity") -QScriptValue(engine, "ciao") -QScriptValue(engine, QString::fromLatin1("ciao")) -QScriptValue(engine, QString("")) -QScriptValue(engine, QString()) -QScriptValue(engine, QString("0")) -QScriptValue(engine, QString("123")) -QScriptValue(engine, QString("1.23")) - -# evaluate -engine->evaluate("[]") -engine->evaluate("{}") -engine->evaluate("Object.prototype") -engine->evaluate("Date.prototype") -engine->evaluate("Array.prototype") -engine->evaluate("Function.prototype") -engine->evaluate("Error.prototype") -engine->evaluate("Object") -engine->evaluate("Array") -engine->evaluate("Number") -engine->evaluate("Function") -engine->evaluate("(function() { return 1; })") -engine->evaluate("(function() { return 'ciao'; })") -engine->evaluate("(function() { throw new Error('foo'); })") -engine->evaluate("/foo/") -engine->evaluate("new Object()") -engine->evaluate("new Array()") -engine->evaluate("new Error()") -engine->evaluate("a = new Object(); a.foo = 22; a.foo") -engine->evaluate("Undefined") -engine->evaluate("Null") -engine->evaluate("True") -engine->evaluate("False") - -engine->evaluate("undefined") -engine->evaluate("null") -engine->evaluate("true") -engine->evaluate("false") -engine->evaluate("122") -engine->evaluate("124") -engine->evaluate("0") -engine->evaluate("0.0") -engine->evaluate("123.0") -engine->evaluate("6.37e-8") -engine->evaluate("-6.37e-8") -engine->evaluate("0x43211234") -engine->evaluate("0x10000") -engine->evaluate("0x10001") -engine->evaluate("NaN") -engine->evaluate("Infinity") -engine->evaluate("-Infinity") -engine->evaluate("'ciao'") -engine->evaluate("''") -engine->evaluate("'0'") -engine->evaluate("'123'") -engine->evaluate("'12.4'") -#engine->evaluate(QString::fromUtf8("'ąśćżźółńę'")) - -#other -engine->nullValue() -engine->undefinedValue() -engine->newObject() -engine->newArray() -engine->newArray(10) -engine->newDate(QDateTime()) -engine->newQMetaObject(&QObject::staticMetaObject) -engine->newVariant(QVariant()) -engine->newVariant(QVariant(123)) -engine->newVariant(QVariant(false)) -engine->newQObject(0) -engine->newQObject(engine)
\ No newline at end of file |