summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptvaluegenerated/tst_qscriptvalue_generated_isXXX.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qscriptvaluegenerated/tst_qscriptvalue_generated_isXXX.cpp')
-rw-r--r--tests/auto/qscriptvaluegenerated/tst_qscriptvalue_generated_isXXX.cpp80
1 files changed, 48 insertions, 32 deletions
diff --git a/tests/auto/qscriptvaluegenerated/tst_qscriptvalue_generated_isXXX.cpp b/tests/auto/qscriptvaluegenerated/tst_qscriptvalue_generated_isXXX.cpp
index 71a5c1d..70ccb17 100644
--- a/tests/auto/qscriptvaluegenerated/tst_qscriptvalue_generated_isXXX.cpp
+++ b/tests/auto/qscriptvaluegenerated/tst_qscriptvalue_generated_isXXX.cpp
@@ -52,7 +52,7 @@ void tst_QScriptValueGenerated::isValid_initData()
initScriptValues();
}
-static QString isValid_array [] = {
+static QString isValid_array[] = {
"QScriptValue(QScriptValue::UndefinedValue)",
"QScriptValue(QScriptValue::NullValue)",
"QScriptValue(true)",
@@ -193,7 +193,8 @@ static QString isValid_array [] = {
"engine->newVariant(QVariant(123))",
"engine->newVariant(QVariant(false))",
"engine->newQObject(0)",
- "engine->newQObject(engine)",};
+ "engine->newQObject(engine)"
+};
void tst_QScriptValueGenerated::isValid_makeData(const char* expr)
{
@@ -222,7 +223,7 @@ void tst_QScriptValueGenerated::isBool_initData()
initScriptValues();
}
-static QString isBool_array [] = {
+static QString isBool_array[] = {
"QScriptValue(true)",
"QScriptValue(false)",
"QScriptValue(0, true)",
@@ -230,7 +231,8 @@ static QString isBool_array [] = {
"QScriptValue(engine, true)",
"QScriptValue(engine, false)",
"engine->evaluate(\"true\")",
- "engine->evaluate(\"false\")",};
+ "engine->evaluate(\"false\")"
+};
void tst_QScriptValueGenerated::isBool_makeData(const char* expr)
{
@@ -259,7 +261,7 @@ void tst_QScriptValueGenerated::isBoolean_initData()
initScriptValues();
}
-static QString isBoolean_array [] = {
+static QString isBoolean_array[] = {
"QScriptValue(true)",
"QScriptValue(false)",
"QScriptValue(0, true)",
@@ -267,7 +269,8 @@ static QString isBoolean_array [] = {
"QScriptValue(engine, true)",
"QScriptValue(engine, false)",
"engine->evaluate(\"true\")",
- "engine->evaluate(\"false\")",};
+ "engine->evaluate(\"false\")"
+};
void tst_QScriptValueGenerated::isBoolean_makeData(const char* expr)
{
@@ -296,7 +299,7 @@ void tst_QScriptValueGenerated::isNumber_initData()
initScriptValues();
}
-static QString isNumber_array [] = {
+static QString isNumber_array[] = {
"QScriptValue(int(122))",
"QScriptValue(uint(124))",
"QScriptValue(0)",
@@ -352,7 +355,8 @@ static QString isNumber_array [] = {
"engine->evaluate(\"0x10001\")",
"engine->evaluate(\"NaN\")",
"engine->evaluate(\"Infinity\")",
- "engine->evaluate(\"-Infinity\")",};
+ "engine->evaluate(\"-Infinity\")"
+};
void tst_QScriptValueGenerated::isNumber_makeData(const char* expr)
{
@@ -381,7 +385,7 @@ void tst_QScriptValueGenerated::isFunction_initData()
initScriptValues();
}
-static QString isFunction_array [] = {
+static QString isFunction_array[] = {
"engine->evaluate(\"Function.prototype\")",
"engine->evaluate(\"Object\")",
"engine->evaluate(\"Array\")",
@@ -391,7 +395,8 @@ static QString isFunction_array [] = {
"engine->evaluate(\"(function() { return 'ciao'; })\")",
"engine->evaluate(\"(function() { throw new Error('foo'); })\")",
"engine->evaluate(\"/foo/\")",
- "engine->newQMetaObject(&QObject::staticMetaObject)",};
+ "engine->newQMetaObject(&QObject::staticMetaObject)"
+};
void tst_QScriptValueGenerated::isFunction_makeData(const char* expr)
{
@@ -420,13 +425,14 @@ void tst_QScriptValueGenerated::isNull_initData()
initScriptValues();
}
-static QString isNull_array [] = {
+static QString isNull_array[] = {
"QScriptValue(QScriptValue::NullValue)",
"QScriptValue(0, QScriptValue::NullValue)",
"QScriptValue(engine, QScriptValue::NullValue)",
"engine->evaluate(\"null\")",
"engine->nullValue()",
- "engine->newQObject(0)",};
+ "engine->newQObject(0)"
+};
void tst_QScriptValueGenerated::isNull_makeData(const char* expr)
{
@@ -455,7 +461,7 @@ void tst_QScriptValueGenerated::isString_initData()
initScriptValues();
}
-static QString isString_array [] = {
+static QString isString_array[] = {
"QScriptValue(\"NaN\")",
"QScriptValue(\"Infinity\")",
"QScriptValue(\"-Infinity\")",
@@ -490,7 +496,8 @@ static QString isString_array [] = {
"engine->evaluate(\"''\")",
"engine->evaluate(\"'0'\")",
"engine->evaluate(\"'123'\")",
- "engine->evaluate(\"'12.4'\")",};
+ "engine->evaluate(\"'12.4'\")"
+};
void tst_QScriptValueGenerated::isString_makeData(const char* expr)
{
@@ -519,13 +526,14 @@ void tst_QScriptValueGenerated::isUndefined_initData()
initScriptValues();
}
-static QString isUndefined_array [] = {
+static QString isUndefined_array[] = {
"QScriptValue(QScriptValue::UndefinedValue)",
"QScriptValue(0, QScriptValue::UndefinedValue)",
"QScriptValue(engine, QScriptValue::UndefinedValue)",
"engine->evaluate(\"{}\")",
"engine->evaluate(\"undefined\")",
- "engine->undefinedValue()",};
+ "engine->undefinedValue()"
+};
void tst_QScriptValueGenerated::isUndefined_makeData(const char* expr)
{
@@ -554,10 +562,11 @@ void tst_QScriptValueGenerated::isVariant_initData()
initScriptValues();
}
-static QString isVariant_array [] = {
+static QString isVariant_array[] = {
"engine->newVariant(QVariant())",
"engine->newVariant(QVariant(123))",
- "engine->newVariant(QVariant(false))",};
+ "engine->newVariant(QVariant(false))"
+};
void tst_QScriptValueGenerated::isVariant_makeData(const char* expr)
{
@@ -586,8 +595,9 @@ void tst_QScriptValueGenerated::isQObject_initData()
initScriptValues();
}
-static QString isQObject_array [] = {
- "engine->newQObject(engine)",};
+static QString isQObject_array[] = {
+ "engine->newQObject(engine)"
+};
void tst_QScriptValueGenerated::isQObject_makeData(const char* expr)
{
@@ -616,8 +626,9 @@ void tst_QScriptValueGenerated::isQMetaObject_initData()
initScriptValues();
}
-static QString isQMetaObject_array [] = {
- "engine->newQMetaObject(&QObject::staticMetaObject)",};
+static QString isQMetaObject_array[] = {
+ "engine->newQMetaObject(&QObject::staticMetaObject)"
+};
void tst_QScriptValueGenerated::isQMetaObject_makeData(const char* expr)
{
@@ -646,7 +657,7 @@ void tst_QScriptValueGenerated::isObject_initData()
initScriptValues();
}
-static QString isObject_array [] = {
+static QString isObject_array[] = {
"engine->evaluate(\"[]\")",
"engine->evaluate(\"Object.prototype\")",
"engine->evaluate(\"Date.prototype\")",
@@ -676,7 +687,8 @@ static QString isObject_array [] = {
"engine->newVariant(QVariant())",
"engine->newVariant(QVariant(123))",
"engine->newVariant(QVariant(false))",
- "engine->newQObject(engine)",};
+ "engine->newQObject(engine)"
+};
void tst_QScriptValueGenerated::isObject_makeData(const char* expr)
{
@@ -705,9 +717,10 @@ void tst_QScriptValueGenerated::isDate_initData()
initScriptValues();
}
-static QString isDate_array [] = {
+static QString isDate_array[] = {
"engine->evaluate(\"Date.prototype\")",
- "engine->newDate(QDateTime())",};
+ "engine->newDate(QDateTime())"
+};
void tst_QScriptValueGenerated::isDate_makeData(const char* expr)
{
@@ -736,8 +749,9 @@ void tst_QScriptValueGenerated::isRegExp_initData()
initScriptValues();
}
-static QString isRegExp_array [] = {
- "engine->evaluate(\"/foo/\")",};
+static QString isRegExp_array[] = {
+ "engine->evaluate(\"/foo/\")"
+};
void tst_QScriptValueGenerated::isRegExp_makeData(const char* expr)
{
@@ -766,12 +780,13 @@ void tst_QScriptValueGenerated::isArray_initData()
initScriptValues();
}
-static QString isArray_array [] = {
+static QString isArray_array[] = {
"engine->evaluate(\"[]\")",
"engine->evaluate(\"Array.prototype\")",
"engine->evaluate(\"new Array()\")",
"engine->newArray()",
- "engine->newArray(10)",};
+ "engine->newArray(10)"
+};
void tst_QScriptValueGenerated::isArray_makeData(const char* expr)
{
@@ -800,13 +815,14 @@ void tst_QScriptValueGenerated::isError_initData()
initScriptValues();
}
-static QString isError_array [] = {
+static QString isError_array[] = {
"engine->evaluate(\"Error.prototype\")",
"engine->evaluate(\"new Error()\")",
"engine->evaluate(\"Undefined\")",
"engine->evaluate(\"Null\")",
"engine->evaluate(\"True\")",
- "engine->evaluate(\"False\")",};
+ "engine->evaluate(\"False\")"
+};
void tst_QScriptValueGenerated::isError_makeData(const char* expr)
{