equal
deleted
inserted
replaced
47 #include <QtScript/qscriptclass.h> |
47 #include <QtScript/qscriptclass.h> |
48 #include <QtScript/qscriptengine.h> |
48 #include <QtScript/qscriptengine.h> |
49 #include <QtScript/qscriptvalue.h> |
49 #include <QtScript/qscriptvalue.h> |
50 #include <QtTest/QtTest> |
50 #include <QtTest/QtTest> |
51 |
51 |
|
52 #define DEFINE_TEST_VALUE(expr) m_values.insert(QString::fromLatin1(#expr), expr) |
|
53 |
52 Q_DECLARE_METATYPE(QVariant) |
54 Q_DECLARE_METATYPE(QVariant) |
53 Q_DECLARE_METATYPE(QScriptValue) |
55 Q_DECLARE_METATYPE(QScriptValue) |
54 |
56 |
55 class tst_QScriptValue : public QObject |
57 class tst_QScriptValue : public QObject |
56 { |
58 { |
87 void isNumber(); |
89 void isNumber(); |
88 |
90 |
89 void isObject_data(); |
91 void isObject_data(); |
90 void isObject(); |
92 void isObject(); |
91 |
93 |
92 // void isQMetaObject_data(); |
94 void isQMetaObject_data(); |
93 // void isQMetaObject(); |
95 void isQMetaObject(); |
94 |
96 |
95 // void isQObject_data(); |
97 void isQObject_data(); |
96 // void isQObject(); |
98 void isQObject(); |
97 |
99 |
98 void isRegExp_data(); |
100 void isRegExp_data(); |
99 void isRegExp(); |
101 void isRegExp(); |
100 |
102 |
101 void isString_data(); |
103 void isString_data(); |
105 void isUndefined(); |
107 void isUndefined(); |
106 |
108 |
107 void isValid_data(); |
109 void isValid_data(); |
108 void isValid(); |
110 void isValid(); |
109 |
111 |
110 // void isVariant_data(); |
112 void isVariant_data(); |
111 // void isVariant(); |
113 void isVariant(); |
112 |
114 |
113 void toBool_data(); |
115 void toBool_data(); |
114 void toBool(); |
116 void toBool(); |
115 |
117 |
116 void toBoolean_data(); |
118 void toBoolean_data(); |