]> git.saurik.com Git - apple/javascriptcore.git/blob - qt/tests/qscriptvalue/tst_qscriptvalue_generated_comparison.cpp
3209530f14c27b228b4c61f0771ffa8ba94e67d3
[apple/javascriptcore.git] / qt / tests / qscriptvalue / tst_qscriptvalue_generated_comparison.cpp
1 /*
2 Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18 */
19
20 /****************************************************************************
21 *************** This file has been generated. DO NOT MODIFY! ****************
22 ****************************************************************************/
23
24 #include "tst_qscriptvalue.h"
25
26 static const QString equals_array[] = {
27 "QScriptValue() <=> QScriptValue()",
28 "QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::UndefinedValue)",
29 "QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::NullValue)",
30 "QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)",
31 "QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::NullValue)",
32 "QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
33 "QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::NullValue)",
34 "QScriptValue(QScriptValue::UndefinedValue) <=> engine->evaluate(\"{}\")",
35 "QScriptValue(QScriptValue::UndefinedValue) <=> engine->evaluate(\"undefined\")",
36 "QScriptValue(QScriptValue::UndefinedValue) <=> engine->evaluate(\"null\")",
37 "QScriptValue(QScriptValue::UndefinedValue) <=> engine->nullValue()",
38 "QScriptValue(QScriptValue::UndefinedValue) <=> engine->undefinedValue()",
39 "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(QScriptValue::UndefinedValue)",
40 "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(QScriptValue::NullValue)",
41 "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)",
42 "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::NullValue)",
43 "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
44 "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::NullValue)",
45 "QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"{}\")",
46 "QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"undefined\")",
47 "QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"null\")",
48 "QScriptValue(QScriptValue::NullValue) <=> engine->nullValue()",
49 "QScriptValue(QScriptValue::NullValue) <=> engine->undefinedValue()",
50 "QScriptValue(true) <=> QScriptValue(true)",
51 "QScriptValue(true) <=> QScriptValue(0, true)",
52 "QScriptValue(true) <=> QScriptValue(engine, true)",
53 "QScriptValue(true) <=> engine->evaluate(\"true\")",
54 "QScriptValue(false) <=> QScriptValue(false)",
55 "QScriptValue(false) <=> QScriptValue(0)",
56 "QScriptValue(false) <=> QScriptValue(0.0)",
57 "QScriptValue(false) <=> QScriptValue(QString(\"\"))",
58 "QScriptValue(false) <=> QScriptValue(QString())",
59 "QScriptValue(false) <=> QScriptValue(QString(\"0\"))",
60 "QScriptValue(false) <=> QScriptValue(0, false)",
61 "QScriptValue(false) <=> QScriptValue(0, 0)",
62 "QScriptValue(false) <=> QScriptValue(0, 0.0)",
63 "QScriptValue(false) <=> QScriptValue(0, QString(\"\"))",
64 "QScriptValue(false) <=> QScriptValue(0, QString())",
65 "QScriptValue(false) <=> QScriptValue(0, QString(\"0\"))",
66 "QScriptValue(false) <=> QScriptValue(engine, false)",
67 "QScriptValue(false) <=> QScriptValue(engine, 0)",
68 "QScriptValue(false) <=> QScriptValue(engine, 0.0)",
69 "QScriptValue(false) <=> QScriptValue(engine, QString(\"\"))",
70 "QScriptValue(false) <=> QScriptValue(engine, QString())",
71 "QScriptValue(false) <=> QScriptValue(engine, QString(\"0\"))",
72 "QScriptValue(false) <=> engine->evaluate(\"[]\")",
73 "QScriptValue(false) <=> engine->evaluate(\"Array.prototype\")",
74 "QScriptValue(false) <=> engine->evaluate(\"new Array()\")",
75 "QScriptValue(false) <=> engine->evaluate(\"false\")",
76 "QScriptValue(false) <=> engine->evaluate(\"0\")",
77 "QScriptValue(false) <=> engine->evaluate(\"0.0\")",
78 "QScriptValue(false) <=> engine->evaluate(\"''\")",
79 "QScriptValue(false) <=> engine->evaluate(\"'0'\")",
80 "QScriptValue(false) <=> engine->newArray()",
81 "QScriptValue(int(122)) <=> QScriptValue(int(122))",
82 "QScriptValue(int(122)) <=> QScriptValue(0, int(122))",
83 "QScriptValue(int(122)) <=> QScriptValue(engine, int(122))",
84 "QScriptValue(int(122)) <=> engine->evaluate(\"122\")",
85 "QScriptValue(uint(124)) <=> QScriptValue(uint(124))",
86 "QScriptValue(uint(124)) <=> QScriptValue(0, uint(124))",
87 "QScriptValue(uint(124)) <=> QScriptValue(engine, uint(124))",
88 "QScriptValue(uint(124)) <=> engine->evaluate(\"124\")",
89 "QScriptValue(0) <=> QScriptValue(false)",
90 "QScriptValue(0) <=> QScriptValue(0)",
91 "QScriptValue(0) <=> QScriptValue(0.0)",
92 "QScriptValue(0) <=> QScriptValue(QString(\"\"))",
93 "QScriptValue(0) <=> QScriptValue(QString())",
94 "QScriptValue(0) <=> QScriptValue(QString(\"0\"))",
95 "QScriptValue(0) <=> QScriptValue(0, false)",
96 "QScriptValue(0) <=> QScriptValue(0, 0)",
97 "QScriptValue(0) <=> QScriptValue(0, 0.0)",
98 "QScriptValue(0) <=> QScriptValue(0, QString(\"\"))",
99 "QScriptValue(0) <=> QScriptValue(0, QString())",
100 "QScriptValue(0) <=> QScriptValue(0, QString(\"0\"))",
101 "QScriptValue(0) <=> QScriptValue(engine, false)",
102 "QScriptValue(0) <=> QScriptValue(engine, 0)",
103 "QScriptValue(0) <=> QScriptValue(engine, 0.0)",
104 "QScriptValue(0) <=> QScriptValue(engine, QString(\"\"))",
105 "QScriptValue(0) <=> QScriptValue(engine, QString())",
106 "QScriptValue(0) <=> QScriptValue(engine, QString(\"0\"))",
107 "QScriptValue(0) <=> engine->evaluate(\"[]\")",
108 "QScriptValue(0) <=> engine->evaluate(\"Array.prototype\")",
109 "QScriptValue(0) <=> engine->evaluate(\"new Array()\")",
110 "QScriptValue(0) <=> engine->evaluate(\"false\")",
111 "QScriptValue(0) <=> engine->evaluate(\"0\")",
112 "QScriptValue(0) <=> engine->evaluate(\"0.0\")",
113 "QScriptValue(0) <=> engine->evaluate(\"''\")",
114 "QScriptValue(0) <=> engine->evaluate(\"'0'\")",
115 "QScriptValue(0) <=> engine->newArray()",
116 "QScriptValue(0.0) <=> QScriptValue(false)",
117 "QScriptValue(0.0) <=> QScriptValue(0)",
118 "QScriptValue(0.0) <=> QScriptValue(0.0)",
119 "QScriptValue(0.0) <=> QScriptValue(QString(\"\"))",
120 "QScriptValue(0.0) <=> QScriptValue(QString())",
121 "QScriptValue(0.0) <=> QScriptValue(QString(\"0\"))",
122 "QScriptValue(0.0) <=> QScriptValue(0, false)",
123 "QScriptValue(0.0) <=> QScriptValue(0, 0)",
124 "QScriptValue(0.0) <=> QScriptValue(0, 0.0)",
125 "QScriptValue(0.0) <=> QScriptValue(0, QString(\"\"))",
126 "QScriptValue(0.0) <=> QScriptValue(0, QString())",
127 "QScriptValue(0.0) <=> QScriptValue(0, QString(\"0\"))",
128 "QScriptValue(0.0) <=> QScriptValue(engine, false)",
129 "QScriptValue(0.0) <=> QScriptValue(engine, 0)",
130 "QScriptValue(0.0) <=> QScriptValue(engine, 0.0)",
131 "QScriptValue(0.0) <=> QScriptValue(engine, QString(\"\"))",
132 "QScriptValue(0.0) <=> QScriptValue(engine, QString())",
133 "QScriptValue(0.0) <=> QScriptValue(engine, QString(\"0\"))",
134 "QScriptValue(0.0) <=> engine->evaluate(\"[]\")",
135 "QScriptValue(0.0) <=> engine->evaluate(\"Array.prototype\")",
136 "QScriptValue(0.0) <=> engine->evaluate(\"new Array()\")",
137 "QScriptValue(0.0) <=> engine->evaluate(\"false\")",
138 "QScriptValue(0.0) <=> engine->evaluate(\"0\")",
139 "QScriptValue(0.0) <=> engine->evaluate(\"0.0\")",
140 "QScriptValue(0.0) <=> engine->evaluate(\"''\")",
141 "QScriptValue(0.0) <=> engine->evaluate(\"'0'\")",
142 "QScriptValue(0.0) <=> engine->newArray()",
143 "QScriptValue(123.0) <=> QScriptValue(123.0)",
144 "QScriptValue(123.0) <=> QScriptValue(QString(\"123\"))",
145 "QScriptValue(123.0) <=> QScriptValue(0, 123.0)",
146 "QScriptValue(123.0) <=> QScriptValue(0, QString(\"123\"))",
147 "QScriptValue(123.0) <=> QScriptValue(engine, 123.0)",
148 "QScriptValue(123.0) <=> QScriptValue(engine, QString(\"123\"))",
149 "QScriptValue(123.0) <=> engine->evaluate(\"123.0\")",
150 "QScriptValue(123.0) <=> engine->evaluate(\"'123'\")",
151 "QScriptValue(6.37e-8) <=> QScriptValue(6.37e-8)",
152 "QScriptValue(6.37e-8) <=> QScriptValue(0, 6.37e-8)",
153 "QScriptValue(6.37e-8) <=> QScriptValue(engine, 6.37e-8)",
154 "QScriptValue(6.37e-8) <=> engine->evaluate(\"6.37e-8\")",
155 "QScriptValue(-6.37e-8) <=> QScriptValue(-6.37e-8)",
156 "QScriptValue(-6.37e-8) <=> QScriptValue(0, -6.37e-8)",
157 "QScriptValue(-6.37e-8) <=> QScriptValue(engine, -6.37e-8)",
158 "QScriptValue(-6.37e-8) <=> engine->evaluate(\"-6.37e-8\")",
159 "QScriptValue(0x43211234) <=> QScriptValue(0x43211234)",
160 "QScriptValue(0x43211234) <=> QScriptValue(0, 0x43211234)",
161 "QScriptValue(0x43211234) <=> QScriptValue(engine, 0x43211234)",
162 "QScriptValue(0x43211234) <=> engine->evaluate(\"0x43211234\")",
163 "QScriptValue(0x10000) <=> QScriptValue(0x10000)",
164 "QScriptValue(0x10000) <=> QScriptValue(0, 0x10000)",
165 "QScriptValue(0x10000) <=> QScriptValue(engine, 0x10000)",
166 "QScriptValue(0x10000) <=> engine->evaluate(\"0x10000\")",
167 "QScriptValue(0x10001) <=> QScriptValue(0x10001)",
168 "QScriptValue(0x10001) <=> QScriptValue(0, 0x10001)",
169 "QScriptValue(0x10001) <=> QScriptValue(engine, 0x10001)",
170 "QScriptValue(0x10001) <=> engine->evaluate(\"0x10001\")",
171 "QScriptValue(qInf()) <=> QScriptValue(qInf())",
172 "QScriptValue(qInf()) <=> QScriptValue(\"Infinity\")",
173 "QScriptValue(qInf()) <=> QScriptValue(0, qInf())",
174 "QScriptValue(qInf()) <=> QScriptValue(0, \"Infinity\")",
175 "QScriptValue(qInf()) <=> QScriptValue(engine, qInf())",
176 "QScriptValue(qInf()) <=> QScriptValue(engine, \"Infinity\")",
177 "QScriptValue(qInf()) <=> engine->evaluate(\"Infinity\")",
178 "QScriptValue(-qInf()) <=> QScriptValue(-qInf())",
179 "QScriptValue(-qInf()) <=> QScriptValue(\"-Infinity\")",
180 "QScriptValue(-qInf()) <=> QScriptValue(0, -qInf())",
181 "QScriptValue(-qInf()) <=> QScriptValue(0, \"-Infinity\")",
182 "QScriptValue(-qInf()) <=> QScriptValue(engine, -qInf())",
183 "QScriptValue(-qInf()) <=> QScriptValue(engine, \"-Infinity\")",
184 "QScriptValue(-qInf()) <=> engine->evaluate(\"-Infinity\")",
185 "QScriptValue(\"NaN\") <=> QScriptValue(\"NaN\")",
186 "QScriptValue(\"NaN\") <=> QScriptValue(0, \"NaN\")",
187 "QScriptValue(\"NaN\") <=> QScriptValue(engine, \"NaN\")",
188 "QScriptValue(\"Infinity\") <=> QScriptValue(qInf())",
189 "QScriptValue(\"Infinity\") <=> QScriptValue(\"Infinity\")",
190 "QScriptValue(\"Infinity\") <=> QScriptValue(0, qInf())",
191 "QScriptValue(\"Infinity\") <=> QScriptValue(0, \"Infinity\")",
192 "QScriptValue(\"Infinity\") <=> QScriptValue(engine, qInf())",
193 "QScriptValue(\"Infinity\") <=> QScriptValue(engine, \"Infinity\")",
194 "QScriptValue(\"Infinity\") <=> engine->evaluate(\"Infinity\")",
195 "QScriptValue(\"-Infinity\") <=> QScriptValue(-qInf())",
196 "QScriptValue(\"-Infinity\") <=> QScriptValue(\"-Infinity\")",
197 "QScriptValue(\"-Infinity\") <=> QScriptValue(0, -qInf())",
198 "QScriptValue(\"-Infinity\") <=> QScriptValue(0, \"-Infinity\")",
199 "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, -qInf())",
200 "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, \"-Infinity\")",
201 "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"-Infinity\")",
202 "QScriptValue(\"ciao\") <=> QScriptValue(\"ciao\")",
203 "QScriptValue(\"ciao\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
204 "QScriptValue(\"ciao\") <=> QScriptValue(0, \"ciao\")",
205 "QScriptValue(\"ciao\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
206 "QScriptValue(\"ciao\") <=> QScriptValue(engine, \"ciao\")",
207 "QScriptValue(\"ciao\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
208 "QScriptValue(\"ciao\") <=> engine->evaluate(\"'ciao'\")",
209 "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(\"ciao\")",
210 "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
211 "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, \"ciao\")",
212 "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
213 "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, \"ciao\")",
214 "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
215 "QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"'ciao'\")",
216 "QScriptValue(QString(\"\")) <=> QScriptValue(false)",
217 "QScriptValue(QString(\"\")) <=> QScriptValue(0)",
218 "QScriptValue(QString(\"\")) <=> QScriptValue(0.0)",
219 "QScriptValue(QString(\"\")) <=> QScriptValue(QString(\"\"))",
220 "QScriptValue(QString(\"\")) <=> QScriptValue(QString())",
221 "QScriptValue(QString(\"\")) <=> QScriptValue(0, false)",
222 "QScriptValue(QString(\"\")) <=> QScriptValue(0, 0)",
223 "QScriptValue(QString(\"\")) <=> QScriptValue(0, 0.0)",
224 "QScriptValue(QString(\"\")) <=> QScriptValue(0, QString(\"\"))",
225 "QScriptValue(QString(\"\")) <=> QScriptValue(0, QString())",
226 "QScriptValue(QString(\"\")) <=> QScriptValue(engine, false)",
227 "QScriptValue(QString(\"\")) <=> QScriptValue(engine, 0)",
228 "QScriptValue(QString(\"\")) <=> QScriptValue(engine, 0.0)",
229 "QScriptValue(QString(\"\")) <=> QScriptValue(engine, QString(\"\"))",
230 "QScriptValue(QString(\"\")) <=> QScriptValue(engine, QString())",
231 "QScriptValue(QString(\"\")) <=> engine->evaluate(\"[]\")",
232 "QScriptValue(QString(\"\")) <=> engine->evaluate(\"Array.prototype\")",
233 "QScriptValue(QString(\"\")) <=> engine->evaluate(\"new Array()\")",
234 "QScriptValue(QString(\"\")) <=> engine->evaluate(\"false\")",
235 "QScriptValue(QString(\"\")) <=> engine->evaluate(\"0\")",
236 "QScriptValue(QString(\"\")) <=> engine->evaluate(\"0.0\")",
237 "QScriptValue(QString(\"\")) <=> engine->evaluate(\"''\")",
238 "QScriptValue(QString(\"\")) <=> engine->newArray()",
239 "QScriptValue(QString()) <=> QScriptValue(false)",
240 "QScriptValue(QString()) <=> QScriptValue(0)",
241 "QScriptValue(QString()) <=> QScriptValue(0.0)",
242 "QScriptValue(QString()) <=> QScriptValue(QString(\"\"))",
243 "QScriptValue(QString()) <=> QScriptValue(QString())",
244 "QScriptValue(QString()) <=> QScriptValue(0, false)",
245 "QScriptValue(QString()) <=> QScriptValue(0, 0)",
246 "QScriptValue(QString()) <=> QScriptValue(0, 0.0)",
247 "QScriptValue(QString()) <=> QScriptValue(0, QString(\"\"))",
248 "QScriptValue(QString()) <=> QScriptValue(0, QString())",
249 "QScriptValue(QString()) <=> QScriptValue(engine, false)",
250 "QScriptValue(QString()) <=> QScriptValue(engine, 0)",
251 "QScriptValue(QString()) <=> QScriptValue(engine, 0.0)",
252 "QScriptValue(QString()) <=> QScriptValue(engine, QString(\"\"))",
253 "QScriptValue(QString()) <=> QScriptValue(engine, QString())",
254 "QScriptValue(QString()) <=> engine->evaluate(\"[]\")",
255 "QScriptValue(QString()) <=> engine->evaluate(\"Array.prototype\")",
256 "QScriptValue(QString()) <=> engine->evaluate(\"new Array()\")",
257 "QScriptValue(QString()) <=> engine->evaluate(\"false\")",
258 "QScriptValue(QString()) <=> engine->evaluate(\"0\")",
259 "QScriptValue(QString()) <=> engine->evaluate(\"0.0\")",
260 "QScriptValue(QString()) <=> engine->evaluate(\"''\")",
261 "QScriptValue(QString()) <=> engine->newArray()",
262 "QScriptValue(QString(\"0\")) <=> QScriptValue(false)",
263 "QScriptValue(QString(\"0\")) <=> QScriptValue(0)",
264 "QScriptValue(QString(\"0\")) <=> QScriptValue(0.0)",
265 "QScriptValue(QString(\"0\")) <=> QScriptValue(QString(\"0\"))",
266 "QScriptValue(QString(\"0\")) <=> QScriptValue(0, false)",
267 "QScriptValue(QString(\"0\")) <=> QScriptValue(0, 0)",
268 "QScriptValue(QString(\"0\")) <=> QScriptValue(0, 0.0)",
269 "QScriptValue(QString(\"0\")) <=> QScriptValue(0, QString(\"0\"))",
270 "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, false)",
271 "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, 0)",
272 "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, 0.0)",
273 "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, QString(\"0\"))",
274 "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"false\")",
275 "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"0\")",
276 "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"0.0\")",
277 "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"'0'\")",
278 "QScriptValue(QString(\"123\")) <=> QScriptValue(123.0)",
279 "QScriptValue(QString(\"123\")) <=> QScriptValue(QString(\"123\"))",
280 "QScriptValue(QString(\"123\")) <=> QScriptValue(0, 123.0)",
281 "QScriptValue(QString(\"123\")) <=> QScriptValue(0, QString(\"123\"))",
282 "QScriptValue(QString(\"123\")) <=> QScriptValue(engine, 123.0)",
283 "QScriptValue(QString(\"123\")) <=> QScriptValue(engine, QString(\"123\"))",
284 "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"123.0\")",
285 "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"'123'\")",
286 "QScriptValue(QString(\"12.4\")) <=> QScriptValue(QString(\"12.4\"))",
287 "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"'12.4'\")",
288 "QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::UndefinedValue)",
289 "QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::NullValue)",
290 "QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)",
291 "QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::NullValue)",
292 "QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
293 "QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::NullValue)",
294 "QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->evaluate(\"{}\")",
295 "QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->evaluate(\"undefined\")",
296 "QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->evaluate(\"null\")",
297 "QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->nullValue()",
298 "QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->undefinedValue()",
299 "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(QScriptValue::UndefinedValue)",
300 "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(QScriptValue::NullValue)",
301 "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)",
302 "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::NullValue)",
303 "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
304 "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::NullValue)",
305 "QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"{}\")",
306 "QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"undefined\")",
307 "QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"null\")",
308 "QScriptValue(0, QScriptValue::NullValue) <=> engine->nullValue()",
309 "QScriptValue(0, QScriptValue::NullValue) <=> engine->undefinedValue()",
310 "QScriptValue(0, true) <=> QScriptValue(true)",
311 "QScriptValue(0, true) <=> QScriptValue(0, true)",
312 "QScriptValue(0, true) <=> QScriptValue(engine, true)",
313 "QScriptValue(0, true) <=> engine->evaluate(\"true\")",
314 "QScriptValue(0, false) <=> QScriptValue(false)",
315 "QScriptValue(0, false) <=> QScriptValue(0)",
316 "QScriptValue(0, false) <=> QScriptValue(0.0)",
317 "QScriptValue(0, false) <=> QScriptValue(QString(\"\"))",
318 "QScriptValue(0, false) <=> QScriptValue(QString())",
319 "QScriptValue(0, false) <=> QScriptValue(QString(\"0\"))",
320 "QScriptValue(0, false) <=> QScriptValue(0, false)",
321 "QScriptValue(0, false) <=> QScriptValue(0, 0)",
322 "QScriptValue(0, false) <=> QScriptValue(0, 0.0)",
323 "QScriptValue(0, false) <=> QScriptValue(0, QString(\"\"))",
324 "QScriptValue(0, false) <=> QScriptValue(0, QString())",
325 "QScriptValue(0, false) <=> QScriptValue(0, QString(\"0\"))",
326 "QScriptValue(0, false) <=> QScriptValue(engine, false)",
327 "QScriptValue(0, false) <=> QScriptValue(engine, 0)",
328 "QScriptValue(0, false) <=> QScriptValue(engine, 0.0)",
329 "QScriptValue(0, false) <=> QScriptValue(engine, QString(\"\"))",
330 "QScriptValue(0, false) <=> QScriptValue(engine, QString())",
331 "QScriptValue(0, false) <=> QScriptValue(engine, QString(\"0\"))",
332 "QScriptValue(0, false) <=> engine->evaluate(\"[]\")",
333 "QScriptValue(0, false) <=> engine->evaluate(\"Array.prototype\")",
334 "QScriptValue(0, false) <=> engine->evaluate(\"new Array()\")",
335 "QScriptValue(0, false) <=> engine->evaluate(\"false\")",
336 "QScriptValue(0, false) <=> engine->evaluate(\"0\")",
337 "QScriptValue(0, false) <=> engine->evaluate(\"0.0\")",
338 "QScriptValue(0, false) <=> engine->evaluate(\"''\")",
339 "QScriptValue(0, false) <=> engine->evaluate(\"'0'\")",
340 "QScriptValue(0, false) <=> engine->newArray()",
341 "QScriptValue(0, int(122)) <=> QScriptValue(int(122))",
342 "QScriptValue(0, int(122)) <=> QScriptValue(0, int(122))",
343 "QScriptValue(0, int(122)) <=> QScriptValue(engine, int(122))",
344 "QScriptValue(0, int(122)) <=> engine->evaluate(\"122\")",
345 "QScriptValue(0, uint(124)) <=> QScriptValue(uint(124))",
346 "QScriptValue(0, uint(124)) <=> QScriptValue(0, uint(124))",
347 "QScriptValue(0, uint(124)) <=> QScriptValue(engine, uint(124))",
348 "QScriptValue(0, uint(124)) <=> engine->evaluate(\"124\")",
349 "QScriptValue(0, 0) <=> QScriptValue(false)",
350 "QScriptValue(0, 0) <=> QScriptValue(0)",
351 "QScriptValue(0, 0) <=> QScriptValue(0.0)",
352 "QScriptValue(0, 0) <=> QScriptValue(QString(\"\"))",
353 "QScriptValue(0, 0) <=> QScriptValue(QString())",
354 "QScriptValue(0, 0) <=> QScriptValue(QString(\"0\"))",
355 "QScriptValue(0, 0) <=> QScriptValue(0, false)",
356 "QScriptValue(0, 0) <=> QScriptValue(0, 0)",
357 "QScriptValue(0, 0) <=> QScriptValue(0, 0.0)",
358 "QScriptValue(0, 0) <=> QScriptValue(0, QString(\"\"))",
359 "QScriptValue(0, 0) <=> QScriptValue(0, QString())",
360 "QScriptValue(0, 0) <=> QScriptValue(0, QString(\"0\"))",
361 "QScriptValue(0, 0) <=> QScriptValue(engine, false)",
362 "QScriptValue(0, 0) <=> QScriptValue(engine, 0)",
363 "QScriptValue(0, 0) <=> QScriptValue(engine, 0.0)",
364 "QScriptValue(0, 0) <=> QScriptValue(engine, QString(\"\"))",
365 "QScriptValue(0, 0) <=> QScriptValue(engine, QString())",
366 "QScriptValue(0, 0) <=> QScriptValue(engine, QString(\"0\"))",
367 "QScriptValue(0, 0) <=> engine->evaluate(\"[]\")",
368 "QScriptValue(0, 0) <=> engine->evaluate(\"Array.prototype\")",
369 "QScriptValue(0, 0) <=> engine->evaluate(\"new Array()\")",
370 "QScriptValue(0, 0) <=> engine->evaluate(\"false\")",
371 "QScriptValue(0, 0) <=> engine->evaluate(\"0\")",
372 "QScriptValue(0, 0) <=> engine->evaluate(\"0.0\")",
373 "QScriptValue(0, 0) <=> engine->evaluate(\"''\")",
374 "QScriptValue(0, 0) <=> engine->evaluate(\"'0'\")",
375 "QScriptValue(0, 0) <=> engine->newArray()",
376 "QScriptValue(0, 0.0) <=> QScriptValue(false)",
377 "QScriptValue(0, 0.0) <=> QScriptValue(0)",
378 "QScriptValue(0, 0.0) <=> QScriptValue(0.0)",
379 "QScriptValue(0, 0.0) <=> QScriptValue(QString(\"\"))",
380 "QScriptValue(0, 0.0) <=> QScriptValue(QString())",
381 "QScriptValue(0, 0.0) <=> QScriptValue(QString(\"0\"))",
382 "QScriptValue(0, 0.0) <=> QScriptValue(0, false)",
383 "QScriptValue(0, 0.0) <=> QScriptValue(0, 0)",
384 "QScriptValue(0, 0.0) <=> QScriptValue(0, 0.0)",
385 "QScriptValue(0, 0.0) <=> QScriptValue(0, QString(\"\"))",
386 "QScriptValue(0, 0.0) <=> QScriptValue(0, QString())",
387 "QScriptValue(0, 0.0) <=> QScriptValue(0, QString(\"0\"))",
388 "QScriptValue(0, 0.0) <=> QScriptValue(engine, false)",
389 "QScriptValue(0, 0.0) <=> QScriptValue(engine, 0)",
390 "QScriptValue(0, 0.0) <=> QScriptValue(engine, 0.0)",
391 "QScriptValue(0, 0.0) <=> QScriptValue(engine, QString(\"\"))",
392 "QScriptValue(0, 0.0) <=> QScriptValue(engine, QString())",
393 "QScriptValue(0, 0.0) <=> QScriptValue(engine, QString(\"0\"))",
394 "QScriptValue(0, 0.0) <=> engine->evaluate(\"[]\")",
395 "QScriptValue(0, 0.0) <=> engine->evaluate(\"Array.prototype\")",
396 "QScriptValue(0, 0.0) <=> engine->evaluate(\"new Array()\")",
397 "QScriptValue(0, 0.0) <=> engine->evaluate(\"false\")",
398 "QScriptValue(0, 0.0) <=> engine->evaluate(\"0\")",
399 "QScriptValue(0, 0.0) <=> engine->evaluate(\"0.0\")",
400 "QScriptValue(0, 0.0) <=> engine->evaluate(\"''\")",
401 "QScriptValue(0, 0.0) <=> engine->evaluate(\"'0'\")",
402 "QScriptValue(0, 0.0) <=> engine->newArray()",
403 "QScriptValue(0, 123.0) <=> QScriptValue(123.0)",
404 "QScriptValue(0, 123.0) <=> QScriptValue(QString(\"123\"))",
405 "QScriptValue(0, 123.0) <=> QScriptValue(0, 123.0)",
406 "QScriptValue(0, 123.0) <=> QScriptValue(0, QString(\"123\"))",
407 "QScriptValue(0, 123.0) <=> QScriptValue(engine, 123.0)",
408 "QScriptValue(0, 123.0) <=> QScriptValue(engine, QString(\"123\"))",
409 "QScriptValue(0, 123.0) <=> engine->evaluate(\"123.0\")",
410 "QScriptValue(0, 123.0) <=> engine->evaluate(\"'123'\")",
411 "QScriptValue(0, 6.37e-8) <=> QScriptValue(6.37e-8)",
412 "QScriptValue(0, 6.37e-8) <=> QScriptValue(0, 6.37e-8)",
413 "QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, 6.37e-8)",
414 "QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"6.37e-8\")",
415 "QScriptValue(0, -6.37e-8) <=> QScriptValue(-6.37e-8)",
416 "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, -6.37e-8)",
417 "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, -6.37e-8)",
418 "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"-6.37e-8\")",
419 "QScriptValue(0, 0x43211234) <=> QScriptValue(0x43211234)",
420 "QScriptValue(0, 0x43211234) <=> QScriptValue(0, 0x43211234)",
421 "QScriptValue(0, 0x43211234) <=> QScriptValue(engine, 0x43211234)",
422 "QScriptValue(0, 0x43211234) <=> engine->evaluate(\"0x43211234\")",
423 "QScriptValue(0, 0x10000) <=> QScriptValue(0x10000)",
424 "QScriptValue(0, 0x10000) <=> QScriptValue(0, 0x10000)",
425 "QScriptValue(0, 0x10000) <=> QScriptValue(engine, 0x10000)",
426 "QScriptValue(0, 0x10000) <=> engine->evaluate(\"0x10000\")",
427 "QScriptValue(0, 0x10001) <=> QScriptValue(0x10001)",
428 "QScriptValue(0, 0x10001) <=> QScriptValue(0, 0x10001)",
429 "QScriptValue(0, 0x10001) <=> QScriptValue(engine, 0x10001)",
430 "QScriptValue(0, 0x10001) <=> engine->evaluate(\"0x10001\")",
431 "QScriptValue(0, qInf()) <=> QScriptValue(qInf())",
432 "QScriptValue(0, qInf()) <=> QScriptValue(\"Infinity\")",
433 "QScriptValue(0, qInf()) <=> QScriptValue(0, qInf())",
434 "QScriptValue(0, qInf()) <=> QScriptValue(0, \"Infinity\")",
435 "QScriptValue(0, qInf()) <=> QScriptValue(engine, qInf())",
436 "QScriptValue(0, qInf()) <=> QScriptValue(engine, \"Infinity\")",
437 "QScriptValue(0, qInf()) <=> engine->evaluate(\"Infinity\")",
438 "QScriptValue(0, -qInf()) <=> QScriptValue(-qInf())",
439 "QScriptValue(0, -qInf()) <=> QScriptValue(\"-Infinity\")",
440 "QScriptValue(0, -qInf()) <=> QScriptValue(0, -qInf())",
441 "QScriptValue(0, -qInf()) <=> QScriptValue(0, \"-Infinity\")",
442 "QScriptValue(0, -qInf()) <=> QScriptValue(engine, -qInf())",
443 "QScriptValue(0, -qInf()) <=> QScriptValue(engine, \"-Infinity\")",
444 "QScriptValue(0, -qInf()) <=> engine->evaluate(\"-Infinity\")",
445 "QScriptValue(0, \"NaN\") <=> QScriptValue(\"NaN\")",
446 "QScriptValue(0, \"NaN\") <=> QScriptValue(0, \"NaN\")",
447 "QScriptValue(0, \"NaN\") <=> QScriptValue(engine, \"NaN\")",
448 "QScriptValue(0, \"Infinity\") <=> QScriptValue(qInf())",
449 "QScriptValue(0, \"Infinity\") <=> QScriptValue(\"Infinity\")",
450 "QScriptValue(0, \"Infinity\") <=> QScriptValue(0, qInf())",
451 "QScriptValue(0, \"Infinity\") <=> QScriptValue(0, \"Infinity\")",
452 "QScriptValue(0, \"Infinity\") <=> QScriptValue(engine, qInf())",
453 "QScriptValue(0, \"Infinity\") <=> QScriptValue(engine, \"Infinity\")",
454 "QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"Infinity\")",
455 "QScriptValue(0, \"-Infinity\") <=> QScriptValue(-qInf())",
456 "QScriptValue(0, \"-Infinity\") <=> QScriptValue(\"-Infinity\")",
457 "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, -qInf())",
458 "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, \"-Infinity\")",
459 "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, -qInf())",
460 "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, \"-Infinity\")",
461 "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"-Infinity\")",
462 "QScriptValue(0, \"ciao\") <=> QScriptValue(\"ciao\")",
463 "QScriptValue(0, \"ciao\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
464 "QScriptValue(0, \"ciao\") <=> QScriptValue(0, \"ciao\")",
465 "QScriptValue(0, \"ciao\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
466 "QScriptValue(0, \"ciao\") <=> QScriptValue(engine, \"ciao\")",
467 "QScriptValue(0, \"ciao\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
468 "QScriptValue(0, \"ciao\") <=> engine->evaluate(\"'ciao'\")",
469 "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(\"ciao\")",
470 "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
471 "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, \"ciao\")",
472 "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
473 "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, \"ciao\")",
474 "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
475 "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"'ciao'\")",
476 "QScriptValue(0, QString(\"\")) <=> QScriptValue(false)",
477 "QScriptValue(0, QString(\"\")) <=> QScriptValue(0)",
478 "QScriptValue(0, QString(\"\")) <=> QScriptValue(0.0)",
479 "QScriptValue(0, QString(\"\")) <=> QScriptValue(QString(\"\"))",
480 "QScriptValue(0, QString(\"\")) <=> QScriptValue(QString())",
481 "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, false)",
482 "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, 0)",
483 "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, 0.0)",
484 "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, QString(\"\"))",
485 "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, QString())",
486 "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, false)",
487 "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, 0)",
488 "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, 0.0)",
489 "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, QString(\"\"))",
490 "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, QString())",
491 "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"[]\")",
492 "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Array.prototype\")",
493 "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"new Array()\")",
494 "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"false\")",
495 "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"0\")",
496 "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"0.0\")",
497 "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"''\")",
498 "QScriptValue(0, QString(\"\")) <=> engine->newArray()",
499 "QScriptValue(0, QString()) <=> QScriptValue(false)",
500 "QScriptValue(0, QString()) <=> QScriptValue(0)",
501 "QScriptValue(0, QString()) <=> QScriptValue(0.0)",
502 "QScriptValue(0, QString()) <=> QScriptValue(QString(\"\"))",
503 "QScriptValue(0, QString()) <=> QScriptValue(QString())",
504 "QScriptValue(0, QString()) <=> QScriptValue(0, false)",
505 "QScriptValue(0, QString()) <=> QScriptValue(0, 0)",
506 "QScriptValue(0, QString()) <=> QScriptValue(0, 0.0)",
507 "QScriptValue(0, QString()) <=> QScriptValue(0, QString(\"\"))",
508 "QScriptValue(0, QString()) <=> QScriptValue(0, QString())",
509 "QScriptValue(0, QString()) <=> QScriptValue(engine, false)",
510 "QScriptValue(0, QString()) <=> QScriptValue(engine, 0)",
511 "QScriptValue(0, QString()) <=> QScriptValue(engine, 0.0)",
512 "QScriptValue(0, QString()) <=> QScriptValue(engine, QString(\"\"))",
513 "QScriptValue(0, QString()) <=> QScriptValue(engine, QString())",
514 "QScriptValue(0, QString()) <=> engine->evaluate(\"[]\")",
515 "QScriptValue(0, QString()) <=> engine->evaluate(\"Array.prototype\")",
516 "QScriptValue(0, QString()) <=> engine->evaluate(\"new Array()\")",
517 "QScriptValue(0, QString()) <=> engine->evaluate(\"false\")",
518 "QScriptValue(0, QString()) <=> engine->evaluate(\"0\")",
519 "QScriptValue(0, QString()) <=> engine->evaluate(\"0.0\")",
520 "QScriptValue(0, QString()) <=> engine->evaluate(\"''\")",
521 "QScriptValue(0, QString()) <=> engine->newArray()",
522 "QScriptValue(0, QString(\"0\")) <=> QScriptValue(false)",
523 "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0)",
524 "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0.0)",
525 "QScriptValue(0, QString(\"0\")) <=> QScriptValue(QString(\"0\"))",
526 "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, false)",
527 "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, 0)",
528 "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, 0.0)",
529 "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, QString(\"0\"))",
530 "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, false)",
531 "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, 0)",
532 "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, 0.0)",
533 "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, QString(\"0\"))",
534 "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"false\")",
535 "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"0\")",
536 "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"0.0\")",
537 "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"'0'\")",
538 "QScriptValue(0, QString(\"123\")) <=> QScriptValue(123.0)",
539 "QScriptValue(0, QString(\"123\")) <=> QScriptValue(QString(\"123\"))",
540 "QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, 123.0)",
541 "QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, QString(\"123\"))",
542 "QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, 123.0)",
543 "QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, QString(\"123\"))",
544 "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"123.0\")",
545 "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"'123'\")",
546 "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, QString(\"12.3\"))",
547 "QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::UndefinedValue)",
548 "QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::NullValue)",
549 "QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)",
550 "QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::NullValue)",
551 "QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
552 "QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::NullValue)",
553 "QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->evaluate(\"{}\")",
554 "QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->evaluate(\"undefined\")",
555 "QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->evaluate(\"null\")",
556 "QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->nullValue()",
557 "QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->undefinedValue()",
558 "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(QScriptValue::UndefinedValue)",
559 "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(QScriptValue::NullValue)",
560 "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)",
561 "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::NullValue)",
562 "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
563 "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::NullValue)",
564 "QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"{}\")",
565 "QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"undefined\")",
566 "QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"null\")",
567 "QScriptValue(engine, QScriptValue::NullValue) <=> engine->nullValue()",
568 "QScriptValue(engine, QScriptValue::NullValue) <=> engine->undefinedValue()",
569 "QScriptValue(engine, true) <=> QScriptValue(true)",
570 "QScriptValue(engine, true) <=> QScriptValue(0, true)",
571 "QScriptValue(engine, true) <=> QScriptValue(engine, true)",
572 "QScriptValue(engine, true) <=> engine->evaluate(\"true\")",
573 "QScriptValue(engine, false) <=> QScriptValue(false)",
574 "QScriptValue(engine, false) <=> QScriptValue(0)",
575 "QScriptValue(engine, false) <=> QScriptValue(0.0)",
576 "QScriptValue(engine, false) <=> QScriptValue(QString(\"\"))",
577 "QScriptValue(engine, false) <=> QScriptValue(QString())",
578 "QScriptValue(engine, false) <=> QScriptValue(QString(\"0\"))",
579 "QScriptValue(engine, false) <=> QScriptValue(0, false)",
580 "QScriptValue(engine, false) <=> QScriptValue(0, 0)",
581 "QScriptValue(engine, false) <=> QScriptValue(0, 0.0)",
582 "QScriptValue(engine, false) <=> QScriptValue(0, QString(\"\"))",
583 "QScriptValue(engine, false) <=> QScriptValue(0, QString())",
584 "QScriptValue(engine, false) <=> QScriptValue(0, QString(\"0\"))",
585 "QScriptValue(engine, false) <=> QScriptValue(engine, false)",
586 "QScriptValue(engine, false) <=> QScriptValue(engine, 0)",
587 "QScriptValue(engine, false) <=> QScriptValue(engine, 0.0)",
588 "QScriptValue(engine, false) <=> QScriptValue(engine, QString(\"\"))",
589 "QScriptValue(engine, false) <=> QScriptValue(engine, QString())",
590 "QScriptValue(engine, false) <=> QScriptValue(engine, QString(\"0\"))",
591 "QScriptValue(engine, false) <=> engine->evaluate(\"[]\")",
592 "QScriptValue(engine, false) <=> engine->evaluate(\"Array.prototype\")",
593 "QScriptValue(engine, false) <=> engine->evaluate(\"new Array()\")",
594 "QScriptValue(engine, false) <=> engine->evaluate(\"false\")",
595 "QScriptValue(engine, false) <=> engine->evaluate(\"0\")",
596 "QScriptValue(engine, false) <=> engine->evaluate(\"0.0\")",
597 "QScriptValue(engine, false) <=> engine->evaluate(\"''\")",
598 "QScriptValue(engine, false) <=> engine->evaluate(\"'0'\")",
599 "QScriptValue(engine, false) <=> engine->newArray()",
600 "QScriptValue(engine, int(122)) <=> QScriptValue(int(122))",
601 "QScriptValue(engine, int(122)) <=> QScriptValue(0, int(122))",
602 "QScriptValue(engine, int(122)) <=> QScriptValue(engine, int(122))",
603 "QScriptValue(engine, int(122)) <=> engine->evaluate(\"122\")",
604 "QScriptValue(engine, uint(124)) <=> QScriptValue(uint(124))",
605 "QScriptValue(engine, uint(124)) <=> QScriptValue(0, uint(124))",
606 "QScriptValue(engine, uint(124)) <=> QScriptValue(engine, uint(124))",
607 "QScriptValue(engine, uint(124)) <=> engine->evaluate(\"124\")",
608 "QScriptValue(engine, 0) <=> QScriptValue(false)",
609 "QScriptValue(engine, 0) <=> QScriptValue(0)",
610 "QScriptValue(engine, 0) <=> QScriptValue(0.0)",
611 "QScriptValue(engine, 0) <=> QScriptValue(QString(\"\"))",
612 "QScriptValue(engine, 0) <=> QScriptValue(QString())",
613 "QScriptValue(engine, 0) <=> QScriptValue(QString(\"0\"))",
614 "QScriptValue(engine, 0) <=> QScriptValue(0, false)",
615 "QScriptValue(engine, 0) <=> QScriptValue(0, 0)",
616 "QScriptValue(engine, 0) <=> QScriptValue(0, 0.0)",
617 "QScriptValue(engine, 0) <=> QScriptValue(0, QString(\"\"))",
618 "QScriptValue(engine, 0) <=> QScriptValue(0, QString())",
619 "QScriptValue(engine, 0) <=> QScriptValue(0, QString(\"0\"))",
620 "QScriptValue(engine, 0) <=> QScriptValue(engine, false)",
621 "QScriptValue(engine, 0) <=> QScriptValue(engine, 0)",
622 "QScriptValue(engine, 0) <=> QScriptValue(engine, 0.0)",
623 "QScriptValue(engine, 0) <=> QScriptValue(engine, QString(\"\"))",
624 "QScriptValue(engine, 0) <=> QScriptValue(engine, QString())",
625 "QScriptValue(engine, 0) <=> QScriptValue(engine, QString(\"0\"))",
626 "QScriptValue(engine, 0) <=> engine->evaluate(\"[]\")",
627 "QScriptValue(engine, 0) <=> engine->evaluate(\"Array.prototype\")",
628 "QScriptValue(engine, 0) <=> engine->evaluate(\"new Array()\")",
629 "QScriptValue(engine, 0) <=> engine->evaluate(\"false\")",
630 "QScriptValue(engine, 0) <=> engine->evaluate(\"0\")",
631 "QScriptValue(engine, 0) <=> engine->evaluate(\"0.0\")",
632 "QScriptValue(engine, 0) <=> engine->evaluate(\"''\")",
633 "QScriptValue(engine, 0) <=> engine->evaluate(\"'0'\")",
634 "QScriptValue(engine, 0) <=> engine->newArray()",
635 "QScriptValue(engine, 0.0) <=> QScriptValue(false)",
636 "QScriptValue(engine, 0.0) <=> QScriptValue(0)",
637 "QScriptValue(engine, 0.0) <=> QScriptValue(0.0)",
638 "QScriptValue(engine, 0.0) <=> QScriptValue(QString(\"\"))",
639 "QScriptValue(engine, 0.0) <=> QScriptValue(QString())",
640 "QScriptValue(engine, 0.0) <=> QScriptValue(QString(\"0\"))",
641 "QScriptValue(engine, 0.0) <=> QScriptValue(0, false)",
642 "QScriptValue(engine, 0.0) <=> QScriptValue(0, 0)",
643 "QScriptValue(engine, 0.0) <=> QScriptValue(0, 0.0)",
644 "QScriptValue(engine, 0.0) <=> QScriptValue(0, QString(\"\"))",
645 "QScriptValue(engine, 0.0) <=> QScriptValue(0, QString())",
646 "QScriptValue(engine, 0.0) <=> QScriptValue(0, QString(\"0\"))",
647 "QScriptValue(engine, 0.0) <=> QScriptValue(engine, false)",
648 "QScriptValue(engine, 0.0) <=> QScriptValue(engine, 0)",
649 "QScriptValue(engine, 0.0) <=> QScriptValue(engine, 0.0)",
650 "QScriptValue(engine, 0.0) <=> QScriptValue(engine, QString(\"\"))",
651 "QScriptValue(engine, 0.0) <=> QScriptValue(engine, QString())",
652 "QScriptValue(engine, 0.0) <=> QScriptValue(engine, QString(\"0\"))",
653 "QScriptValue(engine, 0.0) <=> engine->evaluate(\"[]\")",
654 "QScriptValue(engine, 0.0) <=> engine->evaluate(\"Array.prototype\")",
655 "QScriptValue(engine, 0.0) <=> engine->evaluate(\"new Array()\")",
656 "QScriptValue(engine, 0.0) <=> engine->evaluate(\"false\")",
657 "QScriptValue(engine, 0.0) <=> engine->evaluate(\"0\")",
658 "QScriptValue(engine, 0.0) <=> engine->evaluate(\"0.0\")",
659 "QScriptValue(engine, 0.0) <=> engine->evaluate(\"''\")",
660 "QScriptValue(engine, 0.0) <=> engine->evaluate(\"'0'\")",
661 "QScriptValue(engine, 0.0) <=> engine->newArray()",
662 "QScriptValue(engine, 123.0) <=> QScriptValue(123.0)",
663 "QScriptValue(engine, 123.0) <=> QScriptValue(QString(\"123\"))",
664 "QScriptValue(engine, 123.0) <=> QScriptValue(0, 123.0)",
665 "QScriptValue(engine, 123.0) <=> QScriptValue(0, QString(\"123\"))",
666 "QScriptValue(engine, 123.0) <=> QScriptValue(engine, 123.0)",
667 "QScriptValue(engine, 123.0) <=> QScriptValue(engine, QString(\"123\"))",
668 "QScriptValue(engine, 123.0) <=> engine->evaluate(\"123.0\")",
669 "QScriptValue(engine, 123.0) <=> engine->evaluate(\"'123'\")",
670 "QScriptValue(engine, 6.37e-8) <=> QScriptValue(6.37e-8)",
671 "QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, 6.37e-8)",
672 "QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, 6.37e-8)",
673 "QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"6.37e-8\")",
674 "QScriptValue(engine, -6.37e-8) <=> QScriptValue(-6.37e-8)",
675 "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, -6.37e-8)",
676 "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, -6.37e-8)",
677 "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"-6.37e-8\")",
678 "QScriptValue(engine, 0x43211234) <=> QScriptValue(0x43211234)",
679 "QScriptValue(engine, 0x43211234) <=> QScriptValue(0, 0x43211234)",
680 "QScriptValue(engine, 0x43211234) <=> QScriptValue(engine, 0x43211234)",
681 "QScriptValue(engine, 0x43211234) <=> engine->evaluate(\"0x43211234\")",
682 "QScriptValue(engine, 0x10000) <=> QScriptValue(0x10000)",
683 "QScriptValue(engine, 0x10000) <=> QScriptValue(0, 0x10000)",
684 "QScriptValue(engine, 0x10000) <=> QScriptValue(engine, 0x10000)",
685 "QScriptValue(engine, 0x10000) <=> engine->evaluate(\"0x10000\")",
686 "QScriptValue(engine, 0x10001) <=> QScriptValue(0x10001)",
687 "QScriptValue(engine, 0x10001) <=> QScriptValue(0, 0x10001)",
688 "QScriptValue(engine, 0x10001) <=> QScriptValue(engine, 0x10001)",
689 "QScriptValue(engine, 0x10001) <=> engine->evaluate(\"0x10001\")",
690 "QScriptValue(engine, qInf()) <=> QScriptValue(qInf())",
691 "QScriptValue(engine, qInf()) <=> QScriptValue(\"Infinity\")",
692 "QScriptValue(engine, qInf()) <=> QScriptValue(0, qInf())",
693 "QScriptValue(engine, qInf()) <=> QScriptValue(0, \"Infinity\")",
694 "QScriptValue(engine, qInf()) <=> QScriptValue(engine, qInf())",
695 "QScriptValue(engine, qInf()) <=> QScriptValue(engine, \"Infinity\")",
696 "QScriptValue(engine, qInf()) <=> engine->evaluate(\"Infinity\")",
697 "QScriptValue(engine, -qInf()) <=> QScriptValue(-qInf())",
698 "QScriptValue(engine, -qInf()) <=> QScriptValue(\"-Infinity\")",
699 "QScriptValue(engine, -qInf()) <=> QScriptValue(0, -qInf())",
700 "QScriptValue(engine, -qInf()) <=> QScriptValue(0, \"-Infinity\")",
701 "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, -qInf())",
702 "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, \"-Infinity\")",
703 "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"-Infinity\")",
704 "QScriptValue(engine, \"NaN\") <=> QScriptValue(\"NaN\")",
705 "QScriptValue(engine, \"NaN\") <=> QScriptValue(0, \"NaN\")",
706 "QScriptValue(engine, \"NaN\") <=> QScriptValue(engine, \"NaN\")",
707 "QScriptValue(engine, \"Infinity\") <=> QScriptValue(qInf())",
708 "QScriptValue(engine, \"Infinity\") <=> QScriptValue(\"Infinity\")",
709 "QScriptValue(engine, \"Infinity\") <=> QScriptValue(0, qInf())",
710 "QScriptValue(engine, \"Infinity\") <=> QScriptValue(0, \"Infinity\")",
711 "QScriptValue(engine, \"Infinity\") <=> QScriptValue(engine, qInf())",
712 "QScriptValue(engine, \"Infinity\") <=> QScriptValue(engine, \"Infinity\")",
713 "QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"Infinity\")",
714 "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(-qInf())",
715 "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(\"-Infinity\")",
716 "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, -qInf())",
717 "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, \"-Infinity\")",
718 "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, -qInf())",
719 "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, \"-Infinity\")",
720 "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"-Infinity\")",
721 "QScriptValue(engine, \"ciao\") <=> QScriptValue(\"ciao\")",
722 "QScriptValue(engine, \"ciao\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
723 "QScriptValue(engine, \"ciao\") <=> QScriptValue(0, \"ciao\")",
724 "QScriptValue(engine, \"ciao\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
725 "QScriptValue(engine, \"ciao\") <=> QScriptValue(engine, \"ciao\")",
726 "QScriptValue(engine, \"ciao\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
727 "QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"'ciao'\")",
728 "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(\"ciao\")",
729 "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
730 "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, \"ciao\")",
731 "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
732 "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, \"ciao\")",
733 "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
734 "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"'ciao'\")",
735 "QScriptValue(engine, QString(\"\")) <=> QScriptValue(false)",
736 "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0)",
737 "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0.0)",
738 "QScriptValue(engine, QString(\"\")) <=> QScriptValue(QString(\"\"))",
739 "QScriptValue(engine, QString(\"\")) <=> QScriptValue(QString())",
740 "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, false)",
741 "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, 0)",
742 "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, 0.0)",
743 "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, QString(\"\"))",
744 "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, QString())",
745 "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, false)",
746 "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, 0)",
747 "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, 0.0)",
748 "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, QString(\"\"))",
749 "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, QString())",
750 "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"[]\")",
751 "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Array.prototype\")",
752 "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"new Array()\")",
753 "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"false\")",
754 "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"0\")",
755 "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"0.0\")",
756 "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"''\")",
757 "QScriptValue(engine, QString(\"\")) <=> engine->newArray()",
758 "QScriptValue(engine, QString()) <=> QScriptValue(false)",
759 "QScriptValue(engine, QString()) <=> QScriptValue(0)",
760 "QScriptValue(engine, QString()) <=> QScriptValue(0.0)",
761 "QScriptValue(engine, QString()) <=> QScriptValue(QString(\"\"))",
762 "QScriptValue(engine, QString()) <=> QScriptValue(QString())",
763 "QScriptValue(engine, QString()) <=> QScriptValue(0, false)",
764 "QScriptValue(engine, QString()) <=> QScriptValue(0, 0)",
765 "QScriptValue(engine, QString()) <=> QScriptValue(0, 0.0)",
766 "QScriptValue(engine, QString()) <=> QScriptValue(0, QString(\"\"))",
767 "QScriptValue(engine, QString()) <=> QScriptValue(0, QString())",
768 "QScriptValue(engine, QString()) <=> QScriptValue(engine, false)",
769 "QScriptValue(engine, QString()) <=> QScriptValue(engine, 0)",
770 "QScriptValue(engine, QString()) <=> QScriptValue(engine, 0.0)",
771 "QScriptValue(engine, QString()) <=> QScriptValue(engine, QString(\"\"))",
772 "QScriptValue(engine, QString()) <=> QScriptValue(engine, QString())",
773 "QScriptValue(engine, QString()) <=> engine->evaluate(\"[]\")",
774 "QScriptValue(engine, QString()) <=> engine->evaluate(\"Array.prototype\")",
775 "QScriptValue(engine, QString()) <=> engine->evaluate(\"new Array()\")",
776 "QScriptValue(engine, QString()) <=> engine->evaluate(\"false\")",
777 "QScriptValue(engine, QString()) <=> engine->evaluate(\"0\")",
778 "QScriptValue(engine, QString()) <=> engine->evaluate(\"0.0\")",
779 "QScriptValue(engine, QString()) <=> engine->evaluate(\"''\")",
780 "QScriptValue(engine, QString()) <=> engine->newArray()",
781 "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(false)",
782 "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0)",
783 "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0.0)",
784 "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(QString(\"0\"))",
785 "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, false)",
786 "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, 0)",
787 "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, 0.0)",
788 "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, QString(\"0\"))",
789 "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, false)",
790 "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, 0)",
791 "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, 0.0)",
792 "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, QString(\"0\"))",
793 "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"false\")",
794 "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"0\")",
795 "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"0.0\")",
796 "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"'0'\")",
797 "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(123.0)",
798 "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(QString(\"123\"))",
799 "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, 123.0)",
800 "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, QString(\"123\"))",
801 "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, 123.0)",
802 "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, QString(\"123\"))",
803 "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"123.0\")",
804 "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"'123'\")",
805 "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, QString(\"1.23\"))",
806 "engine->evaluate(\"[]\") <=> QScriptValue(false)",
807 "engine->evaluate(\"[]\") <=> QScriptValue(0)",
808 "engine->evaluate(\"[]\") <=> QScriptValue(0.0)",
809 "engine->evaluate(\"[]\") <=> QScriptValue(QString(\"\"))",
810 "engine->evaluate(\"[]\") <=> QScriptValue(QString())",
811 "engine->evaluate(\"[]\") <=> QScriptValue(0, false)",
812 "engine->evaluate(\"[]\") <=> QScriptValue(0, 0)",
813 "engine->evaluate(\"[]\") <=> QScriptValue(0, 0.0)",
814 "engine->evaluate(\"[]\") <=> QScriptValue(0, QString(\"\"))",
815 "engine->evaluate(\"[]\") <=> QScriptValue(0, QString())",
816 "engine->evaluate(\"[]\") <=> QScriptValue(engine, false)",
817 "engine->evaluate(\"[]\") <=> QScriptValue(engine, 0)",
818 "engine->evaluate(\"[]\") <=> QScriptValue(engine, 0.0)",
819 "engine->evaluate(\"[]\") <=> QScriptValue(engine, QString(\"\"))",
820 "engine->evaluate(\"[]\") <=> QScriptValue(engine, QString())",
821 "engine->evaluate(\"[]\") <=> engine->evaluate(\"false\")",
822 "engine->evaluate(\"[]\") <=> engine->evaluate(\"0\")",
823 "engine->evaluate(\"[]\") <=> engine->evaluate(\"0.0\")",
824 "engine->evaluate(\"[]\") <=> engine->evaluate(\"''\")",
825 "engine->evaluate(\"{}\") <=> QScriptValue(QScriptValue::UndefinedValue)",
826 "engine->evaluate(\"{}\") <=> QScriptValue(QScriptValue::NullValue)",
827 "engine->evaluate(\"{}\") <=> QScriptValue(0, QScriptValue::UndefinedValue)",
828 "engine->evaluate(\"{}\") <=> QScriptValue(0, QScriptValue::NullValue)",
829 "engine->evaluate(\"{}\") <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
830 "engine->evaluate(\"{}\") <=> QScriptValue(engine, QScriptValue::NullValue)",
831 "engine->evaluate(\"{}\") <=> engine->evaluate(\"{}\")",
832 "engine->evaluate(\"{}\") <=> engine->evaluate(\"undefined\")",
833 "engine->evaluate(\"{}\") <=> engine->evaluate(\"null\")",
834 "engine->evaluate(\"{}\") <=> engine->nullValue()",
835 "engine->evaluate(\"{}\") <=> engine->undefinedValue()",
836 "engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"Object.prototype\")",
837 "engine->evaluate(\"Date.prototype\") <=> engine->evaluate(\"Date.prototype\")",
838 "engine->evaluate(\"Array.prototype\") <=> QScriptValue(false)",
839 "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0)",
840 "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0.0)",
841 "engine->evaluate(\"Array.prototype\") <=> QScriptValue(QString(\"\"))",
842 "engine->evaluate(\"Array.prototype\") <=> QScriptValue(QString())",
843 "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, false)",
844 "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, 0)",
845 "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, 0.0)",
846 "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, QString(\"\"))",
847 "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, QString())",
848 "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, false)",
849 "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, 0)",
850 "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, 0.0)",
851 "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, QString(\"\"))",
852 "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, QString())",
853 "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Array.prototype\")",
854 "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"false\")",
855 "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"0\")",
856 "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"0.0\")",
857 "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"''\")",
858 "engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"Function.prototype\")",
859 "engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Error.prototype\")",
860 "engine->evaluate(\"Object\") <=> engine->evaluate(\"Object\")",
861 "engine->evaluate(\"Array\") <=> engine->evaluate(\"Array\")",
862 "engine->evaluate(\"Number\") <=> engine->evaluate(\"Number\")",
863 "engine->evaluate(\"Function\") <=> engine->evaluate(\"Function\")",
864 "engine->evaluate(\"new Array()\") <=> QScriptValue(false)",
865 "engine->evaluate(\"new Array()\") <=> QScriptValue(0)",
866 "engine->evaluate(\"new Array()\") <=> QScriptValue(0.0)",
867 "engine->evaluate(\"new Array()\") <=> QScriptValue(QString(\"\"))",
868 "engine->evaluate(\"new Array()\") <=> QScriptValue(QString())",
869 "engine->evaluate(\"new Array()\") <=> QScriptValue(0, false)",
870 "engine->evaluate(\"new Array()\") <=> QScriptValue(0, 0)",
871 "engine->evaluate(\"new Array()\") <=> QScriptValue(0, 0.0)",
872 "engine->evaluate(\"new Array()\") <=> QScriptValue(0, QString(\"\"))",
873 "engine->evaluate(\"new Array()\") <=> QScriptValue(0, QString())",
874 "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, false)",
875 "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, 0)",
876 "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, 0.0)",
877 "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, QString(\"\"))",
878 "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, QString())",
879 "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"false\")",
880 "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"0\")",
881 "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"0.0\")",
882 "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"''\")",
883 "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
884 "engine->evaluate(\"undefined\") <=> QScriptValue(QScriptValue::UndefinedValue)",
885 "engine->evaluate(\"undefined\") <=> QScriptValue(QScriptValue::NullValue)",
886 "engine->evaluate(\"undefined\") <=> QScriptValue(0, QScriptValue::UndefinedValue)",
887 "engine->evaluate(\"undefined\") <=> QScriptValue(0, QScriptValue::NullValue)",
888 "engine->evaluate(\"undefined\") <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
889 "engine->evaluate(\"undefined\") <=> QScriptValue(engine, QScriptValue::NullValue)",
890 "engine->evaluate(\"undefined\") <=> engine->evaluate(\"{}\")",
891 "engine->evaluate(\"undefined\") <=> engine->evaluate(\"undefined\")",
892 "engine->evaluate(\"undefined\") <=> engine->evaluate(\"null\")",
893 "engine->evaluate(\"undefined\") <=> engine->nullValue()",
894 "engine->evaluate(\"undefined\") <=> engine->undefinedValue()",
895 "engine->evaluate(\"null\") <=> QScriptValue(QScriptValue::UndefinedValue)",
896 "engine->evaluate(\"null\") <=> QScriptValue(QScriptValue::NullValue)",
897 "engine->evaluate(\"null\") <=> QScriptValue(0, QScriptValue::UndefinedValue)",
898 "engine->evaluate(\"null\") <=> QScriptValue(0, QScriptValue::NullValue)",
899 "engine->evaluate(\"null\") <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
900 "engine->evaluate(\"null\") <=> QScriptValue(engine, QScriptValue::NullValue)",
901 "engine->evaluate(\"null\") <=> engine->evaluate(\"{}\")",
902 "engine->evaluate(\"null\") <=> engine->evaluate(\"undefined\")",
903 "engine->evaluate(\"null\") <=> engine->evaluate(\"null\")",
904 "engine->evaluate(\"null\") <=> engine->nullValue()",
905 "engine->evaluate(\"null\") <=> engine->undefinedValue()",
906 "engine->evaluate(\"true\") <=> QScriptValue(true)",
907 "engine->evaluate(\"true\") <=> QScriptValue(0, true)",
908 "engine->evaluate(\"true\") <=> QScriptValue(engine, true)",
909 "engine->evaluate(\"true\") <=> engine->evaluate(\"true\")",
910 "engine->evaluate(\"false\") <=> QScriptValue(false)",
911 "engine->evaluate(\"false\") <=> QScriptValue(0)",
912 "engine->evaluate(\"false\") <=> QScriptValue(0.0)",
913 "engine->evaluate(\"false\") <=> QScriptValue(QString(\"\"))",
914 "engine->evaluate(\"false\") <=> QScriptValue(QString())",
915 "engine->evaluate(\"false\") <=> QScriptValue(QString(\"0\"))",
916 "engine->evaluate(\"false\") <=> QScriptValue(0, false)",
917 "engine->evaluate(\"false\") <=> QScriptValue(0, 0)",
918 "engine->evaluate(\"false\") <=> QScriptValue(0, 0.0)",
919 "engine->evaluate(\"false\") <=> QScriptValue(0, QString(\"\"))",
920 "engine->evaluate(\"false\") <=> QScriptValue(0, QString())",
921 "engine->evaluate(\"false\") <=> QScriptValue(0, QString(\"0\"))",
922 "engine->evaluate(\"false\") <=> QScriptValue(engine, false)",
923 "engine->evaluate(\"false\") <=> QScriptValue(engine, 0)",
924 "engine->evaluate(\"false\") <=> QScriptValue(engine, 0.0)",
925 "engine->evaluate(\"false\") <=> QScriptValue(engine, QString(\"\"))",
926 "engine->evaluate(\"false\") <=> QScriptValue(engine, QString())",
927 "engine->evaluate(\"false\") <=> QScriptValue(engine, QString(\"0\"))",
928 "engine->evaluate(\"false\") <=> engine->evaluate(\"[]\")",
929 "engine->evaluate(\"false\") <=> engine->evaluate(\"Array.prototype\")",
930 "engine->evaluate(\"false\") <=> engine->evaluate(\"new Array()\")",
931 "engine->evaluate(\"false\") <=> engine->evaluate(\"false\")",
932 "engine->evaluate(\"false\") <=> engine->evaluate(\"0\")",
933 "engine->evaluate(\"false\") <=> engine->evaluate(\"0.0\")",
934 "engine->evaluate(\"false\") <=> engine->evaluate(\"''\")",
935 "engine->evaluate(\"false\") <=> engine->evaluate(\"'0'\")",
936 "engine->evaluate(\"false\") <=> engine->newArray()",
937 "engine->evaluate(\"122\") <=> QScriptValue(int(122))",
938 "engine->evaluate(\"122\") <=> QScriptValue(0, int(122))",
939 "engine->evaluate(\"122\") <=> QScriptValue(engine, int(122))",
940 "engine->evaluate(\"122\") <=> engine->evaluate(\"122\")",
941 "engine->evaluate(\"124\") <=> QScriptValue(uint(124))",
942 "engine->evaluate(\"124\") <=> QScriptValue(0, uint(124))",
943 "engine->evaluate(\"124\") <=> QScriptValue(engine, uint(124))",
944 "engine->evaluate(\"124\") <=> engine->evaluate(\"124\")",
945 "engine->evaluate(\"0\") <=> QScriptValue(false)",
946 "engine->evaluate(\"0\") <=> QScriptValue(0)",
947 "engine->evaluate(\"0\") <=> QScriptValue(0.0)",
948 "engine->evaluate(\"0\") <=> QScriptValue(QString(\"\"))",
949 "engine->evaluate(\"0\") <=> QScriptValue(QString())",
950 "engine->evaluate(\"0\") <=> QScriptValue(QString(\"0\"))",
951 "engine->evaluate(\"0\") <=> QScriptValue(0, false)",
952 "engine->evaluate(\"0\") <=> QScriptValue(0, 0)",
953 "engine->evaluate(\"0\") <=> QScriptValue(0, 0.0)",
954 "engine->evaluate(\"0\") <=> QScriptValue(0, QString(\"\"))",
955 "engine->evaluate(\"0\") <=> QScriptValue(0, QString())",
956 "engine->evaluate(\"0\") <=> QScriptValue(0, QString(\"0\"))",
957 "engine->evaluate(\"0\") <=> QScriptValue(engine, false)",
958 "engine->evaluate(\"0\") <=> QScriptValue(engine, 0)",
959 "engine->evaluate(\"0\") <=> QScriptValue(engine, 0.0)",
960 "engine->evaluate(\"0\") <=> QScriptValue(engine, QString(\"\"))",
961 "engine->evaluate(\"0\") <=> QScriptValue(engine, QString())",
962 "engine->evaluate(\"0\") <=> QScriptValue(engine, QString(\"0\"))",
963 "engine->evaluate(\"0\") <=> engine->evaluate(\"[]\")",
964 "engine->evaluate(\"0\") <=> engine->evaluate(\"Array.prototype\")",
965 "engine->evaluate(\"0\") <=> engine->evaluate(\"new Array()\")",
966 "engine->evaluate(\"0\") <=> engine->evaluate(\"false\")",
967 "engine->evaluate(\"0\") <=> engine->evaluate(\"0\")",
968 "engine->evaluate(\"0\") <=> engine->evaluate(\"0.0\")",
969 "engine->evaluate(\"0\") <=> engine->evaluate(\"''\")",
970 "engine->evaluate(\"0\") <=> engine->evaluate(\"'0'\")",
971 "engine->evaluate(\"0\") <=> engine->newArray()",
972 "engine->evaluate(\"0.0\") <=> QScriptValue(false)",
973 "engine->evaluate(\"0.0\") <=> QScriptValue(0)",
974 "engine->evaluate(\"0.0\") <=> QScriptValue(0.0)",
975 "engine->evaluate(\"0.0\") <=> QScriptValue(QString(\"\"))",
976 "engine->evaluate(\"0.0\") <=> QScriptValue(QString())",
977 "engine->evaluate(\"0.0\") <=> QScriptValue(QString(\"0\"))",
978 "engine->evaluate(\"0.0\") <=> QScriptValue(0, false)",
979 "engine->evaluate(\"0.0\") <=> QScriptValue(0, 0)",
980 "engine->evaluate(\"0.0\") <=> QScriptValue(0, 0.0)",
981 "engine->evaluate(\"0.0\") <=> QScriptValue(0, QString(\"\"))",
982 "engine->evaluate(\"0.0\") <=> QScriptValue(0, QString())",
983 "engine->evaluate(\"0.0\") <=> QScriptValue(0, QString(\"0\"))",
984 "engine->evaluate(\"0.0\") <=> QScriptValue(engine, false)",
985 "engine->evaluate(\"0.0\") <=> QScriptValue(engine, 0)",
986 "engine->evaluate(\"0.0\") <=> QScriptValue(engine, 0.0)",
987 "engine->evaluate(\"0.0\") <=> QScriptValue(engine, QString(\"\"))",
988 "engine->evaluate(\"0.0\") <=> QScriptValue(engine, QString())",
989 "engine->evaluate(\"0.0\") <=> QScriptValue(engine, QString(\"0\"))",
990 "engine->evaluate(\"0.0\") <=> engine->evaluate(\"[]\")",
991 "engine->evaluate(\"0.0\") <=> engine->evaluate(\"Array.prototype\")",
992 "engine->evaluate(\"0.0\") <=> engine->evaluate(\"new Array()\")",
993 "engine->evaluate(\"0.0\") <=> engine->evaluate(\"false\")",
994 "engine->evaluate(\"0.0\") <=> engine->evaluate(\"0\")",
995 "engine->evaluate(\"0.0\") <=> engine->evaluate(\"0.0\")",
996 "engine->evaluate(\"0.0\") <=> engine->evaluate(\"''\")",
997 "engine->evaluate(\"0.0\") <=> engine->evaluate(\"'0'\")",
998 "engine->evaluate(\"0.0\") <=> engine->newArray()",
999 "engine->evaluate(\"123.0\") <=> QScriptValue(123.0)",
1000 "engine->evaluate(\"123.0\") <=> QScriptValue(QString(\"123\"))",
1001 "engine->evaluate(\"123.0\") <=> QScriptValue(0, 123.0)",
1002 "engine->evaluate(\"123.0\") <=> QScriptValue(0, QString(\"123\"))",
1003 "engine->evaluate(\"123.0\") <=> QScriptValue(engine, 123.0)",
1004 "engine->evaluate(\"123.0\") <=> QScriptValue(engine, QString(\"123\"))",
1005 "engine->evaluate(\"123.0\") <=> engine->evaluate(\"123.0\")",
1006 "engine->evaluate(\"123.0\") <=> engine->evaluate(\"'123'\")",
1007 "engine->evaluate(\"6.37e-8\") <=> QScriptValue(6.37e-8)",
1008 "engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, 6.37e-8)",
1009 "engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, 6.37e-8)",
1010 "engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"6.37e-8\")",
1011 "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(-6.37e-8)",
1012 "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, -6.37e-8)",
1013 "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, -6.37e-8)",
1014 "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"-6.37e-8\")",
1015 "engine->evaluate(\"0x43211234\") <=> QScriptValue(0x43211234)",
1016 "engine->evaluate(\"0x43211234\") <=> QScriptValue(0, 0x43211234)",
1017 "engine->evaluate(\"0x43211234\") <=> QScriptValue(engine, 0x43211234)",
1018 "engine->evaluate(\"0x43211234\") <=> engine->evaluate(\"0x43211234\")",
1019 "engine->evaluate(\"0x10000\") <=> QScriptValue(0x10000)",
1020 "engine->evaluate(\"0x10000\") <=> QScriptValue(0, 0x10000)",
1021 "engine->evaluate(\"0x10000\") <=> QScriptValue(engine, 0x10000)",
1022 "engine->evaluate(\"0x10000\") <=> engine->evaluate(\"0x10000\")",
1023 "engine->evaluate(\"0x10001\") <=> QScriptValue(0x10001)",
1024 "engine->evaluate(\"0x10001\") <=> QScriptValue(0, 0x10001)",
1025 "engine->evaluate(\"0x10001\") <=> QScriptValue(engine, 0x10001)",
1026 "engine->evaluate(\"0x10001\") <=> engine->evaluate(\"0x10001\")",
1027 "engine->evaluate(\"Infinity\") <=> QScriptValue(qInf())",
1028 "engine->evaluate(\"Infinity\") <=> QScriptValue(\"Infinity\")",
1029 "engine->evaluate(\"Infinity\") <=> QScriptValue(0, qInf())",
1030 "engine->evaluate(\"Infinity\") <=> QScriptValue(0, \"Infinity\")",
1031 "engine->evaluate(\"Infinity\") <=> QScriptValue(engine, qInf())",
1032 "engine->evaluate(\"Infinity\") <=> QScriptValue(engine, \"Infinity\")",
1033 "engine->evaluate(\"Infinity\") <=> engine->evaluate(\"Infinity\")",
1034 "engine->evaluate(\"-Infinity\") <=> QScriptValue(-qInf())",
1035 "engine->evaluate(\"-Infinity\") <=> QScriptValue(\"-Infinity\")",
1036 "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, -qInf())",
1037 "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, \"-Infinity\")",
1038 "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, -qInf())",
1039 "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, \"-Infinity\")",
1040 "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"-Infinity\")",
1041 "engine->evaluate(\"'ciao'\") <=> QScriptValue(\"ciao\")",
1042 "engine->evaluate(\"'ciao'\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
1043 "engine->evaluate(\"'ciao'\") <=> QScriptValue(0, \"ciao\")",
1044 "engine->evaluate(\"'ciao'\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
1045 "engine->evaluate(\"'ciao'\") <=> QScriptValue(engine, \"ciao\")",
1046 "engine->evaluate(\"'ciao'\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
1047 "engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"'ciao'\")",
1048 "engine->evaluate(\"''\") <=> QScriptValue(false)",
1049 "engine->evaluate(\"''\") <=> QScriptValue(0)",
1050 "engine->evaluate(\"''\") <=> QScriptValue(0.0)",
1051 "engine->evaluate(\"''\") <=> QScriptValue(QString(\"\"))",
1052 "engine->evaluate(\"''\") <=> QScriptValue(QString())",
1053 "engine->evaluate(\"''\") <=> QScriptValue(0, false)",
1054 "engine->evaluate(\"''\") <=> QScriptValue(0, 0)",
1055 "engine->evaluate(\"''\") <=> QScriptValue(0, 0.0)",
1056 "engine->evaluate(\"''\") <=> QScriptValue(0, QString(\"\"))",
1057 "engine->evaluate(\"''\") <=> QScriptValue(0, QString())",
1058 "engine->evaluate(\"''\") <=> QScriptValue(engine, false)",
1059 "engine->evaluate(\"''\") <=> QScriptValue(engine, 0)",
1060 "engine->evaluate(\"''\") <=> QScriptValue(engine, 0.0)",
1061 "engine->evaluate(\"''\") <=> QScriptValue(engine, QString(\"\"))",
1062 "engine->evaluate(\"''\") <=> QScriptValue(engine, QString())",
1063 "engine->evaluate(\"''\") <=> engine->evaluate(\"[]\")",
1064 "engine->evaluate(\"''\") <=> engine->evaluate(\"Array.prototype\")",
1065 "engine->evaluate(\"''\") <=> engine->evaluate(\"new Array()\")",
1066 "engine->evaluate(\"''\") <=> engine->evaluate(\"false\")",
1067 "engine->evaluate(\"''\") <=> engine->evaluate(\"0\")",
1068 "engine->evaluate(\"''\") <=> engine->evaluate(\"0.0\")",
1069 "engine->evaluate(\"''\") <=> engine->evaluate(\"''\")",
1070 "engine->evaluate(\"''\") <=> engine->newArray()",
1071 "engine->evaluate(\"'0'\") <=> QScriptValue(false)",
1072 "engine->evaluate(\"'0'\") <=> QScriptValue(0)",
1073 "engine->evaluate(\"'0'\") <=> QScriptValue(0.0)",
1074 "engine->evaluate(\"'0'\") <=> QScriptValue(QString(\"0\"))",
1075 "engine->evaluate(\"'0'\") <=> QScriptValue(0, false)",
1076 "engine->evaluate(\"'0'\") <=> QScriptValue(0, 0)",
1077 "engine->evaluate(\"'0'\") <=> QScriptValue(0, 0.0)",
1078 "engine->evaluate(\"'0'\") <=> QScriptValue(0, QString(\"0\"))",
1079 "engine->evaluate(\"'0'\") <=> QScriptValue(engine, false)",
1080 "engine->evaluate(\"'0'\") <=> QScriptValue(engine, 0)",
1081 "engine->evaluate(\"'0'\") <=> QScriptValue(engine, 0.0)",
1082 "engine->evaluate(\"'0'\") <=> QScriptValue(engine, QString(\"0\"))",
1083 "engine->evaluate(\"'0'\") <=> engine->evaluate(\"false\")",
1084 "engine->evaluate(\"'0'\") <=> engine->evaluate(\"0\")",
1085 "engine->evaluate(\"'0'\") <=> engine->evaluate(\"0.0\")",
1086 "engine->evaluate(\"'0'\") <=> engine->evaluate(\"'0'\")",
1087 "engine->evaluate(\"'123'\") <=> QScriptValue(123.0)",
1088 "engine->evaluate(\"'123'\") <=> QScriptValue(QString(\"123\"))",
1089 "engine->evaluate(\"'123'\") <=> QScriptValue(0, 123.0)",
1090 "engine->evaluate(\"'123'\") <=> QScriptValue(0, QString(\"123\"))",
1091 "engine->evaluate(\"'123'\") <=> QScriptValue(engine, 123.0)",
1092 "engine->evaluate(\"'123'\") <=> QScriptValue(engine, QString(\"123\"))",
1093 "engine->evaluate(\"'123'\") <=> engine->evaluate(\"123.0\")",
1094 "engine->evaluate(\"'123'\") <=> engine->evaluate(\"'123'\")",
1095 "engine->evaluate(\"'12.4'\") <=> QScriptValue(QString(\"12.4\"))",
1096 "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"'12.4'\")",
1097 "engine->nullValue() <=> QScriptValue(QScriptValue::UndefinedValue)",
1098 "engine->nullValue() <=> QScriptValue(QScriptValue::NullValue)",
1099 "engine->nullValue() <=> QScriptValue(0, QScriptValue::UndefinedValue)",
1100 "engine->nullValue() <=> QScriptValue(0, QScriptValue::NullValue)",
1101 "engine->nullValue() <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
1102 "engine->nullValue() <=> QScriptValue(engine, QScriptValue::NullValue)",
1103 "engine->nullValue() <=> engine->evaluate(\"{}\")",
1104 "engine->nullValue() <=> engine->evaluate(\"undefined\")",
1105 "engine->nullValue() <=> engine->evaluate(\"null\")",
1106 "engine->nullValue() <=> engine->nullValue()",
1107 "engine->nullValue() <=> engine->undefinedValue()",
1108 "engine->undefinedValue() <=> QScriptValue(QScriptValue::UndefinedValue)",
1109 "engine->undefinedValue() <=> QScriptValue(QScriptValue::NullValue)",
1110 "engine->undefinedValue() <=> QScriptValue(0, QScriptValue::UndefinedValue)",
1111 "engine->undefinedValue() <=> QScriptValue(0, QScriptValue::NullValue)",
1112 "engine->undefinedValue() <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
1113 "engine->undefinedValue() <=> QScriptValue(engine, QScriptValue::NullValue)",
1114 "engine->undefinedValue() <=> engine->evaluate(\"{}\")",
1115 "engine->undefinedValue() <=> engine->evaluate(\"undefined\")",
1116 "engine->undefinedValue() <=> engine->evaluate(\"null\")",
1117 "engine->undefinedValue() <=> engine->nullValue()",
1118 "engine->undefinedValue() <=> engine->undefinedValue()",
1119 "engine->newArray() <=> QScriptValue(false)",
1120 "engine->newArray() <=> QScriptValue(0)",
1121 "engine->newArray() <=> QScriptValue(0.0)",
1122 "engine->newArray() <=> QScriptValue(QString(\"\"))",
1123 "engine->newArray() <=> QScriptValue(QString())",
1124 "engine->newArray() <=> QScriptValue(0, false)",
1125 "engine->newArray() <=> QScriptValue(0, 0)",
1126 "engine->newArray() <=> QScriptValue(0, 0.0)",
1127 "engine->newArray() <=> QScriptValue(0, QString(\"\"))",
1128 "engine->newArray() <=> QScriptValue(0, QString())",
1129 "engine->newArray() <=> QScriptValue(engine, false)",
1130 "engine->newArray() <=> QScriptValue(engine, 0)",
1131 "engine->newArray() <=> QScriptValue(engine, 0.0)",
1132 "engine->newArray() <=> QScriptValue(engine, QString(\"\"))",
1133 "engine->newArray() <=> QScriptValue(engine, QString())",
1134 "engine->newArray() <=> engine->evaluate(\"false\")",
1135 "engine->newArray() <=> engine->evaluate(\"0\")",
1136 "engine->newArray() <=> engine->evaluate(\"0.0\")",
1137 "engine->newArray() <=> engine->evaluate(\"''\")"};
1138
1139 void tst_QScriptValue::equals_data()
1140 {
1141 QTest::addColumn<QScriptValue>("value");
1142 QTest::addColumn<QScriptValue>("other");
1143 QTest::addColumn<bool>("expected");
1144 if (m_engine)
1145 delete m_engine;
1146 m_engine = new QScriptEngine();
1147 QSet<QString> equals;
1148 equals.reserve(1111);
1149 for (unsigned i = 0; i < 1111; ++i)
1150 equals.insert(equals_array[i]);
1151 for (unsigned i = 0; i < 135; ++i) {
1152 QPair<QString, QScriptValue> value1 = initScriptValues(i);
1153 for (unsigned j = 0; j < 135; ++j) {
1154 QPair<QString, QScriptValue> value2 = initScriptValues(j);
1155 QString tag = QString::fromLatin1("%20 <=> %21").arg(value1.first, value2.first);
1156 QTest::newRow(tag.toAscii().constData()) << value1.second << value2.second << equals.contains(tag); }
1157 }
1158 }
1159
1160 void tst_QScriptValue::equals()
1161 {
1162 QFETCH(QScriptValue, value);
1163 QFETCH(QScriptValue, other);
1164 QFETCH(bool, expected);
1165 QEXPECT_FAIL("QScriptValue(qInf()) <=> QScriptValue(\"-Infinity\")", "FIXME: WebKit bug 43038", Continue);
1166 QEXPECT_FAIL("QScriptValue(qInf()) <=> QScriptValue(0, \"-Infinity\")", "FIXME: WebKit bug 43038", Continue);
1167 QEXPECT_FAIL("QScriptValue(-qInf()) <=> QScriptValue(\"-Infinity\")", "FIXME: WebKit bug 43038", Continue);
1168 QEXPECT_FAIL("QScriptValue(-qInf()) <=> QScriptValue(0, \"-Infinity\")", "FIXME: WebKit bug 43038", Continue);
1169 QEXPECT_FAIL("QScriptValue(\"-Infinity\") <=> QScriptValue(qInf())", "FIXME: WebKit bug 43038", Continue);
1170 QEXPECT_FAIL("QScriptValue(\"-Infinity\") <=> QScriptValue(-qInf())", "FIXME: WebKit bug 43038", Continue);
1171 QEXPECT_FAIL("QScriptValue(\"-Infinity\") <=> QScriptValue(0, qInf())", "FIXME: WebKit bug 43038", Continue);
1172 QEXPECT_FAIL("QScriptValue(\"-Infinity\") <=> QScriptValue(0, -qInf())", "FIXME: WebKit bug 43038", Continue);
1173 QEXPECT_FAIL("QScriptValue(0, qInf()) <=> QScriptValue(\"-Infinity\")", "FIXME: WebKit bug 43038", Continue);
1174 QEXPECT_FAIL("QScriptValue(0, qInf()) <=> QScriptValue(0, \"-Infinity\")", "FIXME: WebKit bug 43038", Continue);
1175 QEXPECT_FAIL("QScriptValue(0, -qInf()) <=> QScriptValue(\"-Infinity\")", "FIXME: WebKit bug 43038", Continue);
1176 QEXPECT_FAIL("QScriptValue(0, -qInf()) <=> QScriptValue(0, \"-Infinity\")", "FIXME: WebKit bug 43038", Continue);
1177 QEXPECT_FAIL("QScriptValue(0, \"-Infinity\") <=> QScriptValue(qInf())", "FIXME: WebKit bug 43038", Continue);
1178 QEXPECT_FAIL("QScriptValue(0, \"-Infinity\") <=> QScriptValue(-qInf())", "FIXME: WebKit bug 43038", Continue);
1179 QEXPECT_FAIL("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, qInf())", "FIXME: WebKit bug 43038", Continue);
1180 QEXPECT_FAIL("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, -qInf())", "FIXME: WebKit bug 43038", Continue);
1181 QCOMPARE(value.equals(other), expected);
1182 }
1183
1184 static const QString strictlyEquals_array[] = {
1185 "QScriptValue() <=> QScriptValue()",
1186 "QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::UndefinedValue)",
1187 "QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)",
1188 "QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
1189 "QScriptValue(QScriptValue::UndefinedValue) <=> engine->evaluate(\"{}\")",
1190 "QScriptValue(QScriptValue::UndefinedValue) <=> engine->evaluate(\"undefined\")",
1191 "QScriptValue(QScriptValue::UndefinedValue) <=> engine->undefinedValue()",
1192 "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(QScriptValue::NullValue)",
1193 "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::NullValue)",
1194 "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::NullValue)",
1195 "QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"null\")",
1196 "QScriptValue(QScriptValue::NullValue) <=> engine->nullValue()",
1197 "QScriptValue(true) <=> QScriptValue(true)",
1198 "QScriptValue(true) <=> QScriptValue(0, true)",
1199 "QScriptValue(true) <=> QScriptValue(engine, true)",
1200 "QScriptValue(true) <=> engine->evaluate(\"true\")",
1201 "QScriptValue(false) <=> QScriptValue(false)",
1202 "QScriptValue(false) <=> QScriptValue(0, false)",
1203 "QScriptValue(false) <=> QScriptValue(engine, false)",
1204 "QScriptValue(false) <=> engine->evaluate(\"false\")",
1205 "QScriptValue(int(122)) <=> QScriptValue(int(122))",
1206 "QScriptValue(int(122)) <=> QScriptValue(0, int(122))",
1207 "QScriptValue(int(122)) <=> QScriptValue(engine, int(122))",
1208 "QScriptValue(int(122)) <=> engine->evaluate(\"122\")",
1209 "QScriptValue(uint(124)) <=> QScriptValue(uint(124))",
1210 "QScriptValue(uint(124)) <=> QScriptValue(0, uint(124))",
1211 "QScriptValue(uint(124)) <=> QScriptValue(engine, uint(124))",
1212 "QScriptValue(uint(124)) <=> engine->evaluate(\"124\")",
1213 "QScriptValue(0) <=> QScriptValue(0)",
1214 "QScriptValue(0) <=> QScriptValue(0.0)",
1215 "QScriptValue(0) <=> QScriptValue(0, 0)",
1216 "QScriptValue(0) <=> QScriptValue(0, 0.0)",
1217 "QScriptValue(0) <=> QScriptValue(engine, 0)",
1218 "QScriptValue(0) <=> QScriptValue(engine, 0.0)",
1219 "QScriptValue(0) <=> engine->evaluate(\"0\")",
1220 "QScriptValue(0) <=> engine->evaluate(\"0.0\")",
1221 "QScriptValue(0.0) <=> QScriptValue(0)",
1222 "QScriptValue(0.0) <=> QScriptValue(0.0)",
1223 "QScriptValue(0.0) <=> QScriptValue(0, 0)",
1224 "QScriptValue(0.0) <=> QScriptValue(0, 0.0)",
1225 "QScriptValue(0.0) <=> QScriptValue(engine, 0)",
1226 "QScriptValue(0.0) <=> QScriptValue(engine, 0.0)",
1227 "QScriptValue(0.0) <=> engine->evaluate(\"0\")",
1228 "QScriptValue(0.0) <=> engine->evaluate(\"0.0\")",
1229 "QScriptValue(123.0) <=> QScriptValue(123.0)",
1230 "QScriptValue(123.0) <=> QScriptValue(0, 123.0)",
1231 "QScriptValue(123.0) <=> QScriptValue(engine, 123.0)",
1232 "QScriptValue(123.0) <=> engine->evaluate(\"123.0\")",
1233 "QScriptValue(6.37e-8) <=> QScriptValue(6.37e-8)",
1234 "QScriptValue(6.37e-8) <=> QScriptValue(0, 6.37e-8)",
1235 "QScriptValue(6.37e-8) <=> QScriptValue(engine, 6.37e-8)",
1236 "QScriptValue(6.37e-8) <=> engine->evaluate(\"6.37e-8\")",
1237 "QScriptValue(-6.37e-8) <=> QScriptValue(-6.37e-8)",
1238 "QScriptValue(-6.37e-8) <=> QScriptValue(0, -6.37e-8)",
1239 "QScriptValue(-6.37e-8) <=> QScriptValue(engine, -6.37e-8)",
1240 "QScriptValue(-6.37e-8) <=> engine->evaluate(\"-6.37e-8\")",
1241 "QScriptValue(0x43211234) <=> QScriptValue(0x43211234)",
1242 "QScriptValue(0x43211234) <=> QScriptValue(0, 0x43211234)",
1243 "QScriptValue(0x43211234) <=> QScriptValue(engine, 0x43211234)",
1244 "QScriptValue(0x43211234) <=> engine->evaluate(\"0x43211234\")",
1245 "QScriptValue(0x10000) <=> QScriptValue(0x10000)",
1246 "QScriptValue(0x10000) <=> QScriptValue(0, 0x10000)",
1247 "QScriptValue(0x10000) <=> QScriptValue(engine, 0x10000)",
1248 "QScriptValue(0x10000) <=> engine->evaluate(\"0x10000\")",
1249 "QScriptValue(0x10001) <=> QScriptValue(0x10001)",
1250 "QScriptValue(0x10001) <=> QScriptValue(0, 0x10001)",
1251 "QScriptValue(0x10001) <=> QScriptValue(engine, 0x10001)",
1252 "QScriptValue(0x10001) <=> engine->evaluate(\"0x10001\")",
1253 "QScriptValue(qInf()) <=> QScriptValue(qInf())",
1254 "QScriptValue(qInf()) <=> QScriptValue(0, qInf())",
1255 "QScriptValue(qInf()) <=> QScriptValue(engine, qInf())",
1256 "QScriptValue(qInf()) <=> engine->evaluate(\"Infinity\")",
1257 "QScriptValue(-qInf()) <=> QScriptValue(-qInf())",
1258 "QScriptValue(-qInf()) <=> QScriptValue(0, -qInf())",
1259 "QScriptValue(-qInf()) <=> QScriptValue(engine, -qInf())",
1260 "QScriptValue(-qInf()) <=> engine->evaluate(\"-Infinity\")",
1261 "QScriptValue(\"NaN\") <=> QScriptValue(\"NaN\")",
1262 "QScriptValue(\"NaN\") <=> QScriptValue(0, \"NaN\")",
1263 "QScriptValue(\"NaN\") <=> QScriptValue(engine, \"NaN\")",
1264 "QScriptValue(\"Infinity\") <=> QScriptValue(\"Infinity\")",
1265 "QScriptValue(\"Infinity\") <=> QScriptValue(0, \"Infinity\")",
1266 "QScriptValue(\"Infinity\") <=> QScriptValue(engine, \"Infinity\")",
1267 "QScriptValue(\"-Infinity\") <=> QScriptValue(\"-Infinity\")",
1268 "QScriptValue(\"-Infinity\") <=> QScriptValue(0, \"-Infinity\")",
1269 "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, \"-Infinity\")",
1270 "QScriptValue(\"ciao\") <=> QScriptValue(\"ciao\")",
1271 "QScriptValue(\"ciao\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
1272 "QScriptValue(\"ciao\") <=> QScriptValue(0, \"ciao\")",
1273 "QScriptValue(\"ciao\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
1274 "QScriptValue(\"ciao\") <=> QScriptValue(engine, \"ciao\")",
1275 "QScriptValue(\"ciao\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
1276 "QScriptValue(\"ciao\") <=> engine->evaluate(\"'ciao'\")",
1277 "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(\"ciao\")",
1278 "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
1279 "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, \"ciao\")",
1280 "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
1281 "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, \"ciao\")",
1282 "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
1283 "QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"'ciao'\")",
1284 "QScriptValue(QString(\"\")) <=> QScriptValue(QString(\"\"))",
1285 "QScriptValue(QString(\"\")) <=> QScriptValue(QString())",
1286 "QScriptValue(QString(\"\")) <=> QScriptValue(0, QString(\"\"))",
1287 "QScriptValue(QString(\"\")) <=> QScriptValue(0, QString())",
1288 "QScriptValue(QString(\"\")) <=> QScriptValue(engine, QString(\"\"))",
1289 "QScriptValue(QString(\"\")) <=> QScriptValue(engine, QString())",
1290 "QScriptValue(QString(\"\")) <=> engine->evaluate(\"''\")",
1291 "QScriptValue(QString()) <=> QScriptValue(QString(\"\"))",
1292 "QScriptValue(QString()) <=> QScriptValue(QString())",
1293 "QScriptValue(QString()) <=> QScriptValue(0, QString(\"\"))",
1294 "QScriptValue(QString()) <=> QScriptValue(0, QString())",
1295 "QScriptValue(QString()) <=> QScriptValue(engine, QString(\"\"))",
1296 "QScriptValue(QString()) <=> QScriptValue(engine, QString())",
1297 "QScriptValue(QString()) <=> engine->evaluate(\"''\")",
1298 "QScriptValue(QString(\"0\")) <=> QScriptValue(QString(\"0\"))",
1299 "QScriptValue(QString(\"0\")) <=> QScriptValue(0, QString(\"0\"))",
1300 "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, QString(\"0\"))",
1301 "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"'0'\")",
1302 "QScriptValue(QString(\"123\")) <=> QScriptValue(QString(\"123\"))",
1303 "QScriptValue(QString(\"123\")) <=> QScriptValue(0, QString(\"123\"))",
1304 "QScriptValue(QString(\"123\")) <=> QScriptValue(engine, QString(\"123\"))",
1305 "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"'123'\")",
1306 "QScriptValue(QString(\"12.4\")) <=> QScriptValue(QString(\"12.4\"))",
1307 "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"'12.4'\")",
1308 "QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::UndefinedValue)",
1309 "QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)",
1310 "QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
1311 "QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->evaluate(\"{}\")",
1312 "QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->evaluate(\"undefined\")",
1313 "QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->undefinedValue()",
1314 "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(QScriptValue::NullValue)",
1315 "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::NullValue)",
1316 "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::NullValue)",
1317 "QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"null\")",
1318 "QScriptValue(0, QScriptValue::NullValue) <=> engine->nullValue()",
1319 "QScriptValue(0, true) <=> QScriptValue(true)",
1320 "QScriptValue(0, true) <=> QScriptValue(0, true)",
1321 "QScriptValue(0, true) <=> QScriptValue(engine, true)",
1322 "QScriptValue(0, true) <=> engine->evaluate(\"true\")",
1323 "QScriptValue(0, false) <=> QScriptValue(false)",
1324 "QScriptValue(0, false) <=> QScriptValue(0, false)",
1325 "QScriptValue(0, false) <=> QScriptValue(engine, false)",
1326 "QScriptValue(0, false) <=> engine->evaluate(\"false\")",
1327 "QScriptValue(0, int(122)) <=> QScriptValue(int(122))",
1328 "QScriptValue(0, int(122)) <=> QScriptValue(0, int(122))",
1329 "QScriptValue(0, int(122)) <=> QScriptValue(engine, int(122))",
1330 "QScriptValue(0, int(122)) <=> engine->evaluate(\"122\")",
1331 "QScriptValue(0, uint(124)) <=> QScriptValue(uint(124))",
1332 "QScriptValue(0, uint(124)) <=> QScriptValue(0, uint(124))",
1333 "QScriptValue(0, uint(124)) <=> QScriptValue(engine, uint(124))",
1334 "QScriptValue(0, uint(124)) <=> engine->evaluate(\"124\")",
1335 "QScriptValue(0, 0) <=> QScriptValue(0)",
1336 "QScriptValue(0, 0) <=> QScriptValue(0.0)",
1337 "QScriptValue(0, 0) <=> QScriptValue(0, 0)",
1338 "QScriptValue(0, 0) <=> QScriptValue(0, 0.0)",
1339 "QScriptValue(0, 0) <=> QScriptValue(engine, 0)",
1340 "QScriptValue(0, 0) <=> QScriptValue(engine, 0.0)",
1341 "QScriptValue(0, 0) <=> engine->evaluate(\"0\")",
1342 "QScriptValue(0, 0) <=> engine->evaluate(\"0.0\")",
1343 "QScriptValue(0, 0.0) <=> QScriptValue(0)",
1344 "QScriptValue(0, 0.0) <=> QScriptValue(0.0)",
1345 "QScriptValue(0, 0.0) <=> QScriptValue(0, 0)",
1346 "QScriptValue(0, 0.0) <=> QScriptValue(0, 0.0)",
1347 "QScriptValue(0, 0.0) <=> QScriptValue(engine, 0)",
1348 "QScriptValue(0, 0.0) <=> QScriptValue(engine, 0.0)",
1349 "QScriptValue(0, 0.0) <=> engine->evaluate(\"0\")",
1350 "QScriptValue(0, 0.0) <=> engine->evaluate(\"0.0\")",
1351 "QScriptValue(0, 123.0) <=> QScriptValue(123.0)",
1352 "QScriptValue(0, 123.0) <=> QScriptValue(0, 123.0)",
1353 "QScriptValue(0, 123.0) <=> QScriptValue(engine, 123.0)",
1354 "QScriptValue(0, 123.0) <=> engine->evaluate(\"123.0\")",
1355 "QScriptValue(0, 6.37e-8) <=> QScriptValue(6.37e-8)",
1356 "QScriptValue(0, 6.37e-8) <=> QScriptValue(0, 6.37e-8)",
1357 "QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, 6.37e-8)",
1358 "QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"6.37e-8\")",
1359 "QScriptValue(0, -6.37e-8) <=> QScriptValue(-6.37e-8)",
1360 "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, -6.37e-8)",
1361 "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, -6.37e-8)",
1362 "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"-6.37e-8\")",
1363 "QScriptValue(0, 0x43211234) <=> QScriptValue(0x43211234)",
1364 "QScriptValue(0, 0x43211234) <=> QScriptValue(0, 0x43211234)",
1365 "QScriptValue(0, 0x43211234) <=> QScriptValue(engine, 0x43211234)",
1366 "QScriptValue(0, 0x43211234) <=> engine->evaluate(\"0x43211234\")",
1367 "QScriptValue(0, 0x10000) <=> QScriptValue(0x10000)",
1368 "QScriptValue(0, 0x10000) <=> QScriptValue(0, 0x10000)",
1369 "QScriptValue(0, 0x10000) <=> QScriptValue(engine, 0x10000)",
1370 "QScriptValue(0, 0x10000) <=> engine->evaluate(\"0x10000\")",
1371 "QScriptValue(0, 0x10001) <=> QScriptValue(0x10001)",
1372 "QScriptValue(0, 0x10001) <=> QScriptValue(0, 0x10001)",
1373 "QScriptValue(0, 0x10001) <=> QScriptValue(engine, 0x10001)",
1374 "QScriptValue(0, 0x10001) <=> engine->evaluate(\"0x10001\")",
1375 "QScriptValue(0, qInf()) <=> QScriptValue(qInf())",
1376 "QScriptValue(0, qInf()) <=> QScriptValue(0, qInf())",
1377 "QScriptValue(0, qInf()) <=> QScriptValue(engine, qInf())",
1378 "QScriptValue(0, qInf()) <=> engine->evaluate(\"Infinity\")",
1379 "QScriptValue(0, -qInf()) <=> QScriptValue(-qInf())",
1380 "QScriptValue(0, -qInf()) <=> QScriptValue(0, -qInf())",
1381 "QScriptValue(0, -qInf()) <=> QScriptValue(engine, -qInf())",
1382 "QScriptValue(0, -qInf()) <=> engine->evaluate(\"-Infinity\")",
1383 "QScriptValue(0, \"NaN\") <=> QScriptValue(\"NaN\")",
1384 "QScriptValue(0, \"NaN\") <=> QScriptValue(0, \"NaN\")",
1385 "QScriptValue(0, \"NaN\") <=> QScriptValue(engine, \"NaN\")",
1386 "QScriptValue(0, \"Infinity\") <=> QScriptValue(\"Infinity\")",
1387 "QScriptValue(0, \"Infinity\") <=> QScriptValue(0, \"Infinity\")",
1388 "QScriptValue(0, \"Infinity\") <=> QScriptValue(engine, \"Infinity\")",
1389 "QScriptValue(0, \"-Infinity\") <=> QScriptValue(\"-Infinity\")",
1390 "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, \"-Infinity\")",
1391 "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, \"-Infinity\")",
1392 "QScriptValue(0, \"ciao\") <=> QScriptValue(\"ciao\")",
1393 "QScriptValue(0, \"ciao\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
1394 "QScriptValue(0, \"ciao\") <=> QScriptValue(0, \"ciao\")",
1395 "QScriptValue(0, \"ciao\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
1396 "QScriptValue(0, \"ciao\") <=> QScriptValue(engine, \"ciao\")",
1397 "QScriptValue(0, \"ciao\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
1398 "QScriptValue(0, \"ciao\") <=> engine->evaluate(\"'ciao'\")",
1399 "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(\"ciao\")",
1400 "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
1401 "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, \"ciao\")",
1402 "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
1403 "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, \"ciao\")",
1404 "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
1405 "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"'ciao'\")",
1406 "QScriptValue(0, QString(\"\")) <=> QScriptValue(QString(\"\"))",
1407 "QScriptValue(0, QString(\"\")) <=> QScriptValue(QString())",
1408 "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, QString(\"\"))",
1409 "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, QString())",
1410 "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, QString(\"\"))",
1411 "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, QString())",
1412 "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"''\")",
1413 "QScriptValue(0, QString()) <=> QScriptValue(QString(\"\"))",
1414 "QScriptValue(0, QString()) <=> QScriptValue(QString())",
1415 "QScriptValue(0, QString()) <=> QScriptValue(0, QString(\"\"))",
1416 "QScriptValue(0, QString()) <=> QScriptValue(0, QString())",
1417 "QScriptValue(0, QString()) <=> QScriptValue(engine, QString(\"\"))",
1418 "QScriptValue(0, QString()) <=> QScriptValue(engine, QString())",
1419 "QScriptValue(0, QString()) <=> engine->evaluate(\"''\")",
1420 "QScriptValue(0, QString(\"0\")) <=> QScriptValue(QString(\"0\"))",
1421 "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, QString(\"0\"))",
1422 "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, QString(\"0\"))",
1423 "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"'0'\")",
1424 "QScriptValue(0, QString(\"123\")) <=> QScriptValue(QString(\"123\"))",
1425 "QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, QString(\"123\"))",
1426 "QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, QString(\"123\"))",
1427 "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"'123'\")",
1428 "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, QString(\"12.3\"))",
1429 "QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::UndefinedValue)",
1430 "QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)",
1431 "QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
1432 "QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->evaluate(\"{}\")",
1433 "QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->evaluate(\"undefined\")",
1434 "QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->undefinedValue()",
1435 "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(QScriptValue::NullValue)",
1436 "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::NullValue)",
1437 "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::NullValue)",
1438 "QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"null\")",
1439 "QScriptValue(engine, QScriptValue::NullValue) <=> engine->nullValue()",
1440 "QScriptValue(engine, true) <=> QScriptValue(true)",
1441 "QScriptValue(engine, true) <=> QScriptValue(0, true)",
1442 "QScriptValue(engine, true) <=> QScriptValue(engine, true)",
1443 "QScriptValue(engine, true) <=> engine->evaluate(\"true\")",
1444 "QScriptValue(engine, false) <=> QScriptValue(false)",
1445 "QScriptValue(engine, false) <=> QScriptValue(0, false)",
1446 "QScriptValue(engine, false) <=> QScriptValue(engine, false)",
1447 "QScriptValue(engine, false) <=> engine->evaluate(\"false\")",
1448 "QScriptValue(engine, int(122)) <=> QScriptValue(int(122))",
1449 "QScriptValue(engine, int(122)) <=> QScriptValue(0, int(122))",
1450 "QScriptValue(engine, int(122)) <=> QScriptValue(engine, int(122))",
1451 "QScriptValue(engine, int(122)) <=> engine->evaluate(\"122\")",
1452 "QScriptValue(engine, uint(124)) <=> QScriptValue(uint(124))",
1453 "QScriptValue(engine, uint(124)) <=> QScriptValue(0, uint(124))",
1454 "QScriptValue(engine, uint(124)) <=> QScriptValue(engine, uint(124))",
1455 "QScriptValue(engine, uint(124)) <=> engine->evaluate(\"124\")",
1456 "QScriptValue(engine, 0) <=> QScriptValue(0)",
1457 "QScriptValue(engine, 0) <=> QScriptValue(0.0)",
1458 "QScriptValue(engine, 0) <=> QScriptValue(0, 0)",
1459 "QScriptValue(engine, 0) <=> QScriptValue(0, 0.0)",
1460 "QScriptValue(engine, 0) <=> QScriptValue(engine, 0)",
1461 "QScriptValue(engine, 0) <=> QScriptValue(engine, 0.0)",
1462 "QScriptValue(engine, 0) <=> engine->evaluate(\"0\")",
1463 "QScriptValue(engine, 0) <=> engine->evaluate(\"0.0\")",
1464 "QScriptValue(engine, 0.0) <=> QScriptValue(0)",
1465 "QScriptValue(engine, 0.0) <=> QScriptValue(0.0)",
1466 "QScriptValue(engine, 0.0) <=> QScriptValue(0, 0)",
1467 "QScriptValue(engine, 0.0) <=> QScriptValue(0, 0.0)",
1468 "QScriptValue(engine, 0.0) <=> QScriptValue(engine, 0)",
1469 "QScriptValue(engine, 0.0) <=> QScriptValue(engine, 0.0)",
1470 "QScriptValue(engine, 0.0) <=> engine->evaluate(\"0\")",
1471 "QScriptValue(engine, 0.0) <=> engine->evaluate(\"0.0\")",
1472 "QScriptValue(engine, 123.0) <=> QScriptValue(123.0)",
1473 "QScriptValue(engine, 123.0) <=> QScriptValue(0, 123.0)",
1474 "QScriptValue(engine, 123.0) <=> QScriptValue(engine, 123.0)",
1475 "QScriptValue(engine, 123.0) <=> engine->evaluate(\"123.0\")",
1476 "QScriptValue(engine, 6.37e-8) <=> QScriptValue(6.37e-8)",
1477 "QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, 6.37e-8)",
1478 "QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, 6.37e-8)",
1479 "QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"6.37e-8\")",
1480 "QScriptValue(engine, -6.37e-8) <=> QScriptValue(-6.37e-8)",
1481 "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, -6.37e-8)",
1482 "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, -6.37e-8)",
1483 "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"-6.37e-8\")",
1484 "QScriptValue(engine, 0x43211234) <=> QScriptValue(0x43211234)",
1485 "QScriptValue(engine, 0x43211234) <=> QScriptValue(0, 0x43211234)",
1486 "QScriptValue(engine, 0x43211234) <=> QScriptValue(engine, 0x43211234)",
1487 "QScriptValue(engine, 0x43211234) <=> engine->evaluate(\"0x43211234\")",
1488 "QScriptValue(engine, 0x10000) <=> QScriptValue(0x10000)",
1489 "QScriptValue(engine, 0x10000) <=> QScriptValue(0, 0x10000)",
1490 "QScriptValue(engine, 0x10000) <=> QScriptValue(engine, 0x10000)",
1491 "QScriptValue(engine, 0x10000) <=> engine->evaluate(\"0x10000\")",
1492 "QScriptValue(engine, 0x10001) <=> QScriptValue(0x10001)",
1493 "QScriptValue(engine, 0x10001) <=> QScriptValue(0, 0x10001)",
1494 "QScriptValue(engine, 0x10001) <=> QScriptValue(engine, 0x10001)",
1495 "QScriptValue(engine, 0x10001) <=> engine->evaluate(\"0x10001\")",
1496 "QScriptValue(engine, qInf()) <=> QScriptValue(qInf())",
1497 "QScriptValue(engine, qInf()) <=> QScriptValue(0, qInf())",
1498 "QScriptValue(engine, qInf()) <=> QScriptValue(engine, qInf())",
1499 "QScriptValue(engine, qInf()) <=> engine->evaluate(\"Infinity\")",
1500 "QScriptValue(engine, -qInf()) <=> QScriptValue(-qInf())",
1501 "QScriptValue(engine, -qInf()) <=> QScriptValue(0, -qInf())",
1502 "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, -qInf())",
1503 "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"-Infinity\")",
1504 "QScriptValue(engine, \"NaN\") <=> QScriptValue(\"NaN\")",
1505 "QScriptValue(engine, \"NaN\") <=> QScriptValue(0, \"NaN\")",
1506 "QScriptValue(engine, \"NaN\") <=> QScriptValue(engine, \"NaN\")",
1507 "QScriptValue(engine, \"Infinity\") <=> QScriptValue(\"Infinity\")",
1508 "QScriptValue(engine, \"Infinity\") <=> QScriptValue(0, \"Infinity\")",
1509 "QScriptValue(engine, \"Infinity\") <=> QScriptValue(engine, \"Infinity\")",
1510 "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(\"-Infinity\")",
1511 "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, \"-Infinity\")",
1512 "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, \"-Infinity\")",
1513 "QScriptValue(engine, \"ciao\") <=> QScriptValue(\"ciao\")",
1514 "QScriptValue(engine, \"ciao\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
1515 "QScriptValue(engine, \"ciao\") <=> QScriptValue(0, \"ciao\")",
1516 "QScriptValue(engine, \"ciao\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
1517 "QScriptValue(engine, \"ciao\") <=> QScriptValue(engine, \"ciao\")",
1518 "QScriptValue(engine, \"ciao\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
1519 "QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"'ciao'\")",
1520 "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(\"ciao\")",
1521 "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
1522 "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, \"ciao\")",
1523 "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
1524 "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, \"ciao\")",
1525 "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
1526 "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"'ciao'\")",
1527 "QScriptValue(engine, QString(\"\")) <=> QScriptValue(QString(\"\"))",
1528 "QScriptValue(engine, QString(\"\")) <=> QScriptValue(QString())",
1529 "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, QString(\"\"))",
1530 "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, QString())",
1531 "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, QString(\"\"))",
1532 "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, QString())",
1533 "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"''\")",
1534 "QScriptValue(engine, QString()) <=> QScriptValue(QString(\"\"))",
1535 "QScriptValue(engine, QString()) <=> QScriptValue(QString())",
1536 "QScriptValue(engine, QString()) <=> QScriptValue(0, QString(\"\"))",
1537 "QScriptValue(engine, QString()) <=> QScriptValue(0, QString())",
1538 "QScriptValue(engine, QString()) <=> QScriptValue(engine, QString(\"\"))",
1539 "QScriptValue(engine, QString()) <=> QScriptValue(engine, QString())",
1540 "QScriptValue(engine, QString()) <=> engine->evaluate(\"''\")",
1541 "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(QString(\"0\"))",
1542 "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, QString(\"0\"))",
1543 "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, QString(\"0\"))",
1544 "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"'0'\")",
1545 "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(QString(\"123\"))",
1546 "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, QString(\"123\"))",
1547 "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, QString(\"123\"))",
1548 "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"'123'\")",
1549 "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, QString(\"1.23\"))",
1550 "engine->evaluate(\"{}\") <=> QScriptValue(QScriptValue::UndefinedValue)",
1551 "engine->evaluate(\"{}\") <=> QScriptValue(0, QScriptValue::UndefinedValue)",
1552 "engine->evaluate(\"{}\") <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
1553 "engine->evaluate(\"{}\") <=> engine->evaluate(\"{}\")",
1554 "engine->evaluate(\"{}\") <=> engine->evaluate(\"undefined\")",
1555 "engine->evaluate(\"{}\") <=> engine->undefinedValue()",
1556 "engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"Object.prototype\")",
1557 "engine->evaluate(\"Date.prototype\") <=> engine->evaluate(\"Date.prototype\")",
1558 "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Array.prototype\")",
1559 "engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"Function.prototype\")",
1560 "engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Error.prototype\")",
1561 "engine->evaluate(\"Object\") <=> engine->evaluate(\"Object\")",
1562 "engine->evaluate(\"Array\") <=> engine->evaluate(\"Array\")",
1563 "engine->evaluate(\"Number\") <=> engine->evaluate(\"Number\")",
1564 "engine->evaluate(\"Function\") <=> engine->evaluate(\"Function\")",
1565 "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
1566 "engine->evaluate(\"undefined\") <=> QScriptValue(QScriptValue::UndefinedValue)",
1567 "engine->evaluate(\"undefined\") <=> QScriptValue(0, QScriptValue::UndefinedValue)",
1568 "engine->evaluate(\"undefined\") <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
1569 "engine->evaluate(\"undefined\") <=> engine->evaluate(\"{}\")",
1570 "engine->evaluate(\"undefined\") <=> engine->evaluate(\"undefined\")",
1571 "engine->evaluate(\"undefined\") <=> engine->undefinedValue()",
1572 "engine->evaluate(\"null\") <=> QScriptValue(QScriptValue::NullValue)",
1573 "engine->evaluate(\"null\") <=> QScriptValue(0, QScriptValue::NullValue)",
1574 "engine->evaluate(\"null\") <=> QScriptValue(engine, QScriptValue::NullValue)",
1575 "engine->evaluate(\"null\") <=> engine->evaluate(\"null\")",
1576 "engine->evaluate(\"null\") <=> engine->nullValue()",
1577 "engine->evaluate(\"true\") <=> QScriptValue(true)",
1578 "engine->evaluate(\"true\") <=> QScriptValue(0, true)",
1579 "engine->evaluate(\"true\") <=> QScriptValue(engine, true)",
1580 "engine->evaluate(\"true\") <=> engine->evaluate(\"true\")",
1581 "engine->evaluate(\"false\") <=> QScriptValue(false)",
1582 "engine->evaluate(\"false\") <=> QScriptValue(0, false)",
1583 "engine->evaluate(\"false\") <=> QScriptValue(engine, false)",
1584 "engine->evaluate(\"false\") <=> engine->evaluate(\"false\")",
1585 "engine->evaluate(\"122\") <=> QScriptValue(int(122))",
1586 "engine->evaluate(\"122\") <=> QScriptValue(0, int(122))",
1587 "engine->evaluate(\"122\") <=> QScriptValue(engine, int(122))",
1588 "engine->evaluate(\"122\") <=> engine->evaluate(\"122\")",
1589 "engine->evaluate(\"124\") <=> QScriptValue(uint(124))",
1590 "engine->evaluate(\"124\") <=> QScriptValue(0, uint(124))",
1591 "engine->evaluate(\"124\") <=> QScriptValue(engine, uint(124))",
1592 "engine->evaluate(\"124\") <=> engine->evaluate(\"124\")",
1593 "engine->evaluate(\"0\") <=> QScriptValue(0)",
1594 "engine->evaluate(\"0\") <=> QScriptValue(0.0)",
1595 "engine->evaluate(\"0\") <=> QScriptValue(0, 0)",
1596 "engine->evaluate(\"0\") <=> QScriptValue(0, 0.0)",
1597 "engine->evaluate(\"0\") <=> QScriptValue(engine, 0)",
1598 "engine->evaluate(\"0\") <=> QScriptValue(engine, 0.0)",
1599 "engine->evaluate(\"0\") <=> engine->evaluate(\"0\")",
1600 "engine->evaluate(\"0\") <=> engine->evaluate(\"0.0\")",
1601 "engine->evaluate(\"0.0\") <=> QScriptValue(0)",
1602 "engine->evaluate(\"0.0\") <=> QScriptValue(0.0)",
1603 "engine->evaluate(\"0.0\") <=> QScriptValue(0, 0)",
1604 "engine->evaluate(\"0.0\") <=> QScriptValue(0, 0.0)",
1605 "engine->evaluate(\"0.0\") <=> QScriptValue(engine, 0)",
1606 "engine->evaluate(\"0.0\") <=> QScriptValue(engine, 0.0)",
1607 "engine->evaluate(\"0.0\") <=> engine->evaluate(\"0\")",
1608 "engine->evaluate(\"0.0\") <=> engine->evaluate(\"0.0\")",
1609 "engine->evaluate(\"123.0\") <=> QScriptValue(123.0)",
1610 "engine->evaluate(\"123.0\") <=> QScriptValue(0, 123.0)",
1611 "engine->evaluate(\"123.0\") <=> QScriptValue(engine, 123.0)",
1612 "engine->evaluate(\"123.0\") <=> engine->evaluate(\"123.0\")",
1613 "engine->evaluate(\"6.37e-8\") <=> QScriptValue(6.37e-8)",
1614 "engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, 6.37e-8)",
1615 "engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, 6.37e-8)",
1616 "engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"6.37e-8\")",
1617 "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(-6.37e-8)",
1618 "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, -6.37e-8)",
1619 "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, -6.37e-8)",
1620 "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"-6.37e-8\")",
1621 "engine->evaluate(\"0x43211234\") <=> QScriptValue(0x43211234)",
1622 "engine->evaluate(\"0x43211234\") <=> QScriptValue(0, 0x43211234)",
1623 "engine->evaluate(\"0x43211234\") <=> QScriptValue(engine, 0x43211234)",
1624 "engine->evaluate(\"0x43211234\") <=> engine->evaluate(\"0x43211234\")",
1625 "engine->evaluate(\"0x10000\") <=> QScriptValue(0x10000)",
1626 "engine->evaluate(\"0x10000\") <=> QScriptValue(0, 0x10000)",
1627 "engine->evaluate(\"0x10000\") <=> QScriptValue(engine, 0x10000)",
1628 "engine->evaluate(\"0x10000\") <=> engine->evaluate(\"0x10000\")",
1629 "engine->evaluate(\"0x10001\") <=> QScriptValue(0x10001)",
1630 "engine->evaluate(\"0x10001\") <=> QScriptValue(0, 0x10001)",
1631 "engine->evaluate(\"0x10001\") <=> QScriptValue(engine, 0x10001)",
1632 "engine->evaluate(\"0x10001\") <=> engine->evaluate(\"0x10001\")",
1633 "engine->evaluate(\"Infinity\") <=> QScriptValue(qInf())",
1634 "engine->evaluate(\"Infinity\") <=> QScriptValue(0, qInf())",
1635 "engine->evaluate(\"Infinity\") <=> QScriptValue(engine, qInf())",
1636 "engine->evaluate(\"Infinity\") <=> engine->evaluate(\"Infinity\")",
1637 "engine->evaluate(\"-Infinity\") <=> QScriptValue(-qInf())",
1638 "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, -qInf())",
1639 "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, -qInf())",
1640 "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"-Infinity\")",
1641 "engine->evaluate(\"'ciao'\") <=> QScriptValue(\"ciao\")",
1642 "engine->evaluate(\"'ciao'\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
1643 "engine->evaluate(\"'ciao'\") <=> QScriptValue(0, \"ciao\")",
1644 "engine->evaluate(\"'ciao'\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
1645 "engine->evaluate(\"'ciao'\") <=> QScriptValue(engine, \"ciao\")",
1646 "engine->evaluate(\"'ciao'\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
1647 "engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"'ciao'\")",
1648 "engine->evaluate(\"''\") <=> QScriptValue(QString(\"\"))",
1649 "engine->evaluate(\"''\") <=> QScriptValue(QString())",
1650 "engine->evaluate(\"''\") <=> QScriptValue(0, QString(\"\"))",
1651 "engine->evaluate(\"''\") <=> QScriptValue(0, QString())",
1652 "engine->evaluate(\"''\") <=> QScriptValue(engine, QString(\"\"))",
1653 "engine->evaluate(\"''\") <=> QScriptValue(engine, QString())",
1654 "engine->evaluate(\"''\") <=> engine->evaluate(\"''\")",
1655 "engine->evaluate(\"'0'\") <=> QScriptValue(QString(\"0\"))",
1656 "engine->evaluate(\"'0'\") <=> QScriptValue(0, QString(\"0\"))",
1657 "engine->evaluate(\"'0'\") <=> QScriptValue(engine, QString(\"0\"))",
1658 "engine->evaluate(\"'0'\") <=> engine->evaluate(\"'0'\")",
1659 "engine->evaluate(\"'123'\") <=> QScriptValue(QString(\"123\"))",
1660 "engine->evaluate(\"'123'\") <=> QScriptValue(0, QString(\"123\"))",
1661 "engine->evaluate(\"'123'\") <=> QScriptValue(engine, QString(\"123\"))",
1662 "engine->evaluate(\"'123'\") <=> engine->evaluate(\"'123'\")",
1663 "engine->evaluate(\"'12.4'\") <=> QScriptValue(QString(\"12.4\"))",
1664 "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"'12.4'\")",
1665 "engine->nullValue() <=> QScriptValue(QScriptValue::NullValue)",
1666 "engine->nullValue() <=> QScriptValue(0, QScriptValue::NullValue)",
1667 "engine->nullValue() <=> QScriptValue(engine, QScriptValue::NullValue)",
1668 "engine->nullValue() <=> engine->evaluate(\"null\")",
1669 "engine->nullValue() <=> engine->nullValue()",
1670 "engine->undefinedValue() <=> QScriptValue(QScriptValue::UndefinedValue)",
1671 "engine->undefinedValue() <=> QScriptValue(0, QScriptValue::UndefinedValue)",
1672 "engine->undefinedValue() <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
1673 "engine->undefinedValue() <=> engine->evaluate(\"{}\")",
1674 "engine->undefinedValue() <=> engine->evaluate(\"undefined\")",
1675 "engine->undefinedValue() <=> engine->undefinedValue()"};
1676
1677 void tst_QScriptValue::strictlyEquals_data()
1678 {
1679 QTest::addColumn<QScriptValue>("value");
1680 QTest::addColumn<QScriptValue>("other");
1681 QTest::addColumn<bool>("expected");
1682 if (m_engine)
1683 delete m_engine;
1684 m_engine = new QScriptEngine();
1685 QSet<QString> equals;
1686 equals.reserve(491);
1687 for (unsigned i = 0; i < 491; ++i)
1688 equals.insert(strictlyEquals_array[i]);
1689 for (unsigned i = 0; i < 135; ++i) {
1690 QPair<QString, QScriptValue> value1 = initScriptValues(i);
1691 for (unsigned j = 0; j < 135; ++j) {
1692 QPair<QString, QScriptValue> value2 = initScriptValues(j);
1693 QString tag = QString::fromLatin1("%20 <=> %21").arg(value1.first, value2.first);
1694 QTest::newRow(tag.toAscii().constData()) << value1.second << value2.second << equals.contains(tag); }
1695 }
1696 }
1697
1698 void tst_QScriptValue::strictlyEquals()
1699 {
1700 QFETCH(QScriptValue, value);
1701 QFETCH(QScriptValue, other);
1702 QFETCH(bool, expected);
1703 QEXPECT_FAIL("QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::UndefinedValue)", "FIXME: WebKit bug 43038", Continue);
1704 QEXPECT_FAIL("QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)", "FIXME: WebKit bug 43038", Continue);
1705 QEXPECT_FAIL("QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)", "FIXME: WebKit bug 43038", Continue);
1706 QEXPECT_FAIL("QScriptValue(QScriptValue::UndefinedValue) <=> engine->evaluate(\"{}\")", "FIXME: WebKit bug 43038", Continue);
1707 QEXPECT_FAIL("QScriptValue(QScriptValue::UndefinedValue) <=> engine->evaluate(\"undefined\")", "FIXME: WebKit bug 43038", Continue);
1708 QEXPECT_FAIL("QScriptValue(QScriptValue::UndefinedValue) <=> engine->undefinedValue()", "FIXME: WebKit bug 43038", Continue);
1709 QEXPECT_FAIL("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(QScriptValue::NullValue)", "FIXME: WebKit bug 43038", Continue);
1710 QEXPECT_FAIL("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::NullValue)", "FIXME: WebKit bug 43038", Continue);
1711 QEXPECT_FAIL("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::NullValue)", "FIXME: WebKit bug 43038", Continue);
1712 QEXPECT_FAIL("QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"null\")", "FIXME: WebKit bug 43038", Continue);
1713 QEXPECT_FAIL("QScriptValue(QScriptValue::NullValue) <=> engine->nullValue()", "FIXME: WebKit bug 43038", Continue);
1714 QEXPECT_FAIL("QScriptValue(true) <=> QScriptValue(true)", "FIXME: WebKit bug 43038", Continue);
1715 QEXPECT_FAIL("QScriptValue(true) <=> QScriptValue(0, true)", "FIXME: WebKit bug 43038", Continue);
1716 QEXPECT_FAIL("QScriptValue(false) <=> QScriptValue(false)", "FIXME: WebKit bug 43038", Continue);
1717 QEXPECT_FAIL("QScriptValue(false) <=> QScriptValue(0, false)", "FIXME: WebKit bug 43038", Continue);
1718 QEXPECT_FAIL("QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::UndefinedValue)", "FIXME: WebKit bug 43038", Continue);
1719 QEXPECT_FAIL("QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)", "FIXME: WebKit bug 43038", Continue);
1720 QEXPECT_FAIL("QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)", "FIXME: WebKit bug 43038", Continue);
1721 QEXPECT_FAIL("QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->evaluate(\"{}\")", "FIXME: WebKit bug 43038", Continue);
1722 QEXPECT_FAIL("QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->evaluate(\"undefined\")", "FIXME: WebKit bug 43038", Continue);
1723 QEXPECT_FAIL("QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->undefinedValue()", "FIXME: WebKit bug 43038", Continue);
1724 QEXPECT_FAIL("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(QScriptValue::NullValue)", "FIXME: WebKit bug 43038", Continue);
1725 QEXPECT_FAIL("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::NullValue)", "FIXME: WebKit bug 43038", Continue);
1726 QEXPECT_FAIL("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::NullValue)", "FIXME: WebKit bug 43038", Continue);
1727 QEXPECT_FAIL("QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"null\")", "FIXME: WebKit bug 43038", Continue);
1728 QEXPECT_FAIL("QScriptValue(0, QScriptValue::NullValue) <=> engine->nullValue()", "FIXME: WebKit bug 43038", Continue);
1729 QEXPECT_FAIL("QScriptValue(0, true) <=> QScriptValue(true)", "FIXME: WebKit bug 43038", Continue);
1730 QEXPECT_FAIL("QScriptValue(0, true) <=> QScriptValue(0, true)", "FIXME: WebKit bug 43038", Continue);
1731 QEXPECT_FAIL("QScriptValue(0, false) <=> QScriptValue(false)", "FIXME: WebKit bug 43038", Continue);
1732 QEXPECT_FAIL("QScriptValue(0, false) <=> QScriptValue(0, false)", "FIXME: WebKit bug 43038", Continue);
1733 QCOMPARE(value.strictlyEquals(other), expected);
1734 }
1735
1736 static const QString instanceOf_array[] = {
1737 "engine->evaluate(\"[]\") <=> engine->evaluate(\"Object\")",
1738 "engine->evaluate(\"[]\") <=> engine->evaluate(\"Array\")",
1739 "engine->evaluate(\"Date.prototype\") <=> engine->evaluate(\"Object\")",
1740 "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Object\")",
1741 "engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"Object\")",
1742 "engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Object\")",
1743 "engine->evaluate(\"Object\") <=> engine->evaluate(\"Object\")",
1744 "engine->evaluate(\"Object\") <=> engine->evaluate(\"Function\")",
1745 "engine->evaluate(\"Array\") <=> engine->evaluate(\"Object\")",
1746 "engine->evaluate(\"Array\") <=> engine->evaluate(\"Function\")",
1747 "engine->evaluate(\"Number\") <=> engine->evaluate(\"Object\")",
1748 "engine->evaluate(\"Number\") <=> engine->evaluate(\"Function\")",
1749 "engine->evaluate(\"Function\") <=> engine->evaluate(\"Object\")",
1750 "engine->evaluate(\"Function\") <=> engine->evaluate(\"Function\")",
1751 "engine->evaluate(\"(function() { return 1; })\") <=> engine->evaluate(\"Object\")",
1752 "engine->evaluate(\"(function() { return 1; })\") <=> engine->evaluate(\"Function\")",
1753 "engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"Object\")",
1754 "engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"Function\")",
1755 "engine->evaluate(\"(function() { throw new Error('foo'); })\") <=> engine->evaluate(\"Object\")",
1756 "engine->evaluate(\"(function() { throw new Error('foo'); })\") <=> engine->evaluate(\"Function\")",
1757 "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"Object\")",
1758 "engine->evaluate(\"new Object()\") <=> engine->evaluate(\"Object\")",
1759 "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Object\")",
1760 "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Array\")",
1761 "engine->evaluate(\"new Error()\") <=> engine->evaluate(\"Object\")",
1762 "engine->evaluate(\"Undefined\") <=> engine->evaluate(\"Object\")",
1763 "engine->evaluate(\"Null\") <=> engine->evaluate(\"Object\")",
1764 "engine->evaluate(\"True\") <=> engine->evaluate(\"Object\")",
1765 "engine->evaluate(\"False\") <=> engine->evaluate(\"Object\")",
1766 "engine->newObject() <=> engine->evaluate(\"Object\")",
1767 "engine->newArray() <=> engine->evaluate(\"Object\")",
1768 "engine->newArray() <=> engine->evaluate(\"Array\")",
1769 "engine->newArray(10) <=> engine->evaluate(\"Object\")",
1770 "engine->newArray(10) <=> engine->evaluate(\"Array\")"};
1771
1772 void tst_QScriptValue::instanceOf_data()
1773 {
1774 QTest::addColumn<QScriptValue>("value");
1775 QTest::addColumn<QScriptValue>("other");
1776 QTest::addColumn<bool>("expected");
1777 if (m_engine)
1778 delete m_engine;
1779 m_engine = new QScriptEngine();
1780 QSet<QString> equals;
1781 equals.reserve(34);
1782 for (unsigned i = 0; i < 34; ++i)
1783 equals.insert(instanceOf_array[i]);
1784 for (unsigned i = 0; i < 135; ++i) {
1785 QPair<QString, QScriptValue> value1 = initScriptValues(i);
1786 for (unsigned j = 0; j < 135; ++j) {
1787 QPair<QString, QScriptValue> value2 = initScriptValues(j);
1788 QString tag = QString::fromLatin1("%20 <=> %21").arg(value1.first, value2.first);
1789 QTest::newRow(tag.toAscii().constData()) << value1.second << value2.second << equals.contains(tag); }
1790 }
1791 }
1792
1793 void tst_QScriptValue::instanceOf()
1794 {
1795 QFETCH(QScriptValue, value);
1796 QFETCH(QScriptValue, other);
1797 QFETCH(bool, expected);
1798 QCOMPARE(value.instanceOf(other), expected);
1799 }