summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2010-03-05 03:37:14 (GMT)
committerAaron McCarthy <aaron.mccarthy@nokia.com>2010-03-05 03:37:14 (GMT)
commitc7ac041e5180d118e300a050d9c579467230a48c (patch)
tree396f19b89df7a8da97f459385f4f5ceff58ccede /tests
parent9b7e3943b0e67af48fdbb993c5c4cc93dac81304 (diff)
parenta2e7ab8926c5e8a4c89bb017bbcacfcfbf43ef25 (diff)
downloadQt-c7ac041e5180d118e300a050d9c579467230a48c.zip
Qt-c7ac041e5180d118e300a050d9c579467230a48c.tar.gz
Qt-c7ac041e5180d118e300a050d9c579467230a48c.tar.bz2
Merge remote branch 'staging/4.7' into bearermanagement/polling
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/declarative.pro3
-rw-r--r--tests/auto/declarative/examples/examples.pro2
-rw-r--r--tests/auto/declarative/examples/tst_examples.cpp3
-rw-r--r--tests/auto/declarative/qdeclarativeanimations/data/badtype1.qml2
-rw-r--r--tests/auto/declarative/qdeclarativeanimations/data/badtype2.qml2
-rw-r--r--tests/auto/declarative/qdeclarativeanimations/data/badtype3.qml2
-rw-r--r--tests/auto/declarative/qdeclarativeanimations/data/dontAutoStart.qml2
-rw-r--r--tests/auto/declarative/qdeclarativeanimations/data/dontStart.qml2
-rw-r--r--tests/auto/declarative/qdeclarativeanimations/data/properties.qml2
-rw-r--r--tests/auto/declarative/qdeclarativeanimations/data/properties2.qml2
-rw-r--r--tests/auto/declarative/qdeclarativeanimations/data/properties3.qml2
-rw-r--r--tests/auto/declarative/qdeclarativeanimations/data/properties4.qml2
-rw-r--r--tests/auto/declarative/qdeclarativeanimations/data/properties5.qml2
-rw-r--r--tests/auto/declarative/qdeclarativeanimations/data/valuesource.qml2
-rw-r--r--tests/auto/declarative/qdeclarativeanimations/data/valuesource2.qml2
-rw-r--r--tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp8
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/data/binding.qml2
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/data/color.qml2
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/data/cpptrigger.qml2
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/data/disabled.qml2
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/data/dontStart.qml2
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/data/empty.qml2
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/data/explicit.qml2
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/data/groupProperty.qml2
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/data/groupProperty2.qml2
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/data/loop.qml2
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/data/nonSelecting2.qml2
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/data/parent.qml2
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/data/reassignedAnimation.qml2
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/data/scripttrigger.qml2
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/data/simple.qml2
-rw-r--r--tests/auto/declarative/qdeclarativebehaviors/tst_qdeclarativebehaviors.cpp2
-rw-r--r--tests/auto/declarative/qdeclarativecomponent/qdeclarativecomponent.pro8
-rw-r--r--tests/auto/declarative/qdeclarativecomponent/tst_qdeclarativecomponent.cpp (renamed from tests/auto/declarative/qdeclarativewebview/testtypes.h)37
-rw-r--r--tests/auto/declarative/qdeclarativecontext/tst_qdeclarativecontext.cpp20
-rw-r--r--tests/auto/declarative/qdeclarativedom/tst_qdeclarativedom.cpp72
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/data/attachedPropertyScope.qml9
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/data/methods.5.qml2
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/data/scope.3.qml13
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/data/scope.4.qml12
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/data/scriptScope.1.qml13
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/data/scriptScope.2.qml11
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/data/scriptScope.js5
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/testtypes.h13
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp74
-rw-r--r--tests/auto/declarative/qdeclarativegridview/data/gridview.qml6
-rw-r--r--tests/auto/declarative/qdeclarativegridview/data/propertychanges.qml69
-rw-r--r--tests/auto/declarative/qdeclarativegridview/tst_qdeclarativegridview.cpp183
-rw-r--r--tests/auto/declarative/qdeclarativeitem/data/keynavigation.qml8
-rw-r--r--tests/auto/declarative/qdeclarativeitem/data/keys.qml2
-rw-r--r--tests/auto/declarative/qdeclarativeitem/tst_qdeclarativeitem.cpp38
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/assignBasicTypes.qml2
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/component.3.errors.txt2
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/customOnProperty.qml7
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/defaultGrouped.errors.txt2
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/doubleSignal.errors.txt2
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.10.errors.txt1
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.10.qml7
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.6.errors.txt2
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.8.errors.txt1
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.8.qml6
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.9.errors.txt1
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.9.qml6
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/invalidID.2.errors.txt2
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/invalidID.4.errors.txt2
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/invalidID.6.errors.txt2
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/invalidID.7.errors.txt1
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/invalidID.7.qml5
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/invalidID.8.errors.txt1
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/invalidID.8.qml5
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/invalidID.9.errors.txt1
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/invalidID.9.qml5
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/invalidID.errors.txt2
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/listAssignment.3.errors.txt2
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/multiSet.1.errors.txt1
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/multiSet.1.qml7
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/multiSet.10.errors.txt1
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/multiSet.10.qml6
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/multiSet.2.errors.txt1
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/multiSet.2.qml7
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/multiSet.3.errors.txt1
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/multiSet.3.qml7
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/multiSet.4.errors.txt1
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/multiSet.4.qml7
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/multiSet.5.errors.txt1
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/multiSet.5.qml6
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/multiSet.6.errors.txt1
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/multiSet.6.qml7
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/multiSet.7.errors.txt1
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/multiSet.7.qml7
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/multiSet.8.errors.txt1
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/multiSet.8.qml8
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/multiSet.9.errors.txt1
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/multiSet.9.qml6
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/propertyValueSource.2.qml2
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/propertyValueSource.qml2
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/data/script.8.errors.txt2
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/testtypes.h15
-rw-r--r--tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp35
-rw-r--r--tests/auto/declarative/qdeclarativelistview/data/propertychanges.qml71
-rw-r--r--tests/auto/declarative/qdeclarativelistview/tst_qdeclarativelistview.cpp168
-rw-r--r--tests/auto/declarative/qdeclarativemoduleplugin/tst_qdeclarativemoduleplugin.cpp1
-rw-r--r--tests/auto/declarative/qdeclarativenumberformatter/tst_qdeclarativenumberformatter.cpp2
-rw-r--r--tests/auto/declarative/qdeclarativeparticles/data/particles.qml2
-rw-r--r--tests/auto/declarative/qdeclarativepathview/data/displaypath.qml2
-rw-r--r--tests/auto/declarative/qdeclarativepathview/data/pathview.qml2
-rw-r--r--tests/auto/declarative/qdeclarativepathview/data/pathview2.qml2
-rw-r--r--tests/auto/declarative/qdeclarativepathview/data/pathview3.qml4
-rw-r--r--tests/auto/declarative/qdeclarativepathview/data/propertychanges.qml115
-rw-r--r--tests/auto/declarative/qdeclarativepathview/tst_qdeclarativepathview.cpp167
-rw-r--r--tests/auto/declarative/qdeclarativepositioners/tst_qdeclarativepositioners.cpp2
-rw-r--r--tests/auto/declarative/qdeclarativeproperty/data/TestType.qml6
-rw-r--r--tests/auto/declarative/qdeclarativeproperty/data/readSynthesizedObject.qml9
-rw-r--r--tests/auto/declarative/qdeclarativeproperty/qdeclarativeproperty.pro2
-rw-r--r--tests/auto/declarative/qdeclarativeproperty/tst_qdeclarativeproperty.cpp37
-rw-r--r--tests/auto/declarative/qdeclarativeqt/data/formatting.qml19
-rw-r--r--tests/auto/declarative/qdeclarativeqt/tst_qdeclarativeqt.cpp36
-rw-r--r--tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp6
-rw-r--r--tests/auto/declarative/qdeclarativevaluetypes/data/valueInterceptors.qml2
-rw-r--r--tests/auto/declarative/qdeclarativevaluetypes/data/valueSources.qml2
-rw-r--r--tests/auto/declarative/qdeclarativevaluetypes/tst_qdeclarativevaluetypes.cpp3
-rw-r--r--tests/auto/declarative/qdeclarativewebview/data/basic.qml1
-rw-r--r--tests/auto/declarative/qdeclarativewebview/data/elements.qml1
-rw-r--r--tests/auto/declarative/qdeclarativewebview/data/forward.pngbin0 -> 2377 bytes
-rw-r--r--tests/auto/declarative/qdeclarativewebview/data/javaScript.qml1
-rw-r--r--tests/auto/declarative/qdeclarativewebview/data/loadError.qml1
-rw-r--r--tests/auto/declarative/qdeclarativewebview/data/newwindows.qml1
-rw-r--r--tests/auto/declarative/qdeclarativewebview/data/propertychanges.qml3
-rw-r--r--tests/auto/declarative/qdeclarativewebview/data/sethtml.qml1
-rw-r--r--tests/auto/declarative/qdeclarativewebview/qdeclarativewebview.pro3
-rw-r--r--tests/auto/declarative/qdeclarativewebview/testtypes.cpp52
-rw-r--r--tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp347
-rw-r--r--tests/auto/declarative/qdeclarativeworkerlistmodel/data/model.qml14
-rw-r--r--tests/auto/declarative/qdeclarativeworkerlistmodel/data/script.js6
-rw-r--r--tests/auto/declarative/qdeclarativeworkerlistmodel/qdeclarativeworkerlistmodel.pro9
-rw-r--r--tests/auto/declarative/qdeclarativeworkerlistmodel/tst_qdeclarativeworkerlistmodel.cpp193
-rw-r--r--tests/auto/declarative/qdeclarativeworkerscript/data/script.js5
-rw-r--r--tests/auto/declarative/qdeclarativeworkerscript/data/worker.qml24
-rw-r--r--tests/auto/declarative/qdeclarativeworkerscript/qdeclarativeworkerscript.pro9
-rw-r--r--tests/auto/declarative/qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp194
-rw-r--r--tests/auto/declarative/qdeclarativexmlhttprequest/tst_qdeclarativexmlhttprequest.cpp6
-rwxr-xr-xtests/auto/declarative/runall.sh81
-rw-r--r--tests/auto/declarative/visual/qfxwebview/autosize/autosize.qml1
-rw-r--r--tests/auto/declarative/visual/webview/embedding/nesting.qml1
-rw-r--r--tests/auto/declarative/visual/webview/javascript/evaluateJavaScript.qml1
-rw-r--r--tests/auto/declarative/visual/webview/javascript/windowObjects.qml1
-rw-r--r--tests/auto/declarative/visual/webview/settings/fontFamily.qml1
-rw-r--r--tests/auto/declarative/visual/webview/settings/fontSize.qml1
-rw-r--r--tests/auto/declarative/visual/webview/settings/noAutoLoadImages.qml1
-rw-r--r--tests/auto/declarative/visual/webview/settings/setFontFamily.qml1
-rw-r--r--tests/auto/declarative/visual/webview/zooming/pageWidth.qml1
-rw-r--r--tests/auto/declarative/visual/webview/zooming/renderControl.qml1
-rw-r--r--tests/auto/declarative/visual/webview/zooming/resolution.qml1
-rw-r--r--tests/auto/declarative/visual/webview/zooming/zoomTextOnly.qml1
-rw-r--r--tests/auto/declarative/visual/webview/zooming/zooming.qml1
-rw-r--r--tests/auto/gestures/tst_gestures.cpp98
-rw-r--r--tests/auto/headers/tst_headers.cpp1
-rw-r--r--tests/auto/qapplication/desktopsettingsaware/desktopsettingsaware.pro5
-rw-r--r--tests/auto/qdeclarativeaudio/qdeclarativeaudio.pro12
-rw-r--r--tests/auto/qdeclarativeaudio/tst_qdeclarativeaudio.cpp2
-rw-r--r--tests/auto/qdeclarativevideo/qdeclarativevideo.pro12
-rw-r--r--tests/auto/qdeclarativevideo/tst_qdeclarativevideo.cpp2
-rw-r--r--tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp57
-rw-r--r--tests/auto/qlist/tst_qlist.cpp34
-rw-r--r--tests/auto/qmediaservice/tst_qmediaservice.cpp8
-rw-r--r--tests/auto/qmediaserviceprovider/tst_qmediaserviceprovider.cpp72
-rw-r--r--tests/auto/qmenu/tst_qmenu.cpp20
-rw-r--r--tests/auto/qmetaobject/tst_qmetaobject.cpp33
-rw-r--r--tests/auto/qmetatype/tst_qmetatype.cpp14
-rw-r--r--tests/auto/qobject/tst_qobject.cpp16
-rw-r--r--tests/auto/qprinter/tst_qprinter.cpp23
-rw-r--r--tests/auto/qscriptvalue/qscriptvalue.pro8
-rw-r--r--tests/auto/qscriptvalue/testgen/main.cpp2
-rw-r--r--tests/auto/qscriptvalue/testgen/testgenerator.cpp401
-rw-r--r--tests/auto/qscriptvalue/testgen/testgenerator.h15
-rw-r--r--tests/auto/qscriptvalue/tst_qscriptvalue.h2
-rw-r--r--tests/auto/qscriptvalue/tst_qscriptvalue_generated.cpp10221
-rw-r--r--tests/auto/qscriptvalue/tst_qscriptvalue_generated_cast.cpp1453
-rw-r--r--tests/auto/qscriptvalue/tst_qscriptvalue_generated_comparison.cpp7026
-rw-r--r--tests/auto/qscriptvalue/tst_qscriptvalue_generated_init.cpp198
-rw-r--r--tests/auto/qscriptvalue/tst_qscriptvalue_generated_isXXX.cpp830
-rw-r--r--tests/auto/qscriptvalue/tst_qscriptvalue_generated_toXXX.cpp1897
-rw-r--r--tests/auto/qvariant/tst_qvariant.cpp14
-rw-r--r--tests/benchmarks/declarative/binding/binding.pro3
-rw-r--r--tests/benchmarks/declarative/binding/data/idproperty.txt2
-rw-r--r--tests/benchmarks/declarative/binding/data/objectproperty.txt2
-rw-r--r--tests/benchmarks/declarative/binding/testtypes.h6
-rw-r--r--tests/benchmarks/declarative/binding/tst_binding.cpp16
-rw-r--r--tests/benchmarks/declarative/creation/tst_creation.cpp5
-rw-r--r--tests/benchmarks/declarative/qdeclarativecomponent/data/object_id.qml2
-rw-r--r--tests/benchmarks/declarative/qdeclarativecomponent/data/samegame/BoomBlock.qml6
-rw-r--r--tests/benchmarks/declarative/qdeclarativecomponent/qdeclarativecomponent.pro3
-rw-r--r--tests/benchmarks/declarative/qdeclarativecomponent/testtypes.h6
-rw-r--r--tests/benchmarks/declarative/qdeclarativecomponent/tst_qdeclarativecomponent.cpp14
-rw-r--r--tests/benchmarks/declarative/qdeclarativemetaproperty/qdeclarativemetaproperty.pro2
-rw-r--r--tests/benchmarks/declarative/qdeclarativemetaproperty/tst_qdeclarativemetaproperty.cpp8
-rw-r--r--tests/benchmarks/declarative/script/tst_script.cpp11
197 files changed, 14112 insertions, 10943 deletions
diff --git a/tests/auto/declarative/declarative.pro b/tests/auto/declarative/declarative.pro
index 42ff523..99a32d9 100644
--- a/tests/auto/declarative/declarative.pro
+++ b/tests/auto/declarative/declarative.pro
@@ -7,6 +7,7 @@ SUBDIRS += \
qdeclarativeanimations \ # Cover
qdeclarativebehaviors \ # Cover
qdeclarativebinding \ # Cover
+ qdeclarativecomponent \ # Cover
qdeclarativeconnection \ # Cover
qdeclarativecontext \ # Cover
qdeclarativedatetimeformatter \ # Cover
@@ -55,6 +56,8 @@ SUBDIRS += \
qdeclarativexmllistmodel \ # Cover
qpacketprotocol \ # Cover
qdeclarativerepeater \ # Cover
+ qdeclarativeworkerscript \ # Cover
+ qdeclarativeworkerlistmodel \ # Cover
qdeclarativevaluetypes \ # Cover
qdeclarativexmlhttprequest \ # Cover
qdeclarativeimageprovider \ # Cover
diff --git a/tests/auto/declarative/examples/examples.pro b/tests/auto/declarative/examples/examples.pro
index b9bcd28..85d2a73 100644
--- a/tests/auto/declarative/examples/examples.pro
+++ b/tests/auto/declarative/examples/examples.pro
@@ -3,3 +3,5 @@ contains(QT_CONFIG,declarative): QT += declarative
macx:CONFIG -= app_bundle
SOURCES += tst_examples.cpp
+
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/examples/tst_examples.cpp b/tests/auto/declarative/examples/tst_examples.cpp
index 6160e7c..678dd59 100644
--- a/tests/auto/declarative/examples/tst_examples.cpp
+++ b/tests/auto/declarative/examples/tst_examples.cpp
@@ -168,10 +168,12 @@ void tst_examples::examples_data()
QString examples = QLibraryInfo::location(QLibraryInfo::ExamplesPath);
QString demos = QLibraryInfo::location(QLibraryInfo::DemosPath);
+ QString snippets = QLatin1String(SRCDIR) + "/../../../../doc/src/snippets/";
QStringList files;
files << findQmlFiles(QDir(examples));
files << findQmlFiles(QDir(demos));
+ files << findQmlFiles(QDir(snippets));
foreach (const QString &file, files)
QTest::newRow(file.toLatin1().constData()) << file;
@@ -190,7 +192,6 @@ void tst_examples::examples()
<< "-scriptopts" << "play,testerror,exitoncomplete,exitonfailure"
<< file;
QProcess p;
-qDebug() << qmlruntime << arguments;
p.start(qmlruntime, arguments);
QVERIFY(p.waitForFinished());
QCOMPARE(p.exitStatus(), QProcess::NormalExit);
diff --git a/tests/auto/declarative/qdeclarativeanimations/data/badtype1.qml b/tests/auto/declarative/qdeclarativeanimations/data/badtype1.qml
index 6381df3..2629cf4 100644
--- a/tests/auto/declarative/qdeclarativeanimations/data/badtype1.qml
+++ b/tests/auto/declarative/qdeclarativeanimations/data/badtype1.qml
@@ -7,6 +7,6 @@ Rectangle {
color: "red"
width: 50; height: 50
x: 100; y: 100
- x: PropertyAnimation { from: "blue"; to: "green"; }
+ PropertyAnimation on x { from: "blue"; to: "green"; }
}
}
diff --git a/tests/auto/declarative/qdeclarativeanimations/data/badtype2.qml b/tests/auto/declarative/qdeclarativeanimations/data/badtype2.qml
index 8d57e41..1543a2a 100644
--- a/tests/auto/declarative/qdeclarativeanimations/data/badtype2.qml
+++ b/tests/auto/declarative/qdeclarativeanimations/data/badtype2.qml
@@ -7,6 +7,6 @@ Rectangle {
color: "red"
width: 50; height: 50
x: 100; y: 100
- x: NumberAnimation { from: "blue"; to: "green"; }
+ NumberAnimation on x { from: "blue"; to: "green"; }
}
}
diff --git a/tests/auto/declarative/qdeclarativeanimations/data/badtype3.qml b/tests/auto/declarative/qdeclarativeanimations/data/badtype3.qml
index c4867c3..aa98c33 100644
--- a/tests/auto/declarative/qdeclarativeanimations/data/badtype3.qml
+++ b/tests/auto/declarative/qdeclarativeanimations/data/badtype3.qml
@@ -5,7 +5,7 @@ Rectangle {
height: 320
Rectangle {
color: "red"
- color: ColorAnimation { from: 10; to: 15; }
+ ColorAnimation on color { from: 10; to: 15; }
width: 50; height: 50
x: 100; y: 100
}
diff --git a/tests/auto/declarative/qdeclarativeanimations/data/dontAutoStart.qml b/tests/auto/declarative/qdeclarativeanimations/data/dontAutoStart.qml
index d9660b6..3f00e68 100644
--- a/tests/auto/declarative/qdeclarativeanimations/data/dontAutoStart.qml
+++ b/tests/auto/declarative/qdeclarativeanimations/data/dontAutoStart.qml
@@ -9,7 +9,7 @@ Rectangle {
id: redRect
width: 100; height: 100
color: Qt.rgba(1,0,0)
- x: Behavior {
+ Behavior on x {
NumberAnimation { objectName: "MyAnim"; target: redRect; property: "y"; to: 300; repeat: true}
}
diff --git a/tests/auto/declarative/qdeclarativeanimations/data/dontStart.qml b/tests/auto/declarative/qdeclarativeanimations/data/dontStart.qml
index 36417db..efed058 100644
--- a/tests/auto/declarative/qdeclarativeanimations/data/dontStart.qml
+++ b/tests/auto/declarative/qdeclarativeanimations/data/dontStart.qml
@@ -9,7 +9,7 @@ Rectangle {
id: redRect
width: 100; height: 100
color: Qt.rgba(1,0,0)
- x: SequentialAnimation {
+ SequentialAnimation on x {
running: false
NumberAnimation { objectName: "MyAnim"; running: true }
}
diff --git a/tests/auto/declarative/qdeclarativeanimations/data/properties.qml b/tests/auto/declarative/qdeclarativeanimations/data/properties.qml
index 7e73f57..4437815 100644
--- a/tests/auto/declarative/qdeclarativeanimations/data/properties.qml
+++ b/tests/auto/declarative/qdeclarativeanimations/data/properties.qml
@@ -9,6 +9,6 @@ Rectangle {
color: "red"
width: 50; height: 50
x: 100; y: 100
- x: NumberAnimation { to: 200 }
+ NumberAnimation on x { to: 200 }
}
}
diff --git a/tests/auto/declarative/qdeclarativeanimations/data/properties2.qml b/tests/auto/declarative/qdeclarativeanimations/data/properties2.qml
index 6c96155..b1f2020 100644
--- a/tests/auto/declarative/qdeclarativeanimations/data/properties2.qml
+++ b/tests/auto/declarative/qdeclarativeanimations/data/properties2.qml
@@ -9,6 +9,6 @@ Rectangle {
color: "red"
width: 50; height: 50
x: 100; y: 100
- x: NumberAnimation { targets: theRect; properties: "x"; to: 200; }
+ NumberAnimation on x { targets: theRect; properties: "x"; to: 200; }
}
}
diff --git a/tests/auto/declarative/qdeclarativeanimations/data/properties3.qml b/tests/auto/declarative/qdeclarativeanimations/data/properties3.qml
index ff08885..0a0ed6f 100644
--- a/tests/auto/declarative/qdeclarativeanimations/data/properties3.qml
+++ b/tests/auto/declarative/qdeclarativeanimations/data/properties3.qml
@@ -9,6 +9,6 @@ Rectangle {
color: "red"
width: 50; height: 50
x: 100; y: 100
- x: NumberAnimation { target: theRect; property: "x"; to: 300; }
+ NumberAnimation on x { target: theRect; property: "x"; to: 300; }
}
}
diff --git a/tests/auto/declarative/qdeclarativeanimations/data/properties4.qml b/tests/auto/declarative/qdeclarativeanimations/data/properties4.qml
index dab7e5f..a90f004 100644
--- a/tests/auto/declarative/qdeclarativeanimations/data/properties4.qml
+++ b/tests/auto/declarative/qdeclarativeanimations/data/properties4.qml
@@ -9,6 +9,6 @@ Rectangle {
color: "red"
width: 50; height: 50
x: 100; y: 100
- x: NumberAnimation { target: theRect; property: "y"; to: 200; }
+ NumberAnimation on x { target: theRect; property: "y"; to: 200; }
}
}
diff --git a/tests/auto/declarative/qdeclarativeanimations/data/properties5.qml b/tests/auto/declarative/qdeclarativeanimations/data/properties5.qml
index 38396b1..7d3cec9 100644
--- a/tests/auto/declarative/qdeclarativeanimations/data/properties5.qml
+++ b/tests/auto/declarative/qdeclarativeanimations/data/properties5.qml
@@ -9,6 +9,6 @@ Rectangle {
color: "red"
width: 50; height: 50
x: 100; y: 100
- x: NumberAnimation { targets: theRect; properties: "y"; to: 200; }
+ NumberAnimation on x { targets: theRect; properties: "y"; to: 200; }
}
}
diff --git a/tests/auto/declarative/qdeclarativeanimations/data/valuesource.qml b/tests/auto/declarative/qdeclarativeanimations/data/valuesource.qml
index c35063d..2260440 100644
--- a/tests/auto/declarative/qdeclarativeanimations/data/valuesource.qml
+++ b/tests/auto/declarative/qdeclarativeanimations/data/valuesource.qml
@@ -9,6 +9,6 @@ Rectangle {
color: "red"
width: 50; height: 50
x: 100; y: 100
- x: NumberAnimation { id: anim; objectName: "MyAnim"; to: 200 }
+ NumberAnimation on x { id: anim; objectName: "MyAnim"; to: 200 }
}
}
diff --git a/tests/auto/declarative/qdeclarativeanimations/data/valuesource2.qml b/tests/auto/declarative/qdeclarativeanimations/data/valuesource2.qml
index 1a60542..36d6c72 100644
--- a/tests/auto/declarative/qdeclarativeanimations/data/valuesource2.qml
+++ b/tests/auto/declarative/qdeclarativeanimations/data/valuesource2.qml
@@ -9,6 +9,6 @@ Rectangle {
color: "red"
width: 50; height: 50
x: 100; y: 100
- x: NumberAnimation { id: anim; objectName: "MyAnim"; running: false; to: 200 }
+ NumberAnimation on x { id: anim; objectName: "MyAnim"; running: false; to: 200 }
}
}
diff --git a/tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp b/tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp
index 53c63b5..f5e15fb 100644
--- a/tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp
+++ b/tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp
@@ -217,21 +217,21 @@ void tst_qdeclarativeanimations::resume()
animation.setProperty("x");
animation.setFrom(10);
animation.setTo(200);
- animation.setDuration(500);
+ animation.setDuration(1000);
QVERIFY(animation.from() == 10);
animation.start();
- QTest::qWait(100);
+ QTest::qWait(400);
animation.pause();
qreal x = rect.x();
- QVERIFY(x != qreal(200));
+ QVERIFY(x != qreal(200) && x != qreal(10));
QVERIFY(animation.isRunning());
QVERIFY(animation.isPaused());
animation.resume();
QVERIFY(animation.isRunning());
QVERIFY(!animation.isPaused());
- QTest::qWait(100);
+ QTest::qWait(400);
animation.stop();
QVERIFY(rect.x() > x);
}
diff --git a/tests/auto/declarative/qdeclarativebehaviors/data/binding.qml b/tests/auto/declarative/qdeclarativebehaviors/data/binding.qml
index 201da37..e982f21 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/data/binding.qml
+++ b/tests/auto/declarative/qdeclarativebehaviors/data/binding.qml
@@ -9,7 +9,7 @@ Rectangle {
objectName: "MyRect"
width: 100; height: 100; color: "green"
x: basex
- x: Behavior { NumberAnimation { duration: 500; } }
+ Behavior on x { NumberAnimation { duration: 500; } }
}
MouseArea {
id: clicker
diff --git a/tests/auto/declarative/qdeclarativebehaviors/data/color.qml b/tests/auto/declarative/qdeclarativebehaviors/data/color.qml
index 91dbbd1..f2f4742 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/data/color.qml
+++ b/tests/auto/declarative/qdeclarativebehaviors/data/color.qml
@@ -7,7 +7,7 @@ Rectangle {
objectName: "MyRect"
width: 100; height: 100;
color: "green"
- color: Behavior { ColorAnimation { duration: 500; } }
+ Behavior on color { ColorAnimation { duration: 500; } }
}
MouseArea {
id: clicker
diff --git a/tests/auto/declarative/qdeclarativebehaviors/data/cpptrigger.qml b/tests/auto/declarative/qdeclarativebehaviors/data/cpptrigger.qml
index 8d032f0..3ea9376 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/data/cpptrigger.qml
+++ b/tests/auto/declarative/qdeclarativebehaviors/data/cpptrigger.qml
@@ -6,6 +6,6 @@ Rectangle {
id: rect
objectName: "MyRect"
width: 100; height: 100; color: "green"
- x: Behavior { NumberAnimation { duration: 500; } }
+ Behavior on x { NumberAnimation { duration: 500; } }
}
}
diff --git a/tests/auto/declarative/qdeclarativebehaviors/data/disabled.qml b/tests/auto/declarative/qdeclarativebehaviors/data/disabled.qml
index 3c7078a..1403eb9 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/data/disabled.qml
+++ b/tests/auto/declarative/qdeclarativebehaviors/data/disabled.qml
@@ -6,7 +6,7 @@ Rectangle {
id: rect
objectName: "MyRect"
width: 100; height: 100; color: "green"
- x: Behavior {
+ Behavior on x {
objectName: "MyBehavior";
enabled: false
NumberAnimation { duration: 200; }
diff --git a/tests/auto/declarative/qdeclarativebehaviors/data/dontStart.qml b/tests/auto/declarative/qdeclarativebehaviors/data/dontStart.qml
index ba7cc9c..12b1b7b 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/data/dontStart.qml
+++ b/tests/auto/declarative/qdeclarativebehaviors/data/dontStart.qml
@@ -9,7 +9,7 @@ Rectangle {
id: redRect
width: 100; height: 100
color: Qt.rgba(1,0,0)
- x: Behavior {
+ Behavior on x {
NumberAnimation { objectName: "MyAnim"; running: true }
}
diff --git a/tests/auto/declarative/qdeclarativebehaviors/data/empty.qml b/tests/auto/declarative/qdeclarativebehaviors/data/empty.qml
index 95d934a..5e30f03 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/data/empty.qml
+++ b/tests/auto/declarative/qdeclarativebehaviors/data/empty.qml
@@ -6,7 +6,7 @@ Rectangle {
id: rect
objectName: "MyRect"
width: 100; height: 100; color: "green"
- x: Behavior {}
+ Behavior on x {}
}
MouseArea {
id: clicker
diff --git a/tests/auto/declarative/qdeclarativebehaviors/data/explicit.qml b/tests/auto/declarative/qdeclarativebehaviors/data/explicit.qml
index 1b2025a..ca0ea54 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/data/explicit.qml
+++ b/tests/auto/declarative/qdeclarativebehaviors/data/explicit.qml
@@ -6,7 +6,7 @@ Rectangle {
id: rect
objectName: "MyRect"
width: 100; height: 100; color: "green"
- x: Behavior {
+ Behavior on x {
objectName: "MyBehavior";
NumberAnimation { target: rect; property: "x"; duration: 500; }
}
diff --git a/tests/auto/declarative/qdeclarativebehaviors/data/groupProperty.qml b/tests/auto/declarative/qdeclarativebehaviors/data/groupProperty.qml
index 14883d4..a6c4ed9 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/data/groupProperty.qml
+++ b/tests/auto/declarative/qdeclarativebehaviors/data/groupProperty.qml
@@ -6,7 +6,7 @@ Rectangle {
id: rect
objectName: "MyRect"
width: 100; height: 100; color: "green"
- pos: Behavior { PropertyAnimation { duration: 500; } }
+ Behavior on pos { PropertyAnimation { duration: 500; } }
}
MouseArea {
id: clicker
diff --git a/tests/auto/declarative/qdeclarativebehaviors/data/groupProperty2.qml b/tests/auto/declarative/qdeclarativebehaviors/data/groupProperty2.qml
index b43ddbc..2dda220 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/data/groupProperty2.qml
+++ b/tests/auto/declarative/qdeclarativebehaviors/data/groupProperty2.qml
@@ -6,7 +6,7 @@ Rectangle {
id: rect
objectName: "MyRect"
width: 100; height: 100; color: "green"
- pos.x: Behavior { NumberAnimation { duration: 500; } }
+ Behavior on pos.x { NumberAnimation { duration: 500; } }
}
MouseArea {
id: clicker
diff --git a/tests/auto/declarative/qdeclarativebehaviors/data/loop.qml b/tests/auto/declarative/qdeclarativebehaviors/data/loop.qml
index 5f2c057..6187768 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/data/loop.qml
+++ b/tests/auto/declarative/qdeclarativebehaviors/data/loop.qml
@@ -6,7 +6,7 @@ Rectangle {
id: rect
objectName: "MyRect"
width: 100; height: 100; color: "green"
- x: Behavior { NumberAnimation { duration: 200; } }
+ Behavior on x { NumberAnimation { duration: 200; } }
onXChanged: x = 100;
}
states: State {
diff --git a/tests/auto/declarative/qdeclarativebehaviors/data/nonSelecting2.qml b/tests/auto/declarative/qdeclarativebehaviors/data/nonSelecting2.qml
index f267a05..640a7d1 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/data/nonSelecting2.qml
+++ b/tests/auto/declarative/qdeclarativebehaviors/data/nonSelecting2.qml
@@ -6,7 +6,7 @@ Rectangle {
id: rect
objectName: "MyRect"
width: 100; height: 100; color: "green"
- x: Behavior {
+ Behavior on x {
objectName: "MyBehavior";
NumberAnimation { targets: rect; properties: "y"; duration: 200; }
}
diff --git a/tests/auto/declarative/qdeclarativebehaviors/data/parent.qml b/tests/auto/declarative/qdeclarativebehaviors/data/parent.qml
index 7c7fdcb..3860ec7 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/data/parent.qml
+++ b/tests/auto/declarative/qdeclarativebehaviors/data/parent.qml
@@ -6,7 +6,7 @@ Rectangle {
id: rect
objectName: "MyRect"
width: 100; height: 100; color: "green"
- parent: Behavior {
+ Behavior on parent {
SequentialAnimation {
PauseAnimation { duration: 500 }
PropertyAction {}
diff --git a/tests/auto/declarative/qdeclarativebehaviors/data/reassignedAnimation.qml b/tests/auto/declarative/qdeclarativebehaviors/data/reassignedAnimation.qml
index ba744b1..6419a6b 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/data/reassignedAnimation.qml
+++ b/tests/auto/declarative/qdeclarativebehaviors/data/reassignedAnimation.qml
@@ -6,7 +6,7 @@ Rectangle {
id: rect
objectName: "MyRect"
width: 100; height: 100; color: "green"
- x: Behavior {
+ Behavior on x {
objectName: "MyBehavior"
NumberAnimation { duration: 200 }
NumberAnimation { duration: 1000 }
diff --git a/tests/auto/declarative/qdeclarativebehaviors/data/scripttrigger.qml b/tests/auto/declarative/qdeclarativebehaviors/data/scripttrigger.qml
index a91ca88..b22441a 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/data/scripttrigger.qml
+++ b/tests/auto/declarative/qdeclarativebehaviors/data/scripttrigger.qml
@@ -11,6 +11,6 @@ Rectangle {
id: rect
objectName: "MyRect"
width: 100; height: 100; color: "green"
- x: Behavior { NumberAnimation { duration: 500; } }
+ Behavior on x { NumberAnimation { duration: 500; } }
}
}
diff --git a/tests/auto/declarative/qdeclarativebehaviors/data/simple.qml b/tests/auto/declarative/qdeclarativebehaviors/data/simple.qml
index ac98ed0..c28fa9a 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/data/simple.qml
+++ b/tests/auto/declarative/qdeclarativebehaviors/data/simple.qml
@@ -6,7 +6,7 @@ Rectangle {
id: rect
objectName: "MyRect"
width: 100; height: 100; color: "green"
- x: Behavior {
+ Behavior on x {
objectName: "MyBehavior";
NumberAnimation { duration: 500; }
}
diff --git a/tests/auto/declarative/qdeclarativebehaviors/tst_qdeclarativebehaviors.cpp b/tests/auto/declarative/qdeclarativebehaviors/tst_qdeclarativebehaviors.cpp
index f87330d..0bf0b81 100644
--- a/tests/auto/declarative/qdeclarativebehaviors/tst_qdeclarativebehaviors.cpp
+++ b/tests/auto/declarative/qdeclarativebehaviors/tst_qdeclarativebehaviors.cpp
@@ -260,7 +260,7 @@ void tst_qdeclarativebehaviors::reassignedAnimation()
{
QDeclarativeEngine engine;
QDeclarativeComponent c(&engine, QUrl::fromLocalFile(SRCDIR "/data/reassignedAnimation.qml"));
- QTest::ignoreMessage(QtWarningMsg, QString("QML Behavior (" + QUrl::fromLocalFile(SRCDIR "/data/reassignedAnimation.qml").toString() + ":9:12) Cannot change the animation assigned to a Behavior.").toUtf8().constData());
+ QTest::ignoreMessage(QtWarningMsg, QString("QML Behavior (" + QUrl::fromLocalFile(SRCDIR "/data/reassignedAnimation.qml").toString() + ":9:9) Cannot change the animation assigned to a Behavior.").toUtf8().constData());
QDeclarativeRectangle *rect = qobject_cast<QDeclarativeRectangle*>(c.create());
QVERIFY(rect);
QCOMPARE(qobject_cast<QDeclarativeNumberAnimation*>(
diff --git a/tests/auto/declarative/qdeclarativecomponent/qdeclarativecomponent.pro b/tests/auto/declarative/qdeclarativecomponent/qdeclarativecomponent.pro
new file mode 100644
index 0000000..c7affb7
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativecomponent/qdeclarativecomponent.pro
@@ -0,0 +1,8 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+QT += script network
+macx:CONFIG -= app_bundle
+
+SOURCES += tst_qdeclarativecomponent.cpp
+
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/qdeclarativewebview/testtypes.h b/tests/auto/declarative/qdeclarativecomponent/tst_qdeclarativecomponent.cpp
index 8eb703f..c9e304c 100644
--- a/tests/auto/declarative/qdeclarativewebview/testtypes.h
+++ b/tests/auto/declarative/qdeclarativecomponent/tst_qdeclarativecomponent.cpp
@@ -38,29 +38,38 @@
** $QT_END_LICENSE$
**
****************************************************************************/
-#ifndef TESTTYPES_H
-#define TESTTYPES_H
+#include <qtest.h>
-#include <private/qdeclarativewebview_p.h>
+#include <QtDeclarative/qdeclarativeengine.h>
+#include <QtDeclarative/qdeclarativecomponent.h>
-class MyWebView : public QDeclarativeWebView
+class tst_qdeclarativecomponent : public QObject
{
Q_OBJECT
- Q_PROPERTY(int pixelsPainted READ pixelsPainted);
-
public:
- MyWebView() : pp(0) {}
-
- int pixelsPainted() const { return pp; }
+ tst_qdeclarativecomponent() { }
- void drawContents(QPainter *p, const QRect &r);
+private slots:
+ void loadEmptyUrl();
private:
- int pp;
+ QDeclarativeEngine engine;
};
-QML_DECLARE_TYPE(MyWebView);
+void tst_qdeclarativecomponent::loadEmptyUrl()
+{
+ QDeclarativeComponent c(&engine);
+ c.loadUrl(QUrl());
+
+ QVERIFY(c.isError());
+ QCOMPARE(c.errors().count(), 1);
+ QDeclarativeError error = c.errors().first();
+ QCOMPARE(error.url(), QUrl());
+ QCOMPARE(error.line(), -1);
+ QCOMPARE(error.column(), -1);
+ QCOMPARE(error.description(), QLatin1String("Invalid empty URL"));
+}
-void registerTypes();
+QTEST_MAIN(tst_qdeclarativecomponent)
-#endif // TESTTYPES_H
+#include "tst_qdeclarativecomponent.moc"
diff --git a/tests/auto/declarative/qdeclarativecontext/tst_qdeclarativecontext.cpp b/tests/auto/declarative/qdeclarativecontext/tst_qdeclarativecontext.cpp
index 5f03989..f0117f5 100644
--- a/tests/auto/declarative/qdeclarativecontext/tst_qdeclarativecontext.cpp
+++ b/tests/auto/declarative/qdeclarativecontext/tst_qdeclarativecontext.cpp
@@ -60,6 +60,7 @@ private slots:
void setContextProperty();
void addDefaultObject();
void destruction();
+ void idAsContextProperty();
private:
QDeclarativeEngine engine;
@@ -429,6 +430,25 @@ void tst_qdeclarativecontext::destruction()
QCOMPARE(ctxt, expr.context());
}
+void tst_qdeclarativecontext::idAsContextProperty()
+{
+ QDeclarativeComponent component(&engine);
+ component.setData("import Qt 4.6; QtObject { property var a; a: QtObject { id: myObject } }", QUrl());
+
+ QObject *obj = component.create();
+ QVERIFY(obj);
+
+ QVariant a = obj->property("a");
+ QVERIFY(a.userType() == QMetaType::QObjectStar);
+
+ QVariant ctxt = qmlContext(obj)->contextProperty("myObject");
+ QVERIFY(ctxt.userType() == QMetaType::QObjectStar);
+
+ QVERIFY(a == ctxt);
+
+ delete obj;
+}
+
QTEST_MAIN(tst_qdeclarativecontext)
#include "tst_qdeclarativecontext.moc"
diff --git a/tests/auto/declarative/qdeclarativedom/tst_qdeclarativedom.cpp b/tests/auto/declarative/qdeclarativedom/tst_qdeclarativedom.cpp
index 9543280..6cd0bdb 100644
--- a/tests/auto/declarative/qdeclarativedom/tst_qdeclarativedom.cpp
+++ b/tests/auto/declarative/qdeclarativedom/tst_qdeclarativedom.cpp
@@ -274,7 +274,7 @@ void tst_qdeclarativedom::loadComposite()
void tst_qdeclarativedom::testValueSource()
{
QByteArray qml = "import Qt 4.6\n"
- "Rectangle { height: SpringFollow { spring: 1.4; damping: .15; source: Math.min(Math.max(-130, value*2.2 - 130), 133); }}";
+ "Rectangle { SpringFollow on height { spring: 1.4; damping: .15; source: Math.min(Math.max(-130, value*2.2 - 130), 133); }}";
QDeclarativeEngine freshEngine;
QDeclarativeDomDocument document;
@@ -306,7 +306,7 @@ void tst_qdeclarativedom::testValueSource()
void tst_qdeclarativedom::testValueInterceptor()
{
QByteArray qml = "import Qt 4.6\n"
- "Rectangle { height: Behavior { NumberAnimation { duration: 100 } } }";
+ "Rectangle { Behavior on height { NumberAnimation { duration: 100 } } }";
QDeclarativeEngine freshEngine;
QDeclarativeDomDocument document;
@@ -823,8 +823,8 @@ void tst_qdeclarativedom::copy()
" property int a: 10\n"
" x: 10\n"
" y: x + 10\n"
- " z: NumberAnimation {}\n"
- " opacity: Behavior {}\n"
+ " NumberAnimation on z {}\n"
+ " Behavior on opacity {}\n"
" Component {\n"
" Item{}\n"
" }\n"
@@ -1193,18 +1193,18 @@ void tst_qdeclarativedom::copy()
void tst_qdeclarativedom::position()
{
QByteArray qml = "import Qt 4.6\n"
- /*14*/ "Item {\n"
- /*21*/ " id: myItem\n"
- /*36*/ " property int a: 10\n"
- /*59*/ " x: 10\n"
- /*69*/ " y: x + 10\n"
- /*83*/ " z: NumberAnimation {}\n"
- /*109*/ " opacity: Behavior {}\n"
- /*134*/ " Component {\n"
- /*150*/ " Item{}\n"
- /*165*/ " }\n"
- /*171*/ " children: [ Item{}, Item{} ]\n"
- /*204*/ "}\n";
+ "Item {\n"
+ " id: myItem\n"
+ " property int a: 10\n"
+ " x: 10\n"
+ " y: x + 10\n"
+ " NumberAnimation on z {}\n"
+ " Behavior on opacity {}\n"
+ " Component {\n"
+ " Item{}\n"
+ " }\n"
+ " children: [ Item{}, Item{} ]\n"
+ "}\n";
QDeclarativeDomDocument document;
@@ -1227,19 +1227,19 @@ void tst_qdeclarativedom::position()
QCOMPARE(y.length(), 1);
QDeclarativeDomProperty z = root.property("z");
- QCOMPARE(z.position(), 87);
+ QCOMPARE(z.position(), 106);
QCOMPARE(z.length(), 1);
QDeclarativeDomProperty opacity = root.property("opacity");
- QCOMPARE(opacity.position(), 113);
+ QCOMPARE(opacity.position(), 127);
QCOMPARE(opacity.length(), 7);
QDeclarativeDomProperty data = root.property("data");
- QCOMPARE(data.position(), 138);
+ QCOMPARE(data.position(), 142);
QCOMPARE(data.length(), 0);
QDeclarativeDomProperty children = root.property("children");
- QCOMPARE(children.position(), 175);
+ QCOMPARE(children.position(), 179);
QCOMPARE(children.length(), 8);
QDeclarativeDomList dataList = data.value().toList();
@@ -1249,30 +1249,30 @@ void tst_qdeclarativedom::position()
// All QDeclarativeDomObject
QCOMPARE(root.position(), 14);
- QCOMPARE(root.length(), 191);
+ QCOMPARE(root.length(), 195);
QDeclarativeDomObject numberAnimation = z.value().toValueSource().object();
- QCOMPARE(numberAnimation.position(), 90);
- QCOMPARE(numberAnimation.length(), 18);
+ QCOMPARE(numberAnimation.position(), 87);
+ QCOMPARE(numberAnimation.length(), 23);
QDeclarativeDomObject behavior = opacity.value().toValueInterceptor().object();
- QCOMPARE(behavior.position(), 122);
- QCOMPARE(behavior.length(), 11);
+ QCOMPARE(behavior.position(), 115);
+ QCOMPARE(behavior.length(), 22);
QDeclarativeDomObject component = dataList.values().at(0).toObject();
- QCOMPARE(component.position(), 138);
+ QCOMPARE(component.position(), 142);
QCOMPARE(component.length(), 32);
QDeclarativeDomObject componentRoot = component.toComponent().componentRoot();
- QCOMPARE(componentRoot.position(), 158);
+ QCOMPARE(componentRoot.position(), 162);
QCOMPARE(componentRoot.length(), 6);
QDeclarativeDomObject child1 = childrenList.values().at(0).toObject();
- QCOMPARE(child1.position(), 187);
+ QCOMPARE(child1.position(), 191);
QCOMPARE(child1.length(), 6);
QDeclarativeDomObject child2 = childrenList.values().at(1).toObject();
- QCOMPARE(child2.position(), 195);
+ QCOMPARE(child2.position(), 199);
QCOMPARE(child2.length(), 6);
// All QDeclarativeDomValue
@@ -1285,23 +1285,23 @@ void tst_qdeclarativedom::position()
QCOMPARE(yValue.length(), 6);
QDeclarativeDomValue zValue = z.value();
- QCOMPARE(zValue.position(), 90);
- QCOMPARE(zValue.length(), 18);
+ QCOMPARE(zValue.position(), 87);
+ QCOMPARE(zValue.length(), 23);
QDeclarativeDomValue opacityValue = opacity.value();
- QCOMPARE(opacityValue.position(), 122);
- QCOMPARE(opacityValue.length(), 11);
+ QCOMPARE(opacityValue.position(), 115);
+ QCOMPARE(opacityValue.length(), 22);
QDeclarativeDomValue dataValue = data.value();
- QCOMPARE(dataValue.position(), 138);
+ QCOMPARE(dataValue.position(), 142);
QCOMPARE(dataValue.length(), 32);
QDeclarativeDomValue child1Value = childrenList.values().at(0);
- QCOMPARE(child1Value.position(), 187);
+ QCOMPARE(child1Value.position(), 191);
QCOMPARE(child1Value.length(), 6);
QDeclarativeDomValue child2Value = childrenList.values().at(1);
- QCOMPARE(child2Value.position(), 195);
+ QCOMPARE(child2Value.position(), 199);
QCOMPARE(child2Value.length(), 6);
// All QDeclarativeDomList
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/attachedPropertyScope.qml b/tests/auto/declarative/qdeclarativeecmascript/data/attachedPropertyScope.qml
new file mode 100644
index 0000000..4b5464d
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeecmascript/data/attachedPropertyScope.qml
@@ -0,0 +1,9 @@
+import Qt 4.6
+import Qt.test 1.0
+
+QtObject {
+ property int value: 9
+ property int value2
+
+ MyQmlObject.onMySignal: value2 = value
+}
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/methods.5.qml b/tests/auto/declarative/qdeclarativeecmascript/data/methods.5.qml
index 3d45b15..5ba324a 100644
--- a/tests/auto/declarative/qdeclarativeecmascript/data/methods.5.qml
+++ b/tests/auto/declarative/qdeclarativeecmascript/data/methods.5.qml
@@ -1,7 +1,7 @@
import Qt 4.6
Item {
- property alias x: item.x
+ property alias blah: item.x
Item { id: item }
function testFunction() { return 9; }
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/scope.3.qml b/tests/auto/declarative/qdeclarativeecmascript/data/scope.3.qml
new file mode 100644
index 0000000..4ad7f34
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeecmascript/data/scope.3.qml
@@ -0,0 +1,13 @@
+import Qt 4.6
+
+Item {
+ id: root
+
+ property int foo: 12
+ property int console: 11
+
+ property bool test1: foo == 12
+ property bool test2: console != 11
+ property bool test3: root.console == 11
+}
+
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/scope.4.qml b/tests/auto/declarative/qdeclarativeecmascript/data/scope.4.qml
new file mode 100644
index 0000000..d65b6e7
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeecmascript/data/scope.4.qml
@@ -0,0 +1,12 @@
+import Qt.test 1.0
+
+MyQmlObject {
+ id: a
+ property int b: 9
+
+ property int test
+ property string test2
+
+ // Should resolve to signal arguments, not to other elements in the file
+ onArgumentSignal: { test = a; test2 = b; }
+}
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/scriptScope.1.qml b/tests/auto/declarative/qdeclarativeecmascript/data/scriptScope.1.qml
new file mode 100644
index 0000000..9b11fa9
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeecmascript/data/scriptScope.1.qml
@@ -0,0 +1,13 @@
+import Qt.test 1.0
+
+MyQmlObject {
+ property string result
+
+ Script{
+ function f() {
+ result = b
+ }
+
+ }
+ onArgumentSignal: f()
+}
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/scriptScope.2.qml b/tests/auto/declarative/qdeclarativeecmascript/data/scriptScope.2.qml
new file mode 100644
index 0000000..ec727e2
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeecmascript/data/scriptScope.2.qml
@@ -0,0 +1,11 @@
+import Qt.test 1.0
+
+MyQmlObject {
+ property string result
+ property string aProp: "hello"
+
+ Script{
+ source: "scriptScope.js"
+ }
+ onBasicSignal: f()
+}
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/scriptScope.js b/tests/auto/declarative/qdeclarativeecmascript/data/scriptScope.js
new file mode 100644
index 0000000..5689930
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeecmascript/data/scriptScope.js
@@ -0,0 +1,5 @@
+var aProp = "world";
+
+function f() {
+ result = aProp;
+}
diff --git a/tests/auto/declarative/qdeclarativeecmascript/testtypes.h b/tests/auto/declarative/qdeclarativeecmascript/testtypes.h
index 8fbd071..a283e3f 100644
--- a/tests/auto/declarative/qdeclarativeecmascript/testtypes.h
+++ b/tests/auto/declarative/qdeclarativeecmascript/testtypes.h
@@ -60,10 +60,21 @@ class MyQmlAttachedObject : public QObject
{
Q_OBJECT
Q_PROPERTY(int value READ value CONSTANT)
+ Q_PROPERTY(int value2 READ value2 WRITE setValue2)
public:
- MyQmlAttachedObject(QObject *parent) : QObject(parent) {}
+ MyQmlAttachedObject(QObject *parent) : QObject(parent), m_value2(0) {}
int value() const { return 19; }
+ int value2() const { return m_value2; }
+ void setValue2(int v) { m_value2 = v; }
+
+ void emitMySignal() { emit mySignal(); }
+
+signals:
+ void mySignal();
+
+private:
+ int m_value2;
};
class MyQmlObject : public QObject
diff --git a/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp b/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp
index 60c380c..b5649cb 100644
--- a/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp
+++ b/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp
@@ -122,6 +122,8 @@ private slots:
void listToVariant();
void multiEngineObject();
void deletedObject();
+ void scriptScope();
+ void attachedPropertyScope();
void bug1();
@@ -728,6 +730,33 @@ void tst_qdeclarativeecmascript::scope()
QCOMPARE(object->property("test5").toInt(), 24);
QCOMPARE(object->property("test6").toInt(), 24);
}
+
+ {
+ QDeclarativeComponent component(&engine, TEST_FILE("scope.3.qml"));
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+
+ QCOMPARE(object->property("test1").toBool(), true);
+ QCOMPARE(object->property("test2").toBool(), true);
+ QCOMPARE(object->property("test3").toBool(), true);
+ }
+
+ // Signal argument scope
+ {
+ QDeclarativeComponent component(&engine, TEST_FILE("scope.4.qml"));
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
+ QVERIFY(object != 0);
+
+ QCOMPARE(object->property("test").toInt(), 0);
+ QCOMPARE(object->property("test2").toString(), QString());
+
+ emit object->argumentSignal(13, "Argument Scope", 9);
+
+ QCOMPARE(object->property("test").toInt(), 13);
+ QCOMPARE(object->property("test2").toString(), QString("Argument Scope"));
+
+ delete object;
+ }
}
/*
@@ -1657,6 +1686,51 @@ void tst_qdeclarativeecmascript::deletedObject()
delete object;
}
+void tst_qdeclarativeecmascript::scriptScope()
+{
+ {
+ QDeclarativeComponent component(&engine, TEST_FILE("scriptScope.1.qml"));
+
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
+ QVERIFY(object != 0);
+ emit object->argumentSignal(19, "Hello world!", 10.3);
+ QCOMPARE(object->property("result").toString(), QString());
+
+ delete object;
+ }
+
+ {
+ QDeclarativeComponent component(&engine, TEST_FILE("scriptScope.2.qml"));
+
+ MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
+ QVERIFY(object != 0);
+ emit object->basicSignal();
+ QCOMPARE(object->property("result").toString(), QLatin1String("world"));
+
+ delete object;
+ }
+}
+
+void tst_qdeclarativeecmascript::attachedPropertyScope()
+{
+ QDeclarativeComponent component(&engine, TEST_FILE("attachedPropertyScope.qml"));
+
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+
+ MyQmlAttachedObject *attached =
+ qobject_cast<MyQmlAttachedObject *>(qmlAttachedPropertiesObject<MyQmlObject>(object));
+ QVERIFY(attached != 0);
+
+ QCOMPARE(object->property("value2").toInt(), 0);
+
+ attached->emitMySignal();
+
+ QCOMPARE(object->property("value2").toInt(), 9);
+
+ delete object;
+}
+
QTEST_MAIN(tst_qdeclarativeecmascript)
#include "tst_qdeclarativeecmascript.moc"
diff --git a/tests/auto/declarative/qdeclarativegridview/data/gridview.qml b/tests/auto/declarative/qdeclarativegridview/data/gridview.qml
index 344b4b5..ba6b807 100644
--- a/tests/auto/declarative/qdeclarativegridview/data/gridview.qml
+++ b/tests/auto/declarative/qdeclarativegridview/data/gridview.qml
@@ -1,6 +1,10 @@
import Qt 4.6
Rectangle {
+ id: root
+ property int added: -1
+ property var removed
+
width: 240
height: 320
color: "#ffffff"
@@ -33,6 +37,8 @@ Rectangle {
text: number
}
color: GridView.isCurrentItem ? "lightsteelblue" : "white"
+ GridView.onAdd: root.added = index
+ GridView.onRemove: root.removed = name
}
}
]
diff --git a/tests/auto/declarative/qdeclarativegridview/data/propertychanges.qml b/tests/auto/declarative/qdeclarativegridview/data/propertychanges.qml
new file mode 100644
index 0000000..da2e8d0
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativegridview/data/propertychanges.qml
@@ -0,0 +1,69 @@
+import Qt 4.6
+
+Rectangle {
+ width: 360; height: 120; color: "white"
+ Component {
+ id: delegate
+ Item {
+ id: wrapper
+ width: 180; height: 40;
+ Column {
+ x: 5; y: 5
+ Text { text: '<b>Name:</b> ' + name }
+ Text { text: '<b>Number:</b> ' + number }
+ }
+ }
+ }
+ Component {
+ id: highlightRed
+ Rectangle {
+ color: "red"
+ radius: 10
+ opacity: 0.5
+ }
+ }
+ GridView {
+ cellWidth:180
+ cellHeight:40
+ objectName: "gridView"
+ anchors.fill: parent
+ model: listModel
+ delegate: delegate
+ highlight: highlightRed
+ focus: true
+ keyNavigationWraps: true
+ cacheBuffer: 10
+ flow: GridView.LeftToRight
+ }
+
+ data:[
+ ListModel {
+ id: listModel
+ ListElement {
+ name: "Bill Smith"
+ number: "555 3264"
+ }
+ ListElement {
+ name: "John Brown"
+ number: "555 8426"
+ }
+ ListElement {
+ name: "Sam Wise"
+ number: "555 0473"
+ }
+ },
+ ListModel {
+ objectName: "alternateModel"
+ ListElement {
+ name: "Jack"
+ number: "555 8426"
+ }
+ ListElement {
+ name: "Mary"
+ number: "555 3264"
+ }
+ }
+ ]
+}
+
+ \ No newline at end of file
diff --git a/tests/auto/declarative/qdeclarativegridview/tst_qdeclarativegridview.cpp b/tests/auto/declarative/qdeclarativegridview/tst_qdeclarativegridview.cpp
index 2a60fee..7ade309 100644
--- a/tests/auto/declarative/qdeclarativegridview/tst_qdeclarativegridview.cpp
+++ b/tests/auto/declarative/qdeclarativegridview/tst_qdeclarativegridview.cpp
@@ -39,16 +39,17 @@
**
****************************************************************************/
-#include <qdeclarativeengine.h>
-#include <qdeclarativecomponent.h>
-#include <QStringListModel>
#include <QtTest/QtTest>
-#include <private/qlistmodelinterface_p.h>
-#include <qdeclarativeview.h>
-#include <private/qdeclarativegridview_p.h>
-#include <private/qdeclarativetext_p.h>
-#include <qdeclarativecontext.h>
-#include <qdeclarativeexpression.h>
+#include <QtGui/qstringlistmodel.h>
+#include <QtDeclarative/qdeclarativeview.h>
+#include <QtDeclarative/qdeclarativeengine.h>
+#include <QtDeclarative/qdeclarativecomponent.h>
+#include <QtDeclarative/qdeclarativecontext.h>
+#include <QtDeclarative/qdeclarativeexpression.h>
+#include <QtDeclarative/private/qlistmodelinterface_p.h>
+#include <QtDeclarative/private/qdeclarativegridview_p.h>
+#include <QtDeclarative/private/qdeclarativetext_p.h>
+#include <QtDeclarative/private/qdeclarativelistmodel_p.h>
class tst_QDeclarativeGridView : public QObject
{
@@ -66,6 +67,9 @@ private slots:
void currentIndex();
void defaultValues();
void properties();
+ void propertyChanges();
+ void componentChanges();
+ void modelChanges();
void positionViewAtIndex();
void resetModel();
void QTBUG_8456();
@@ -91,7 +95,7 @@ public:
setRoleNames(roles);
}
- int rowCount(const QModelIndex &parent=QModelIndex()) const { return list.count(); }
+ int rowCount(const QModelIndex &parent=QModelIndex()) const { Q_UNUSED(parent); return list.count(); }
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const {
QVariant rv;
if (role == Name)
@@ -253,7 +257,7 @@ void tst_QDeclarativeGridView::inserted()
model.insertItem(1, "Will", "9876");
// let transitions settle.
- QTest::qWait(300);
+ QTest::qWait(100);
QCOMPARE(viewport->childItems().count(), model.count()+1); // assumes all are visible, +1 for the (default) highlight item
@@ -264,6 +268,10 @@ void tst_QDeclarativeGridView::inserted()
QVERIFY(number != 0);
QCOMPARE(number->text(), model.number(1));
+ // Checks that onAdd is called
+ int added = canvas->rootObject()->property("added").toInt();
+ QCOMPARE(added, 1);
+
// Confirm items positioned correctly
for (int i = 0; i < model.count(); ++i) {
QDeclarativeItem *item = findItem<QDeclarativeItem>(viewport, "wrapper", i);
@@ -274,7 +282,7 @@ void tst_QDeclarativeGridView::inserted()
model.insertItem(0, "Foo", "1111"); // zero index, and current item
// let transitions settle.
- QTest::qWait(300);
+ QTest::qWait(100);
QCOMPARE(viewport->childItems().count(), model.count()+1); // assumes all are visible, +1 for the (default) highlight item
@@ -296,14 +304,14 @@ void tst_QDeclarativeGridView::inserted()
for (int i = model.count(); i < 30; ++i)
model.insertItem(i, "Hello", QString::number(i));
- QTest::qWait(300);
+ QTest::qWait(100);
gridview->setContentY(120);
- QTest::qWait(300);
+ QTest::qWait(100);
// Insert item outside visible area
model.insertItem(1, "Hello", "1324");
- QTest::qWait(300);
+ QTest::qWait(100);
QVERIFY(gridview->contentY() == 120);
@@ -334,7 +342,7 @@ void tst_QDeclarativeGridView::removed()
model.removeItem(1);
// let transitions settle.
- QTest::qWait(300);
+ QTest::qWait(100);
QDeclarativeText *name = findItem<QDeclarativeText>(viewport, "textName", 1);
QVERIFY(name != 0);
@@ -343,6 +351,10 @@ void tst_QDeclarativeGridView::removed()
QVERIFY(number != 0);
QCOMPARE(number->text(), model.number(1));
+ // Checks that onRemove is called
+ QString removed = canvas->rootObject()->property("removed").toString();
+ QCOMPARE(removed, QString("Item1"));
+
// Confirm items positioned correctly
int itemCount = findItems<QDeclarativeItem>(viewport, "wrapper").count();
for (int i = 0; i < model.count() && i < itemCount; ++i) {
@@ -357,7 +369,7 @@ void tst_QDeclarativeGridView::removed()
model.removeItem(0);
// let transitions settle.
- QTest::qWait(300);
+ QTest::qWait(100);
name = findItem<QDeclarativeText>(viewport, "textName", 0);
QVERIFY(name != 0);
@@ -379,7 +391,7 @@ void tst_QDeclarativeGridView::removed()
// Remove items not visible
model.removeItem(25);
// let transitions settle.
- QTest::qWait(300);
+ QTest::qWait(100);
// Confirm items positioned correctly
itemCount = findItems<QDeclarativeItem>(viewport, "wrapper").count();
@@ -393,11 +405,11 @@ void tst_QDeclarativeGridView::removed()
// Remove items before visible
gridview->setContentY(120);
- QTest::qWait(500);
+ QTest::qWait(100);
gridview->setCurrentIndex(10);
// let transitions settle.
- QTest::qWait(300);
+ QTest::qWait(100);
// Setting currentIndex above shouldn't cause view to scroll
QCOMPARE(gridview->contentY(), 120.0);
@@ -405,7 +417,7 @@ void tst_QDeclarativeGridView::removed()
model.removeItem(1);
// let transitions settle.
- QTest::qWait(300);
+ QTest::qWait(100);
// Confirm items positioned correctly
for (int i = 6; i < 18; ++i) {
@@ -419,14 +431,14 @@ void tst_QDeclarativeGridView::removed()
// Remove currentIndex
QDeclarativeItem *oldCurrent = gridview->currentItem();
model.removeItem(9);
- QTest::qWait(500);
+ QTest::qWait(100);
QCOMPARE(gridview->currentIndex(), 9);
QVERIFY(gridview->currentItem() != oldCurrent);
gridview->setContentY(0);
// let transitions settle.
- QTest::qWait(300);
+ QTest::qWait(100);
// Confirm items positioned correctly
itemCount = findItems<QDeclarativeItem>(viewport, "wrapper").count();
@@ -440,7 +452,7 @@ void tst_QDeclarativeGridView::removed()
// remove item outside current view.
gridview->setCurrentIndex(32);
- QTest::qWait(500);
+ QTest::qWait(100);
gridview->setContentY(240);
model.removeItem(30);
@@ -448,21 +460,21 @@ void tst_QDeclarativeGridView::removed()
// remove current item beyond visible items.
gridview->setCurrentIndex(20);
- QTest::qWait(500);
+ QTest::qWait(100);
gridview->setContentY(0);
model.removeItem(20);
- QTest::qWait(500);
+ QTest::qWait(100);
QCOMPARE(gridview->currentIndex(), 20);
QVERIFY(gridview->currentItem() != 0);
// remove item before current, but visible
gridview->setCurrentIndex(8);
- QTest::qWait(500);
+ QTest::qWait(100);
gridview->setContentY(240);
oldCurrent = gridview->currentItem();
model.removeItem(6);
- QTest::qWait(500);
+ QTest::qWait(100);
QCOMPARE(gridview->currentIndex(), 7);
QVERIFY(gridview->currentItem() == oldCurrent);
@@ -494,7 +506,7 @@ void tst_QDeclarativeGridView::moved()
model.moveItem(1, 8);
// let transitions settle.
- QTest::qWait(300);
+ QTest::qWait(100);
QDeclarativeText *name = findItem<QDeclarativeText>(viewport, "textName", 1);
QVERIFY(name != 0);
@@ -526,7 +538,7 @@ void tst_QDeclarativeGridView::moved()
model.moveItem(1, 25);
// let transitions settle.
- QTest::qWait(300);
+ QTest::qWait(100);
// Confirm items positioned correctly and indexes correct
itemCount = findItems<QDeclarativeItem>(viewport, "wrapper").count()-1;
@@ -548,7 +560,7 @@ void tst_QDeclarativeGridView::moved()
model.moveItem(28, 8);
// let transitions settle.
- QTest::qWait(300);
+ QTest::qWait(100);
// Confirm items positioned correctly and indexes correct
for (int i = 6; i < model.count()-6 && i < itemCount+6; ++i) {
@@ -591,7 +603,7 @@ void tst_QDeclarativeGridView::currentIndex()
QDeclarativeItem *viewport = gridview->viewport();
QVERIFY(viewport != 0);
- QTest::qWait(500);
+ QTest::qWait(300);
// current item should be third item
QCOMPARE(gridview->currentIndex(), 5);
@@ -618,7 +630,7 @@ void tst_QDeclarativeGridView::currentIndex()
QCOMPARE(gridview->currentIndex(), 0);
gridview->setCurrentIndex(model.count()-1);
- QTest::qWait(500);
+ QTest::qWait(100);
QCOMPARE(gridview->currentIndex(), model.count()-1);
gridview->moveCurrentIndexRight();
@@ -677,8 +689,6 @@ void tst_QDeclarativeGridView::currentIndex()
// turn off auto highlight
gridview->setHighlightFollowsCurrentItem(false);
QVERIFY(gridview->highlightFollowsCurrentItem() == false);
-
- QTest::qWait(500);
QVERIFY(gridview->highlightItem());
qreal hlPosX = gridview->highlightItem()->x();
qreal hlPosY = gridview->highlightItem()->y();
@@ -729,7 +739,7 @@ void tst_QDeclarativeGridView::changeFlow()
}
ctxt->setContextProperty("testTopToBottom", QVariant(true));
- QTest::qWait(500);
+ QTest::qWait(100);
// Confirm items positioned correctly and indexes correct
itemCount = findItems<QDeclarativeItem>(viewport, "wrapper").count();
@@ -796,6 +806,107 @@ void tst_QDeclarativeGridView::properties()
delete obj;
}
+void tst_QDeclarativeGridView::propertyChanges()
+{
+ QDeclarativeView *canvas = createView();
+ QVERIFY(canvas);
+ canvas->setSource(QUrl::fromLocalFile(SRCDIR "/data/propertychanges.qml"));
+
+ QDeclarativeGridView *gridView = canvas->rootObject()->findChild<QDeclarativeGridView*>("gridView");
+ QVERIFY(gridView);
+
+ QSignalSpy keyNavigationWrapsSpy(gridView, SIGNAL(keyNavigationWrapsChanged()));
+ QSignalSpy cacheBufferSpy(gridView, SIGNAL(cacheBufferChanged()));
+ QSignalSpy flowSpy(gridView, SIGNAL(flowChanged()));
+
+ QCOMPARE(gridView->isWrapEnabled(), true);
+ QCOMPARE(gridView->cacheBuffer(), 10);
+ QCOMPARE(gridView->flow(), QDeclarativeGridView::LeftToRight);
+
+ gridView->setWrapEnabled(false);
+ gridView->setCacheBuffer(3);
+ gridView->setFlow(QDeclarativeGridView::TopToBottom);
+
+ QCOMPARE(gridView->isWrapEnabled(), false);
+ QCOMPARE(gridView->cacheBuffer(), 3);
+ QCOMPARE(gridView->flow(), QDeclarativeGridView::TopToBottom);
+
+ QCOMPARE(keyNavigationWrapsSpy.count(),1);
+ QCOMPARE(cacheBufferSpy.count(),1);
+ QCOMPARE(flowSpy.count(),1);
+
+ gridView->setWrapEnabled(false);
+ gridView->setCacheBuffer(3);
+ gridView->setFlow(QDeclarativeGridView::TopToBottom);
+
+ QCOMPARE(keyNavigationWrapsSpy.count(),1);
+ QCOMPARE(cacheBufferSpy.count(),1);
+ QCOMPARE(flowSpy.count(),1);
+
+ delete canvas;
+}
+
+void tst_QDeclarativeGridView::componentChanges()
+{
+ QDeclarativeView *canvas = createView();
+ QVERIFY(canvas);
+ canvas->setSource(QUrl::fromLocalFile(SRCDIR "/data/propertychanges.qml"));
+
+ QDeclarativeGridView *gridView = canvas->rootObject()->findChild<QDeclarativeGridView*>("gridView");
+ QVERIFY(gridView);
+
+ QDeclarativeComponent component(canvas->engine());
+ component.setData("import Qt 4.6; Rectangle { color: \"blue\"; }", QUrl::fromLocalFile(""));
+
+ QDeclarativeComponent delegateComponent(canvas->engine());
+ delegateComponent.setData("import Qt 4.6; Text { text: '<b>Name:</b> ' + name }", QUrl::fromLocalFile(""));
+
+ QSignalSpy highlightSpy(gridView, SIGNAL(highlightChanged()));
+ QSignalSpy delegateSpy(gridView, SIGNAL(delegateChanged()));
+
+ gridView->setHighlight(&component);
+ gridView->setDelegate(&delegateComponent);
+
+ QCOMPARE(gridView->highlight(), &component);
+ QCOMPARE(gridView->delegate(), &delegateComponent);
+
+ QCOMPARE(highlightSpy.count(),1);
+ QCOMPARE(delegateSpy.count(),1);
+
+ gridView->setHighlight(&component);
+ gridView->setDelegate(&delegateComponent);
+
+ QCOMPARE(highlightSpy.count(),1);
+ QCOMPARE(delegateSpy.count(),1);
+ delete canvas;
+}
+
+void tst_QDeclarativeGridView::modelChanges()
+{
+ QDeclarativeView *canvas = createView();
+ QVERIFY(canvas);
+ canvas->setSource(QUrl::fromLocalFile(SRCDIR "/data/propertychanges.qml"));
+
+ QDeclarativeGridView *gridView = canvas->rootObject()->findChild<QDeclarativeGridView*>("gridView");
+ QVERIFY(gridView);
+
+ QDeclarativeListModel *alternateModel = canvas->rootObject()->findChild<QDeclarativeListModel*>("alternateModel");
+ QVERIFY(alternateModel);
+ QVariant modelVariant = QVariant::fromValue(alternateModel);
+ QSignalSpy modelSpy(gridView, SIGNAL(modelChanged()));
+
+ gridView->setModel(modelVariant);
+ QCOMPARE(gridView->model(), modelVariant);
+ QCOMPARE(modelSpy.count(),1);
+
+ gridView->setModel(modelVariant);
+ QCOMPARE(modelSpy.count(),1);
+
+ gridView->setModel(QVariant());
+ QCOMPARE(modelSpy.count(),2);
+ delete canvas;
+}
+
void tst_QDeclarativeGridView::positionViewAtIndex()
{
QDeclarativeView *canvas = createView();
diff --git a/tests/auto/declarative/qdeclarativeitem/data/keynavigation.qml b/tests/auto/declarative/qdeclarativeitem/data/keynavigation.qml
index 9281a17..08da901 100644
--- a/tests/auto/declarative/qdeclarativeitem/data/keynavigation.qml
+++ b/tests/auto/declarative/qdeclarativeitem/data/keynavigation.qml
@@ -11,6 +11,8 @@ Grid {
color: focus ? "red" : "lightgray"
KeyNavigation.right: item2
KeyNavigation.down: item3
+ KeyNavigation.tab: item2
+ KeyNavigation.backtab: item4
}
Rectangle {
id: item2
@@ -19,6 +21,8 @@ Grid {
color: focus ? "red" : "lightgray"
KeyNavigation.left: item1
KeyNavigation.down: item4
+ KeyNavigation.tab: item3
+ KeyNavigation.backtab: item1
}
Rectangle {
id: item3
@@ -27,6 +31,8 @@ Grid {
color: focus ? "red" : "lightgray"
KeyNavigation.right: item4
KeyNavigation.up: item1
+ KeyNavigation.tab: item4
+ KeyNavigation.backtab: item2
}
Rectangle {
id: item4
@@ -35,5 +41,7 @@ Grid {
color: focus ? "red" : "lightgray"
KeyNavigation.left: item3
KeyNavigation.up: item2
+ KeyNavigation.tab: item1
+ KeyNavigation.backtab: item3
}
}
diff --git a/tests/auto/declarative/qdeclarativeitem/data/keys.qml b/tests/auto/declarative/qdeclarativeitem/data/keys.qml
index f3c1f7b..7d34fc8 100644
--- a/tests/auto/declarative/qdeclarativeitem/data/keys.qml
+++ b/tests/auto/declarative/qdeclarativeitem/data/keys.qml
@@ -7,6 +7,8 @@ Item {
Keys.onReturnPressed: keysTestObject.keyPress(event.key, "Return", event.modifiers)
Keys.onDigit0Pressed: keysTestObject.keyPress(event.key, event.text, event.modifiers)
Keys.onDigit9Pressed: { event.accepted = false; keysTestObject.keyPress(event.key, event.text, event.modifiers) }
+ Keys.onTabPressed: keysTestObject.keyPress(event.key, "Tab", event.modifiers)
+ Keys.onBacktabPressed: keysTestObject.keyPress(event.key, "Backtab", event.modifiers)
Keys.forwardTo: [ item2 ]
Keys.enabled: enableKeyHanding
diff --git a/tests/auto/declarative/qdeclarativeitem/tst_qdeclarativeitem.cpp b/tests/auto/declarative/qdeclarativeitem/tst_qdeclarativeitem.cpp
index 36dcf1f..dbcba16 100644
--- a/tests/auto/declarative/qdeclarativeitem/tst_qdeclarativeitem.cpp
+++ b/tests/auto/declarative/qdeclarativeitem/tst_qdeclarativeitem.cpp
@@ -176,6 +176,26 @@ void tst_QDeclarativeItem::keys()
testObject->reset();
+ key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
+ QApplication::sendEvent(canvas, &key);
+ QCOMPARE(testObject->mKey, int(Qt::Key_Tab));
+ QCOMPARE(testObject->mForwardedKey, int(Qt::Key_Tab));
+ QCOMPARE(testObject->mText, QLatin1String("Tab"));
+ QVERIFY(testObject->mModifiers == Qt::NoModifier);
+ QVERIFY(key.isAccepted());
+
+ testObject->reset();
+
+ key = QKeyEvent(QEvent::KeyPress, Qt::Key_Backtab, Qt::NoModifier, "", false, 1);
+ QApplication::sendEvent(canvas, &key);
+ QCOMPARE(testObject->mKey, int(Qt::Key_Backtab));
+ QCOMPARE(testObject->mForwardedKey, int(Qt::Key_Backtab));
+ QCOMPARE(testObject->mText, QLatin1String("Backtab"));
+ QVERIFY(testObject->mModifiers == Qt::NoModifier);
+ QVERIFY(key.isAccepted());
+
+ testObject->reset();
+
canvas->rootContext()->setContextProperty("enableKeyHanding", QVariant(false));
key = QKeyEvent(QEvent::KeyPress, Qt::Key_Return, Qt::NoModifier, "", false, 1);
@@ -240,6 +260,24 @@ void tst_QDeclarativeItem::keyNavigation()
item = findItem<QDeclarativeItem>(canvas->rootObject(), "item1");
QVERIFY(item);
QVERIFY(item->hasFocus());
+
+ // tab
+ key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
+ QApplication::sendEvent(canvas, &key);
+ QVERIFY(key.isAccepted());
+
+ item = findItem<QDeclarativeItem>(canvas->rootObject(), "item2");
+ QVERIFY(item);
+ QVERIFY(item->hasFocus());
+
+ // backtab
+ key = QKeyEvent(QEvent::KeyPress, Qt::Key_Backtab, Qt::NoModifier, "", false, 1);
+ QApplication::sendEvent(canvas, &key);
+ QVERIFY(key.isAccepted());
+
+ item = findItem<QDeclarativeItem>(canvas->rootObject(), "item1");
+ QVERIFY(item);
+ QVERIFY(item->hasFocus());
}
void tst_QDeclarativeItem::smooth()
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/assignBasicTypes.qml b/tests/auto/declarative/qdeclarativelanguage/data/assignBasicTypes.qml
index c86c96b..9fe0ded 100644
--- a/tests/auto/declarative/qdeclarativelanguage/data/assignBasicTypes.qml
+++ b/tests/auto/declarative/qdeclarativelanguage/data/assignBasicTypes.qml
@@ -10,8 +10,6 @@ MyTypeObject {
floatProperty: 8.5
colorProperty: "red"
dateProperty: "1982-11-25"
- timeProperty: "11:11:31"
- timeProperty: "11:11:32"
timeProperty: "11:11:32"
dateTimeProperty: "2009-05-12T13:22:01"
pointProperty: "99,13"
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/component.3.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/component.3.errors.txt
index 9a13142..450fc16 100644
--- a/tests/auto/declarative/qdeclarativelanguage/data/component.3.errors.txt
+++ b/tests/auto/declarative/qdeclarativelanguage/data/component.3.errors.txt
@@ -1 +1 @@
-6:9:Invalid component id specification
+6:9:Property value set multiple times
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/customOnProperty.qml b/tests/auto/declarative/qdeclarativelanguage/data/customOnProperty.qml
new file mode 100644
index 0000000..7cd6a83
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/customOnProperty.qml
@@ -0,0 +1,7 @@
+import Qt 4.6
+
+QtObject {
+ property int on
+
+ Component.onCompleted: on = 10
+}
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/defaultGrouped.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/defaultGrouped.errors.txt
index 945d51b..32055f6 100644
--- a/tests/auto/declarative/qdeclarativelanguage/data/defaultGrouped.errors.txt
+++ b/tests/auto/declarative/qdeclarativelanguage/data/defaultGrouped.errors.txt
@@ -1 +1 @@
-7:9:Invalid value in grouped property
+7:9:Cannot assign a value directly to a grouped property
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/doubleSignal.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/doubleSignal.errors.txt
index 2aea251..e1f7ec5 100644
--- a/tests/auto/declarative/qdeclarativelanguage/data/doubleSignal.errors.txt
+++ b/tests/auto/declarative/qdeclarativelanguage/data/doubleSignal.errors.txt
@@ -1 +1 @@
-5:5:Incorrectly specified signal
+5:5:Property value set multiple times
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.10.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.10.errors.txt
new file mode 100644
index 0000000..1fcb1b6
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.10.errors.txt
@@ -0,0 +1 @@
+4:14:Cannot assign a value directly to a grouped property
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.10.qml b/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.10.qml
new file mode 100644
index 0000000..41aa3e2
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.10.qml
@@ -0,0 +1,7 @@
+import Test 1.0
+
+MyTypeObject {
+ grouped: "10x10"
+ grouped.value: 10
+}
+
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.6.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.6.errors.txt
index 8331725..e1f7ec5 100644
--- a/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.6.errors.txt
+++ b/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.6.errors.txt
@@ -1 +1 @@
-5:18:Single property assignment expected
+5:5:Property value set multiple times
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.8.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.8.errors.txt
new file mode 100644
index 0000000..fa0da21
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.8.errors.txt
@@ -0,0 +1 @@
+5:19:Property has already been assigned a value
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.8.qml b/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.8.qml
new file mode 100644
index 0000000..56fca9b
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.8.qml
@@ -0,0 +1,6 @@
+import Test 1.0
+
+MyTypeObject {
+ pointProperty: "10x10"
+ pointProperty.x: 10
+}
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.9.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.9.errors.txt
new file mode 100644
index 0000000..6d837a7
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.9.errors.txt
@@ -0,0 +1 @@
+5:20:Property has already been assigned a value
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.9.qml b/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.9.qml
new file mode 100644
index 0000000..982ab26
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/invalidGroupedProperty.9.qml
@@ -0,0 +1,6 @@
+import Test 1.0
+
+MyTypeObject {
+ pointProperty.x: 10
+ pointProperty: "10x10"
+}
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/invalidID.2.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/invalidID.2.errors.txt
index 56e3eeb..2c6b8bf 100644
--- a/tests/auto/declarative/qdeclarativelanguage/data/invalidID.2.errors.txt
+++ b/tests/auto/declarative/qdeclarativelanguage/data/invalidID.2.errors.txt
@@ -1,2 +1,2 @@
-3:5:"" is not a valid object id
+3:9:Invalid empty ID
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/invalidID.4.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/invalidID.4.errors.txt
index cfe8756..c721fe9 100644
--- a/tests/auto/declarative/qdeclarativelanguage/data/invalidID.4.errors.txt
+++ b/tests/auto/declarative/qdeclarativelanguage/data/invalidID.4.errors.txt
@@ -1 +1 @@
-4:5:Invalid use of id property
+4:5:Property value set multiple times
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/invalidID.6.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/invalidID.6.errors.txt
index 160e8b5..7251de1 100644
--- a/tests/auto/declarative/qdeclarativelanguage/data/invalidID.6.errors.txt
+++ b/tests/auto/declarative/qdeclarativelanguage/data/invalidID.6.errors.txt
@@ -1 +1 @@
-3:5:"StartsWithUpperCase" is not a valid object id
+3:9:IDs cannot start with an uppercase letter
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/invalidID.7.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/invalidID.7.errors.txt
new file mode 100644
index 0000000..e4fd1db
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/invalidID.7.errors.txt
@@ -0,0 +1 @@
+3:9:ID illegally masks global JavaScript property
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/invalidID.7.qml b/tests/auto/declarative/qdeclarativelanguage/data/invalidID.7.qml
new file mode 100644
index 0000000..d4bc539
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/invalidID.7.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+MyQmlObject {
+ id: gc
+}
+
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/invalidID.8.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/invalidID.8.errors.txt
new file mode 100644
index 0000000..b03ec6c
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/invalidID.8.errors.txt
@@ -0,0 +1 @@
+3:9:IDs must contain only letters, numbers, and underscores
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/invalidID.8.qml b/tests/auto/declarative/qdeclarativelanguage/data/invalidID.8.qml
new file mode 100644
index 0000000..1ea615c
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/invalidID.8.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+MyQmlObject {
+ id: hello.world
+}
+
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/invalidID.9.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/invalidID.9.errors.txt
new file mode 100644
index 0000000..c010e79
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/invalidID.9.errors.txt
@@ -0,0 +1 @@
+3:9:IDs must start with a letter or underscore
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/invalidID.9.qml b/tests/auto/declarative/qdeclarativelanguage/data/invalidID.9.qml
new file mode 100644
index 0000000..57474b7
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/invalidID.9.qml
@@ -0,0 +1,5 @@
+import Test 1.0
+MyQmlObject {
+ id: "3hello"
+}
+
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/invalidID.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/invalidID.errors.txt
index 1ca678c..c010e79 100644
--- a/tests/auto/declarative/qdeclarativelanguage/data/invalidID.errors.txt
+++ b/tests/auto/declarative/qdeclarativelanguage/data/invalidID.errors.txt
@@ -1 +1 @@
-3:5:"1" is not a valid object id
+3:9:IDs must start with a letter or underscore
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/listAssignment.3.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/listAssignment.3.errors.txt
index 8c7b7e9..c721fe9 100644
--- a/tests/auto/declarative/qdeclarativelanguage/data/listAssignment.3.errors.txt
+++ b/tests/auto/declarative/qdeclarativelanguage/data/listAssignment.3.errors.txt
@@ -1 +1 @@
-4:15:Can only assign one binding to lists
+4:5:Property value set multiple times
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/multiSet.1.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.1.errors.txt
new file mode 100644
index 0000000..e1f7ec5
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.1.errors.txt
@@ -0,0 +1 @@
+5:5:Property value set multiple times
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/multiSet.1.qml b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.1.qml
new file mode 100644
index 0000000..649c49e
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.1.qml
@@ -0,0 +1,7 @@
+import Test 1.0
+
+MyTypeObject {
+ intProperty: 10
+ intProperty: 11
+}
+
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/multiSet.10.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.10.errors.txt
new file mode 100644
index 0000000..e1f7ec5
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.10.errors.txt
@@ -0,0 +1 @@
+5:5:Property value set multiple times
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/multiSet.10.qml b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.10.qml
new file mode 100644
index 0000000..bc21db9
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.10.qml
@@ -0,0 +1,6 @@
+import Test 1.0
+
+MyTypeObject {
+ property int a: 10
+ a: 11
+}
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/multiSet.2.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.2.errors.txt
new file mode 100644
index 0000000..e1f7ec5
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.2.errors.txt
@@ -0,0 +1 @@
+5:5:Property value set multiple times
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/multiSet.2.qml b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.2.qml
new file mode 100644
index 0000000..abcd216
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.2.qml
@@ -0,0 +1,7 @@
+import Test 1.0
+
+MyTypeObject {
+ intProperty: 10
+ intProperty: a + 10
+}
+
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/multiSet.3.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.3.errors.txt
new file mode 100644
index 0000000..e1f7ec5
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.3.errors.txt
@@ -0,0 +1 @@
+5:5:Property value set multiple times
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/multiSet.3.qml b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.3.qml
new file mode 100644
index 0000000..77eaba0
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.3.qml
@@ -0,0 +1,7 @@
+import Test 1.0
+
+MyTypeObject {
+ intProperty: a + 10
+ intProperty: 10
+}
+
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/multiSet.4.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.4.errors.txt
new file mode 100644
index 0000000..e1f7ec5
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.4.errors.txt
@@ -0,0 +1 @@
+5:5:Property value set multiple times
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/multiSet.4.qml b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.4.qml
new file mode 100644
index 0000000..c16d04f
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.4.qml
@@ -0,0 +1,7 @@
+import Test 1.0
+
+MyTypeObject {
+ intProperty: 10
+ intProperty: MyTypeObject {}
+}
+
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/multiSet.5.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.5.errors.txt
new file mode 100644
index 0000000..e1f7ec5
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.5.errors.txt
@@ -0,0 +1 @@
+5:5:Property value set multiple times
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/multiSet.5.qml b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.5.qml
new file mode 100644
index 0000000..2980c5b
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.5.qml
@@ -0,0 +1,6 @@
+import Test 1.0
+
+MyContainer {
+ children: MyContainer {}
+ children: MyContainer {}
+}
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/multiSet.6.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.6.errors.txt
new file mode 100644
index 0000000..e1f7ec5
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.6.errors.txt
@@ -0,0 +1 @@
+5:5:Property value set multiple times
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/multiSet.6.qml b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.6.qml
new file mode 100644
index 0000000..492c720
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.6.qml
@@ -0,0 +1,7 @@
+import Test 1.0
+
+MyContainer {
+ children: MyContainer {}
+ children: [ MyContainer {}, MyContainer {} ]
+}
+
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/multiSet.7.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.7.errors.txt
new file mode 100644
index 0000000..e1f7ec5
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.7.errors.txt
@@ -0,0 +1 @@
+5:5:Property value set multiple times
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/multiSet.7.qml b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.7.qml
new file mode 100644
index 0000000..2a9c1d0
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.7.qml
@@ -0,0 +1,7 @@
+import Test 1.0
+
+MyContainer {
+ children: [ MyContainer {}, MyContainer {} ]
+ children: MyContainer {}
+}
+
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/multiSet.8.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.8.errors.txt
new file mode 100644
index 0000000..450fc16
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.8.errors.txt
@@ -0,0 +1 @@
+6:9:Property value set multiple times
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/multiSet.8.qml b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.8.qml
new file mode 100644
index 0000000..052437e
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.8.qml
@@ -0,0 +1,8 @@
+import Test 1.0
+
+MyTypeObject {
+ grouped {
+ value: 10
+ value: 11
+ }
+}
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/multiSet.9.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.9.errors.txt
new file mode 100644
index 0000000..e1f7ec5
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.9.errors.txt
@@ -0,0 +1 @@
+5:5:Property value set multiple times
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/multiSet.9.qml b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.9.qml
new file mode 100644
index 0000000..e2e954f
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelanguage/data/multiSet.9.qml
@@ -0,0 +1,6 @@
+import Test 1.0
+
+MyTypeObject {
+ grouped.value: 10
+ grouped.value: 11
+}
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/propertyValueSource.2.qml b/tests/auto/declarative/qdeclarativelanguage/data/propertyValueSource.2.qml
index 57a6070..e48526a 100644
--- a/tests/auto/declarative/qdeclarativelanguage/data/propertyValueSource.2.qml
+++ b/tests/auto/declarative/qdeclarativelanguage/data/propertyValueSource.2.qml
@@ -1,5 +1,5 @@
import Test 1.0
MyTypeObject {
- intProperty : MyCompositeValueSource {}
+ MyCompositeValueSource on intProperty {}
}
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/propertyValueSource.qml b/tests/auto/declarative/qdeclarativelanguage/data/propertyValueSource.qml
index ad71fcf..22aa682 100644
--- a/tests/auto/declarative/qdeclarativelanguage/data/propertyValueSource.qml
+++ b/tests/auto/declarative/qdeclarativelanguage/data/propertyValueSource.qml
@@ -1,4 +1,4 @@
import Test 1.0
MyTypeObject {
- intProperty : MyPropertyValueSource {}
+ MyPropertyValueSource on intProperty {}
}
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/script.8.errors.txt b/tests/auto/declarative/qdeclarativelanguage/data/script.8.errors.txt
index b5bf1a8..450fc16 100644
--- a/tests/auto/declarative/qdeclarativelanguage/data/script.8.errors.txt
+++ b/tests/auto/declarative/qdeclarativelanguage/data/script.8.errors.txt
@@ -1 +1 @@
-6:9:Invalid Script source value
+6:9:Property value set multiple times
diff --git a/tests/auto/declarative/qdeclarativelanguage/testtypes.h b/tests/auto/declarative/qdeclarativelanguage/testtypes.h
index 8ac7aa6..df93dc8 100644
--- a/tests/auto/declarative/qdeclarativelanguage/testtypes.h
+++ b/tests/auto/declarative/qdeclarativelanguage/testtypes.h
@@ -62,7 +62,10 @@ public:
MyInterface() : id(913) {}
int id;
};
+
+QT_BEGIN_NAMESPACE
Q_DECLARE_INTERFACE(MyInterface, "com.trolltech.Qt.Test.MyInterface");
+QT_END_NAMESPACE
QML_DECLARE_INTERFACE(MyInterface);
struct MyCustomVariantType
@@ -75,17 +78,20 @@ Q_DECLARE_METATYPE(MyCustomVariantType);
class MyAttachedObject : public QObject
{
Q_OBJECT
- Q_PROPERTY(int value READ value WRITE setValue)
+ Q_PROPERTY(int value READ value WRITE setValue NOTIFY valueChanged)
Q_PROPERTY(int value2 READ value2 WRITE setValue2)
public:
MyAttachedObject(QObject *parent) : QObject(parent), m_value(0), m_value2(0) {}
int value() const { return m_value; }
- void setValue(int v) { m_value = v; }
+ void setValue(int v) { if (m_value != v) { m_value = v; emit valueChanged(); } }
int value2() const { return m_value2; }
void setValue2(int v) { m_value2 = v; }
+signals:
+ void valueChanged();
+
private:
int m_value;
int m_value2;
@@ -166,11 +172,16 @@ class MyGroupedObject : public QObject
{
Q_OBJECT
Q_PROPERTY(QDeclarativeScriptString script READ script WRITE setScript);
+ Q_PROPERTY(int value READ value WRITE setValue);
public:
QDeclarativeScriptString script() const { return m_script; }
void setScript(const QDeclarativeScriptString &s) { m_script = s; }
+ int value() const { return m_value; }
+ void setValue(int v) { m_value = v; }
+
private:
+ int m_value;
QDeclarativeScriptString m_script;
};
diff --git a/tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp b/tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp
index 1ba4454..3ce15cb 100644
--- a/tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp
+++ b/tests/auto/declarative/qdeclarativelanguage/tst_qdeclarativelanguage.cpp
@@ -128,6 +128,8 @@ private slots:
void qmlAttachedPropertiesObjectMethod();
+ void customOnProperty();
+
// regression tests for crashes
void crash1();
void crash2();
@@ -232,6 +234,9 @@ void tst_qdeclarativelanguage::errors_data()
QTest::newRow("invalidID.4") << "invalidID.4.qml" << "invalidID.4.errors.txt" << false;
QTest::newRow("invalidID.5") << "invalidID.5.qml" << "invalidID.5.errors.txt" << false;
QTest::newRow("invalidID.6") << "invalidID.6.qml" << "invalidID.6.errors.txt" << false;
+ QTest::newRow("invalidID.7") << "invalidID.7.qml" << "invalidID.7.errors.txt" << false;
+ QTest::newRow("invalidID.8") << "invalidID.8.qml" << "invalidID.8.errors.txt" << false;
+ QTest::newRow("invalidID.9") << "invalidID.9.qml" << "invalidID.9.errors.txt" << false;
QTest::newRow("unsupportedProperty") << "unsupportedProperty.qml" << "unsupportedProperty.errors.txt" << false;
QTest::newRow("nullDotProperty") << "nullDotProperty.qml" << "nullDotProperty.errors.txt" << true;
@@ -252,6 +257,9 @@ void tst_qdeclarativelanguage::errors_data()
QTest::newRow("invalidGroupedProperty.5") << "invalidGroupedProperty.5.qml" << "invalidGroupedProperty.5.errors.txt" << false;
QTest::newRow("invalidGroupedProperty.6") << "invalidGroupedProperty.6.qml" << "invalidGroupedProperty.6.errors.txt" << false;
QTest::newRow("invalidGroupedProperty.7") << "invalidGroupedProperty.7.qml" << "invalidGroupedProperty.7.errors.txt" << true;
+ QTest::newRow("invalidGroupedProperty.8") << "invalidGroupedProperty.8.qml" << "invalidGroupedProperty.8.errors.txt" << false;
+ QTest::newRow("invalidGroupedProperty.9") << "invalidGroupedProperty.9.qml" << "invalidGroupedProperty.9.errors.txt" << false;
+ QTest::newRow("invalidGroupedProperty.10") << "invalidGroupedProperty.10.qml" << "invalidGroupedProperty.10.errors.txt" << false;
QTest::newRow("importNamespaceConflict") << "importNamespaceConflict.qml" << "importNamespaceConflict.errors.txt" << false;
QTest::newRow("importVersionMissing (builtin)") << "importVersionMissingBuiltIn.qml" << "importVersionMissingBuiltIn.errors.txt" << false;
@@ -288,6 +296,17 @@ void tst_qdeclarativelanguage::errors_data()
QTest::newRow("Component.5") << "component.5.qml" << "component.5.errors.txt" << false;
QTest::newRow("Component.6") << "component.6.qml" << "component.6.errors.txt" << false;
+ QTest::newRow("MultiSet.1") << "multiSet.1.qml" << "multiSet.1.errors.txt" << false;
+ QTest::newRow("MultiSet.2") << "multiSet.2.qml" << "multiSet.2.errors.txt" << false;
+ QTest::newRow("MultiSet.3") << "multiSet.3.qml" << "multiSet.3.errors.txt" << false;
+ QTest::newRow("MultiSet.4") << "multiSet.4.qml" << "multiSet.4.errors.txt" << false;
+ QTest::newRow("MultiSet.5") << "multiSet.5.qml" << "multiSet.5.errors.txt" << false;
+ QTest::newRow("MultiSet.6") << "multiSet.6.qml" << "multiSet.6.errors.txt" << false;
+ QTest::newRow("MultiSet.7") << "multiSet.7.qml" << "multiSet.7.errors.txt" << false;
+ QTest::newRow("MultiSet.8") << "multiSet.8.qml" << "multiSet.8.errors.txt" << false;
+ QTest::newRow("MultiSet.9") << "multiSet.9.qml" << "multiSet.9.errors.txt" << false;
+ QTest::newRow("MultiSet.10") << "multiSet.10.qml" << "multiSet.10.errors.txt" << false;
+
QTest::newRow("invalidAttachedProperty.1") << "invalidAttachedProperty.1.qml" << "invalidAttachedProperty.1.errors.txt" << false;
QTest::newRow("invalidAttachedProperty.2") << "invalidAttachedProperty.2.qml" << "invalidAttachedProperty.2.errors.txt" << false;
QTest::newRow("invalidAttachedProperty.3") << "invalidAttachedProperty.3.qml" << "invalidAttachedProperty.3.errors.txt" << false;
@@ -316,9 +335,6 @@ void tst_qdeclarativelanguage::errors()
QFETCH(QString, errorFile);
QFETCH(bool, create);
- if (file == "invalidID.6.qml")
- QTest::ignoreMessage(QtWarningMsg, "id \"StartsWithUpperCase\" is invalid: ids cannot start with uppercase letters");
-
QDeclarativeComponent component(&engine, TEST_FILE(file));
if(create) {
@@ -1378,6 +1394,19 @@ void tst_qdeclarativelanguage::crash2()
QDeclarativeComponent component(&engine, TEST_FILE("crash2.qml"));
}
+// QTBUG-8676
+void tst_qdeclarativelanguage::customOnProperty()
+{
+ QDeclarativeComponent component(&engine, TEST_FILE("customOnProperty.qml"));
+
+ VERIFY_ERRORS(0);
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+
+ QCOMPARE(object->property("on").toInt(), 10);
+
+ delete object;
+}
void tst_qdeclarativelanguage::initTestCase()
{
diff --git a/tests/auto/declarative/qdeclarativelistview/data/propertychanges.qml b/tests/auto/declarative/qdeclarativelistview/data/propertychanges.qml
new file mode 100644
index 0000000..a41f003
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativelistview/data/propertychanges.qml
@@ -0,0 +1,71 @@
+import Qt 4.6
+
+Rectangle {
+ width: 180; height: 120; color: "white"
+ Component {
+ id: delegate
+ Item {
+ id: wrapper
+ width: 180; height: 40;
+ Column {
+ x: 5; y: 5
+ Text { text: '<b>Name:</b> ' + name }
+ Text { text: '<b>Number:</b> ' + number }
+ }
+ }
+ }
+ Component {
+ id: highlightRed
+ Rectangle {
+ color: "red"
+ radius: 10
+ opacity: 0.5
+ }
+ }
+ ListView {
+ objectName: "listView"
+ anchors.fill: parent
+ model: listModel
+ delegate: delegate
+ highlight: highlightRed
+ focus: true
+ highlightFollowsCurrentItem: true
+ preferredHighlightBegin: 0.0
+ preferredHighlightEnd: 0.0
+ highlightRangeMode: ListView.ApplyRange
+ keyNavigationWraps: true
+ cacheBuffer: 10
+ snapMode: ListView.SnapToItem
+ }
+
+ data:[
+ ListModel {
+ id: listModel
+ ListElement {
+ name: "Bill Smith"
+ number: "555 3264"
+ }
+ ListElement {
+ name: "John Brown"
+ number: "555 8426"
+ }
+ ListElement {
+ name: "Sam Wise"
+ number: "555 0473"
+ }
+ },
+ ListModel {
+ objectName: "alternateModel"
+ ListElement {
+ name: "Jack"
+ number: "555 8426"
+ }
+ ListElement {
+ name: "Mary"
+ number: "555 3264"
+ }
+ }
+ ]
+}
+
+ \ No newline at end of file
diff --git a/tests/auto/declarative/qdeclarativelistview/tst_qdeclarativelistview.cpp b/tests/auto/declarative/qdeclarativelistview/tst_qdeclarativelistview.cpp
index f15f26b..a36224f 100644
--- a/tests/auto/declarative/qdeclarativelistview/tst_qdeclarativelistview.cpp
+++ b/tests/auto/declarative/qdeclarativelistview/tst_qdeclarativelistview.cpp
@@ -38,15 +38,18 @@
** $QT_END_LICENSE$
**
****************************************************************************/
+
#include <QtTest/QtTest>
-#include <QStringListModel>
-#include <private/qlistmodelinterface_p.h>
-#include <qdeclarativeview.h>
-#include <private/qdeclarativelistview_p.h>
-#include <private/qdeclarativetext_p.h>
-#include <private/qdeclarativevisualitemmodel_p.h>
-#include <qdeclarativecontext.h>
-#include <qdeclarativeexpression.h>
+#include <QtGui/QStringListModel>
+#include <QtDeclarative/qdeclarativeview.h>
+#include <QtDeclarative/qdeclarativeengine.h>
+#include <QtDeclarative/qdeclarativecontext.h>
+#include <QtDeclarative/qdeclarativeexpression.h>
+#include <QtDeclarative/private/qdeclarativelistview_p.h>
+#include <QtDeclarative/private/qdeclarativetext_p.h>
+#include <QtDeclarative/private/qdeclarativevisualitemmodel_p.h>
+#include <QtDeclarative/private/qdeclarativelistmodel_p.h>
+#include <QtDeclarative/private/qlistmodelinterface_p.h>
class tst_QDeclarativeListView : public QObject
{
@@ -82,6 +85,9 @@ private slots:
void cacheBuffer();
void positionViewAtIndex();
void resetModel();
+ void propertyChanges();
+ void componentChanges();
+ void modelChanges();
private:
template <class T> void items();
@@ -240,7 +246,7 @@ public:
setRoleNames(roles);
}
- int rowCount(const QModelIndex &parent=QModelIndex()) const { return list.count(); }
+ int rowCount(const QModelIndex &parent=QModelIndex()) const { Q_UNUSED(parent); return list.count(); }
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const {
QVariant rv;
if (role == Name)
@@ -379,6 +385,7 @@ void tst_QDeclarativeListView::items()
delete canvas;
}
+
template <class T>
void tst_QDeclarativeListView::changed()
{
@@ -1275,6 +1282,149 @@ void tst_QDeclarativeListView::resetModel()
}
}
+void tst_QDeclarativeListView::propertyChanges()
+{
+ QDeclarativeView *canvas = createView();
+ QVERIFY(canvas);
+ canvas->setSource(QUrl::fromLocalFile(SRCDIR "/data/propertychanges.qml"));
+
+ QDeclarativeListView *listView = canvas->rootObject()->findChild<QDeclarativeListView*>("listView");
+ QVERIFY(listView);
+
+ QSignalSpy highlightFollowsCurrentItemSpy(listView, SIGNAL(highlightFollowsCurrentItemChanged()));
+ QSignalSpy preferredHighlightBeginSpy(listView, SIGNAL(preferredHighlightBeginChanged()));
+ QSignalSpy preferredHighlightEndSpy(listView, SIGNAL(preferredHighlightEndChanged()));
+ QSignalSpy highlightRangeModeSpy(listView, SIGNAL(highlightRangeModeChanged()));
+ QSignalSpy keyNavigationWrapsSpy(listView, SIGNAL(keyNavigationWrapsChanged()));
+ QSignalSpy cacheBufferSpy(listView, SIGNAL(cacheBufferChanged()));
+ QSignalSpy snapModeSpy(listView, SIGNAL(snapModeChanged()));
+
+ QCOMPARE(listView->highlightFollowsCurrentItem(), true);
+ QCOMPARE(listView->preferredHighlightBegin(), 0.0);
+ QCOMPARE(listView->preferredHighlightEnd(), 0.0);
+ QCOMPARE(listView->highlightRangeMode(), QDeclarativeListView::ApplyRange);
+ QCOMPARE(listView->isWrapEnabled(), true);
+ QCOMPARE(listView->cacheBuffer(), 10);
+ QCOMPARE(listView->snapMode(), QDeclarativeListView::SnapToItem);
+
+ listView->setHighlightFollowsCurrentItem(false);
+ listView->setPreferredHighlightBegin(1.0);
+ listView->setPreferredHighlightEnd(1.0);
+ listView->setHighlightRangeMode(QDeclarativeListView::StrictlyEnforceRange);
+ listView->setWrapEnabled(false);
+ listView->setCacheBuffer(3);
+ listView->setSnapMode(QDeclarativeListView::SnapOneItem);
+
+ QCOMPARE(listView->highlightFollowsCurrentItem(), false);
+ QCOMPARE(listView->preferredHighlightBegin(), 1.0);
+ QCOMPARE(listView->preferredHighlightEnd(), 1.0);
+ QCOMPARE(listView->highlightRangeMode(), QDeclarativeListView::StrictlyEnforceRange);
+ QCOMPARE(listView->isWrapEnabled(), false);
+ QCOMPARE(listView->cacheBuffer(), 3);
+ QCOMPARE(listView->snapMode(), QDeclarativeListView::SnapOneItem);
+
+ QCOMPARE(highlightFollowsCurrentItemSpy.count(),1);
+ QCOMPARE(preferredHighlightBeginSpy.count(),1);
+ QCOMPARE(preferredHighlightEndSpy.count(),1);
+ QCOMPARE(highlightRangeModeSpy.count(),1);
+ QCOMPARE(keyNavigationWrapsSpy.count(),1);
+ QCOMPARE(cacheBufferSpy.count(),1);
+ QCOMPARE(snapModeSpy.count(),1);
+
+ listView->setHighlightFollowsCurrentItem(false);
+ listView->setPreferredHighlightBegin(1.0);
+ listView->setPreferredHighlightEnd(1.0);
+ listView->setHighlightRangeMode(QDeclarativeListView::StrictlyEnforceRange);
+ listView->setWrapEnabled(false);
+ listView->setCacheBuffer(3);
+ listView->setSnapMode(QDeclarativeListView::SnapOneItem);
+
+ QCOMPARE(highlightFollowsCurrentItemSpy.count(),1);
+ QCOMPARE(preferredHighlightBeginSpy.count(),1);
+ QCOMPARE(preferredHighlightEndSpy.count(),1);
+ QCOMPARE(highlightRangeModeSpy.count(),1);
+ QCOMPARE(keyNavigationWrapsSpy.count(),1);
+ QCOMPARE(cacheBufferSpy.count(),1);
+ QCOMPARE(snapModeSpy.count(),1);
+
+ delete canvas;
+}
+
+void tst_QDeclarativeListView::componentChanges()
+{
+ QDeclarativeView *canvas = createView();
+ QVERIFY(canvas);
+ canvas->setSource(QUrl::fromLocalFile(SRCDIR "/data/propertychanges.qml"));
+
+ QDeclarativeListView *listView = canvas->rootObject()->findChild<QDeclarativeListView*>("listView");
+ QVERIFY(listView);
+
+ QDeclarativeComponent component(canvas->engine());
+ component.setData("import Qt 4.6; Rectangle { color: \"blue\"; }", QUrl::fromLocalFile(""));
+
+ QDeclarativeComponent delegateComponent(canvas->engine());
+ delegateComponent.setData("import Qt 4.6; Text { text: '<b>Name:</b> ' + name }", QUrl::fromLocalFile(""));
+
+ QSignalSpy highlightSpy(listView, SIGNAL(highlightChanged()));
+ QSignalSpy delegateSpy(listView, SIGNAL(delegateChanged()));
+ QSignalSpy headerSpy(listView, SIGNAL(headerChanged()));
+ QSignalSpy footerSpy(listView, SIGNAL(footerChanged()));
+
+ listView->setHighlight(&component);
+ listView->setHeader(&component);
+ listView->setFooter(&component);
+ listView->setDelegate(&delegateComponent);
+
+ QCOMPARE(listView->highlight(), &component);
+ QCOMPARE(listView->header(), &component);
+ QCOMPARE(listView->footer(), &component);
+ QCOMPARE(listView->delegate(), &delegateComponent);
+
+ QCOMPARE(highlightSpy.count(),1);
+ QCOMPARE(delegateSpy.count(),1);
+ QCOMPARE(headerSpy.count(),1);
+ QCOMPARE(footerSpy.count(),1);
+
+ listView->setHighlight(&component);
+ listView->setHeader(&component);
+ listView->setFooter(&component);
+ listView->setDelegate(&delegateComponent);
+
+ QCOMPARE(highlightSpy.count(),1);
+ QCOMPARE(delegateSpy.count(),1);
+ QCOMPARE(headerSpy.count(),1);
+ QCOMPARE(footerSpy.count(),1);
+
+ delete canvas;
+}
+
+void tst_QDeclarativeListView::modelChanges()
+{
+ QDeclarativeView *canvas = createView();
+ QVERIFY(canvas);
+ canvas->setSource(QUrl::fromLocalFile(SRCDIR "/data/propertychanges.qml"));
+
+ QDeclarativeListView *listView = canvas->rootObject()->findChild<QDeclarativeListView*>("listView");
+ QVERIFY(listView);
+
+ QDeclarativeListModel *alternateModel = canvas->rootObject()->findChild<QDeclarativeListModel*>("alternateModel");
+ QVERIFY(alternateModel);
+ QVariant modelVariant = QVariant::fromValue(alternateModel);
+ QSignalSpy modelSpy(listView, SIGNAL(modelChanged()));
+
+ listView->setModel(modelVariant);
+ QCOMPARE(listView->model(), modelVariant);
+ QCOMPARE(modelSpy.count(),1);
+
+ listView->setModel(modelVariant);
+ QCOMPARE(modelSpy.count(),1);
+
+ listView->setModel(QVariant());
+ QCOMPARE(modelSpy.count(),2);
+
+ delete canvas;
+}
+
void tst_QDeclarativeListView::qListModelInterface_items()
{
items<TestModel>();
diff --git a/tests/auto/declarative/qdeclarativemoduleplugin/tst_qdeclarativemoduleplugin.cpp b/tests/auto/declarative/qdeclarativemoduleplugin/tst_qdeclarativemoduleplugin.cpp
index f3caa7f..92f7aef 100644
--- a/tests/auto/declarative/qdeclarativemoduleplugin/tst_qdeclarativemoduleplugin.cpp
+++ b/tests/auto/declarative/qdeclarativemoduleplugin/tst_qdeclarativemoduleplugin.cpp
@@ -50,7 +50,6 @@ class tst_qdeclarativemoduleplugin : public QObject
public:
tst_qdeclarativemoduleplugin() {
QCoreApplication::addLibraryPath(QLatin1String(SRCDIR) + QDir::separator() + QLatin1String("plugin"));
-qDebug() << QLatin1String(SRCDIR) + QDir::separator() + QLatin1String("plugin");
}
private slots:
diff --git a/tests/auto/declarative/qdeclarativenumberformatter/tst_qdeclarativenumberformatter.cpp b/tests/auto/declarative/qdeclarativenumberformatter/tst_qdeclarativenumberformatter.cpp
index 26ff3d5..a9a0077 100644
--- a/tests/auto/declarative/qdeclarativenumberformatter/tst_qdeclarativenumberformatter.cpp
+++ b/tests/auto/declarative/qdeclarativenumberformatter/tst_qdeclarativenumberformatter.cpp
@@ -172,9 +172,11 @@ tst_qdeclarativenumberformatter::tst_qdeclarativenumberformatter()
<< "00,000,001.0000"
<< "00,000,001.0100"; // end
+ /*
qDebug() << "strings.size()" << strings.size()
<< "\nformats.size()" << formats.size()
<< "texts.size()" << texts.size();
+ */
}
void tst_qdeclarativenumberformatter::text_data()
diff --git a/tests/auto/declarative/qdeclarativeparticles/data/particles.qml b/tests/auto/declarative/qdeclarativeparticles/data/particles.qml
index c58927e..0d42645 100644
--- a/tests/auto/declarative/qdeclarativeparticles/data/particles.qml
+++ b/tests/auto/declarative/qdeclarativeparticles/data/particles.qml
@@ -8,7 +8,7 @@ Rectangle{
objectName: "particles"
width:1; height:1; anchors.centerIn: parent; opacity: 1
lifeSpan: 100; lifeSpanDeviation: 20; count:1000;
- fadeInDuration: 20; fadeOutDuration: 20; count: -1; emissionRate: 1000
+ fadeInDuration: 20; fadeOutDuration: 20; emissionRate: 1000
angle: 0; angleDeviation: 360; velocity: 500; velocityDeviation:30
source: "particle.png"
}
diff --git a/tests/auto/declarative/qdeclarativepathview/data/displaypath.qml b/tests/auto/declarative/qdeclarativepathview/data/displaypath.qml
index 627f38a..ab1538b 100644
--- a/tests/auto/declarative/qdeclarativepathview/data/displaypath.qml
+++ b/tests/auto/declarative/qdeclarativepathview/data/displaypath.qml
@@ -33,7 +33,7 @@ Rectangle {
height: 320
model: testModel
delegate: delegate
- snapPosition: 0.01
+ snapPosition: 0.0001
path: Path {
startY: 120
startX: 160
diff --git a/tests/auto/declarative/qdeclarativepathview/data/pathview.qml b/tests/auto/declarative/qdeclarativepathview/data/pathview.qml
index 8fa8d59..c5d88cd 100644
--- a/tests/auto/declarative/qdeclarativepathview/data/pathview.qml
+++ b/tests/auto/declarative/qdeclarativepathview/data/pathview.qml
@@ -39,7 +39,7 @@ Rectangle {
height: 320
model: testModel
delegate: delegate
- snapPosition: 0.01
+ snapPosition: 0.0001
path: Path {
startY: 120
startX: 160
diff --git a/tests/auto/declarative/qdeclarativepathview/data/pathview2.qml b/tests/auto/declarative/qdeclarativepathview/data/pathview2.qml
index 0d5c98b..c825292 100644
--- a/tests/auto/declarative/qdeclarativepathview/data/pathview2.qml
+++ b/tests/auto/declarative/qdeclarativepathview/data/pathview2.qml
@@ -1,7 +1,7 @@
import Qt 4.6
PathView {
- id: photoPathView; model: rssModel; delegate: photoDelegate
+ id: photoPathView
y: 100; width: 800; height: 330; pathItemCount: 10; z: 1
path: Path {
diff --git a/tests/auto/declarative/qdeclarativepathview/data/pathview3.qml b/tests/auto/declarative/qdeclarativepathview/data/pathview3.qml
index 412cca2..f8ed29f 100644
--- a/tests/auto/declarative/qdeclarativepathview/data/pathview3.qml
+++ b/tests/auto/declarative/qdeclarativepathview/data/pathview3.qml
@@ -1,9 +1,9 @@
import Qt 4.6
PathView {
- id: photoPathView; model: rssModel; delegate: photoDelegate
+ id: photoPathView
y: 100; width: 800; height: 330; pathItemCount: 4; offset: 10
- dragMargin: 24; snapPosition: 50
+ dragMargin: 24; snapPosition: 0.50
path: Path {
startX: -50; startY: 40;
diff --git a/tests/auto/declarative/qdeclarativepathview/data/propertychanges.qml b/tests/auto/declarative/qdeclarativepathview/data/propertychanges.qml
new file mode 100644
index 0000000..db70b7b
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativepathview/data/propertychanges.qml
@@ -0,0 +1,115 @@
+import Qt 4.6
+
+Rectangle {
+ width: 350; height: 220; color: "white"
+ Component {
+ id: myDelegate
+ Item {
+ id: wrapper
+ width: 180; height: 40;
+ opacity: PathView.opacity
+ Column {
+ x: 5; y: 5
+ Text { text: '<b>Name:</b> ' + name }
+ Text { text: '<b>Number:</b> ' + number }
+ }
+ }
+ }
+
+ PathView {
+ snapPosition: 0.1
+ dragMargin: 5.0
+ id: pathView
+ objectName: "pathView"
+ anchors.fill: parent
+ model: listModel
+ delegate: myDelegate
+ focus: true
+ path: Path {
+ id: myPath
+ objectName: "path"
+ startX: 220; startY: 200
+ PathAttribute { name: "opacity"; value: 1.0; objectName: "pathAttribute"; }
+ PathQuad { x: 220; y: 25; controlX: 260; controlY: 75 }
+ PathAttribute { name: "opacity"; value: 0.3 }
+ PathQuad { x: 220; y: 200; controlX: -20; controlY: 75 }
+ }
+ Timer {
+ interval: 2000; running: true; repeat: true
+ onTriggered: {
+ if (pathView.path == alternatePath)
+ pathView.path = myPath;
+ else
+ pathView.path = alternatePath;
+ }
+ }
+ }
+
+ data:[
+ ListModel {
+ id: listModel
+ ListElement {
+ name: "Bill Smith"
+ number: "555 3264"
+ }
+ ListElement {
+ name: "John Brown"
+ number: "555 8426"
+ }
+ ListElement {
+ name: "Sam Wise"
+ number: "555 0473"
+ }
+ ListElement {
+ name: "Bill Smith"
+ number: "555 3264"
+ }
+ ListElement {
+ name: "John Brown"
+ number: "555 8426"
+ }
+ ListElement {
+ name: "Sam Wise"
+ number: "555 0473"
+ }
+ ListElement {
+ name: "Bill Smith"
+ number: "555 3264"
+ }
+ ListElement {
+ name: "John Brown"
+ number: "555 8426"
+ }
+ ListElement {
+ name: "Sam Wise"
+ number: "555 0473"
+ }
+ },
+ ListModel {
+ objectName: "alternateModel"
+ ListElement {
+ name: "Jack"
+ number: "555 8426"
+ }
+ ListElement {
+ name: "Mary"
+ number: "555 3264"
+ }
+ },
+ Path {
+ id: alternatePath
+ objectName: "alternatePath"
+ startX: 100; startY: 40
+ PathAttribute { name: "opacity"; value: 0.0 }
+ PathLine { x: 100; y: 160 }
+ PathAttribute { name: "opacity"; value: 0.2 }
+ PathLine { x: 300; y: 160 }
+ PathAttribute { name: "opacity"; value: 0.0 }
+ PathLine { x: 300; y: 40 }
+ PathAttribute { name: "opacity"; value: 0.2 }
+ PathLine { x: 100; y: 40 }
+ }
+ ]
+}
+
+
diff --git a/tests/auto/declarative/qdeclarativepathview/tst_qdeclarativepathview.cpp b/tests/auto/declarative/qdeclarativepathview/tst_qdeclarativepathview.cpp
index 79bc607..fa4e9d3 100644
--- a/tests/auto/declarative/qdeclarativepathview/tst_qdeclarativepathview.cpp
+++ b/tests/auto/declarative/qdeclarativepathview/tst_qdeclarativepathview.cpp
@@ -38,20 +38,23 @@
** $QT_END_LICENSE$
**
****************************************************************************/
-#include <private/qdeclarativepathview_p.h>
-#include <private/qdeclarativepath_p.h>
-#include <qdeclarativecontext.h>
-#include <qdeclarativeexpression.h>
-#include <qtest.h>
+
+#include <QtTest/QtTest>
+#include <QtDeclarative/qdeclarativeview.h>
#include <QtDeclarative/qdeclarativeengine.h>
#include <QtDeclarative/qdeclarativecomponent.h>
-#include <QtDeclarative/qdeclarativeview.h>
+#include <QtDeclarative/qdeclarativecontext.h>
+#include <QtDeclarative/qdeclarativeexpression.h>
+#include <QtDeclarative/private/qdeclarativepathview_p.h>
+#include <QtDeclarative/private/qdeclarativepath_p.h>
#include <QtDeclarative/private/qdeclarativetext_p.h>
#include <QtDeclarative/private/qdeclarativerectangle_p.h>
+#include <QtDeclarative/private/qdeclarativelistmodel_p.h>
+#include <QtDeclarative/private/qdeclarativevaluetype_p.h>
#include <QAbstractListModel>
#include <QStringListModel>
#include <QFile>
-#include <private/qdeclarativevaluetype_p.h>
+
#include "../../../shared/util.h"
class tst_QDeclarativePathView : public QObject
@@ -69,6 +72,11 @@ private slots:
void path();
void pathMoved();
void resetModel();
+ void propertyChanges();
+ void pathChanges();
+ void componentChanges();
+ void modelChanges();
+
private:
QDeclarativeView *createView();
@@ -120,7 +128,7 @@ public:
setRoleNames(roles);
}
- int rowCount(const QModelIndex &parent=QModelIndex()) const { return list.count(); }
+ int rowCount(const QModelIndex &parent=QModelIndex()) const { Q_UNUSED(parent); return list.count(); }
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const {
QVariant rv;
if (role == Name)
@@ -465,6 +473,149 @@ void tst_QDeclarativePathView::resetModel()
}
}
+void tst_QDeclarativePathView::propertyChanges()
+{
+ QDeclarativeView *canvas = createView();
+ QVERIFY(canvas);
+ canvas->setSource(QUrl::fromLocalFile(SRCDIR "/data/propertychanges.qml"));
+
+ QDeclarativePathView *pathView = canvas->rootObject()->findChild<QDeclarativePathView*>("pathView");
+ QVERIFY(pathView);
+
+ QSignalSpy snapPositionSpy(pathView, SIGNAL(snapPositionChanged()));
+ QSignalSpy dragMarginSpy(pathView, SIGNAL(dragMarginChanged()));
+
+ QCOMPARE(pathView->snapPosition(), 0.1);
+ QCOMPARE(pathView->dragMargin(), 5.0);
+
+ pathView->setSnapPosition(0.4);
+ pathView->setDragMargin(20.0);
+
+ QCOMPARE(pathView->snapPosition(), 0.4);
+ QCOMPARE(pathView->dragMargin(), 20.0);
+
+ QCOMPARE(snapPositionSpy.count(), 1);
+ QCOMPARE(dragMarginSpy.count(), 1);
+
+ pathView->setSnapPosition(0.4);
+ pathView->setDragMargin(20.0);
+
+ QCOMPARE(snapPositionSpy.count(), 1);
+ QCOMPARE(dragMarginSpy.count(), 1);
+ delete canvas;
+}
+
+void tst_QDeclarativePathView::pathChanges()
+{
+ QDeclarativeView *canvas = createView();
+ QVERIFY(canvas);
+ canvas->setSource(QUrl::fromLocalFile(SRCDIR "/data/propertychanges.qml"));
+
+ QDeclarativePathView *pathView = canvas->rootObject()->findChild<QDeclarativePathView*>("pathView");
+ QVERIFY(pathView);
+
+ QDeclarativePath *path = canvas->rootObject()->findChild<QDeclarativePath*>("path");
+ QVERIFY(path);
+
+ QSignalSpy startXSpy(path, SIGNAL(startXChanged()));
+ QSignalSpy startYSpy(path, SIGNAL(startYChanged()));
+
+ QCOMPARE(path->startX(), 220.0);
+ QCOMPARE(path->startY(), 200.0);
+
+ path->setStartX(240.0);
+ path->setStartY(220.0);
+
+ QCOMPARE(path->startX(), 240.0);
+ QCOMPARE(path->startY(), 220.0);
+
+ QCOMPARE(startXSpy.count(),1);
+ QCOMPARE(startYSpy.count(),1);
+
+ path->setStartX(240);
+ path->setStartY(220);
+
+ QCOMPARE(startXSpy.count(),1);
+ QCOMPARE(startYSpy.count(),1);
+
+ QDeclarativePath *alternatePath = canvas->rootObject()->findChild<QDeclarativePath*>("alternatePath");
+ QVERIFY(alternatePath);
+
+ QSignalSpy pathSpy(pathView, SIGNAL(pathChanged()));
+
+ QCOMPARE(pathView->path(), path);
+
+ pathView->setPath(alternatePath);
+ QCOMPARE(pathView->path(), alternatePath);
+ QCOMPARE(pathSpy.count(),1);
+
+ pathView->setPath(alternatePath);
+ QCOMPARE(pathSpy.count(),1);
+
+ QDeclarativePathAttribute *pathAttribute = canvas->rootObject()->findChild<QDeclarativePathAttribute*>("pathAttribute");
+ QVERIFY(pathAttribute);
+
+ QSignalSpy nameSpy(pathAttribute, SIGNAL(nameChanged()));
+ QCOMPARE(pathAttribute->name(), QString("opacity"));
+
+ pathAttribute->setName("scale");
+ QCOMPARE(pathAttribute->name(), QString("scale"));
+ QCOMPARE(nameSpy.count(),1);
+
+ pathAttribute->setName("scale");
+ QCOMPARE(nameSpy.count(),1);
+ delete canvas;
+}
+
+void tst_QDeclarativePathView::componentChanges()
+{
+ QDeclarativeView *canvas = createView();
+ QVERIFY(canvas);
+ canvas->setSource(QUrl::fromLocalFile(SRCDIR "/data/propertychanges.qml"));
+
+ QDeclarativePathView *pathView = canvas->rootObject()->findChild<QDeclarativePathView*>("pathView");
+ QVERIFY(pathView);
+
+ QDeclarativeComponent delegateComponent(canvas->engine());
+ delegateComponent.setData("import Qt 4.6; Text { text: '<b>Name:</b> ' + name }", QUrl::fromLocalFile(""));
+
+ QSignalSpy delegateSpy(pathView, SIGNAL(delegateChanged()));
+
+ pathView->setDelegate(&delegateComponent);
+ QCOMPARE(pathView->delegate(), &delegateComponent);
+ QCOMPARE(delegateSpy.count(),1);
+
+ pathView->setDelegate(&delegateComponent);
+ QCOMPARE(delegateSpy.count(),1);
+ delete canvas;
+}
+
+void tst_QDeclarativePathView::modelChanges()
+{
+ QDeclarativeView *canvas = createView();
+ QVERIFY(canvas);
+ canvas->setSource(QUrl::fromLocalFile(SRCDIR "/data/propertychanges.qml"));
+
+ QDeclarativePathView *pathView = canvas->rootObject()->findChild<QDeclarativePathView*>("pathView");
+ QVERIFY(pathView);
+
+ QDeclarativeListModel *alternateModel = canvas->rootObject()->findChild<QDeclarativeListModel*>("alternateModel");
+ QVERIFY(alternateModel);
+ QVariant modelVariant = QVariant::fromValue(alternateModel);
+ QSignalSpy modelSpy(pathView, SIGNAL(modelChanged()));
+
+ pathView->setModel(modelVariant);
+ QCOMPARE(pathView->model(), modelVariant);
+ QCOMPARE(modelSpy.count(),1);
+
+ pathView->setModel(modelVariant);
+ QCOMPARE(modelSpy.count(),1);
+
+ pathView->setModel(QVariant());
+ QCOMPARE(modelSpy.count(),2);
+
+ delete canvas;
+}
QDeclarativeView *tst_QDeclarativePathView::createView()
{
diff --git a/tests/auto/declarative/qdeclarativepositioners/tst_qdeclarativepositioners.cpp b/tests/auto/declarative/qdeclarativepositioners/tst_qdeclarativepositioners.cpp
index 3a8a892..d23d74c 100644
--- a/tests/auto/declarative/qdeclarativepositioners/tst_qdeclarativepositioners.cpp
+++ b/tests/auto/declarative/qdeclarativepositioners/tst_qdeclarativepositioners.cpp
@@ -365,7 +365,7 @@ void tst_QDeclarativePositioners::test_grid_animated()
}
void tst_QDeclarativePositioners::test_propertychanges()
{
- QDeclarativeView *canvas = createView("data/propertychanges.qml");
+ QDeclarativeView *canvas = createView(SRCDIR "/data/propertychanges.qml");
QDeclarativeGrid *grid = qobject_cast<QDeclarativeGrid*>(canvas->rootObject());
QDeclarativeTransition *rowTransition = canvas->rootObject()->findChild<QDeclarativeTransition*>("rowTransition");
diff --git a/tests/auto/declarative/qdeclarativeproperty/data/TestType.qml b/tests/auto/declarative/qdeclarativeproperty/data/TestType.qml
new file mode 100644
index 0000000..1dfb3e1
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeproperty/data/TestType.qml
@@ -0,0 +1,6 @@
+import Qt 4.6
+
+QtObject {
+ property int a: 10
+}
+
diff --git a/tests/auto/declarative/qdeclarativeproperty/data/readSynthesizedObject.qml b/tests/auto/declarative/qdeclarativeproperty/data/readSynthesizedObject.qml
new file mode 100644
index 0000000..8085db2
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeproperty/data/readSynthesizedObject.qml
@@ -0,0 +1,9 @@
+import Qt 4.6
+
+QtObject {
+ property TestType test
+
+ test: TestType {
+ property int b: 19
+ }
+}
diff --git a/tests/auto/declarative/qdeclarativeproperty/qdeclarativeproperty.pro b/tests/auto/declarative/qdeclarativeproperty/qdeclarativeproperty.pro
index 22e50cc..af1e1b6 100644
--- a/tests/auto/declarative/qdeclarativeproperty/qdeclarativeproperty.pro
+++ b/tests/auto/declarative/qdeclarativeproperty/qdeclarativeproperty.pro
@@ -3,3 +3,5 @@ contains(QT_CONFIG,declarative): QT += declarative
macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativeproperty.cpp
+
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/qdeclarativeproperty/tst_qdeclarativeproperty.cpp b/tests/auto/declarative/qdeclarativeproperty/tst_qdeclarativeproperty.cpp
index 0333d98..9b8a643 100644
--- a/tests/auto/declarative/qdeclarativeproperty/tst_qdeclarativeproperty.cpp
+++ b/tests/auto/declarative/qdeclarativeproperty/tst_qdeclarativeproperty.cpp
@@ -46,6 +46,14 @@
#include <private/qguard_p.h>
#include <private/qdeclarativebinding_p.h>
#include <QtGui/QLineEdit>
+#include <QtCore/qfileinfo.h>
+#include <QtCore/qdir.h>
+
+inline QUrl TEST_FILE(const QString &filename)
+{
+ QFileInfo fileInfo(__FILE__);
+ return QUrl::fromLocalFile(fileInfo.absoluteDir().filePath(QLatin1String("data/") + filename));
+}
class MyQmlObject : public QObject
{
@@ -181,6 +189,7 @@ class PropertyObject : public QObject
Q_PROPERTY(QUrl url READ url WRITE setUrl);
Q_PROPERTY(int resettableProperty READ resettableProperty WRITE setResettableProperty RESET resetProperty);
Q_PROPERTY(int propertyWithNotify READ propertyWithNotify WRITE setPropertyWithNotify NOTIFY oddlyNamedNotifySignal)
+ Q_PROPERTY(MyQmlObject *qmlObject READ qmlObject);
Q_CLASSINFO("DefaultProperty", "defaultProperty");
public:
@@ -202,6 +211,7 @@ public:
int propertyWithNotify() const { return m_propertyWithNotify; }
void setPropertyWithNotify(int i) { m_propertyWithNotify = i; emit oddlyNamedNotifySignal(); }
+ MyQmlObject *qmlObject() { return &m_qmlObject; }
signals:
void clicked();
void oddlyNamedNotifySignal();
@@ -211,6 +221,7 @@ private:
QRect m_rect;
QUrl m_url;
int m_propertyWithNotify;
+ MyQmlObject m_qmlObject;
};
QML_DECLARE_TYPE(PropertyObject);
@@ -953,6 +964,32 @@ void tst_qdeclarativeproperty::read()
QCOMPARE(p.read(), QVariant());
}
+ // Object property
+ {
+ PropertyObject o;
+ QDeclarativeProperty p(&o, "qmlObject");
+ QCOMPARE(p.propertyTypeCategory(), QDeclarativeProperty::Object);
+ QCOMPARE(p.propertyType(), qMetaTypeId<MyQmlObject*>());
+ QVariant v = p.read();
+ QVERIFY(v.userType() == QMetaType::QObjectStar);
+ QVERIFY(qvariant_cast<QObject *>(v) == o.qmlObject());
+ }
+ {
+ QDeclarativeComponent component(&engine, TEST_FILE("readSynthesizedObject.qml"));
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+
+ QDeclarativeProperty p(object, "test", &engine);
+
+ QCOMPARE(p.propertyTypeCategory(), QDeclarativeProperty::Object);
+ QVERIFY(p.propertyType() != QMetaType::QObjectStar);
+
+ QVariant v = p.read();
+ QVERIFY(v.userType() == QMetaType::QObjectStar);
+ QCOMPARE(qvariant_cast<QObject *>(v)->property("a").toInt(), 10);
+ QCOMPARE(qvariant_cast<QObject *>(v)->property("b").toInt(), 19);
+ }
+
// Attached property
{
QDeclarativeComponent component(&engine);
diff --git a/tests/auto/declarative/qdeclarativeqt/data/formatting.qml b/tests/auto/declarative/qdeclarativeqt/data/formatting.qml
new file mode 100644
index 0000000..e62749a
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeqt/data/formatting.qml
@@ -0,0 +1,19 @@
+import Qt 4.6
+
+QtObject {
+ property date date1: "2008-12-24"
+ property string test1: Qt.formatDate(date1)
+ property string test2: Qt.formatDate(date1, Qt.DefaultLocaleLongDate)
+ property string test3: Qt.formatDate(date1, "ddd MMMM d yy")
+
+ property var time1: new Date(0,0,0,14,15,38,200)
+ property string test4: Qt.formatTime(time1)
+ property string test5: Qt.formatTime(time1, Qt.DefaultLocaleLongDate)
+ property string test6: Qt.formatTime(time1, "H:m:s a")
+ property string test7: Qt.formatTime(time1, "hh:mm:ss.zzz")
+
+ property var dateTime1: new Date(1978,2,4,9,13,54)
+ property string test8: Qt.formatDateTime(dateTime1)
+ property string test9: Qt.formatDateTime(dateTime1, Qt.DefaultLocaleLongDate)
+ property string test10: Qt.formatDateTime(dateTime1, "M/d/yy H:m:s a")
+}
diff --git a/tests/auto/declarative/qdeclarativeqt/tst_qdeclarativeqt.cpp b/tests/auto/declarative/qdeclarativeqt/tst_qdeclarativeqt.cpp
index 9ec6872..90afd4e 100644
--- a/tests/auto/declarative/qdeclarativeqt/tst_qdeclarativeqt.cpp
+++ b/tests/auto/declarative/qdeclarativeqt/tst_qdeclarativeqt.cpp
@@ -67,12 +67,12 @@ private slots:
void darker();
void tint();
void closestAngle();
- void playSound();
void openUrlExternally();
void md5();
void createComponent();
void createQmlObject();
void consoleLog();
+ void formatting();
private:
QDeclarativeEngine engine;
@@ -279,12 +279,6 @@ void tst_qdeclarativeqt::closestAngle()
delete object;
}
-void tst_qdeclarativeqt::playSound()
-{
- QEXPECT_FAIL("", "How do we test this?", Abort);
- QVERIFY(false);
-}
-
void tst_qdeclarativeqt::openUrlExternally()
{
QEXPECT_FAIL("", "How do we test this?", Abort);
@@ -364,6 +358,34 @@ void tst_qdeclarativeqt::consoleLog()
delete object;
}
+void tst_qdeclarativeqt::formatting()
+{
+ QDeclarativeComponent component(&engine, TEST_FILE("formatting.qml"));
+ QObject *object = component.create();
+ QVERIFY(object != 0);
+
+ QDate date1(2008,12,24);
+ QCOMPARE(object->property("date1").toDate(), date1);
+ QCOMPARE(object->property("test1").toString(), date1.toString(Qt::DefaultLocaleShortDate));
+ QCOMPARE(object->property("test2").toString(), date1.toString(Qt::DefaultLocaleLongDate));
+ QCOMPARE(object->property("test3").toString(), date1.toString("ddd MMMM d yy"));
+
+ QTime time1(14,15,38,200);
+ QCOMPARE(object->property("time1").toTime(), time1);
+ QCOMPARE(object->property("test4").toString(), time1.toString(Qt::DefaultLocaleShortDate));
+ QCOMPARE(object->property("test5").toString(), time1.toString(Qt::DefaultLocaleLongDate));
+ QCOMPARE(object->property("test6").toString(), time1.toString("H:m:s a"));
+ QCOMPARE(object->property("test7").toString(), time1.toString("hh:mm:ss.zzz"));
+
+ QDateTime dateTime1(QDate(1978,03,04),QTime(9,13,54));
+ QCOMPARE(object->property("dateTime1").toDateTime(),dateTime1);
+ QCOMPARE(object->property("test8").toString(), dateTime1.toString(Qt::DefaultLocaleShortDate));
+ QCOMPARE(object->property("test9").toString(), dateTime1.toString(Qt::DefaultLocaleLongDate));
+ QCOMPARE(object->property("test10").toString(), dateTime1.toString("M/d/yy H:m:s a"));
+
+ delete object;
+}
+
QTEST_MAIN(tst_qdeclarativeqt)
#include "tst_qdeclarativeqt.moc"
diff --git a/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp b/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
index b677fec..b1935df 100644
--- a/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
+++ b/tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
@@ -663,15 +663,17 @@ void tst_qdeclarativetextedit::delegateLoading()
QVERIFY(delegate);
view->setSource(QUrl("http://localhost:42332/cursorHttpTestFail1.qml"));
view->show();
+ QTRY_VERIFY(view->status()==QDeclarativeView::Error);
view->setFocus();
QTRY_VERIFY(!view->rootObject()); // there is fail item inside this test
view->setSource(QUrl("http://localhost:42332/cursorHttpTestFail2.qml"));
view->show();
+ QTRY_VERIFY(view->status()==QDeclarativeView::Error);
view->setFocus();
QTRY_VERIFY(!view->rootObject()); // there is fail item inside this test
- //ErrorB should get a component which is ready but component.create() returns null
+ //A test should be added here with a component which is ready but component.create() returns null
//Not sure how to accomplish this with QDeclarativeTextEdits cursor delegate
- //###This could be a case of overzealous defensive programming
+ //###This was only needed for code coverage, and could be a case of overzealous defensive programming
//delegate = view->rootObject()->findChild<QDeclarativeItem*>("delegateErrorB");
//QVERIFY(!delegate);
}
diff --git a/tests/auto/declarative/qdeclarativevaluetypes/data/valueInterceptors.qml b/tests/auto/declarative/qdeclarativevaluetypes/data/valueInterceptors.qml
index 026ae83..0897847 100644
--- a/tests/auto/declarative/qdeclarativevaluetypes/data/valueInterceptors.qml
+++ b/tests/auto/declarative/qdeclarativevaluetypes/data/valueInterceptors.qml
@@ -3,6 +3,6 @@ import Test 1.0
MyTypeObject {
property int value: 13;
- rect.x: MyOffsetValueInterceptor {}
+ MyOffsetValueInterceptor on rect.x {}
rect.x: value
}
diff --git a/tests/auto/declarative/qdeclarativevaluetypes/data/valueSources.qml b/tests/auto/declarative/qdeclarativevaluetypes/data/valueSources.qml
index d4d4391..717f350 100644
--- a/tests/auto/declarative/qdeclarativevaluetypes/data/valueSources.qml
+++ b/tests/auto/declarative/qdeclarativevaluetypes/data/valueSources.qml
@@ -1,5 +1,5 @@
import Test 1.0
MyTypeObject {
- rect.x: MyConstantValueSource {}
+ MyConstantValueSource on rect.x {}
}
diff --git a/tests/auto/declarative/qdeclarativevaluetypes/tst_qdeclarativevaluetypes.cpp b/tests/auto/declarative/qdeclarativevaluetypes/tst_qdeclarativevaluetypes.cpp
index 69646b9..8732215 100644
--- a/tests/auto/declarative/qdeclarativevaluetypes/tst_qdeclarativevaluetypes.cpp
+++ b/tests/auto/declarative/qdeclarativevaluetypes/tst_qdeclarativevaluetypes.cpp
@@ -502,10 +502,9 @@ void tst_qdeclarativevaluetypes::valueInterceptors()
QDeclarativeComponent component(&engine, TEST_FILE("valueInterceptors.qml"));
MyTypeObject *object = qobject_cast<MyTypeObject *>(component.create());
checkNoErrors(component);
- QEXPECT_FAIL("", "QT-2920", Abort);
QVERIFY(object != 0);
- QCOMPARE(object->rect().x(), 26);
+ QCOMPARE(object->rect().x(), 13);
object->setProperty("value", 99);
diff --git a/tests/auto/declarative/qdeclarativewebview/data/basic.qml b/tests/auto/declarative/qdeclarativewebview/data/basic.qml
index 5394837..f0b41ef 100644
--- a/tests/auto/declarative/qdeclarativewebview/data/basic.qml
+++ b/tests/auto/declarative/qdeclarativewebview/data/basic.qml
@@ -1,4 +1,5 @@
import Qt 4.6
+import org.webkit 1.0
WebView {
url: "basic.html"
diff --git a/tests/auto/declarative/qdeclarativewebview/data/elements.qml b/tests/auto/declarative/qdeclarativewebview/data/elements.qml
index 7c030e6..16e5788 100644
--- a/tests/auto/declarative/qdeclarativewebview/data/elements.qml
+++ b/tests/auto/declarative/qdeclarativewebview/data/elements.qml
@@ -1,4 +1,5 @@
import Qt 4.6
+import org.webkit 1.0
WebView {
url: "elements.html"
diff --git a/tests/auto/declarative/qdeclarativewebview/data/forward.png b/tests/auto/declarative/qdeclarativewebview/data/forward.png
new file mode 100644
index 0000000..a82533e
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativewebview/data/forward.png
Binary files differ
diff --git a/tests/auto/declarative/qdeclarativewebview/data/javaScript.qml b/tests/auto/declarative/qdeclarativewebview/data/javaScript.qml
index 07eee88..0e92e0e 100644
--- a/tests/auto/declarative/qdeclarativewebview/data/javaScript.qml
+++ b/tests/auto/declarative/qdeclarativewebview/data/javaScript.qml
@@ -1,4 +1,5 @@
import Qt 4.6
+import org.webkit 1.0
WebView {
url: "javaScript.html"
diff --git a/tests/auto/declarative/qdeclarativewebview/data/loadError.qml b/tests/auto/declarative/qdeclarativewebview/data/loadError.qml
index 1460f30..f827238 100644
--- a/tests/auto/declarative/qdeclarativewebview/data/loadError.qml
+++ b/tests/auto/declarative/qdeclarativewebview/data/loadError.qml
@@ -1,4 +1,5 @@
import Qt 4.6
+import org.webkit 1.0
WebView {
url: "does-not-exist.html"
diff --git a/tests/auto/declarative/qdeclarativewebview/data/newwindows.qml b/tests/auto/declarative/qdeclarativewebview/data/newwindows.qml
index 0bc8263..4d9df43 100644
--- a/tests/auto/declarative/qdeclarativewebview/data/newwindows.qml
+++ b/tests/auto/declarative/qdeclarativewebview/data/newwindows.qml
@@ -1,6 +1,7 @@
// Demonstrates opening new WebViews from HTML
import Qt 4.6
+import org.webkit 1.0
Grid {
columns: 3
diff --git a/tests/auto/declarative/qdeclarativewebview/data/propertychanges.qml b/tests/auto/declarative/qdeclarativewebview/data/propertychanges.qml
index 3dd4e51..0770acf 100644
--- a/tests/auto/declarative/qdeclarativewebview/data/propertychanges.qml
+++ b/tests/auto/declarative/qdeclarativewebview/data/propertychanges.qml
@@ -1,4 +1,5 @@
import Qt 4.6
+import org.webkit 1.0
Item {
width: 240
@@ -30,4 +31,4 @@ Item {
pressGrabTime: 200
}
}
-} \ No newline at end of file
+}
diff --git a/tests/auto/declarative/qdeclarativewebview/data/sethtml.qml b/tests/auto/declarative/qdeclarativewebview/data/sethtml.qml
index 063b5a8..9e17597 100644
--- a/tests/auto/declarative/qdeclarativewebview/data/sethtml.qml
+++ b/tests/auto/declarative/qdeclarativewebview/data/sethtml.qml
@@ -1,4 +1,5 @@
import Qt 4.6
+import org.webkit 1.0
WebView {
html: "<p>This is a <b>string</b> set on the WebView"
diff --git a/tests/auto/declarative/qdeclarativewebview/qdeclarativewebview.pro b/tests/auto/declarative/qdeclarativewebview/qdeclarativewebview.pro
index 6af0a60..20173c6 100644
--- a/tests/auto/declarative/qdeclarativewebview/qdeclarativewebview.pro
+++ b/tests/auto/declarative/qdeclarativewebview/qdeclarativewebview.pro
@@ -3,8 +3,7 @@ contains(QT_CONFIG,declarative): QT += declarative
contains(QT_CONFIG,webkit): QT += webkit
macx:CONFIG -= app_bundle
-SOURCES += tst_qdeclarativewebview.cpp testtypes.cpp
-HEADERS += testtypes.h
+SOURCES += tst_qdeclarativewebview.cpp
# Define SRCDIR equal to test's source directory
DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/qdeclarativewebview/testtypes.cpp b/tests/auto/declarative/qdeclarativewebview/testtypes.cpp
deleted file mode 100644
index 7efc214..0000000
--- a/tests/auto/declarative/qdeclarativewebview/testtypes.cpp
+++ /dev/null
@@ -1,52 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** No Commercial Usage
-** This file contains pre-release code and may not be distributed.
-** You may use this file in accordance with the terms and conditions
-** contained in the Technology Preview License Agreement accompanying
-** this package.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** If you have questions regarding the use of this file, please contact
-** Nokia at qt-info@nokia.com.
-**
-**
-**
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-#include "testtypes.h"
-
-void MyWebView::drawContents(QPainter *p, const QRect &r)
-{
- pp += r.width()*r.height();
- QDeclarativeWebView::drawContents(p,r);
-}
-
-void registerTypes()
-{
- QML_REGISTER_TYPE(Test,1,0,MyWebView,MyWebView);
-}
diff --git a/tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp b/tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp
index 6d16056..b63e14b 100644
--- a/tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp
+++ b/tests/auto/declarative/qdeclarativewebview/tst_qdeclarativewebview.cpp
@@ -43,15 +43,12 @@
#include "../../../shared/util.h"
#include <QtDeclarative/qdeclarativeengine.h>
#include <QtDeclarative/qdeclarativecomponent.h>
-#include <private/qdeclarativewebview_p.h>
-#include <private/qdeclarativewebview_p_p.h>
#include <private/qdeclarativepositioners_p.h>
#include <QtWebKit/qwebpage.h>
#include <QtWebKit/qwebframe.h>
#include <QtCore/qdir.h>
#include <QtCore/qfile.h>
#include <QtGui/qpainter.h>
-#include "testtypes.h"
class tst_qdeclarativewebview : public QObject
{
@@ -70,7 +67,7 @@ private slots:
void setHtml();
void javaScript();
void cleanupTestCase();
- void pixelCache();
+ //void pixelCache();
void newWindowParent();
void newWindowComponent();
void renderingEnabled();
@@ -89,7 +86,6 @@ private:
void tst_qdeclarativewebview::initTestCase()
{
- registerTypes();
}
static QString strippedHtml(QString html)
@@ -148,81 +144,82 @@ void tst_qdeclarativewebview::basicProperties()
checkNoErrors(component);
QWebSettings::enablePersistentStorage(tmpDir());
- QDeclarativeWebView *wv = qobject_cast<QDeclarativeWebView*>(component.create());
+ QObject *wv = component.create();
QVERIFY(wv != 0);
- QTRY_COMPARE(wv->progress(), 1.0);
- QCOMPARE(wv->title(),QString("Basic"));
- QTRY_COMPARE(wv->icon().width(), 48);
- QCOMPARE(wv->icon(),QPixmap(SRCDIR "/data/basic.png"));
- QCOMPARE(wv->statusText(),QString("status here"));
- QCOMPARE(strippedHtml(fileContents(SRCDIR "/data/basic.html")), strippedHtml(wv->html()));
- QCOMPARE(wv->width(), 123.0);
- QCOMPARE(wv->preferredWidth(), 0);
- QCOMPARE(wv->preferredHeight(), 0);
- QCOMPARE(wv->zoomFactor(), 1.0);
- QCOMPARE(wv->url(), QUrl::fromLocalFile(SRCDIR "/data/basic.html"));
- QCOMPARE(wv->status(), QDeclarativeWebView::Ready);
- QVERIFY(wv->reloadAction());
- QVERIFY(wv->reloadAction()->isEnabled());
- QVERIFY(wv->backAction());
- QVERIFY(!wv->backAction()->isEnabled());
- QVERIFY(wv->forwardAction());
- QVERIFY(!wv->forwardAction()->isEnabled());
- QVERIFY(wv->stopAction());
- QVERIFY(!wv->stopAction()->isEnabled());
-
- wv->setPixelCacheSize(0); // mainly testing that it doesn't crash or anything!
- QCOMPARE(wv->pixelCacheSize(),0);
- wv->reloadAction()->trigger();
- QTRY_COMPARE(wv->progress(), 1.0);
+ QTRY_COMPARE(wv->property("progress").toDouble(), 1.0);
+ QCOMPARE(wv->property("title").toString(),QString("Basic"));
+ QTRY_COMPARE(qvariant_cast<QPixmap>(wv->property("icon")).width(), 48);
+ QCOMPARE(qvariant_cast<QPixmap>(wv->property("icon")),QPixmap(SRCDIR "/data/basic.png"));
+ QCOMPARE(wv->property("statusText").toString(),QString("status here"));
+ QCOMPARE(strippedHtml(fileContents(SRCDIR "/data/basic.html")), strippedHtml(wv->property("html").toString()));
+ QCOMPARE(wv->property("width").toDouble(), 123.0);
+ QCOMPARE(wv->property("preferredWidth").toInt(), 0);
+ QCOMPARE(wv->property("preferredHeight").toInt(), 0);
+ QCOMPARE(wv->property("zoomFactor").toDouble(), 1.0);
+ QCOMPARE(wv->property("url").toUrl(), QUrl::fromLocalFile(SRCDIR "/data/basic.html"));
+ QCOMPARE(wv->property("status").toInt(), 1 /*QDeclarativeWebView::Ready*/);
+ QVERIFY(qvariant_cast<QAction*>(wv->property("reload")));
+ QVERIFY(qvariant_cast<QAction*>(wv->property("reload"))->isEnabled());
+ QVERIFY(qvariant_cast<QAction*>(wv->property("back")));
+ QVERIFY(!qvariant_cast<QAction*>(wv->property("back"))->isEnabled());
+ QVERIFY(qvariant_cast<QAction*>(wv->property("forward")));
+ QVERIFY(!qvariant_cast<QAction*>(wv->property("forward"))->isEnabled());
+ QVERIFY(qvariant_cast<QAction*>(wv->property("stop")));
+ QVERIFY(!qvariant_cast<QAction*>(wv->property("stop"))->isEnabled());
+
+ wv->setProperty("pixelCacheSize", 0); // mainly testing that it doesn't crash or anything!
+ QCOMPARE(wv->property("pixelCacheSize").toInt(),0);
+ qvariant_cast<QAction*>(wv->property("reload"))->trigger();
+ QTRY_COMPARE(wv->property("progress").toDouble(), 1.0);
}
void tst_qdeclarativewebview::settings()
{
QDeclarativeComponent component(&engine, QUrl::fromLocalFile(SRCDIR "/data/basic.qml"));
checkNoErrors(component);
- QDeclarativeWebView *wv = qobject_cast<QDeclarativeWebView*>(component.create());
+ QObject *wv = component.create();
QVERIFY(wv != 0);
- QTRY_COMPARE(wv->progress(), 1.0);
+ QTRY_COMPARE(wv->property("progress").toDouble(), 1.0);
- QDeclarativeWebSettings *s = wv->settingsObject();
+ QObject *s = QDeclarativeProperty(wv,"settings").object();
+ QVERIFY(s != 0);
// merely tests that setting gets stored (in QWebSettings)
// behavioural tests are in WebKit.
for (int b=0; b<=1; ++b) {
bool on = !!b;
- s->setAutoLoadImages(on);
- s->setDeveloperExtrasEnabled(on);
- s->setJavaEnabled(on);
- s->setJavascriptCanAccessClipboard(on);
- s->setJavascriptCanOpenWindows(on);
- s->setJavascriptEnabled(on);
- s->setLinksIncludedInFocusChain(on);
- s->setLocalContentCanAccessRemoteUrls(on);
- s->setLocalStorageDatabaseEnabled(on);
- s->setOfflineStorageDatabaseEnabled(on);
- s->setOfflineWebApplicationCacheEnabled(on);
- s->setPluginsEnabled(on);
- s->setPrintElementBackgrounds(on);
- s->setPrivateBrowsingEnabled(on);
- s->setZoomTextOnly(on);
-
- QVERIFY(s->autoLoadImages() == on);
- QVERIFY(s->developerExtrasEnabled() == on);
- QVERIFY(s->javaEnabled() == on);
- QVERIFY(s->javascriptCanAccessClipboard() == on);
- QVERIFY(s->javascriptCanOpenWindows() == on);
- QVERIFY(s->javascriptEnabled() == on);
- QVERIFY(s->linksIncludedInFocusChain() == on);
- QVERIFY(s->localContentCanAccessRemoteUrls() == on);
- QVERIFY(s->localStorageDatabaseEnabled() == on);
- QVERIFY(s->offlineStorageDatabaseEnabled() == on);
- QVERIFY(s->offlineWebApplicationCacheEnabled() == on);
- QVERIFY(s->pluginsEnabled() == on);
- QVERIFY(s->printElementBackgrounds() == on);
- QVERIFY(s->privateBrowsingEnabled() == on);
- QVERIFY(s->zoomTextOnly() == on);
+ s->setProperty("autoLoadImages", on);
+ s->setProperty("developerExtrasEnabled", on);
+ s->setProperty("javaEnabled", on);
+ s->setProperty("javascriptCanAccessClipboard", on);
+ s->setProperty("javascriptCanOpenWindows", on);
+ s->setProperty("javascriptEnabled", on);
+ s->setProperty("linksIncludedInFocusChain", on);
+ s->setProperty("localContentCanAccessRemoteUrls", on);
+ s->setProperty("localStorageDatabaseEnabled", on);
+ s->setProperty("offlineStorageDatabaseEnabled", on);
+ s->setProperty("offlineWebApplicationCacheEnabled", on);
+ s->setProperty("pluginsEnabled", on);
+ s->setProperty("printElementBackgrounds", on);
+ s->setProperty("privateBrowsingEnabled", on);
+ s->setProperty("zoomTextOnly", on);
+
+ QVERIFY(s->property("autoLoadImages") == on);
+ QVERIFY(s->property("developerExtrasEnabled") == on);
+ QVERIFY(s->property("javaEnabled") == on);
+ QVERIFY(s->property("javascriptCanAccessClipboard") == on);
+ QVERIFY(s->property("javascriptCanOpenWindows") == on);
+ QVERIFY(s->property("javascriptEnabled") == on);
+ QVERIFY(s->property("linksIncludedInFocusChain") == on);
+ QVERIFY(s->property("localContentCanAccessRemoteUrls") == on);
+ QVERIFY(s->property("localStorageDatabaseEnabled") == on);
+ QVERIFY(s->property("offlineStorageDatabaseEnabled") == on);
+ QVERIFY(s->property("offlineWebApplicationCacheEnabled") == on);
+ QVERIFY(s->property("pluginsEnabled") == on);
+ QVERIFY(s->property("printElementBackgrounds") == on);
+ QVERIFY(s->property("privateBrowsingEnabled") == on);
+ QVERIFY(s->property("zoomTextOnly") == on);
QVERIFY(s->property("autoLoadImages") == on);
QVERIFY(s->property("developerExtrasEnabled") == on);
@@ -248,65 +245,65 @@ void tst_qdeclarativewebview::historyNav()
checkNoErrors(component);
QWebSettings::enablePersistentStorage(tmpDir());
- QDeclarativeWebView *wv = qobject_cast<QDeclarativeWebView*>(component.create());
+ QObject *wv = component.create();
QVERIFY(wv != 0);
for (int i=1; i<=2; ++i) {
- QTRY_COMPARE(wv->progress(), 1.0);
- QCOMPARE(wv->title(),QString("Basic"));
- QTRY_COMPARE(wv->icon().width(), 48);
- QCOMPARE(wv->icon(),QPixmap(SRCDIR "/data/basic.png"));
- QCOMPARE(wv->statusText(),QString("status here"));
- QCOMPARE(strippedHtml(fileContents(SRCDIR "/data/basic.html")), strippedHtml(wv->html()));
- QCOMPARE(wv->width(), 123.0);
- QCOMPARE(wv->preferredWidth(), 0);
- QCOMPARE(wv->zoomFactor(), 1.0);
- QCOMPARE(wv->url(), QUrl::fromLocalFile(SRCDIR "/data/basic.html"));
- QCOMPARE(wv->status(), QDeclarativeWebView::Ready);
- QVERIFY(wv->reloadAction());
- QVERIFY(wv->reloadAction()->isEnabled());
- QVERIFY(wv->backAction());
- QVERIFY(!wv->backAction()->isEnabled());
- QVERIFY(wv->forwardAction());
- QVERIFY(!wv->forwardAction()->isEnabled());
- QVERIFY(wv->stopAction());
- QVERIFY(!wv->stopAction()->isEnabled());
-
- wv->reloadAction()->trigger();
+ QTRY_COMPARE(wv->property("progress").toDouble(), 1.0);
+ QCOMPARE(wv->property("title").toString(),QString("Basic"));
+ QTRY_COMPARE(qvariant_cast<QPixmap>(wv->property("icon")).width(), 48);
+ QCOMPARE(qvariant_cast<QPixmap>(wv->property("icon")),QPixmap(SRCDIR "/data/basic.png"));
+ QCOMPARE(wv->property("statusText").toString(),QString("status here"));
+ QCOMPARE(strippedHtml(fileContents(SRCDIR "/data/basic.html")), strippedHtml(wv->property("html").toString()));
+ QCOMPARE(wv->property("width").toDouble(), 123.0);
+ QCOMPARE(wv->property("preferredWidth").toDouble(), 0.0);
+ QCOMPARE(wv->property("zoomFactor").toDouble(), 1.0);
+ QCOMPARE(wv->property("url").toUrl(), QUrl::fromLocalFile(SRCDIR "/data/basic.html"));
+ QCOMPARE(wv->property("status").toInt(), 1 /*QDeclarativeWebView::Ready*/);
+ QVERIFY(qvariant_cast<QAction*>(wv->property("reload")));
+ QVERIFY(qvariant_cast<QAction*>(wv->property("reload"))->isEnabled());
+ QVERIFY(qvariant_cast<QAction*>(wv->property("back")));
+ QVERIFY(!qvariant_cast<QAction*>(wv->property("back"))->isEnabled());
+ QVERIFY(qvariant_cast<QAction*>(wv->property("forward")));
+ QVERIFY(!qvariant_cast<QAction*>(wv->property("forward"))->isEnabled());
+ QVERIFY(qvariant_cast<QAction*>(wv->property("stop")));
+ QVERIFY(!qvariant_cast<QAction*>(wv->property("stop"))->isEnabled());
+
+ qvariant_cast<QAction*>(wv->property("reload"))->trigger();
}
- wv->setUrl(QUrl::fromLocalFile(SRCDIR "/data/forward.html"));
- QTRY_COMPARE(wv->progress(), 1.0);
- QCOMPARE(wv->title(),QString("Forward"));
- QTRY_COMPARE(wv->icon().width(), 32);
- QCOMPARE(wv->icon(),QPixmap(SRCDIR "/data/forward.png"));
- QCOMPARE(strippedHtml(fileContents(SRCDIR "/data/forward.html")), strippedHtml(wv->html()));
- QCOMPARE(wv->url(), QUrl::fromLocalFile(SRCDIR "/data/forward.html"));
- QCOMPARE(wv->status(), QDeclarativeWebView::Ready);
- QCOMPARE(wv->statusText(),QString(""));
- QVERIFY(wv->reloadAction());
- QVERIFY(wv->reloadAction()->isEnabled());
- QVERIFY(wv->backAction());
- QVERIFY(wv->backAction()->isEnabled());
- QVERIFY(wv->forwardAction());
- QVERIFY(!wv->forwardAction()->isEnabled());
- QVERIFY(wv->stopAction());
- QVERIFY(!wv->stopAction()->isEnabled());
-
- wv->backAction()->trigger();
-
- QTRY_COMPARE(wv->progress(), 1.0);
- QCOMPARE(wv->title(),QString("Basic"));
- QCOMPARE(strippedHtml(fileContents(SRCDIR "/data/basic.html")), strippedHtml(wv->html()));
- QCOMPARE(wv->url(), QUrl::fromLocalFile(SRCDIR "/data/basic.html"));
- QCOMPARE(wv->status(), QDeclarativeWebView::Ready);
- QVERIFY(wv->reloadAction());
- QVERIFY(wv->reloadAction()->isEnabled());
- QVERIFY(wv->backAction());
- QVERIFY(!wv->backAction()->isEnabled());
- QVERIFY(wv->forwardAction());
- QVERIFY(wv->forwardAction()->isEnabled());
- QVERIFY(wv->stopAction());
- QVERIFY(!wv->stopAction()->isEnabled());
+ wv->setProperty("url", QUrl::fromLocalFile(SRCDIR "/data/forward.html"));
+ QTRY_COMPARE(wv->property("progress").toDouble(), 1.0);
+ QCOMPARE(wv->property("title").toString(),QString("Forward"));
+ QTRY_COMPARE(qvariant_cast<QPixmap>(wv->property("icon")).width(), 32);
+ QCOMPARE(qvariant_cast<QPixmap>(wv->property("icon")),QPixmap(SRCDIR "/data/forward.png"));
+ QCOMPARE(strippedHtml(fileContents(SRCDIR "/data/forward.html")), strippedHtml(wv->property("html").toString()));
+ QCOMPARE(wv->property("url").toUrl(), QUrl::fromLocalFile(SRCDIR "/data/forward.html"));
+ QCOMPARE(wv->property("status").toInt(), 1 /*QDeclarativeWebView::Ready*/);
+ QCOMPARE(wv->property("statusText").toString(),QString(""));
+ QVERIFY(qvariant_cast<QAction*>(wv->property("reload")));
+ QVERIFY(qvariant_cast<QAction*>(wv->property("reload"))->isEnabled());
+ QVERIFY(qvariant_cast<QAction*>(wv->property("back")));
+ QVERIFY(qvariant_cast<QAction*>(wv->property("back"))->isEnabled());
+ QVERIFY(qvariant_cast<QAction*>(wv->property("forward")));
+ QVERIFY(!qvariant_cast<QAction*>(wv->property("forward"))->isEnabled());
+ QVERIFY(qvariant_cast<QAction*>(wv->property("stop")));
+ QVERIFY(!qvariant_cast<QAction*>(wv->property("stop"))->isEnabled());
+
+ qvariant_cast<QAction*>(wv->property("back"))->trigger();
+
+ QTRY_COMPARE(wv->property("progress").toDouble(), 1.0);
+ QCOMPARE(wv->property("title").toString(),QString("Basic"));
+ QCOMPARE(strippedHtml(fileContents(SRCDIR "/data/basic.html")), strippedHtml(wv->property("html").toString()));
+ QCOMPARE(wv->property("url").toUrl(), QUrl::fromLocalFile(SRCDIR "/data/basic.html"));
+ QCOMPARE(wv->property("status").toInt(), 1 /*QDeclarativeWebView::Ready*/);
+ QVERIFY(qvariant_cast<QAction*>(wv->property("reload")));
+ QVERIFY(qvariant_cast<QAction*>(wv->property("reload"))->isEnabled());
+ QVERIFY(qvariant_cast<QAction*>(wv->property("back")));
+ QVERIFY(!qvariant_cast<QAction*>(wv->property("back"))->isEnabled());
+ QVERIFY(qvariant_cast<QAction*>(wv->property("forward")));
+ QVERIFY(qvariant_cast<QAction*>(wv->property("forward"))->isEnabled());
+ QVERIFY(qvariant_cast<QAction*>(wv->property("stop")));
+ QVERIFY(!qvariant_cast<QAction*>(wv->property("stop"))->isEnabled());
}
void tst_qdeclarativewebview::multipleWindows()
@@ -328,16 +325,16 @@ void tst_qdeclarativewebview::loadError()
checkNoErrors(component);
QWebSettings::enablePersistentStorage(tmpDir());
- QDeclarativeWebView *wv = qobject_cast<QDeclarativeWebView*>(component.create());
+ QObject *wv = component.create();
QVERIFY(wv != 0);
for (int i=1; i<=2; ++i) {
- QTRY_COMPARE(wv->progress(), 1.0);
- QCOMPARE(wv->title(),QString(""));
- QCOMPARE(wv->statusText(),QString("")); // HTML 'status bar' text, not error message
- QCOMPARE(wv->url(), QUrl::fromLocalFile(SRCDIR "/data/does-not-exist.html")); // Unlike QWebPage, which loses url
- QCOMPARE(wv->status(), QDeclarativeWebView::Error);
+ QTRY_COMPARE(wv->property("progress").toDouble(), 1.0);
+ QCOMPARE(wv->property("title").toString(),QString(""));
+ QCOMPARE(wv->property("statusText").toString(),QString("")); // HTML 'status bar' text, not error message
+ QCOMPARE(wv->property("url").toUrl(), QUrl::fromLocalFile(SRCDIR "/data/does-not-exist.html")); // Unlike QWebPage, which loses url
+ QCOMPARE(wv->property("status").toInt(), 3 /*QDeclarativeWebView::Error*/);
- wv->reloadAction()->trigger();
+ qvariant_cast<QAction*>(wv->property("reload"))->trigger();
}
}
@@ -345,12 +342,12 @@ void tst_qdeclarativewebview::setHtml()
{
QDeclarativeComponent component(&engine, QUrl::fromLocalFile(SRCDIR "/data/sethtml.qml"));
checkNoErrors(component);
- QDeclarativeWebView *wv = qobject_cast<QDeclarativeWebView*>(component.create());
+ QObject *wv = component.create();
QVERIFY(wv != 0);
- QCOMPARE(wv->html(),QString("<html><head></head><body><p>This is a <b>string</b> set on the WebView</p></body></html>"));
+ QCOMPARE(wv->property("html").toString(),QString("<html><head></head><body><p>This is a <b>string</b> set on the WebView</p></body></html>"));
QSignalSpy spy(wv, SIGNAL(htmlChanged()));
- wv->setHtml(QString("<html><head><title>Basic</title></head><body><p>text</p></body></html>"));
+ wv->setProperty("html", QString("<html><head><title>Basic</title></head><body><p>text</p></body></html>"));
QCOMPARE(spy.count(),1);
}
@@ -358,81 +355,91 @@ void tst_qdeclarativewebview::elementAreaAt()
{
QDeclarativeComponent component(&engine, QUrl::fromLocalFile(SRCDIR "/data/elements.qml"));
checkNoErrors(component);
- QDeclarativeWebView *wv = qobject_cast<QDeclarativeWebView*>(component.create());
+ QObject *wv = component.create();
QVERIFY(wv != 0);
- QTRY_COMPARE(wv->progress(), 1.0);
+ QTRY_COMPARE(wv->property("progress").toDouble(), 1.0);
+ /* not now it's a plugin...
QCOMPARE(wv->elementAreaAt(40,30,100,100),QRect(1,1,75,54)); // Area A in data/elements.html
QCOMPARE(wv->elementAreaAt(130,30,200,100),QRect(78,3,110,50)); // Area B
QCOMPARE(wv->elementAreaAt(40,30,400,400),QRect(0,0,310,100)); // Whole view
QCOMPARE(wv->elementAreaAt(130,30,280,280),QRect(76,1,223,54)); // Area BC
QCOMPARE(wv->elementAreaAt(130,30,400,400),QRect(0,0,310,100)); // Whole view
+ */
}
void tst_qdeclarativewebview::javaScript()
{
QDeclarativeComponent component(&engine, QUrl::fromLocalFile(SRCDIR "/data/javaScript.qml"));
checkNoErrors(component);
- QDeclarativeWebView *wv = qobject_cast<QDeclarativeWebView*>(component.create());
+ QObject *wv = component.create();
QVERIFY(wv != 0);
- QTRY_COMPARE(wv->progress(), 1.0);
+ QTRY_COMPARE(wv->property("progress").toDouble(), 1.0);
+ /* not now it's a plugin...
QCOMPARE(wv->evaluateJavaScript("123").toInt(), 123);
QCOMPARE(wv->evaluateJavaScript("window.status").toString(), QString("status here"));
QCOMPARE(wv->evaluateJavaScript("window.myjsname.qmlprop").toString(), QString("qmlvalue"));
+ */
}
+/*
+Cannot be done now that webkit is a plugin
+
void tst_qdeclarativewebview::pixelCache()
{
+
QDeclarativeComponent component(&engine, QUrl::fromLocalFile(SRCDIR "/data/pixelCache.qml"));
checkNoErrors(component);
MyWebView *wv = qobject_cast<MyWebView*>(component.create());
QVERIFY(wv != 0);
- QTRY_COMPARE(wv->progress(), 1.0);
+ QTRY_COMPARE(wv->property("progress"), 1.0);
QPixmap pm(150,150);
QPainter p(&pm);
wv->paint(&p,0,0);
const int expected = 120*(150+128); // 120 = width of HTML page, 150=pixmap height, 128=cache extra area
- QCOMPARE(wv->pixelsPainted(), expected);
+ QCOMPARE(wv->property("pixelsPainted"), expected);
wv->paint(&p,0,0);
- QCOMPARE(wv->pixelsPainted(), expected); // nothing new needed to be painted
- wv->setPixelCacheSize(0); // clears the cache
+ QCOMPARE(wv->property("pixelsPainted"), expected); // nothing new needed to be painted
+ wv->setProperty("pixelCacheSize", 0); // clears the cache
wv->paint(&p,0,0);
- QCOMPARE(wv->pixelsPainted(), expected*2); // everything needed to be painted
+ QCOMPARE(wv->property("pixelsPainted"), expected*2); // everything needed to be painted
// Note that painted things always go into the cache (even if they don't "fit"),
// just that they will be removed if anything else needs to be painted.
- wv->setPixelCacheSize(expected); // won't clear the cache
+ wv->setProperty("pixelCacheSize", expected); // won't clear the cache
wv->paint(&p,0,0);
- QCOMPARE(wv->pixelsPainted(), expected*2); // still there
- wv->setPixelCacheSize(expected-1); // too small - will clear the cache
+ QCOMPARE(wv->property("pixelsPainted"), expected*2); // still there
+ wv->setProperty("pixelCacheSize", expected-1); // too small - will clear the cache
wv->paint(&p,0,0);
- QCOMPARE(wv->pixelsPainted(), expected*3); // repainted
+ QCOMPARE(wv->property("pixelsPainted"), expected*3); // repainted
}
+*/
void tst_qdeclarativewebview::newWindowParent()
{
QDeclarativeComponent component(&engine, QUrl::fromLocalFile(SRCDIR "/data/propertychanges.qml"));
checkNoErrors(component);
QDeclarativeItem *rootItem = qobject_cast<QDeclarativeItem*>(component.create());
- QDeclarativeWebView *wv = rootItem->findChild<QDeclarativeWebView*>("webView");
+ QObject *wv = rootItem->findChild<QObject*>("webView");
QVERIFY(rootItem != 0);
QVERIFY(wv != 0);
- QTRY_COMPARE(wv->progress(), 1.0);
+ QTRY_COMPARE(wv->property("progress").toDouble(), 1.0);
QDeclarativeItem* oldWindowParent = rootItem->findChild<QDeclarativeItem*>("oldWindowParent");
- QCOMPARE(wv->newWindowParent(), oldWindowParent);
+ QCOMPARE(qvariant_cast<QDeclarativeItem*>(wv->property("newWindowParent")), oldWindowParent);
QSignalSpy newWindowParentSpy(wv, SIGNAL(newWindowParentChanged()));
QDeclarativeItem* newWindowParent = rootItem->findChild<QDeclarativeItem*>("newWindowParent");
- wv->setNewWindowParent(newWindowParent);
+ wv->setProperty("newWindowParent", QVariant::fromValue(newWindowParent));
+ QVERIFY(newWindowParent);
QVERIFY(oldWindowParent);
QVERIFY(oldWindowParent->childItems().count() == 0);
- QCOMPARE(wv->newWindowParent(), newWindowParent);
+ QCOMPARE(wv->property("newWindowParent"), QVariant::fromValue(newWindowParent));
QCOMPARE(newWindowParentSpy.count(),1);
- wv->setNewWindowParent(newWindowParent);
+ wv->setProperty("newWindowParent", QVariant::fromValue(newWindowParent));
QCOMPARE(newWindowParentSpy.count(),1);
- wv->setNewWindowParent(0);
+ wv->setProperty("newWindowParent", QVariant::fromValue((QDeclarativeItem*)0));
QCOMPARE(newWindowParentSpy.count(),2);
}
@@ -441,23 +448,23 @@ void tst_qdeclarativewebview::newWindowComponent()
QDeclarativeComponent component(&engine, QUrl::fromLocalFile(SRCDIR "/data/propertychanges.qml"));
checkNoErrors(component);
QDeclarativeItem *rootItem = qobject_cast<QDeclarativeItem*>(component.create());
- QDeclarativeWebView *wv = rootItem->findChild<QDeclarativeWebView*>("webView");
+ QObject *wv = rootItem->findChild<QObject*>("webView");
QVERIFY(rootItem != 0);
QVERIFY(wv != 0);
- QTRY_COMPARE(wv->progress(), 1.0);
+ QTRY_COMPARE(wv->property("progress").toDouble(), 1.0);
QDeclarativeComponent substituteComponent(&engine);
substituteComponent.setData("import Qt 4.6; WebView { objectName: 'newWebView'; url: 'basic.html'; }", QUrl::fromLocalFile(""));
QSignalSpy newWindowComponentSpy(wv, SIGNAL(newWindowComponentChanged()));
- wv->setNewWindowComponent(&substituteComponent);
- QCOMPARE(wv->newWindowComponent(), &substituteComponent);
+ wv->setProperty("newWindowComponent", QVariant::fromValue(&substituteComponent));
+ QCOMPARE(wv->property("newWindowComponent"), QVariant::fromValue(&substituteComponent));
QCOMPARE(newWindowComponentSpy.count(),1);
- wv->setNewWindowComponent(&substituteComponent);
+ wv->setProperty("newWindowComponent", QVariant::fromValue(&substituteComponent));
QCOMPARE(newWindowComponentSpy.count(),1);
- wv->setNewWindowComponent(0);
+ wv->setProperty("newWindowComponent", QVariant::fromValue((QDeclarativeComponent*)0));
QCOMPARE(newWindowComponentSpy.count(),2);
}
@@ -466,22 +473,22 @@ void tst_qdeclarativewebview::renderingEnabled()
QDeclarativeComponent component(&engine, QUrl::fromLocalFile(SRCDIR "/data/propertychanges.qml"));
checkNoErrors(component);
QDeclarativeItem *rootItem = qobject_cast<QDeclarativeItem*>(component.create());
- QDeclarativeWebView *wv = rootItem->findChild<QDeclarativeWebView*>("webView");
+ QObject *wv = rootItem->findChild<QObject*>("webView");
QVERIFY(rootItem != 0);
QVERIFY(wv != 0);
- QTRY_COMPARE(wv->progress(), 1.0);
+ QTRY_COMPARE(wv->property("progress").toDouble(), 1.0);
- QVERIFY(wv->renderingEnabled());
+ QVERIFY(wv->property("renderingEnabled").toBool());
QSignalSpy renderingEnabledSpy(wv, SIGNAL(renderingEnabledChanged()));
- wv->setRenderingEnabled(false);
- QVERIFY(!wv->renderingEnabled());
+ wv->setProperty("renderingEnabled", false);
+ QVERIFY(!wv->property("renderingEnabled").toBool());
QCOMPARE(renderingEnabledSpy.count(),1);
- wv->setRenderingEnabled(false);
+ wv->setProperty("renderingEnabled", false);
QCOMPARE(renderingEnabledSpy.count(),1);
- wv->setRenderingEnabled(true);
+ wv->setProperty("renderingEnabled", true);
QCOMPARE(renderingEnabledSpy.count(),2);
}
@@ -490,21 +497,21 @@ void tst_qdeclarativewebview::pressGrabTime()
QDeclarativeComponent component(&engine, QUrl::fromLocalFile(SRCDIR "/data/propertychanges.qml"));
checkNoErrors(component);
QDeclarativeItem *rootItem = qobject_cast<QDeclarativeItem*>(component.create());
- QDeclarativeWebView *wv = rootItem->findChild<QDeclarativeWebView*>("webView");
+ QObject *wv = rootItem->findChild<QObject*>("webView");
QVERIFY(rootItem != 0);
QVERIFY(wv != 0);
- QTRY_COMPARE(wv->progress(), 1.0);
- QCOMPARE(wv->pressGrabTime(), 200);
+ QTRY_COMPARE(wv->property("progress").toDouble(), 1.0);
+ QCOMPARE(wv->property("pressGrabTime").toInt(), 200);
QSignalSpy pressGrabTimeSpy(wv, SIGNAL(pressGrabTimeChanged()));
- wv->setPressGrabTime(100);
- QCOMPARE(wv->pressGrabTime(), 100);
+ wv->setProperty("pressGrabTime", 100);
+ QCOMPARE(wv->property("pressGrabTime").toInt(), 100);
QCOMPARE(pressGrabTimeSpy.count(),1);
- wv->setPressGrabTime(100);
+ wv->setProperty("pressGrabTime", 100);
QCOMPARE(pressGrabTimeSpy.count(),1);
- wv->setPressGrabTime(0);
+ wv->setProperty("pressGrabTime", 0);
QCOMPARE(pressGrabTimeSpy.count(),2);
}
diff --git a/tests/auto/declarative/qdeclarativeworkerlistmodel/data/model.qml b/tests/auto/declarative/qdeclarativeworkerlistmodel/data/model.qml
new file mode 100644
index 0000000..be94e00
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeworkerlistmodel/data/model.qml
@@ -0,0 +1,14 @@
+import Qt 4.6
+
+Item {
+ property alias model: model
+
+ WorkerListModel { id: model }
+
+ function workerModifyModel(cmd) { worker.sendMessage({'command': cmd, 'model': model}) }
+
+ WorkerScript {
+ id: worker
+ source: "script.js"
+ }
+}
diff --git a/tests/auto/declarative/qdeclarativeworkerlistmodel/data/script.js b/tests/auto/declarative/qdeclarativeworkerlistmodel/data/script.js
new file mode 100644
index 0000000..8ee62b4
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeworkerlistmodel/data/script.js
@@ -0,0 +1,6 @@
+WorkerScript.onMessage = function(msg) {
+ eval("msg.model." + msg.command)
+ msg.model.sync()
+}
+
+
diff --git a/tests/auto/declarative/qdeclarativeworkerlistmodel/qdeclarativeworkerlistmodel.pro b/tests/auto/declarative/qdeclarativeworkerlistmodel/qdeclarativeworkerlistmodel.pro
new file mode 100644
index 0000000..960dbe1
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeworkerlistmodel/qdeclarativeworkerlistmodel.pro
@@ -0,0 +1,9 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+QT += script
+macx:CONFIG -= app_bundle
+
+SOURCES += tst_qdeclarativeworkerlistmodel.cpp
+
+# Define SRCDIR equal to test's source directory
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/qdeclarativeworkerlistmodel/tst_qdeclarativeworkerlistmodel.cpp b/tests/auto/declarative/qdeclarativeworkerlistmodel/tst_qdeclarativeworkerlistmodel.cpp
new file mode 100644
index 0000000..11a7447
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeworkerlistmodel/tst_qdeclarativeworkerlistmodel.cpp
@@ -0,0 +1,193 @@
+/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the test suite of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the Technology Preview License Agreement accompanying
+** this package.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** If you have questions regarding the use of this file, please contact
+** Nokia at qt-info@nokia.com.
+**
+**
+**
+**
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+#include <qtest.h>
+#include <QtCore/qdebug.h>
+
+#include <QtDeclarative/qdeclarativecomponent.h>
+#include <QtDeclarative/qdeclarativeengine.h>
+#include <QtDeclarative/qdeclarativeitem.h>
+
+#include <private/qdeclarativeworkerscript_p.h>
+#include <private/qdeclarativelistmodel_p.h>
+#include "../../../shared/util.h"
+
+
+
+class tst_QDeclarativeWorkerListModel : public QObject
+{
+ Q_OBJECT
+public:
+ tst_QDeclarativeWorkerListModel() {}
+private slots:
+ void clear();
+ void remove();
+ void append();
+ void insert();
+ void get();
+ void set();
+
+private:
+ QByteArray modificationWarning() const {
+ QString file = QUrl::fromLocalFile(SRCDIR "/data/model.qml").toString();
+ return QString("QML WorkerListModel (" + file + ":6:5) List can only be modified from a WorkerScript").toUtf8();
+ }
+
+ QDeclarativeEngine m_engine;
+};
+
+void tst_QDeclarativeWorkerListModel::clear()
+{
+ QDeclarativeComponent component(&m_engine, SRCDIR "/data/model.qml");
+ QDeclarativeItem *item = qobject_cast<QDeclarativeItem*>(component.create());
+ QVERIFY(item != 0);
+ QDeclarativeWorkerListModel *model = item->property("model").value<QDeclarativeWorkerListModel*>();
+ QVERIFY(model != 0);
+
+ QCOMPARE(model->count(), 0);
+ QVERIFY(QMetaObject::invokeMethod(item, "workerModifyModel", Q_ARG(QVariant, "append({'name': 'A'})")));
+ QTRY_COMPARE(model->count(), 1);
+
+ QTest::ignoreMessage(QtWarningMsg, modificationWarning().constData());
+ model->clear();
+ QCOMPARE(model->count(), 1);
+
+ QVERIFY(QMetaObject::invokeMethod(item, "workerModifyModel", Q_ARG(QVariant, "clear()")));
+ QTRY_COMPARE(model->count(), 0);
+
+ qApp->processEvents();
+}
+
+void tst_QDeclarativeWorkerListModel::remove()
+{
+ QDeclarativeComponent component(&m_engine, SRCDIR "/data/model.qml");
+ QDeclarativeItem *item = qobject_cast<QDeclarativeItem*>(component.create());
+ QVERIFY(item != 0);
+ QDeclarativeWorkerListModel *model = item->property("model").value<QDeclarativeWorkerListModel*>();
+ QVERIFY(model != 0);
+
+ QVERIFY(QMetaObject::invokeMethod(item, "workerModifyModel", Q_ARG(QVariant, "append({'name': 'A'})")));
+ QTRY_COMPARE(model->count(), 1);
+
+ QTest::ignoreMessage(QtWarningMsg, modificationWarning().constData());
+ model->remove(0);
+ QCOMPARE(model->count(), 1);
+
+ QVERIFY(QMetaObject::invokeMethod(item, "workerModifyModel", Q_ARG(QVariant, "remove(0)")));
+ QTRY_COMPARE(model->count(), 0);
+
+ qApp->processEvents();
+}
+
+void tst_QDeclarativeWorkerListModel::append()
+{
+ QDeclarativeComponent component(&m_engine, SRCDIR "/data/model.qml");
+ QDeclarativeItem *item = qobject_cast<QDeclarativeItem*>(component.create());
+ QVERIFY(item != 0);
+ QDeclarativeWorkerListModel *model = item->property("model").value<QDeclarativeWorkerListModel*>();
+ QVERIFY(model != 0);
+
+ QVERIFY(QMetaObject::invokeMethod(item, "workerModifyModel", Q_ARG(QVariant, "append({'name': 'A'})")));
+ QTRY_COMPARE(model->count(), 1);
+
+ QTest::ignoreMessage(QtWarningMsg, modificationWarning().constData());
+ model->append(QScriptValue(1));
+ QCOMPARE(model->count(), 1);
+
+ qApp->processEvents();
+}
+
+void tst_QDeclarativeWorkerListModel::insert()
+{
+ QDeclarativeComponent component(&m_engine, SRCDIR "/data/model.qml");
+ QDeclarativeItem *item = qobject_cast<QDeclarativeItem*>(component.create());
+ QVERIFY(item != 0);
+ QDeclarativeWorkerListModel *model = item->property("model").value<QDeclarativeWorkerListModel*>();
+ QVERIFY(model != 0);
+
+ QVERIFY(QMetaObject::invokeMethod(item, "workerModifyModel", Q_ARG(QVariant, "insert(0, {'name': 'A'})")));
+ QTRY_COMPARE(model->count(), 1);
+
+ QTest::ignoreMessage(QtWarningMsg, modificationWarning().constData());
+ model->insert(0, QScriptValue(1));
+ QCOMPARE(model->count(), 1);
+
+ qApp->processEvents();
+}
+
+void tst_QDeclarativeWorkerListModel::get()
+{
+ QDeclarativeComponent component(&m_engine, SRCDIR "/data/model.qml");
+ QDeclarativeItem *item = qobject_cast<QDeclarativeItem*>(component.create());
+ QVERIFY(item != 0);
+ QDeclarativeWorkerListModel *model = item->property("model").value<QDeclarativeWorkerListModel*>();
+ QVERIFY(model != 0);
+
+ QVERIFY(QMetaObject::invokeMethod(item, "workerModifyModel", Q_ARG(QVariant, "append({'name': 'A'})")));
+ QTRY_COMPARE(model->count(), 1);
+ QCOMPARE(model->get(0).property("name").toString(), QString("A"));
+
+ qApp->processEvents();
+}
+
+void tst_QDeclarativeWorkerListModel::set()
+{
+ QDeclarativeComponent component(&m_engine, SRCDIR "/data/model.qml");
+ QDeclarativeItem *item = qobject_cast<QDeclarativeItem*>(component.create());
+ QVERIFY(item != 0);
+ QDeclarativeWorkerListModel *model = item->property("model").value<QDeclarativeWorkerListModel*>();
+ QVERIFY(model != 0);
+
+ QVERIFY(QMetaObject::invokeMethod(item, "workerModifyModel", Q_ARG(QVariant, "append({'name': 'A'})")));
+ QTRY_COMPARE(model->count(), 1);
+
+ QTest::ignoreMessage(QtWarningMsg, modificationWarning().constData());
+ model->set(0, QScriptValue(1));
+
+ QVERIFY(QMetaObject::invokeMethod(item, "workerModifyModel", Q_ARG(QVariant, "set(0, {'name': 'Z'})")));
+ QTRY_COMPARE(model->get(0).property("name").toString(), QString("Z"));
+
+ qApp->processEvents();
+}
+
+QTEST_MAIN(tst_QDeclarativeWorkerListModel)
+
+#include "tst_qdeclarativeworkerlistmodel.moc"
+
diff --git a/tests/auto/declarative/qdeclarativeworkerscript/data/script.js b/tests/auto/declarative/qdeclarativeworkerscript/data/script.js
new file mode 100644
index 0000000..09199de
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeworkerscript/data/script.js
@@ -0,0 +1,5 @@
+WorkerScript.onMessage = function(msg) {
+ WorkerScript.sendMessage(msg)
+}
+
+
diff --git a/tests/auto/declarative/qdeclarativeworkerscript/data/worker.qml b/tests/auto/declarative/qdeclarativeworkerscript/data/worker.qml
new file mode 100644
index 0000000..1fce155
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeworkerscript/data/worker.qml
@@ -0,0 +1,24 @@
+import Qt 4.6
+
+WorkerScript {
+ id: worker
+ source: "script.js"
+
+ property var response
+
+ signal done()
+
+ function testSend(value) {
+ worker.sendMessage(value)
+ }
+
+ function compareLiteralResponse(expected) {
+ var e = eval('(' + expected + ')')
+ return worker.response == e
+ }
+
+ onMessage: {
+ worker.response = messageObject
+ worker.done()
+ }
+}
diff --git a/tests/auto/declarative/qdeclarativeworkerscript/qdeclarativeworkerscript.pro b/tests/auto/declarative/qdeclarativeworkerscript/qdeclarativeworkerscript.pro
new file mode 100644
index 0000000..0543ff6
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeworkerscript/qdeclarativeworkerscript.pro
@@ -0,0 +1,9 @@
+load(qttest_p4)
+contains(QT_CONFIG,declarative): QT += declarative
+QT += script
+macx:CONFIG -= app_bundle
+
+SOURCES += tst_qdeclarativeworkerscript.cpp
+
+# Define SRCDIR equal to test's source directory
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/auto/declarative/qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp b/tests/auto/declarative/qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp
new file mode 100644
index 0000000..27ecef4
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp
@@ -0,0 +1,194 @@
+/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the test suite of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the Technology Preview License Agreement accompanying
+** this package.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** If you have questions regarding the use of this file, please contact
+** Nokia at qt-info@nokia.com.
+**
+**
+**
+**
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+#include <qtest.h>
+#include <QtCore/qdebug.h>
+#include <QtCore/qtimer.h>
+#include <QtScript/qscriptengine.h>
+
+#include <QtDeclarative/qdeclarativecomponent.h>
+#include <QtDeclarative/qdeclarativeengine.h>
+#include <QtDeclarative/qdeclarativeitem.h>
+
+#include <private/qdeclarativeworkerscript_p.h>
+#include <private/qdeclarativeengine_p.h>
+#include "../../../shared/util.h"
+
+Q_DECLARE_METATYPE(QScriptValue)
+
+class tst_QDeclarativeWorkerScript : public QObject
+{
+ Q_OBJECT
+public:
+ tst_QDeclarativeWorkerScript() {}
+private slots:
+ void source();
+ void source_data();
+ void messaging();
+ void messaging_data();
+ void messaging_sendQObjectList();
+ void messaging_sendJsObject();
+
+private:
+ void waitForEchoMessage(QDeclarativeWorkerScript *worker) {
+ QEventLoop loop;
+ QVERIFY(connect(worker, SIGNAL(done()), &loop, SLOT(quit())));
+ QTimer timer;
+ timer.setSingleShot(true);
+ connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit()));
+ timer.start(10000);
+ loop.exec();
+ QVERIFY(timer.isActive());
+ }
+
+ QDeclarativeEngine m_engine;
+};
+
+void tst_QDeclarativeWorkerScript::source()
+{
+ QFETCH(QUrl, source);
+ QFETCH(bool, valid);
+
+ if (!valid) {
+ QByteArray w = "WorkerScript: Cannot find source file \"" + source.toString().toUtf8() + "\"";
+ QTest::ignoreMessage(QtWarningMsg, w.constData());
+ }
+
+ QDeclarativeComponent component(&m_engine);
+ component.setData("import Qt 4.6\nWorkerScript { source: '" + source.toString().toUtf8() + "'; }", QUrl());
+
+ QDeclarativeWorkerScript *item = qobject_cast<QDeclarativeWorkerScript*>(component.create());
+ QVERIFY(item != 0);
+
+ QCOMPARE(item->source(), source);
+
+ qApp->processEvents();
+}
+
+void tst_QDeclarativeWorkerScript::source_data()
+{
+ QTest::addColumn<QUrl>("source");
+ QTest::addColumn<bool>("valid");
+
+ QTest::newRow("valid") << QUrl::fromLocalFile(SRCDIR "/data/worker.qml") << true;
+ QTest::newRow("invalid") << QUrl::fromLocalFile("asdjfk.js") << false;
+}
+
+void tst_QDeclarativeWorkerScript::messaging()
+{
+ QFETCH(QVariant, value);
+
+ QDeclarativeComponent component(&m_engine, SRCDIR "/data/worker.qml");
+ QDeclarativeWorkerScript *worker = qobject_cast<QDeclarativeWorkerScript*>(component.create());
+ QVERIFY(worker != 0);
+
+ QVERIFY(QMetaObject::invokeMethod(worker, "testSend", Q_ARG(QVariant, value)));
+ waitForEchoMessage(worker);
+
+ const QMetaObject *mo = worker->metaObject();
+ QCOMPARE(mo->property(mo->indexOfProperty("response")).read(worker).value<QVariant>(), value);
+
+ qApp->processEvents();
+}
+
+void tst_QDeclarativeWorkerScript::messaging_data()
+{
+ QTest::addColumn<QVariant>("value");
+
+ QTest::newRow("invalid") << QVariant();
+ QTest::newRow("bool") << qVariantFromValue(true);
+ QTest::newRow("int") << qVariantFromValue(1001);
+ QTest::newRow("real") << qVariantFromValue(10334.323);
+ QTest::newRow("string") << qVariantFromValue(QString("More cheeeese, Gromit!"));
+ QTest::newRow("variant list") << qVariantFromValue((QVariantList() << "a" << "b" << "c"));
+}
+
+void tst_QDeclarativeWorkerScript::messaging_sendQObjectList()
+{
+ // Not allowed to send QObjects other than QDeclarativeWorkerListModelAgent
+ // instances. If objects are sent in a list, they will be sent as 'undefined'
+ // js values.
+
+ QDeclarativeComponent component(&m_engine, SRCDIR "/data/worker.qml");
+ QDeclarativeWorkerScript *worker = qobject_cast<QDeclarativeWorkerScript*>(component.create());
+ QVERIFY(worker != 0);
+
+ QVariantList objects;
+ for (int i=0; i<3; i++)
+ objects << qVariantFromValue(new QObject(this));
+
+ QVERIFY(QMetaObject::invokeMethod(worker, "testSend", Q_ARG(QVariant, qVariantFromValue(objects))));
+ waitForEchoMessage(worker);
+
+ const QMetaObject *mo = worker->metaObject();
+ QVariantList result = mo->property(mo->indexOfProperty("response")).read(worker).value<QVariantList>();
+ QCOMPARE(result, (QVariantList() << QVariant() << QVariant() << QVariant()));
+
+ qApp->processEvents();
+}
+
+void tst_QDeclarativeWorkerScript::messaging_sendJsObject()
+{
+ QDeclarativeComponent component(&m_engine, SRCDIR "/data/worker.qml");
+ QDeclarativeWorkerScript *worker = qobject_cast<QDeclarativeWorkerScript*>(component.create());
+ QVERIFY(worker != 0);
+
+ QString jsObject = "{'name': 'zyz', 'spell power': 3101, 'haste': 1125}";
+
+ QScriptEngine *engine = QDeclarativeEnginePrivate::getScriptEngine(qmlEngine(worker));
+ QScriptValue sv = engine->newObject();
+ sv.setProperty("name", "zyz");
+ sv.setProperty("spell power", 3101);
+ sv.setProperty("haste", 1125);
+
+ QVERIFY(QMetaObject::invokeMethod(worker, "testSend", Q_ARG(QVariant, qVariantFromValue(sv))));
+ waitForEchoMessage(worker);
+
+ QVariant result = qVariantFromValue(false);
+ QVERIFY(QMetaObject::invokeMethod(worker, "compareLiteralResponse", Qt::DirectConnection,
+ Q_RETURN_ARG(QVariant, result), Q_ARG(QVariant, jsObject)));
+ QVERIFY(result.toBool());
+
+ qApp->processEvents();
+}
+
+QTEST_MAIN(tst_QDeclarativeWorkerScript)
+
+#include "tst_qdeclarativeworkerscript.moc"
diff --git a/tests/auto/declarative/qdeclarativexmlhttprequest/tst_qdeclarativexmlhttprequest.cpp b/tests/auto/declarative/qdeclarativexmlhttprequest/tst_qdeclarativexmlhttprequest.cpp
index 37d48fa..7dec0ee 100644
--- a/tests/auto/declarative/qdeclarativexmlhttprequest/tst_qdeclarativexmlhttprequest.cpp
+++ b/tests/auto/declarative/qdeclarativexmlhttprequest/tst_qdeclarativexmlhttprequest.cpp
@@ -1168,7 +1168,7 @@ void tst_qdeclarativexmlhttprequest::redirects()
TestHTTPServer server(SERVER_PORT);
QVERIFY(server.isValid());
server.addRedirect("redirect.html", "http://127.0.0.1:14445/redirecttarget.html");
- server.serveDirectory("data");
+ server.serveDirectory(SRCDIR "/data");
QDeclarativeComponent component(&engine, TEST_FILE("redirects.qml"));
QObject *object = component.beginCreate(engine.rootContext());
@@ -1187,7 +1187,7 @@ void tst_qdeclarativexmlhttprequest::redirects()
TestHTTPServer server(SERVER_PORT);
QVERIFY(server.isValid());
server.addRedirect("redirect.html", "http://127.0.0.1:14445/redirectmissing.html");
- server.serveDirectory("data");
+ server.serveDirectory(SRCDIR "/data");
QDeclarativeComponent component(&engine, TEST_FILE("redirectError.qml"));
QObject *object = component.beginCreate(engine.rootContext());
@@ -1206,7 +1206,7 @@ void tst_qdeclarativexmlhttprequest::redirects()
TestHTTPServer server(SERVER_PORT);
QVERIFY(server.isValid());
server.addRedirect("redirect.html", "http://127.0.0.1:14445/redirect.html");
- server.serveDirectory("data");
+ server.serveDirectory(SRCDIR "/data");
QDeclarativeComponent component(&engine, TEST_FILE("redirectRecur.qml"));
QObject *object = component.beginCreate(engine.rootContext());
diff --git a/tests/auto/declarative/runall.sh b/tests/auto/declarative/runall.sh
index 39485d3..62e03e3 100755
--- a/tests/auto/declarative/runall.sh
+++ b/tests/auto/declarative/runall.sh
@@ -41,37 +41,60 @@
##
############################################################################/
-Xnest :7 2>/dev/null &
-sleep 1
-trap "kill $!" EXIT
-export DISPLAY=:7
+if [ "$(uname)" = Linux ]
+then
+ Xnest :7 2>/dev/null &
+ sleep 1
+ trap "kill $!" EXIT
+ export DISPLAY=:7
+ export LANG=en_US
+ kwin 2>/dev/null &
+ sleep 1
+fi
-( make -k -j1 install 2>&1;
- for exe in $(make install | sed -n 's/^install .* "\([^"]*qt4\/tst_[^"]*\)".*/\1/p')
- do
- $exe
- done
-) |
+function filter
+{
+ exe=$1
+ skip=0
while read line
do
- case "$line" in
- make*Error) echo "$line";;
- make*Stop) echo "$line";;
- make*) ;;
- install*) ;;
- */qmake*) ;;
- */bin/moc*) ;;
- *targ.debug*) ;;
- g++*) ;;
- cd*) ;;
- PASS*) ;;
- QDEBUG*) ;;
- Makefile*) ;;
- Config*) ;;
- Totals*) ;;
- \**) ;;
- ./*) ;;
- *) echo "$line"
- esac
+ if [ $skip != 0 ]
+ then
+ let skip=skip-1
+ else
+ case "$line" in
+ make*Error) echo "$line";;
+ make*Stop) echo "$line";;
+ /*/bin/make*) ;;
+ make*) ;;
+ install*) ;;
+ QDeclarativeDebugServer:*Waiting*) ;;
+ QDeclarativeDebugServer:*Connection*) ;;
+ */qmake*) ;;
+ */bin/moc*) ;;
+ *targ.debug*) ;;
+ g++*) ;;
+ cd*) ;;
+ XFAIL*) skip=1;;
+ SKIP*) skip=1;;
+ PASS*) ;;
+ QDEBUG*) ;;
+ Makefile*) ;;
+ Config*) ;;
+ Totals*) ;;
+ \**) ;;
+ ./*) ;;
+ *tst_*) echo "$line" ;;
+ *) echo "$exe: $line"
+ esac
+ fi
done
+}
+
+make -k -j1 install 2>&1 | filter build
+for exe in $(make install | sed -n 's/^install .* "\([^"]*qt4\/tst_[^"]*\)".*/\1/p')
+do
+ echo $exe
+ $exe 2>&1 | filter $exe
+done
diff --git a/tests/auto/declarative/visual/qfxwebview/autosize/autosize.qml b/tests/auto/declarative/visual/qfxwebview/autosize/autosize.qml
index 74c6844..3c00ee6 100644
--- a/tests/auto/declarative/visual/qfxwebview/autosize/autosize.qml
+++ b/tests/auto/declarative/visual/qfxwebview/autosize/autosize.qml
@@ -1,4 +1,5 @@
import Qt 4.6
+import org.webkit 1.0
// The WebView size is determined by the width, height,
// preferredWidth, and preferredHeight properties.
diff --git a/tests/auto/declarative/visual/webview/embedding/nesting.qml b/tests/auto/declarative/visual/webview/embedding/nesting.qml
index 0d76579..5e35306 100644
--- a/tests/auto/declarative/visual/webview/embedding/nesting.qml
+++ b/tests/auto/declarative/visual/webview/embedding/nesting.qml
@@ -1,4 +1,5 @@
import Qt 4.6
+import org.webkit 1.0
WebView {
width: 300
diff --git a/tests/auto/declarative/visual/webview/javascript/evaluateJavaScript.qml b/tests/auto/declarative/visual/webview/javascript/evaluateJavaScript.qml
index 78d5cfc..6c01382 100644
--- a/tests/auto/declarative/visual/webview/javascript/evaluateJavaScript.qml
+++ b/tests/auto/declarative/visual/webview/javascript/evaluateJavaScript.qml
@@ -1,4 +1,5 @@
import Qt 4.6
+import org.webkit 1.0
Column {
WebView {
diff --git a/tests/auto/declarative/visual/webview/javascript/windowObjects.qml b/tests/auto/declarative/visual/webview/javascript/windowObjects.qml
index a41de9a..8c52aff 100644
--- a/tests/auto/declarative/visual/webview/javascript/windowObjects.qml
+++ b/tests/auto/declarative/visual/webview/javascript/windowObjects.qml
@@ -1,4 +1,5 @@
import Qt 4.6
+import org.webkit 1.0
Column {
WebView {
diff --git a/tests/auto/declarative/visual/webview/settings/fontFamily.qml b/tests/auto/declarative/visual/webview/settings/fontFamily.qml
index 2bb2a53..f547b0e 100644
--- a/tests/auto/declarative/visual/webview/settings/fontFamily.qml
+++ b/tests/auto/declarative/visual/webview/settings/fontFamily.qml
@@ -1,4 +1,5 @@
import Qt 4.6
+import org.webkit 1.0
WebView {
id: web
diff --git a/tests/auto/declarative/visual/webview/settings/fontSize.qml b/tests/auto/declarative/visual/webview/settings/fontSize.qml
index b970783..7eaa96b 100644
--- a/tests/auto/declarative/visual/webview/settings/fontSize.qml
+++ b/tests/auto/declarative/visual/webview/settings/fontSize.qml
@@ -1,4 +1,5 @@
import Qt 4.6
+import org.webkit 1.0
Grid {
columns: 3
diff --git a/tests/auto/declarative/visual/webview/settings/noAutoLoadImages.qml b/tests/auto/declarative/visual/webview/settings/noAutoLoadImages.qml
index 72e672d..67f1633 100644
--- a/tests/auto/declarative/visual/webview/settings/noAutoLoadImages.qml
+++ b/tests/auto/declarative/visual/webview/settings/noAutoLoadImages.qml
@@ -1,4 +1,5 @@
import Qt 4.6
+import org.webkit 1.0
Grid {
columns: 2
diff --git a/tests/auto/declarative/visual/webview/settings/setFontFamily.qml b/tests/auto/declarative/visual/webview/settings/setFontFamily.qml
index 26deed8..823469f 100644
--- a/tests/auto/declarative/visual/webview/settings/setFontFamily.qml
+++ b/tests/auto/declarative/visual/webview/settings/setFontFamily.qml
@@ -1,4 +1,5 @@
import Qt 4.6
+import org.webkit 1.0
WebView {
url: "test.html"
diff --git a/tests/auto/declarative/visual/webview/zooming/pageWidth.qml b/tests/auto/declarative/visual/webview/zooming/pageWidth.qml
index 86dd7d2..4a876dd 100644
--- a/tests/auto/declarative/visual/webview/zooming/pageWidth.qml
+++ b/tests/auto/declarative/visual/webview/zooming/pageWidth.qml
@@ -1,4 +1,5 @@
import Qt 4.6
+import org.webkit 1.0
WebView {
width: 200
diff --git a/tests/auto/declarative/visual/webview/zooming/renderControl.qml b/tests/auto/declarative/visual/webview/zooming/renderControl.qml
index 0c8bb3b..49eb91b 100644
--- a/tests/auto/declarative/visual/webview/zooming/renderControl.qml
+++ b/tests/auto/declarative/visual/webview/zooming/renderControl.qml
@@ -1,4 +1,5 @@
import Qt 4.6
+import org.webkit 1.0
Rectangle {
width: 200
diff --git a/tests/auto/declarative/visual/webview/zooming/resolution.qml b/tests/auto/declarative/visual/webview/zooming/resolution.qml
index a9d4e3a..8542768 100644
--- a/tests/auto/declarative/visual/webview/zooming/resolution.qml
+++ b/tests/auto/declarative/visual/webview/zooming/resolution.qml
@@ -1,4 +1,5 @@
import Qt 4.6
+import org.webkit 1.0
WebView {
width: 200 * zoomFactor
diff --git a/tests/auto/declarative/visual/webview/zooming/zoomTextOnly.qml b/tests/auto/declarative/visual/webview/zooming/zoomTextOnly.qml
index 4455b43..c2e9348 100644
--- a/tests/auto/declarative/visual/webview/zooming/zoomTextOnly.qml
+++ b/tests/auto/declarative/visual/webview/zooming/zoomTextOnly.qml
@@ -1,4 +1,5 @@
import Qt 4.6
+import org.webkit 1.0
WebView {
width: 200
diff --git a/tests/auto/declarative/visual/webview/zooming/zooming.qml b/tests/auto/declarative/visual/webview/zooming/zooming.qml
index 0ea9131..9f0b865 100644
--- a/tests/auto/declarative/visual/webview/zooming/zooming.qml
+++ b/tests/auto/declarative/visual/webview/zooming/zooming.qml
@@ -1,4 +1,5 @@
import Qt 4.6
+import org.webkit 1.0
// Note that zooming is better done using zoomFactor and careful
// control of rendering to avoid excessive re-rendering during
diff --git a/tests/auto/gestures/tst_gestures.cpp b/tests/auto/gestures/tst_gestures.cpp
index a2058cd..f8ecca3 100644
--- a/tests/auto/gestures/tst_gestures.cpp
+++ b/tests/auto/gestures/tst_gestures.cpp
@@ -58,7 +58,7 @@
static QPointF mapToGlobal(const QPointF &pt, QGraphicsItem *item, QGraphicsView *view)
{
- return view->mapToGlobal(view->mapFromScene(item->mapToScene(pt)));
+ return view->viewport()->mapToGlobal(view->mapFromScene(item->mapToScene(pt)));
}
class CustomGesture : public QGesture
@@ -353,6 +353,8 @@ private slots:
void deleteGestureTargetWidget();
void deleteGestureTargetItem_data();
void deleteGestureTargetItem();
+ void viewportCoordinates();
+ void partialGesturePropagation();
};
tst_Gestures::tst_Gestures()
@@ -742,7 +744,6 @@ public:
ignoredFinishedGestures.clear();
}
-protected:
QRectF boundingRect() const
{
return size;
@@ -1771,7 +1772,6 @@ void tst_Gestures::panelStacksBehindParent()
void tst_Gestures::deleteGestureTargetWidget()
{
-
}
void tst_Gestures::deleteGestureTargetItem_data()
@@ -1857,5 +1857,97 @@ void tst_Gestures::deleteGestureTargetItem()
sendCustomGesture(&event, item1, &scene);
}
+class GraphicsView : public QGraphicsView
+{
+public:
+ GraphicsView(QGraphicsScene *scene, QWidget *parent = 0)
+ : QGraphicsView(scene, parent)
+ {
+ }
+
+ using QGraphicsView::setViewportMargins;
+};
+
+// just making sure that even if the graphicsview has margins hotspot still
+// works properly. It should use viewport for converting global coordinates to
+// scene coordinates.
+void tst_Gestures::viewportCoordinates()
+{
+ QGraphicsScene scene;
+ GraphicsView view(&scene);
+ view.setViewportMargins(10,20,15,25);
+ view.setWindowFlags(Qt::X11BypassWindowManagerHint);
+
+ GestureItem *item1 = new GestureItem("item1");
+ item1->grabGesture(CustomGesture::GestureType);
+ item1->size = QRectF(0, 0, 3, 3);
+ item1->setZValue(2);
+ scene.addItem(item1);
+
+ view.show();
+ QTest::qWaitForWindowShown(&view);
+ view.ensureVisible(scene.sceneRect());
+
+ view.viewport()->grabGesture(CustomGesture::GestureType, Qt::DontStartGestureOnChildren);
+
+ CustomEvent event;
+ event.hotSpot = mapToGlobal(item1->boundingRect().center(), item1, &view);
+ event.hasHotSpot = true;
+ sendCustomGesture(&event, item1, &scene);
+ QVERIFY(item1->gestureEventsReceived != 0);
+}
+
+void tst_Gestures::partialGesturePropagation()
+{
+ QGraphicsScene scene;
+ QGraphicsView view(&scene);
+ view.setWindowFlags(Qt::X11BypassWindowManagerHint);
+
+ GestureItem *item1 = new GestureItem("item1");
+ item1->grabGesture(CustomGesture::GestureType);
+ item1->setZValue(8);
+ scene.addItem(item1);
+
+ GestureItem *item2 = new GestureItem("item2[partial]");
+ item2->grabGesture(CustomGesture::GestureType, Qt::ReceivePartialGestures);
+ item2->setZValue(6);
+ scene.addItem(item2);
+
+ GestureItem *item3 = new GestureItem("item3");
+ item3->grabGesture(CustomGesture::GestureType);
+ item3->setZValue(4);
+ scene.addItem(item3);
+
+ GestureItem *item4 = new GestureItem("item4[partial]");
+ item4->grabGesture(CustomGesture::GestureType, Qt::ReceivePartialGestures);
+ item4->setZValue(2);
+ scene.addItem(item4);
+
+ view.show();
+ QTest::qWaitForWindowShown(&view);
+ view.ensureVisible(scene.sceneRect());
+
+ view.viewport()->grabGesture(CustomGesture::GestureType, Qt::DontStartGestureOnChildren);
+
+ item1->ignoredUpdatedGestures << CustomGesture::GestureType;
+
+ CustomEvent event;
+ event.hotSpot = mapToGlobal(QPointF(5, 5), item1, &view);
+ event.hasHotSpot = true;
+ sendCustomGesture(&event, item1, &scene);
+
+ static const int TotalGestureEventsCount = CustomGesture::SerialFinishedThreshold - CustomGesture::SerialStartedThreshold + 1;
+
+ QCOMPARE(item1->gestureOverrideEventsReceived, 1);
+ QCOMPARE(item2->gestureOverrideEventsReceived, 1);
+ QCOMPARE(item3->gestureOverrideEventsReceived, 1);
+ QCOMPARE(item4->gestureOverrideEventsReceived, 1);
+
+ QCOMPARE(item1->gestureEventsReceived, TotalGestureEventsCount);
+ QCOMPARE(item2->gestureEventsReceived, TotalGestureEventsCount-2); // except for started and finished
+ QCOMPARE(item3->gestureEventsReceived, 0);
+ QCOMPARE(item4->gestureEventsReceived, 0);
+}
+
QTEST_MAIN(tst_Gestures)
#include "tst_gestures.moc"
diff --git a/tests/auto/headers/tst_headers.cpp b/tests/auto/headers/tst_headers.cpp
index 3745767..12c5843 100644
--- a/tests/auto/headers/tst_headers.cpp
+++ b/tests/auto/headers/tst_headers.cpp
@@ -271,6 +271,7 @@ void tst_Headers::macros()
if (header.endsWith("_p.h") || header.endsWith("_pch.h")
|| header.contains("global/qconfig-") || header.endsWith("/qconfig.h")
|| header.contains("/src/tools/") || header.contains("/src/plugins/")
+ || header.contains("/src/imports/")
|| header.endsWith("/qiconset.h") || header.endsWith("/qfeatures.h")
|| header.endsWith("qt_windows.h"))
return;
diff --git a/tests/auto/qapplication/desktopsettingsaware/desktopsettingsaware.pro b/tests/auto/qapplication/desktopsettingsaware/desktopsettingsaware.pro
index 93a03db..e8b1ce9 100644
--- a/tests/auto/qapplication/desktopsettingsaware/desktopsettingsaware.pro
+++ b/tests/auto/qapplication/desktopsettingsaware/desktopsettingsaware.pro
@@ -13,8 +13,3 @@ wince*|symbian*:TARGET = ../desktopsettingsaware
SOURCES += main.cpp
CONFIG += qt warn_on create_prl link_prl
CONFIG -= app_bundle
-
-!symbian*: {
-OBJECTS_DIR=.obj/debug-shared
-MOC_DIR=.moc/debug-shared
-}
diff --git a/tests/auto/qdeclarativeaudio/qdeclarativeaudio.pro b/tests/auto/qdeclarativeaudio/qdeclarativeaudio.pro
index 13bf606..bfc2223 100644
--- a/tests/auto/qdeclarativeaudio/qdeclarativeaudio.pro
+++ b/tests/auto/qdeclarativeaudio/qdeclarativeaudio.pro
@@ -1,4 +1,14 @@
load(qttest_p4)
-SOURCES += tst_qdeclarativeaudio.cpp
+
+HEADERS += \
+ $$PWD/../../../src/plugins/qdeclarativemodules/multimedia/qdeclarativeaudio_p.h \
+ $$PWD/../../../src/plugins/qdeclarativemodules/multimedia/qdeclarativemediabase_p.h \
+ $$PWD/../../../src/plugins/qdeclarativemodules/multimedia/qmetadatacontrolmetaobject_p.h
+
+SOURCES += \
+ tst_qdeclarativeaudio.cpp \
+ $$PWD/../../../src/plugins/qdeclarativemodules/multimedia/qdeclarativeaudio.cpp \
+ $$PWD/../../../src/plugins/qdeclarativemodules/multimedia/qdeclarativemediabase.cpp \
+ $$PWD/../../../src/plugins/qdeclarativemodules/multimedia/qmetadatacontrolmetaobject.cpp
QT += multimedia declarative
diff --git a/tests/auto/qdeclarativeaudio/tst_qdeclarativeaudio.cpp b/tests/auto/qdeclarativeaudio/tst_qdeclarativeaudio.cpp
index 11439ce..55c7135 100644
--- a/tests/auto/qdeclarativeaudio/tst_qdeclarativeaudio.cpp
+++ b/tests/auto/qdeclarativeaudio/tst_qdeclarativeaudio.cpp
@@ -41,7 +41,7 @@
#include <QtTest/QtTest>
-#include <QtMultimedia/private/qdeclarativeaudio_p.h>
+#include "../../../src/plugins/qdeclarativemodules/multimedia/qdeclarativeaudio_p.h"
#include <QtGui/qapplication.h>
#include <QtMultimedia/qmediaplayercontrol.h>
diff --git a/tests/auto/qdeclarativevideo/qdeclarativevideo.pro b/tests/auto/qdeclarativevideo/qdeclarativevideo.pro
index d946bb0..497ee0e 100644
--- a/tests/auto/qdeclarativevideo/qdeclarativevideo.pro
+++ b/tests/auto/qdeclarativevideo/qdeclarativevideo.pro
@@ -1,4 +1,14 @@
load(qttest_p4)
-SOURCES += tst_qdeclarativevideo.cpp
+
+HEADERS += \
+ $$PWD/../../../src/plugins/qdeclarativemodules/multimedia/qdeclarativevideo_p.h \
+ $$PWD/../../../src/plugins/qdeclarativemodules/multimedia/qdeclarativemediabase_p.h \
+ $$PWD/../../../src/plugins/qdeclarativemodules/multimedia/qmetadatacontrolmetaobject_p.h
+
+SOURCES += \
+ tst_qdeclarativevideo.cpp \
+ $$PWD/../../../src/plugins/qdeclarativemodules/multimedia/qdeclarativevideo.cpp \
+ $$PWD/../../../src/plugins/qdeclarativemodules/multimedia/qdeclarativemediabase.cpp \
+ $$PWD/../../../src/plugins/qdeclarativemodules/multimedia/qmetadatacontrolmetaobject.cpp
QT += multimedia declarative
diff --git a/tests/auto/qdeclarativevideo/tst_qdeclarativevideo.cpp b/tests/auto/qdeclarativevideo/tst_qdeclarativevideo.cpp
index 9fc1e70..d3bfc38 100644
--- a/tests/auto/qdeclarativevideo/tst_qdeclarativevideo.cpp
+++ b/tests/auto/qdeclarativevideo/tst_qdeclarativevideo.cpp
@@ -41,7 +41,7 @@
#include <QtTest/QtTest>
-#include <QtMultimedia/private/qdeclarativevideo_p.h>
+#include "../../../src/plugins/qdeclarativemodules/multimedia/qdeclarativevideo_p.h"
#include <QtGui/qapplication.h>
#include <QtMultimedia/qabstractvideosurface.h>
diff --git a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
index 269ec24..7c1b97e 100644
--- a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
+++ b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
@@ -438,7 +438,6 @@ private slots:
void QTBUG_6738_missingUpdateWithSetParent();
void QTBUG_7714_fullUpdateDiscardingOpacityUpdate2();
void QT_2653_fullUpdateDiscardingOpacityUpdate();
- void QT_2649_focusScope();
private:
QList<QGraphicsItem *> paintedItems;
@@ -10003,61 +10002,5 @@ void tst_QGraphicsItem::QTBUG_7714_fullUpdateDiscardingOpacityUpdate2()
QTRY_COMPARE(view.repaints, 1);
}
-void tst_QGraphicsItem::QT_2649_focusScope()
-{
- QGraphicsScene *scene = new QGraphicsScene;
-
- QGraphicsRectItem *subFocusItem = new QGraphicsRectItem;
- subFocusItem->setFlags(QGraphicsItem::ItemIsFocusable);
- subFocusItem->setFocus();
- QCOMPARE(subFocusItem->focusItem(), (QGraphicsItem *)subFocusItem);
-
- QGraphicsRectItem *scope = new QGraphicsRectItem;
- scope->setFlags(QGraphicsItem::ItemIsFocusable | QGraphicsItem::ItemIsFocusScope);
- scope->setFocus();
- subFocusItem->setParentItem(scope);
- QCOMPARE(subFocusItem->focusItem(), (QGraphicsItem *)subFocusItem);
- QCOMPARE(subFocusItem->focusScopeItem(), (QGraphicsItem *)0);
- QCOMPARE(scope->focusItem(), (QGraphicsItem *)subFocusItem);
- QCOMPARE(scope->focusScopeItem(), (QGraphicsItem *)subFocusItem);
-
- QGraphicsRectItem *rootItem = new QGraphicsRectItem;
- rootItem->setFlags(QGraphicsItem::ItemIsFocusable);
- scope->setParentItem(rootItem);
- QCOMPARE(rootItem->focusItem(), (QGraphicsItem *)subFocusItem);
- QCOMPARE(rootItem->focusScopeItem(), (QGraphicsItem *)0);
- QCOMPARE(subFocusItem->focusItem(), (QGraphicsItem *)subFocusItem);
- QCOMPARE(subFocusItem->focusScopeItem(), (QGraphicsItem *)0);
- QCOMPARE(scope->focusItem(), (QGraphicsItem *)subFocusItem);
- QCOMPARE(scope->focusScopeItem(), (QGraphicsItem *)subFocusItem);
-
- scene->addItem(rootItem);
-
- QEvent windowActivate(QEvent::WindowActivate);
- qApp->sendEvent(scene, &windowActivate);
- scene->setFocus();
-
- QCOMPARE(rootItem->focusItem(), (QGraphicsItem *)subFocusItem);
- QCOMPARE(scope->focusItem(), (QGraphicsItem *)subFocusItem);
- QCOMPARE(subFocusItem->focusItem(), (QGraphicsItem *)subFocusItem);
- QCOMPARE(rootItem->focusScopeItem(), (QGraphicsItem *)0);
- QCOMPARE(scope->focusScopeItem(), (QGraphicsItem *)subFocusItem);
- QCOMPARE(subFocusItem->focusScopeItem(), (QGraphicsItem *)0);
- QVERIFY(subFocusItem->hasFocus());
-
- //If we hide the focusScope, the entire subFocus chain should be cleared
- scope->hide();
-
- QCOMPARE(rootItem->focusItem(), (QGraphicsItem *)0);
- QCOMPARE(scope->focusItem(), (QGraphicsItem *)0);
- QCOMPARE(subFocusItem->focusItem(), (QGraphicsItem *)0);
- QCOMPARE(rootItem->focusScopeItem(), (QGraphicsItem *)0);
- QCOMPARE(scope->focusScopeItem(), (QGraphicsItem *)subFocusItem);
- QCOMPARE(subFocusItem->focusScopeItem(), (QGraphicsItem *)0);
- QVERIFY(!subFocusItem->hasFocus());
-
- delete scene;
-}
-
QTEST_MAIN(tst_QGraphicsItem)
#include "tst_qgraphicsitem.moc"
diff --git a/tests/auto/qlist/tst_qlist.cpp b/tests/auto/qlist/tst_qlist.cpp
index a590fca..e2944cc 100644
--- a/tests/auto/qlist/tst_qlist.cpp
+++ b/tests/auto/qlist/tst_qlist.cpp
@@ -60,6 +60,7 @@ private slots:
void length() const;
void lengthSignature() const;
void append() const;
+ void prepend() const;
void mid() const;
};
@@ -130,6 +131,39 @@ void tst_QList::append() const
}
+void tst_QList::prepend() const
+{
+ QList<QString *> list;
+ QString *str1 = new QString;
+ list.prepend(str1);
+ QVERIFY(list.size() == 1);
+ QVERIFY(list.at(0) == str1);
+ QString *str2 = new QString;
+ list.prepend(str2);
+ QVERIFY(list.size() == 2);
+ QVERIFY(list.at(0) == str2);
+ QVERIFY(list.at(1) == str1);
+ QString *str3 = new QString;
+ list.prepend(str3);
+ QVERIFY(list.size() == 3);
+ QVERIFY(list.at(0) == str3);
+ QVERIFY(list.at(1) == str2);
+ QVERIFY(list.at(2) == str1);
+ list.removeAll(str2);
+ delete str2;
+ QVERIFY(list.size() == 2);
+ QVERIFY(list.at(0) == str3);
+ QVERIFY(list.at(1) == str1);
+ QString *str4 = new QString;
+ list.prepend(str4);
+ QVERIFY(list.size() == 3);
+ QVERIFY(list.at(0) == str4);
+ QVERIFY(list.at(1) == str3);
+ QVERIFY(list.at(2) == str1);
+ qDeleteAll(list);
+ list.clear();
+}
+
void tst_QList::mid() const
{
QList<QString> list;
diff --git a/tests/auto/qmediaservice/tst_qmediaservice.cpp b/tests/auto/qmediaservice/tst_qmediaservice.cpp
index 35f661d..a0cb69d 100644
--- a/tests/auto/qmediaservice/tst_qmediaservice.cpp
+++ b/tests/auto/qmediaservice/tst_qmediaservice.cpp
@@ -69,7 +69,9 @@ class QtTestMediaControlA : public QMediaControl
#define QtTestMediaControlA_iid "com.nokia.QtTestMediaControlA"
+QT_BEGIN_NAMESPACE
Q_MEDIA_DECLARE_CONTROL(QtTestMediaControlA, QtTestMediaControlA_iid)
+QT_END_NAMESPACE
class QtTestMediaControlB : public QMediaControl
@@ -78,7 +80,9 @@ class QtTestMediaControlB : public QMediaControl
};
#define QtTestMediaControlB_iid "com.nokia.QtTestMediaControlB"
+QT_BEGIN_NAMESPACE
Q_MEDIA_DECLARE_CONTROL(QtTestMediaControlB, QtTestMediaControlB_iid)
+QT_END_NAMESPACE
class QtTestMediaControlC : public QMediaControl
@@ -87,7 +91,9 @@ class QtTestMediaControlC : public QMediaControl
};
#define QtTestMediaControlC_iid "com.nokia.QtTestMediaControlC"
+QT_BEGIN_NAMESPACE
Q_MEDIA_DECLARE_CONTROL(QtTestMediaControlC, QtTestMediaControlA_iid) // Yes A.
+QT_END_NAMESPACE
class QtTestMediaControlD : public QMediaControl
{
@@ -95,7 +101,9 @@ class QtTestMediaControlD : public QMediaControl
};
#define QtTestMediaControlD_iid "com.nokia.QtTestMediaControlD"
+QT_BEGIN_NAMESPACE
Q_MEDIA_DECLARE_CONTROL(QtTestMediaControlD, QtTestMediaControlD_iid)
+QT_END_NAMESPACE
class QtTestMediaControlE : public QMediaControl
{
diff --git a/tests/auto/qmediaserviceprovider/tst_qmediaserviceprovider.cpp b/tests/auto/qmediaserviceprovider/tst_qmediaserviceprovider.cpp
index 9bca189..d839fe5 100644
--- a/tests/auto/qmediaserviceprovider/tst_qmediaserviceprovider.cpp
+++ b/tests/auto/qmediaserviceprovider/tst_qmediaserviceprovider.cpp
@@ -213,6 +213,57 @@ public:
}
};
+class MockServicePlugin4 : public QMediaServiceProviderPlugin,
+ public QMediaServiceSupportedFormatsInterface,
+ public QMediaServiceFeaturesInterface
+{
+ Q_OBJECT
+ Q_INTERFACES(QMediaServiceSupportedFormatsInterface)
+ Q_INTERFACES(QMediaServiceFeaturesInterface)
+public:
+ QStringList keys() const
+ {
+ return QStringList() << QLatin1String(Q_MEDIASERVICE_MEDIAPLAYER);
+ }
+
+ QMediaService* create(QString const& key)
+ {
+ if (keys().contains(key))
+ return new MockMediaService("MockServicePlugin4");
+ else
+ return 0;
+ }
+
+ void release(QMediaService *service)
+ {
+ delete service;
+ }
+
+ QtMultimedia::SupportEstimate hasSupport(const QString &mimeType, const QStringList& codecs) const
+ {
+ if (codecs.contains(QLatin1String("jpeg2000")))
+ return QtMultimedia::NotSupported;
+
+ if (supportedMimeTypes().contains(mimeType))
+ return QtMultimedia::ProbablySupported;
+
+ return QtMultimedia::MaybeSupported;
+ }
+
+ QStringList supportedMimeTypes() const
+ {
+ return QStringList() << "video/mp4" << "video/quicktime";
+ }
+
+ QMediaServiceProviderHint::Features supportedFeatures(const QByteArray &service) const
+ {
+ if (service == QByteArray(Q_MEDIASERVICE_MEDIAPLAYER))
+ return QMediaServiceProviderHint::StreamPlayback;
+ else
+ return 0;
+ }
+};
+
class MockMediaServiceProvider : public QMediaServiceProvider
@@ -253,6 +304,7 @@ void tst_QMediaServiceProvider::initTestCase()
plugins << new MockServicePlugin1;
plugins << new MockServicePlugin2;
plugins << new MockServicePlugin3;
+ plugins << new MockServicePlugin4;
QMediaPluginLoader::setStaticPlugins(QLatin1String("/mediaservices"), plugins);
}
@@ -312,12 +364,32 @@ void tst_QMediaServiceProvider::testHasSupport()
QCOMPARE(QMediaPlayer::hasSupport("audio/ogg"), QtMultimedia::ProbablySupported);
QCOMPARE(QMediaPlayer::hasSupport("audio/wav"), QtMultimedia::ProbablySupported);
+ //test low latency flag support
+ QCOMPARE(QMediaPlayer::hasSupport("audio/wav", QStringList(), QMediaPlayer::LowLatency),
+ QtMultimedia::ProbablySupported);
+ //plugin1 probably supports audio/ogg, it checked because it doesn't provide features iface
+ QCOMPARE(QMediaPlayer::hasSupport("audio/ogg", QStringList(), QMediaPlayer::LowLatency),
+ QtMultimedia::ProbablySupported);
+ //Plugin4 is not checked here, sine it's known not support low latency
+ QCOMPARE(QMediaPlayer::hasSupport("video/quicktime", QStringList(), QMediaPlayer::LowLatency),
+ QtMultimedia::MaybeSupported);
+
+ //test streaming flag support
+ QCOMPARE(QMediaPlayer::hasSupport("video/quicktime", QStringList(), QMediaPlayer::StreamPlayback),
+ QtMultimedia::ProbablySupported);
+ //Plugin2 is not checked here, sine it's known not support streaming
+ QCOMPARE(QMediaPlayer::hasSupport("audio/wav", QStringList(), QMediaPlayer::StreamPlayback),
+ QtMultimedia::MaybeSupported);
+
//ensure the correct media player plugin is choosen for mime type
QMediaPlayer simplePlayer(0, QMediaPlayer::LowLatency);
QCOMPARE(simplePlayer.service()->objectName(), QLatin1String("MockServicePlugin2"));
QMediaPlayer mediaPlayer;
QVERIFY(mediaPlayer.service()->objectName() != QLatin1String("MockServicePlugin2"));
+
+ QMediaPlayer streamPlayer(0, QMediaPlayer::StreamPlayback);
+ QCOMPARE(streamPlayer.service()->objectName(), QLatin1String("MockServicePlugin4"));
}
void tst_QMediaServiceProvider::testSupportedMimeTypes()
diff --git a/tests/auto/qmenu/tst_qmenu.cpp b/tests/auto/qmenu/tst_qmenu.cpp
index 3559b15..e10d7ee 100644
--- a/tests/auto/qmenu/tst_qmenu.cpp
+++ b/tests/auto/qmenu/tst_qmenu.cpp
@@ -105,6 +105,7 @@ private slots:
void deleteActionInTriggered();
void pushButtonPopulateOnAboutToShow();
void QTBUG7907_submenus_autoselect();
+ void QTBUG7411_submenus_activate();
protected slots:
void onActivated(QAction*);
void onHighlighted(QAction*);
@@ -948,6 +949,25 @@ void tst_QMenu::QTBUG7907_submenus_autoselect()
QVERIFY(!subset.isVisible());
}
+void tst_QMenu::QTBUG7411_submenus_activate()
+{
+ QMenu menu("Test Menu");
+ QAction *act = menu.addAction("foo");
+ QMenu sub1("&sub1");
+ sub1.addAction("foo");
+ sub1.setTitle("&sub1");
+ QAction *act1 = menu.addMenu(&sub1);
+ menu.show();
+ QTest::qWaitForWindowShown(&menu);
+ menu.setActiveAction(act);
+ QTest::keyPress(&menu, Qt::Key_Down);
+ QCOMPARE(menu.activeAction(), act1);
+ QVERIFY(!sub1.isVisible());
+ QTest::keyPress(&menu, Qt::Key_S);
+ QTRY_VERIFY(sub1.isVisible());
+}
+
+
QTEST_MAIN(tst_QMenu)
#include "tst_qmenu.moc"
diff --git a/tests/auto/qmetaobject/tst_qmetaobject.cpp b/tests/auto/qmetaobject/tst_qmetaobject.cpp
index 15b6204..bb4a0d2 100644
--- a/tests/auto/qmetaobject/tst_qmetaobject.cpp
+++ b/tests/auto/qmetaobject/tst_qmetaobject.cpp
@@ -157,6 +157,7 @@ private slots:
void invokeQueuedMetaMember();
void invokeCustomTypes();
void invokeMetaConstructor();
+ void invokeTypedefTypes();
void qtMetaObjectInheritance();
void normalizedSignature_data();
void normalizedSignature();
@@ -513,6 +514,19 @@ void tst_QMetaObject::invokeMetaMember()
QVERIFY(QMetaObject::invokeMethod(&obj, "sig1", Q_RETURN_ARG(QString, exp), Q_ARG(QString, "hehe")));
QCOMPARE(exp, QString("yessir"));
QCOMPARE(obj.slotResult, QString("sl1:hehe"));
+
+ QTest::ignoreMessage(QtWarningMsg, "QMetaObject::invokeMethod: No such method QtTestObject::doesNotExist()");
+ QVERIFY(!QMetaObject::invokeMethod(&obj, "doesNotExist"));
+ QTest::ignoreMessage(QtWarningMsg, "QMetaObject::invokeMethod: No such method QtTestObject::sl1(QString)(QString)");
+ QVERIFY(!QMetaObject::invokeMethod(&obj, "sl1(QString)", Q_ARG(QString, "arg")));
+ QTest::ignoreMessage(QtWarningMsg, "QMetaObject::invokeMethod: No such method QtTestObject::sl3(QString)");
+ QVERIFY(!QMetaObject::invokeMethod(&obj, "sl3", Q_ARG(QString, "arg")));
+ QTest::ignoreMessage(QtWarningMsg, "QMetaObject::invokeMethod: No such method QtTestObject::sl1(QString,QString,QString)");
+ QVERIFY(!QMetaObject::invokeMethod(&obj, "sl1", Q_ARG(QString, "arg"), Q_ARG(QString, "arg"), Q_ARG(QString, "arg")));
+
+ //should not have changed since last test.
+ QCOMPARE(exp, QString("yessir"));
+ QCOMPARE(obj.slotResult, QString("sl1:hehe"));
}
void tst_QMetaObject::invokeQueuedMetaMember()
@@ -585,6 +599,8 @@ struct MyType
int i1, i2, i3;
};
+typedef QString CustomString;
+
class QtTestCustomObject: public QObject
{
Q_OBJECT
@@ -594,6 +610,9 @@ public:
public slots:
void sl1(MyType myType);
+signals:
+ void sig_custom(const CustomString &string);
+
public:
int sum;
};
@@ -651,6 +670,20 @@ void tst_QMetaObject::invokeMetaConstructor()
}
}
+void tst_QMetaObject::invokeTypedefTypes()
+{
+ qRegisterMetaType<CustomString>("CustomString");
+ QtTestCustomObject obj;
+ QSignalSpy spy(&obj, SIGNAL(sig_custom(CustomString)));
+
+ QCOMPARE(spy.count(), 0);
+ CustomString arg("hello");
+ QVERIFY(QMetaObject::invokeMethod(&obj, "sig_custom", Q_ARG(CustomString, arg)));
+ QCOMPARE(spy.count(), 1);
+ QCOMPARE(spy.at(0).count(), 1);
+ QCOMPARE(spy.at(0).at(0), QVariant(arg));
+}
+
void tst_QMetaObject::normalizedSignature_data()
{
QTest::addColumn<QString>("signature");
diff --git a/tests/auto/qmetatype/tst_qmetatype.cpp b/tests/auto/qmetatype/tst_qmetatype.cpp
index 943b05b..f4e122f 100644
--- a/tests/auto/qmetatype/tst_qmetatype.cpp
+++ b/tests/auto/qmetatype/tst_qmetatype.cpp
@@ -241,6 +241,9 @@ void tst_QMetaType::construct()
QMetaType::destroy(QMetaType::QSize, size);
}
+typedef QString CustomString;
+Q_DECLARE_METATYPE(CustomString) //this line is useless
+
void tst_QMetaType::typedefs()
{
QCOMPARE(QMetaType::type("long long"), int(QMetaType::LongLong));
@@ -256,6 +259,13 @@ void tst_QMetaType::typedefs()
// make sure the qreal typeId is the type id of the type it's defined to
QCOMPARE(QMetaType::type("qreal"), ::qMetaTypeId<qreal>());
+
+ qRegisterMetaType<CustomString>("CustomString");
+ QCOMPARE(QMetaType::type("CustomString"), ::qMetaTypeId<CustomString>());
+
+ typedef Whity<double> WhityDouble;
+ qRegisterMetaType<WhityDouble>("WhityDouble");
+ QCOMPARE(QMetaType::type("WhityDouble"), ::qMetaTypeId<WhityDouble>());
}
class IsRegisteredDummyType { };
@@ -286,9 +296,9 @@ void tst_QMetaType::isRegistered()
QCOMPARE(QMetaType::isRegistered(typeId), registered);
}
-class RegUnreg
+class RegUnreg
{
-public:
+public:
RegUnreg() {};
RegUnreg(const RegUnreg &) {};
~RegUnreg() {};
diff --git a/tests/auto/qobject/tst_qobject.cpp b/tests/auto/qobject/tst_qobject.cpp
index 3896d70..c8f846e 100644
--- a/tests/auto/qobject/tst_qobject.cpp
+++ b/tests/auto/qobject/tst_qobject.cpp
@@ -1112,6 +1112,8 @@ void tst_QObject::streamCustomTypes()
QCOMPARE(instanceCount, 0);
}
+typedef QString CustomString;
+
class PropertyObject : public QObject
{
Q_OBJECT
@@ -1125,6 +1127,7 @@ class PropertyObject : public QObject
Q_PROPERTY(CustomType* custom READ custom WRITE setCustom)
Q_PROPERTY(float myFloat READ myFloat WRITE setMyFloat)
Q_PROPERTY(qreal myQReal READ myQReal WRITE setMyQReal)
+ Q_PROPERTY(CustomString customString READ customString WRITE setCustomString )
public:
enum Alpha {
@@ -1163,6 +1166,9 @@ public:
void setMyQReal(qreal value) { m_qreal = value; }
qreal myQReal() const { return m_qreal; }
+ CustomString customString() const { return m_customString; }
+ void setCustomString(const QString &string) { m_customString = string; }
+
private:
Alpha m_alpha;
Priority m_priority;
@@ -1172,6 +1178,7 @@ private:
CustomType *m_custom;
float m_float;
qreal m_qreal;
+ CustomString m_customString;
};
Q_DECLARE_METATYPE(PropertyObject::Priority)
@@ -1626,6 +1633,15 @@ void tst_QObject::property()
QCOMPARE(qVariantValue<PropertyObject::Priority>(object.property("priority")), PropertyObject::Low);
object.setProperty("priority", var);
QCOMPARE(qVariantValue<PropertyObject::Priority>(object.property("priority")), PropertyObject::High);
+
+ qRegisterMetaType<CustomString>("CustomString");
+ QVERIFY(mo->indexOfProperty("customString") != -1);
+ QCOMPARE(object.property("customString").toString(), QString());
+ object.setCustomString("String1");
+ QCOMPARE(object.property("customString"), QVariant("String1"));
+ QVERIFY(object.setProperty("customString", "String2"));
+ QCOMPARE(object.property("customString"), QVariant("String2"));
+ QVERIFY(!object.setProperty("customString", QVariant()));
}
void tst_QObject::metamethod()
diff --git a/tests/auto/qprinter/tst_qprinter.cpp b/tests/auto/qprinter/tst_qprinter.cpp
index 7e8ce84..49bddb2 100644
--- a/tests/auto/qprinter/tst_qprinter.cpp
+++ b/tests/auto/qprinter/tst_qprinter.cpp
@@ -107,6 +107,7 @@ private slots:
void printDialogCompleter();
void testCopyCount();
+ void testCurrentPage();
void taskQTBUG4497_reusePrinterOnDifferentFiles();
@@ -1005,5 +1006,27 @@ void tst_QPrinter::taskQTBUG4497_reusePrinterOnDifferentFiles()
QCOMPARE(file1.readAll(), file2.readAll());
}
+void tst_QPrinter::testCurrentPage()
+{
+ QPrinter printer;
+ printer.setFromTo(1, 10);
+
+ // Test set print range
+ printer.setPrintRange(QPrinter::CurrentPage);
+ QCOMPARE(printer.printRange(), QPrinter::CurrentPage);
+ QCOMPARE(printer.fromPage(), 1);
+ QCOMPARE(printer.toPage(), 10);
+
+ QPrintDialog dialog(&printer);
+
+ // Test default Current Page option to off
+ QCOMPARE(dialog.isOptionEnabled(QPrintDialog::PrintCurrentPage), false);
+
+ // Test enable Current Page option
+ dialog.setOption(QPrintDialog::PrintCurrentPage);
+ QCOMPARE(dialog.isOptionEnabled(QPrintDialog::PrintCurrentPage), true);
+
+}
+
QTEST_MAIN(tst_QPrinter)
#include "tst_qprinter.moc"
diff --git a/tests/auto/qscriptvalue/qscriptvalue.pro b/tests/auto/qscriptvalue/qscriptvalue.pro
index 191cd4a..c3e9912 100644
--- a/tests/auto/qscriptvalue/qscriptvalue.pro
+++ b/tests/auto/qscriptvalue/qscriptvalue.pro
@@ -4,8 +4,12 @@ SOURCES += tst_qscriptvalue.cpp
HEADERS += tst_qscriptvalue.h
# Generated by testgen
-SOURCES += tst_qscriptvalue_generated.cpp
-
+SOURCES += \
+ tst_qscriptvalue_generated_init.cpp \
+ tst_qscriptvalue_generated_cast.cpp \
+ tst_qscriptvalue_generated_comparison.cpp \
+ tst_qscriptvalue_generated_isXXX.cpp \
+ tst_qscriptvalue_generated_toXXX.cpp
win32-msvc* {
# With -O2, MSVC takes up to 24 minutes to compile this test!
diff --git a/tests/auto/qscriptvalue/testgen/main.cpp b/tests/auto/qscriptvalue/testgen/main.cpp
index fe35de9..0672635 100644
--- a/tests/auto/qscriptvalue/testgen/main.cpp
+++ b/tests/auto/qscriptvalue/testgen/main.cpp
@@ -50,7 +50,7 @@ int main(int argc, char *argv[])
QCoreApplication a(argc, argv);
if (argc != 2) {
- qWarning() << "./prog outputfile";
+ qWarning() << "./prog outputdir";
exit(1);
}
diff --git a/tests/auto/qscriptvalue/testgen/testgenerator.cpp b/tests/auto/qscriptvalue/testgen/testgenerator.cpp
index 4376c42..a291110 100644
--- a/tests/auto/qscriptvalue/testgen/testgenerator.cpp
+++ b/tests/auto/qscriptvalue/testgen/testgenerator.cpp
@@ -50,10 +50,17 @@
#include <QtCore/qvariant.h>
#include <QtScript/qscriptvalue.h>
-void TestGenerator::save(const QString& data)
+void TestGenerator::save(const QHash<QString, QString>& data)
{
- QTextStream out(&m_ofile);
- out << data;
+ foreach(const QString& name, data.keys()) {
+ QFile ofile(m_opath + "tst_qscriptvalue_generated_" + name + ".cpp");
+ if (!ofile.open(QIODevice::WriteOnly | QIODevice::Text)) {
+ qWarning() << "Can't open output file: " << ofile.fileName();
+ exit(2);
+ }
+ QTextStream out(&ofile);
+ out << data[name];
+ }
}
static QString escape(QString txt)
@@ -98,6 +105,55 @@ QString typeName<bool>() {return "bool";}
template<>
QString typeName<QString>() {return "QString";}
+static QString generateLicence()
+{
+ return "/****************************************************************************\n"
+ "**\n"
+ "** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).\n"
+ "** All rights reserved.\n"
+ "** Contact: Nokia Corporation (qt-info@nokia.com)\n"
+ "**\n"
+ "** This file is part of the test suite of the Qt Toolkit.\n"
+ "**\n"
+ "** $QT_BEGIN_LICENSE:LGPL$\n"
+ "** No Commercial Usage\n"
+ "** This file contains pre-release code and may not be distributed.\n"
+ "** You may use this file in accordance with the terms and conditions\n"
+ "** contained in the Technology Preview License Agreement accompanying\n"
+ "** this package.\n"
+ "**\n"
+ "** GNU Lesser General Public License Usage\n"
+ "** Alternatively, this file may be used under the terms of the GNU Lesser\n"
+ "** General Public License version 2.1 as published by the Free Software\n"
+ "** Foundation and appearing in the file LICENSE.LGPL included in the\n"
+ "** packaging of this file. Please review the following information to\n"
+ "** ensure the GNU Lesser General Public License version 2.1 requirements\n"
+ "** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.\n"
+ "**\n"
+ "** In addition, as a special exception, Nokia gives you certain additional\n"
+ "** rights. These rights are described in the Nokia Qt LGPL Exception\n"
+ "** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.\n"
+ "**\n"
+ "** If you have questions regarding the use of this file, please contact\n"
+ "** Nokia at qt-info@nokia.com.\n"
+ "**\n"
+ "**\n"
+ "**\n"
+ "**\n"
+ "**\n"
+ "**\n"
+ "**\n"
+ "**\n"
+ "** $QT_END_LICENSE$\n"
+ "**\n"
+ "****************************************************************************/\n"
+ "\n"\
+ "/****************************************************************************\n"\
+ "*************** This file has been generated. DO NOT MODIFY! ****************\n"
+ "****************************************************************************/\n\n"\
+ "#include \"tst_qscriptvalue.h\"\n\n";
+}
+
static QString generateIsXXXDef(const QString& name, const QList<QString>& list)
{
static const QString templ("void tst_QScriptValue::%1_initData()\n"\
@@ -106,11 +162,14 @@ static QString generateIsXXXDef(const QString& name, const QList<QString>& list)
" initScriptValues();\n"\
"}\n"\
"\n"\
+ "static QString %1_array [] = {%2};\n\n"\
"void tst_QScriptValue::%1_makeData(const char* expr)\n"\
"{\n"\
" static QSet<QString> %1;\n"\
" if (%1.isEmpty()) {\n"\
- " %1%2\n"\
+ " %1.reserve(%3);\n"\
+ " for (unsigned i = 0; i < %3; ++i)\n"\
+ " %1.insert(%1_array[i]);\n"\
" }\n"\
" newRow(expr) << %1.contains(expr);\n"\
"}\n"\
@@ -132,16 +191,14 @@ static QString generateIsXXXDef(const QString& name, const QList<QString>& list)
QString result = templ;
QStringList set;
- foreach(QString t, list) {
- t = escape(t);
- t.append('\"');
- t.prepend('\"');
- set.append(QString(" << "));
- set.append(t);
- set.append("\n ");
+ set.reserve(3 * list.count());
+ foreach(const QString& t, list) {
+ set.append("\n \"");
+ set.append(escape(t));
+ set.append("\",");
}
- set.append(";");
- return result.arg(name, set.join(QString()));
+
+ return result.arg(name, set.join(QString()), QString::number(list.count()));
}
template<typename T>
@@ -154,11 +211,15 @@ static QString generateToXXXDef(const QString& name, const QList<QPair<QString,
" initScriptValues();\n"\
"}\n"\
"\n"\
+ "static QString %1_tagArray [] = {%4};\n\n"\
+ "static %2 %1_valueArray [] = {%5};\n\n"\
"void tst_QScriptValue::%1_makeData(const char* expr)\n"\
"{\n"\
" static QHash<QString, %2> %1;\n"\
" if (%1.isEmpty()) {\n"\
- "%3"\
+ " %1.reserve(%3);\n"\
+ " for (unsigned i = 0; i < %3; ++i)\n"\
+ " %1.insert(%1_tagArray[i], %1_valueArray[i]);\n"\
" }\n"\
" newRow(expr) << %1.value(expr);\n"\
"}\n"\
@@ -174,19 +235,26 @@ static QString generateToXXXDef(const QString& name, const QList<QPair<QString,
QString result = templ;
typename QList<QPair<QString, T> >::const_iterator i = list.constBegin();
- QStringList set;
+ QStringList tagSet, valueSet;
+ tagSet.reserve(list.count());
+ valueSet.reserve(list.count());
+ int tmp = -1;
for(; i != list.constEnd(); ++i) {
QPair<QString, T> t = *i;
t.first = escape(t.first);
- set.append(QString(" "));
- set.append(name);
- set.append(".insert(\"");
- set.append(t.first);
- set.append(QString::fromAscii("\", "));
- set.append(prepareToInsert<T>(t.second));
- set.append(QString::fromAscii(");\n"));
+ tagSet.append(QString("\n \""));
+ tagSet.append(t.first);
+ tagSet.append(QString::fromAscii("\","));
+ if (!((++tmp)%2))
+ valueSet.append(QString("\n "));
+ valueSet.append(prepareToInsert<T>(t.second));
+ valueSet.append(QString::fromAscii(", "));
}
- return result.arg(name, typeName<T>(), set.join(QString()));
+ return result.arg(name,
+ typeName<T>(),
+ QString::number(list.count()),
+ tagSet.join(QString()),
+ valueSet.join(QString()));
}
@@ -200,11 +268,15 @@ QString generateToXXXDef<qsreal>(const QString& name, const QList<QPair<QString,
" initScriptValues();\n"\
"}\n"\
"\n"\
+ "static QString %1_tagArray [] = {%3};\n"\
+ "static %2 %1_valueArray [] = {%4};\n"\
"void tst_QScriptValue::%1_makeData(const char* expr)\n"\
"{\n"\
" static QHash<QString, %2> %1;\n"\
" if (%1.isEmpty()) {\n"\
- "%3"\
+ " %1.reserve(%5);\n"\
+ " for (unsigned i = 0; i < %5; ++i)\n"\
+ " %1.insert(%1_tagArray[i], %1_valueArray[i]);\n"\
" }\n"\
" newRow(expr) << %1.value(expr);\n"\
"}\n"\
@@ -226,17 +298,20 @@ QString generateToXXXDef<qsreal>(const QString& name, const QList<QPair<QString,
QString result = templ;
QList<QPair<QString, qsreal> >::const_iterator i = list.constBegin();
- QStringList set;
+ QStringList tagSet, valueSet;
+ tagSet.reserve(list.count());
+ valueSet.reserve(list.count());
+ int tmp = -1;
for(; i != list.constEnd(); ++i) {
QPair<QString, qsreal> t = *i;
t.first = escape(t.first);
- set.append(QString(" "));
- set.append(name);
- set.append(".insert(\"");
- set.append(t.first);
- set.append(QString::fromAscii("\", "));
- set.append(prepareToInsert<qsreal>(t.second));
- set.append(QString::fromAscii(");\n"));
+ tagSet.append(QString("\n \""));
+ tagSet.append(t.first);
+ tagSet.append(QString::fromAscii("\","));
+ if (!((++tmp)%10))
+ valueSet.append(QString("\n "));
+ valueSet.append(prepareToInsert<qsreal>(t.second));
+ valueSet.append(QString::fromAscii(", "));
}
// toInteger shouldn't return NaN, so it would be nice to catch the case.
QString hook;
@@ -247,105 +322,129 @@ QString generateToXXXDef<qsreal>(const QString& name, const QList<QPair<QString,
" return;\n"\
" }\n";
}
- return result.arg(name, typeName<qsreal>(), set.join(QString()), hook);
+ return result.arg(name,
+ typeName<qsreal>(),
+ tagSet.join(QString()),
+ valueSet.join(QString()),
+ QString::number(list.count()),
+ hook);
}
template<typename T>
static QString generateCastDef(const QList<QPair<QString, T> >& list)
{
static const QString templ = "\n"\
- "void tst_QScriptValue::qscriptvalue_cast%2_initData()\n"\
+ "void tst_QScriptValue::qscriptvalue_cast%1_initData()\n"\
"{\n"\
- " QTest::addColumn<%2>(\"expected\");\n"\
+ " QTest::addColumn<%1>(\"expected\");\n"\
" initScriptValues();\n"\
"}\n"\
"\n"\
- "void tst_QScriptValue::qscriptvalue_cast%2_makeData(const char* expr)\n"\
+ "static QString qscriptvalue_cast%1_tagArray [] = {%2};\n"\
+ "static %1 qscriptvalue_cast%1_valueArray [] = {%3};\n"\
+ "void tst_QScriptValue::qscriptvalue_cast%1_makeData(const char* expr)\n"\
"{\n"\
- " static QHash<QString, %2> value;\n"\
+ " static QHash<QString, %1> value;\n"\
" if (value.isEmpty()) {\n"\
- "%3"\
+ " value.reserve(%4);\n"\
+ " for (unsigned i = 0; i < %4; ++i)\n"\
+ " value.insert(qscriptvalue_cast%1_tagArray[i], qscriptvalue_cast%1_valueArray[i]);\n"\
" }\n"\
" newRow(expr) << value.value(expr);\n"\
"}\n"\
"\n"\
- "void tst_QScriptValue::qscriptvalue_cast%2_test(const char*, const QScriptValue& value)\n"\
+ "void tst_QScriptValue::qscriptvalue_cast%1_test(const char*, const QScriptValue& value)\n"\
"{\n"\
- " QFETCH(%2, expected);\n"\
- " QCOMPARE(qscriptvalue_cast<%2>(value), expected);\n"\
- " QCOMPARE(qscriptvalue_cast<%2>(value), expected);\n"\
+ " QFETCH(%1, expected);\n"\
+ " QCOMPARE(qscriptvalue_cast<%1>(value), expected);\n"\
+ " QCOMPARE(qscriptvalue_cast<%1>(value), expected);\n"\
"}\n"\
"\n"\
- "DEFINE_TEST_FUNCTION(qscriptvalue_cast%2)\n";
+ "DEFINE_TEST_FUNCTION(qscriptvalue_cast%1)\n";
QString result = templ;
typename QList<QPair<QString, T> >::const_iterator i = list.constBegin();
- QStringList set;
+ QStringList tagSet, valueSet;
+ tagSet.reserve(list.count());
+ valueSet.reserve(list.count());
+ int tmp = -1;
for(; i != list.constEnd(); ++i) {
QPair<QString, T> t = *i;
t.first = escape(t.first);
- set.append(QString(" "));
- set.append("value.insert(\"");
- set.append(t.first);
- set.append(QString::fromAscii("\", "));
- set.append(prepareToInsert<T>(t.second));
- set.append(QString::fromAscii(");\n"));
+ tagSet.append(QString("\n \""));
+ tagSet.append(t.first);
+ tagSet.append(QString::fromAscii("\","));
+ if (!((++tmp)%2))
+ valueSet.append(QString("\n "));
+ valueSet.append(prepareToInsert<T>(t.second));
+ valueSet.append(QString::fromAscii(", "));
}
- return result.arg(typeName<T>(), set.join(QString()));
+ return result.arg(typeName<T>(), tagSet.join(QString()), valueSet.join(QString()), QString::number(list.count()));
}
template<>
QString generateCastDef<qsreal>(const QList<QPair<QString, qsreal> >& list)
{
static const QString templ = "\n"\
- "void tst_QScriptValue::qscriptvalue_cast%2_initData()\n"\
+ "void tst_QScriptValue::qscriptvalue_cast%1_initData()\n"\
"{\n"\
- " QTest::addColumn<%2>(\"expected\");\n"\
+ " QTest::addColumn<%1>(\"expected\");\n"\
" initScriptValues();\n"\
"}\n"\
"\n"\
- "void tst_QScriptValue::qscriptvalue_cast%2_makeData(const char* expr)\n"\
+ "static QString qscriptvalue_cast%1_tagArray [] = {%2};\n"\
+ "static %1 qscriptvalue_cast%1_valueArray [] = {%3};\n"\
+ "void tst_QScriptValue::qscriptvalue_cast%1_makeData(const char* expr)\n"\
"{\n"\
- " static QHash<QString, %2> value;\n"\
+ " static QHash<QString, %1> value;\n"\
" if (value.isEmpty()) {\n"\
- "%3"\
+ " value.reserve(%4);\n"\
+ " for (unsigned i = 0; i < %4; ++i)\n"\
+ " value.insert(qscriptvalue_cast%1_tagArray[i], qscriptvalue_cast%1_valueArray[i]);\n"\
" }\n"\
" newRow(expr) << value.value(expr);\n"\
"}\n"\
"\n"\
- "void tst_QScriptValue::qscriptvalue_cast%2_test(const char*, const QScriptValue& value)\n"\
+ "void tst_QScriptValue::qscriptvalue_cast%1_test(const char*, const QScriptValue& value)\n"\
"{\n"\
- " QFETCH(%2, expected);\n"\
+ " QFETCH(%1, expected);\n"\
" if (qIsNaN(expected)) {\n"
- " QVERIFY(qIsNaN(qscriptvalue_cast<%2>(value)));\n"
- " QVERIFY(qIsNaN(qscriptvalue_cast<%2>(value)));\n"
+ " QVERIFY(qIsNaN(qscriptvalue_cast<%1>(value)));\n"
+ " QVERIFY(qIsNaN(qscriptvalue_cast<%1>(value)));\n"
" return;\n"
" }\n"\
" if (qIsInf(expected)) {\n"
- " QVERIFY(qIsInf(qscriptvalue_cast<%2>(value)));\n"
- " QVERIFY(qIsInf(qscriptvalue_cast<%2>(value)));\n"
+ " QVERIFY(qIsInf(qscriptvalue_cast<%1>(value)));\n"
+ " QVERIFY(qIsInf(qscriptvalue_cast<%1>(value)));\n"
" return;\n"
" }\n"
- " QCOMPARE(qscriptvalue_cast<%2>(value), expected);\n"\
- " QCOMPARE(qscriptvalue_cast<%2>(value), expected);\n"\
+ " QCOMPARE(qscriptvalue_cast<%1>(value), expected);\n"\
+ " QCOMPARE(qscriptvalue_cast<%1>(value), expected);\n"\
"}\n"\
"\n"\
- "DEFINE_TEST_FUNCTION(qscriptvalue_cast%2)\n";
+ "DEFINE_TEST_FUNCTION(qscriptvalue_cast%1)\n";
QString result = templ;
QList<QPair<QString, qsreal> >::const_iterator i = list.constBegin();
- QStringList set;
+ QStringList tagSet, valueSet;
+ tagSet.reserve(list.count());
+ valueSet.reserve(list.count());
+ int tmp = -1;
for(; i != list.constEnd(); ++i) {
QPair<QString, qsreal> t = *i;
t.first = escape(t.first);
- set.append(QString(" "));
- set.append("value.insert(\"");
- set.append(t.first);
- set.append(QString::fromAscii("\", "));
- set.append(prepareToInsert<qsreal>(t.second));
- set.append(QString::fromAscii(");\n"));
+ tagSet.append(QString("\n \""));
+ tagSet.append(t.first);
+ tagSet.append(QString::fromAscii("\","));
+ if (!((++tmp)%10))
+ valueSet.append(QString("\n "));
+ valueSet.append(prepareToInsert<qsreal>(t.second));
+ valueSet.append(QString::fromAscii(", "));
}
- return result.arg(typeName<qsreal>(), set.join(QString()));
+ return result.arg(typeName<qsreal>(),
+ tagSet.join(QString()),
+ valueSet.join(QString()),
+ QString::number(list.count()));
}
static QString generateCompareDef(const QString& comparisionType, const QList<QString> tags)
@@ -358,11 +457,14 @@ static QString generateCompareDef(const QString& comparisionType, const QList<QS
" initScriptValues();\n"\
"}\n"\
"\n"\
+ "static QString %1_array [] = {%2};\n\n"\
"void tst_QScriptValue::%1_makeData(const char *expr)\n"\
"{\n"\
" static QSet<QString> equals;\n"\
" if (equals.isEmpty()) {\n"\
- "%2\n"\
+ " equals.reserve(%3);\n"\
+ " for (unsigned i = 0; i < %3; ++i)\n"\
+ " equals.insert(%1_array[i]);\n"\
" }\n"\
" QHash<QString, QScriptValue>::const_iterator it;\n"\
" for (it = m_values.constBegin(); it != m_values.constEnd(); ++it) {\n"\
@@ -386,59 +488,16 @@ static QString generateCompareDef(const QString& comparisionType, const QList<QS
QString result = templ;
QStringList set;
+ set.reserve(tags.count());
foreach(const QString& tmp, tags) {
- set.append(" equals.insert(\"" + escape(tmp) + "\");");
+ set.append("\n \"" + escape(tmp) + "\",");
}
- return result.arg(comparisionType, set.join("\n"));
+ return result.arg(comparisionType, set.join(""), QString::number(tags.count()));
}
static QString generateInitDef(const QVector<QString>& allDataTags)
{
- static const QString templ = "/****************************************************************************\n"
- "**\n"
- "** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).\n"
- "** All rights reserved.\n"
- "** Contact: Nokia Corporation (qt-info@nokia.com)\n"
- "**\n"
- "** This file is part of the test suite of the Qt Toolkit.\n"
- "**\n"
- "** $QT_BEGIN_LICENSE:LGPL$\n"
- "** No Commercial Usage\n"
- "** This file contains pre-release code and may not be distributed.\n"
- "** You may use this file in accordance with the terms and conditions\n"
- "** contained in the Technology Preview License Agreement accompanying\n"
- "** this package.\n"
- "**\n"
- "** GNU Lesser General Public License Usage\n"
- "** Alternatively, this file may be used under the terms of the GNU Lesser\n"
- "** General Public License version 2.1 as published by the Free Software\n"
- "** Foundation and appearing in the file LICENSE.LGPL included in the\n"
- "** packaging of this file. Please review the following information to\n"
- "** ensure the GNU Lesser General Public License version 2.1 requirements\n"
- "** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.\n"
- "**\n"
- "** In addition, as a special exception, Nokia gives you certain additional\n"
- "** rights. These rights are described in the Nokia Qt LGPL Exception\n"
- "** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.\n"
- "**\n"
- "** If you have questions regarding the use of this file, please contact\n"
- "** Nokia at qt-info@nokia.com.\n"
- "**\n"
- "**\n"
- "**\n"
- "**\n"
- "**\n"
- "**\n"
- "**\n"
- "**\n"
- "** $QT_END_LICENSE$\n"
- "**\n"
- "****************************************************************************/\n"
- "\n"\
- "#include \"tst_qscriptvalue.h\"\n\n"\
- "#define DEFINE_TEST_VALUE(expr) m_values.insert(QString::fromLatin1(#expr), expr)\n"\
- "\n"\
- "void tst_QScriptValue::initScriptValues()\n"\
+ static const QString templ = "void tst_QScriptValue::initScriptValues()\n"\
"{\n"\
" m_values.clear();\n"\
" if (engine) \n"\
@@ -463,7 +522,7 @@ static void squashTags(QString dataTag, const QVector<bool>& results, QList<QStr
}
-QString TestGenerator::generateTest()
+QHash<QString, QString> TestGenerator::generateTest()
{
// All data tags keept in one place.
QVector<QString> dataTags;
@@ -643,47 +702,63 @@ QString TestGenerator::generateTest()
Q_ASSERT(in.atEnd());
// Generate.
- QStringList result;
- result.append(generateInitDef(dataTags));
- result.append(generateIsXXXDef("isValid", isValidList));
- result.append(generateIsXXXDef("isBool", isBoolList));
- result.append(generateIsXXXDef("isBoolean", isBooleanList));
- result.append(generateIsXXXDef("isNumber", isNumberList));
- result.append(generateIsXXXDef("isFunction", isFunctionList));
- result.append(generateIsXXXDef("isNull", isNullList));
- result.append(generateIsXXXDef("isString", isStringList));
- result.append(generateIsXXXDef("isUndefined", isUndefinedList));
- result.append(generateIsXXXDef("isVariant", isVariantList));
- result.append(generateIsXXXDef("isQObject", isQObjectList));
- result.append(generateIsXXXDef("isQMetaObject", isQMetaObjectList));
- result.append(generateIsXXXDef("isObject", isObjectList));
- result.append(generateIsXXXDef("isDate", isDateList));
- result.append(generateIsXXXDef("isRegExp", isRegExpList));
- result.append(generateIsXXXDef("isArray", isArrayList));
- result.append(generateIsXXXDef("isError", isErrorList));
-
- result.append(generateToXXXDef<QString>("toString", toStringList));
- result.append(generateToXXXDef<qsreal>("toNumber", toNumberList));
- result.append(generateToXXXDef<bool>("toBool", toBoolList));
- result.append(generateToXXXDef<bool>("toBoolean", toBooleanList));
- result.append(generateToXXXDef<qsreal>("toInteger", toIntegerList));
- result.append(generateToXXXDef<qint32>("toInt32", toInt32List));
- result.append(generateToXXXDef<quint32>("toUInt32", toUInt32List));
- result.append(generateToXXXDef<quint16>("toUInt16", toUInt16List));
-
- result.append(generateCompareDef("equals", equalsList));
- result.append(generateCompareDef("strictlyEquals", strictlyEqualsList));
- result.append(generateCompareDef("lessThan", lessThanList));
- result.append(generateCompareDef("instanceOf", instanceOfList));
-
- result.append(generateCastDef(castStringList));
- result.append(generateCastDef(castSRealList));
- result.append(generateCastDef(castBoolList));
- result.append(generateCastDef(castInt32List));
- result.append(generateCastDef(castUInt32List));
- result.append(generateCastDef(castUInt16List));
-
- return result.join("\n");
+ QHash<QString, QString> result;
+ QStringList tmp;
+ tmp.append(generateLicence());
+ tmp.append(generateInitDef(dataTags));
+ result.insert("init", tmp.join("\n"));
+ tmp.clear();
+
+ tmp.append(generateLicence());
+ tmp.append(generateIsXXXDef("isValid", isValidList));
+ tmp.append(generateIsXXXDef("isBool", isBoolList));
+ tmp.append(generateIsXXXDef("isBoolean", isBooleanList));
+ tmp.append(generateIsXXXDef("isNumber", isNumberList));
+ tmp.append(generateIsXXXDef("isFunction", isFunctionList));
+ tmp.append(generateIsXXXDef("isNull", isNullList));
+ tmp.append(generateIsXXXDef("isString", isStringList));
+ tmp.append(generateIsXXXDef("isUndefined", isUndefinedList));
+ tmp.append(generateIsXXXDef("isVariant", isVariantList));
+ tmp.append(generateIsXXXDef("isQObject", isQObjectList));
+ tmp.append(generateIsXXXDef("isQMetaObject", isQMetaObjectList));
+ tmp.append(generateIsXXXDef("isObject", isObjectList));
+ tmp.append(generateIsXXXDef("isDate", isDateList));
+ tmp.append(generateIsXXXDef("isRegExp", isRegExpList));
+ tmp.append(generateIsXXXDef("isArray", isArrayList));
+ tmp.append(generateIsXXXDef("isError", isErrorList));
+ result.insert("isXXX", tmp.join("\n"));
+ tmp.clear();
+
+ tmp.append(generateLicence());
+ tmp.append(generateToXXXDef<QString>("toString", toStringList));
+ tmp.append(generateToXXXDef<qsreal>("toNumber", toNumberList));
+ tmp.append(generateToXXXDef<bool>("toBool", toBoolList));
+ tmp.append(generateToXXXDef<bool>("toBoolean", toBooleanList));
+ tmp.append(generateToXXXDef<qsreal>("toInteger", toIntegerList));
+ tmp.append(generateToXXXDef<qint32>("toInt32", toInt32List));
+ tmp.append(generateToXXXDef<quint32>("toUInt32", toUInt32List));
+ tmp.append(generateToXXXDef<quint16>("toUInt16", toUInt16List));
+ result.insert("toXXX", tmp.join("\n"));
+ tmp.clear();
+
+ tmp.append(generateLicence());
+ tmp.append(generateCompareDef("equals", equalsList));
+ tmp.append(generateCompareDef("strictlyEquals", strictlyEqualsList));
+ tmp.append(generateCompareDef("lessThan", lessThanList));
+ tmp.append(generateCompareDef("instanceOf", instanceOfList));
+ result.insert("comparison", tmp.join("\n"));
+ tmp.clear();
+
+ tmp.append(generateLicence());
+ tmp.append(generateCastDef(castStringList));
+ tmp.append(generateCastDef(castSRealList));
+ tmp.append(generateCastDef(castBoolList));
+ tmp.append(generateCastDef(castInt32List));
+ tmp.append(generateCastDef(castUInt32List));
+ tmp.append(generateCastDef(castUInt16List));
+ result.insert("cast", tmp.join("\n"));
+
+ return result;
}
diff --git a/tests/auto/qscriptvalue/testgen/testgenerator.h b/tests/auto/qscriptvalue/testgen/testgenerator.h
index 8f4a357..1c61fc5 100644
--- a/tests/auto/qscriptvalue/testgen/testgenerator.h
+++ b/tests/auto/qscriptvalue/testgen/testgenerator.h
@@ -49,13 +49,10 @@
class TestGenerator {
public:
TestGenerator(QString& outputpath)
- : m_ofile(outputpath)
+ : m_opath(outputpath)
{
- // Open output file
- if (!m_ofile.open(QIODevice::WriteOnly | QIODevice::Text)) {
- qWarning() << "Can't open output file: " << outputpath;
- exit(2);
- }
+ if (!m_opath.endsWith('/'))
+ m_opath.append('/');
m_tempFile.open();
}
@@ -67,10 +64,10 @@ public:
}
void prepareData();
- QString generateTest();
- void save(const QString& data);
+ QHash<QString, QString> generateTest();
+ void save(const QHash<QString, QString>& data);
private:
- QFile m_ofile;
+ QString m_opath;
QTemporaryFile m_tempFile;
};
diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue.h b/tests/auto/qscriptvalue/tst_qscriptvalue.h
index a5c7b45..aae35b2 100644
--- a/tests/auto/qscriptvalue/tst_qscriptvalue.h
+++ b/tests/auto/qscriptvalue/tst_qscriptvalue.h
@@ -49,6 +49,8 @@
#include <QtScript/qscriptvalue.h>
#include <QtTest/QtTest>
+#define DEFINE_TEST_VALUE(expr) m_values.insert(QString::fromLatin1(#expr), expr)
+
Q_DECLARE_METATYPE(QVariant)
Q_DECLARE_METATYPE(QScriptValue)
diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue_generated.cpp b/tests/auto/qscriptvalue/tst_qscriptvalue_generated.cpp
deleted file mode 100644
index a07ff4b..0000000
--- a/tests/auto/qscriptvalue/tst_qscriptvalue_generated.cpp
+++ /dev/null
@@ -1,10221 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** No Commercial Usage
-** This file contains pre-release code and may not be distributed.
-** You may use this file in accordance with the terms and conditions
-** contained in the Technology Preview License Agreement accompanying
-** this package.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** In addition, as a special exception, Nokia gives you certain additional
-** rights. These rights are described in the Nokia Qt LGPL Exception
-** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-**
-** If you have questions regarding the use of this file, please contact
-** Nokia at qt-info@nokia.com.
-**
-**
-**
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "tst_qscriptvalue.h"
-
-#define DEFINE_TEST_VALUE(expr) m_values.insert(QString::fromLatin1(#expr), expr)
-
-void tst_QScriptValue::initScriptValues()
-{
- m_values.clear();
- if (engine)
- delete engine;
- engine = new QScriptEngine;
- DEFINE_TEST_VALUE(QScriptValue());
- DEFINE_TEST_VALUE(QScriptValue(QScriptValue::UndefinedValue));
- DEFINE_TEST_VALUE(QScriptValue(QScriptValue::NullValue));
- DEFINE_TEST_VALUE(QScriptValue(true));
- DEFINE_TEST_VALUE(QScriptValue(false));
- DEFINE_TEST_VALUE(QScriptValue(int(122)));
- DEFINE_TEST_VALUE(QScriptValue(uint(124)));
- DEFINE_TEST_VALUE(QScriptValue(0));
- DEFINE_TEST_VALUE(QScriptValue(0.0));
- DEFINE_TEST_VALUE(QScriptValue(123.0));
- DEFINE_TEST_VALUE(QScriptValue(6.37e-8));
- DEFINE_TEST_VALUE(QScriptValue(-6.37e-8));
- DEFINE_TEST_VALUE(QScriptValue(0x43211234));
- DEFINE_TEST_VALUE(QScriptValue(0x10000));
- DEFINE_TEST_VALUE(QScriptValue(0x10001));
- DEFINE_TEST_VALUE(QScriptValue(qSNaN()));
- DEFINE_TEST_VALUE(QScriptValue(qQNaN()));
- DEFINE_TEST_VALUE(QScriptValue(qInf()));
- DEFINE_TEST_VALUE(QScriptValue(-qInf()));
- DEFINE_TEST_VALUE(QScriptValue("NaN"));
- DEFINE_TEST_VALUE(QScriptValue("Infinity"));
- DEFINE_TEST_VALUE(QScriptValue("-Infinity"));
- DEFINE_TEST_VALUE(QScriptValue("ciao"));
- DEFINE_TEST_VALUE(QScriptValue(QString::fromLatin1("ciao")));
- DEFINE_TEST_VALUE(QScriptValue(QString("")));
- DEFINE_TEST_VALUE(QScriptValue(QString()));
- DEFINE_TEST_VALUE(QScriptValue(QString("0")));
- DEFINE_TEST_VALUE(QScriptValue(QString("123")));
- DEFINE_TEST_VALUE(QScriptValue(QString("12.4")));
- DEFINE_TEST_VALUE(QScriptValue(0, QScriptValue::UndefinedValue));
- DEFINE_TEST_VALUE(QScriptValue(0, QScriptValue::NullValue));
- DEFINE_TEST_VALUE(QScriptValue(0, true));
- DEFINE_TEST_VALUE(QScriptValue(0, false));
- DEFINE_TEST_VALUE(QScriptValue(0, int(122)));
- DEFINE_TEST_VALUE(QScriptValue(0, uint(124)));
- DEFINE_TEST_VALUE(QScriptValue(0, 0));
- DEFINE_TEST_VALUE(QScriptValue(0, 0.0));
- DEFINE_TEST_VALUE(QScriptValue(0, 123.0));
- DEFINE_TEST_VALUE(QScriptValue(0, 6.37e-8));
- DEFINE_TEST_VALUE(QScriptValue(0, -6.37e-8));
- DEFINE_TEST_VALUE(QScriptValue(0, 0x43211234));
- DEFINE_TEST_VALUE(QScriptValue(0, 0x10000));
- DEFINE_TEST_VALUE(QScriptValue(0, 0x10001));
- DEFINE_TEST_VALUE(QScriptValue(0, qSNaN()));
- DEFINE_TEST_VALUE(QScriptValue(0, qQNaN()));
- DEFINE_TEST_VALUE(QScriptValue(0, qInf()));
- DEFINE_TEST_VALUE(QScriptValue(0, -qInf()));
- DEFINE_TEST_VALUE(QScriptValue(0, "NaN"));
- DEFINE_TEST_VALUE(QScriptValue(0, "Infinity"));
- DEFINE_TEST_VALUE(QScriptValue(0, "-Infinity"));
- DEFINE_TEST_VALUE(QScriptValue(0, "ciao"));
- DEFINE_TEST_VALUE(QScriptValue(0, QString::fromLatin1("ciao")));
- DEFINE_TEST_VALUE(QScriptValue(0, QString("")));
- DEFINE_TEST_VALUE(QScriptValue(0, QString()));
- DEFINE_TEST_VALUE(QScriptValue(0, QString("0")));
- DEFINE_TEST_VALUE(QScriptValue(0, QString("123")));
- DEFINE_TEST_VALUE(QScriptValue(0, QString("12.3")));
- DEFINE_TEST_VALUE(QScriptValue(engine, QScriptValue::UndefinedValue));
- DEFINE_TEST_VALUE(QScriptValue(engine, QScriptValue::NullValue));
- DEFINE_TEST_VALUE(QScriptValue(engine, true));
- DEFINE_TEST_VALUE(QScriptValue(engine, false));
- DEFINE_TEST_VALUE(QScriptValue(engine, int(122)));
- DEFINE_TEST_VALUE(QScriptValue(engine, uint(124)));
- DEFINE_TEST_VALUE(QScriptValue(engine, 0));
- DEFINE_TEST_VALUE(QScriptValue(engine, 0.0));
- DEFINE_TEST_VALUE(QScriptValue(engine, 123.0));
- DEFINE_TEST_VALUE(QScriptValue(engine, 6.37e-8));
- DEFINE_TEST_VALUE(QScriptValue(engine, -6.37e-8));
- DEFINE_TEST_VALUE(QScriptValue(engine, 0x43211234));
- DEFINE_TEST_VALUE(QScriptValue(engine, 0x10000));
- DEFINE_TEST_VALUE(QScriptValue(engine, 0x10001));
- DEFINE_TEST_VALUE(QScriptValue(engine, qSNaN()));
- DEFINE_TEST_VALUE(QScriptValue(engine, qQNaN()));
- DEFINE_TEST_VALUE(QScriptValue(engine, qInf()));
- DEFINE_TEST_VALUE(QScriptValue(engine, -qInf()));
- DEFINE_TEST_VALUE(QScriptValue(engine, "NaN"));
- DEFINE_TEST_VALUE(QScriptValue(engine, "Infinity"));
- DEFINE_TEST_VALUE(QScriptValue(engine, "-Infinity"));
- DEFINE_TEST_VALUE(QScriptValue(engine, "ciao"));
- DEFINE_TEST_VALUE(QScriptValue(engine, QString::fromLatin1("ciao")));
- DEFINE_TEST_VALUE(QScriptValue(engine, QString("")));
- DEFINE_TEST_VALUE(QScriptValue(engine, QString()));
- DEFINE_TEST_VALUE(QScriptValue(engine, QString("0")));
- DEFINE_TEST_VALUE(QScriptValue(engine, QString("123")));
- DEFINE_TEST_VALUE(QScriptValue(engine, QString("1.23")));
- DEFINE_TEST_VALUE(engine->evaluate("[]"));
- DEFINE_TEST_VALUE(engine->evaluate("{}"));
- DEFINE_TEST_VALUE(engine->evaluate("Object.prototype"));
- DEFINE_TEST_VALUE(engine->evaluate("Date.prototype"));
- DEFINE_TEST_VALUE(engine->evaluate("Array.prototype"));
- DEFINE_TEST_VALUE(engine->evaluate("Function.prototype"));
- DEFINE_TEST_VALUE(engine->evaluate("Error.prototype"));
- DEFINE_TEST_VALUE(engine->evaluate("Object"));
- DEFINE_TEST_VALUE(engine->evaluate("Array"));
- DEFINE_TEST_VALUE(engine->evaluate("Number"));
- DEFINE_TEST_VALUE(engine->evaluate("Function"));
- DEFINE_TEST_VALUE(engine->evaluate("(function() { return 1; })"));
- DEFINE_TEST_VALUE(engine->evaluate("(function() { return 'ciao'; })"));
- DEFINE_TEST_VALUE(engine->evaluate("(function() { throw new Error('foo'); })"));
- DEFINE_TEST_VALUE(engine->evaluate("/foo/"));
- DEFINE_TEST_VALUE(engine->evaluate("new Object()"));
- DEFINE_TEST_VALUE(engine->evaluate("new Array()"));
- DEFINE_TEST_VALUE(engine->evaluate("new Error()"));
- DEFINE_TEST_VALUE(engine->evaluate("a = new Object(); a.foo = 22; a.foo"));
- DEFINE_TEST_VALUE(engine->evaluate("Undefined"));
- DEFINE_TEST_VALUE(engine->evaluate("Null"));
- DEFINE_TEST_VALUE(engine->evaluate("True"));
- DEFINE_TEST_VALUE(engine->evaluate("False"));
- DEFINE_TEST_VALUE(engine->evaluate("undefined"));
- DEFINE_TEST_VALUE(engine->evaluate("null"));
- DEFINE_TEST_VALUE(engine->evaluate("true"));
- DEFINE_TEST_VALUE(engine->evaluate("false"));
- DEFINE_TEST_VALUE(engine->evaluate("122"));
- DEFINE_TEST_VALUE(engine->evaluate("124"));
- DEFINE_TEST_VALUE(engine->evaluate("0"));
- DEFINE_TEST_VALUE(engine->evaluate("0.0"));
- DEFINE_TEST_VALUE(engine->evaluate("123.0"));
- DEFINE_TEST_VALUE(engine->evaluate("6.37e-8"));
- DEFINE_TEST_VALUE(engine->evaluate("-6.37e-8"));
- DEFINE_TEST_VALUE(engine->evaluate("0x43211234"));
- DEFINE_TEST_VALUE(engine->evaluate("0x10000"));
- DEFINE_TEST_VALUE(engine->evaluate("0x10001"));
- DEFINE_TEST_VALUE(engine->evaluate("NaN"));
- DEFINE_TEST_VALUE(engine->evaluate("Infinity"));
- DEFINE_TEST_VALUE(engine->evaluate("-Infinity"));
- DEFINE_TEST_VALUE(engine->evaluate("'ciao'"));
- DEFINE_TEST_VALUE(engine->evaluate("''"));
- DEFINE_TEST_VALUE(engine->evaluate("'0'"));
- DEFINE_TEST_VALUE(engine->evaluate("'123'"));
- DEFINE_TEST_VALUE(engine->evaluate("'12.4'"));
- DEFINE_TEST_VALUE(engine->nullValue());
- DEFINE_TEST_VALUE(engine->undefinedValue());
- DEFINE_TEST_VALUE(engine->newObject());
- DEFINE_TEST_VALUE(engine->newArray());
- DEFINE_TEST_VALUE(engine->newArray(10));
- DEFINE_TEST_VALUE(engine->newDate(QDateTime()));
- DEFINE_TEST_VALUE(engine->newQMetaObject(&QObject::staticMetaObject));
- DEFINE_TEST_VALUE(engine->newVariant(QVariant()));
- DEFINE_TEST_VALUE(engine->newVariant(QVariant(123)));
- DEFINE_TEST_VALUE(engine->newVariant(QVariant(false)));
- DEFINE_TEST_VALUE(engine->newQObject(0));
- DEFINE_TEST_VALUE(engine->newQObject(engine));
-}
-
-
-void tst_QScriptValue::isValid_initData()
-{
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::isValid_makeData(const char* expr)
-{
- static QSet<QString> isValid;
- if (isValid.isEmpty()) {
- isValid << "QScriptValue(QScriptValue::UndefinedValue)"
- << "QScriptValue(QScriptValue::NullValue)"
- << "QScriptValue(true)"
- << "QScriptValue(false)"
- << "QScriptValue(int(122))"
- << "QScriptValue(uint(124))"
- << "QScriptValue(0)"
- << "QScriptValue(0.0)"
- << "QScriptValue(123.0)"
- << "QScriptValue(6.37e-8)"
- << "QScriptValue(-6.37e-8)"
- << "QScriptValue(0x43211234)"
- << "QScriptValue(0x10000)"
- << "QScriptValue(0x10001)"
- << "QScriptValue(qSNaN())"
- << "QScriptValue(qQNaN())"
- << "QScriptValue(qInf())"
- << "QScriptValue(-qInf())"
- << "QScriptValue(\"NaN\")"
- << "QScriptValue(\"Infinity\")"
- << "QScriptValue(\"-Infinity\")"
- << "QScriptValue(\"ciao\")"
- << "QScriptValue(QString::fromLatin1(\"ciao\"))"
- << "QScriptValue(QString(\"\"))"
- << "QScriptValue(QString())"
- << "QScriptValue(QString(\"0\"))"
- << "QScriptValue(QString(\"123\"))"
- << "QScriptValue(QString(\"12.4\"))"
- << "QScriptValue(0, QScriptValue::UndefinedValue)"
- << "QScriptValue(0, QScriptValue::NullValue)"
- << "QScriptValue(0, true)"
- << "QScriptValue(0, false)"
- << "QScriptValue(0, int(122))"
- << "QScriptValue(0, uint(124))"
- << "QScriptValue(0, 0)"
- << "QScriptValue(0, 0.0)"
- << "QScriptValue(0, 123.0)"
- << "QScriptValue(0, 6.37e-8)"
- << "QScriptValue(0, -6.37e-8)"
- << "QScriptValue(0, 0x43211234)"
- << "QScriptValue(0, 0x10000)"
- << "QScriptValue(0, 0x10001)"
- << "QScriptValue(0, qSNaN())"
- << "QScriptValue(0, qQNaN())"
- << "QScriptValue(0, qInf())"
- << "QScriptValue(0, -qInf())"
- << "QScriptValue(0, \"NaN\")"
- << "QScriptValue(0, \"Infinity\")"
- << "QScriptValue(0, \"-Infinity\")"
- << "QScriptValue(0, \"ciao\")"
- << "QScriptValue(0, QString::fromLatin1(\"ciao\"))"
- << "QScriptValue(0, QString(\"\"))"
- << "QScriptValue(0, QString())"
- << "QScriptValue(0, QString(\"0\"))"
- << "QScriptValue(0, QString(\"123\"))"
- << "QScriptValue(0, QString(\"12.3\"))"
- << "QScriptValue(engine, QScriptValue::UndefinedValue)"
- << "QScriptValue(engine, QScriptValue::NullValue)"
- << "QScriptValue(engine, true)"
- << "QScriptValue(engine, false)"
- << "QScriptValue(engine, int(122))"
- << "QScriptValue(engine, uint(124))"
- << "QScriptValue(engine, 0)"
- << "QScriptValue(engine, 0.0)"
- << "QScriptValue(engine, 123.0)"
- << "QScriptValue(engine, 6.37e-8)"
- << "QScriptValue(engine, -6.37e-8)"
- << "QScriptValue(engine, 0x43211234)"
- << "QScriptValue(engine, 0x10000)"
- << "QScriptValue(engine, 0x10001)"
- << "QScriptValue(engine, qSNaN())"
- << "QScriptValue(engine, qQNaN())"
- << "QScriptValue(engine, qInf())"
- << "QScriptValue(engine, -qInf())"
- << "QScriptValue(engine, \"NaN\")"
- << "QScriptValue(engine, \"Infinity\")"
- << "QScriptValue(engine, \"-Infinity\")"
- << "QScriptValue(engine, \"ciao\")"
- << "QScriptValue(engine, QString::fromLatin1(\"ciao\"))"
- << "QScriptValue(engine, QString(\"\"))"
- << "QScriptValue(engine, QString())"
- << "QScriptValue(engine, QString(\"0\"))"
- << "QScriptValue(engine, QString(\"123\"))"
- << "QScriptValue(engine, QString(\"1.23\"))"
- << "engine->evaluate(\"[]\")"
- << "engine->evaluate(\"{}\")"
- << "engine->evaluate(\"Object.prototype\")"
- << "engine->evaluate(\"Date.prototype\")"
- << "engine->evaluate(\"Array.prototype\")"
- << "engine->evaluate(\"Function.prototype\")"
- << "engine->evaluate(\"Error.prototype\")"
- << "engine->evaluate(\"Object\")"
- << "engine->evaluate(\"Array\")"
- << "engine->evaluate(\"Number\")"
- << "engine->evaluate(\"Function\")"
- << "engine->evaluate(\"(function() { return 1; })\")"
- << "engine->evaluate(\"(function() { return 'ciao'; })\")"
- << "engine->evaluate(\"(function() { throw new Error('foo'); })\")"
- << "engine->evaluate(\"/foo/\")"
- << "engine->evaluate(\"new Object()\")"
- << "engine->evaluate(\"new Array()\")"
- << "engine->evaluate(\"new Error()\")"
- << "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")"
- << "engine->evaluate(\"Undefined\")"
- << "engine->evaluate(\"Null\")"
- << "engine->evaluate(\"True\")"
- << "engine->evaluate(\"False\")"
- << "engine->evaluate(\"undefined\")"
- << "engine->evaluate(\"null\")"
- << "engine->evaluate(\"true\")"
- << "engine->evaluate(\"false\")"
- << "engine->evaluate(\"122\")"
- << "engine->evaluate(\"124\")"
- << "engine->evaluate(\"0\")"
- << "engine->evaluate(\"0.0\")"
- << "engine->evaluate(\"123.0\")"
- << "engine->evaluate(\"6.37e-8\")"
- << "engine->evaluate(\"-6.37e-8\")"
- << "engine->evaluate(\"0x43211234\")"
- << "engine->evaluate(\"0x10000\")"
- << "engine->evaluate(\"0x10001\")"
- << "engine->evaluate(\"NaN\")"
- << "engine->evaluate(\"Infinity\")"
- << "engine->evaluate(\"-Infinity\")"
- << "engine->evaluate(\"'ciao'\")"
- << "engine->evaluate(\"''\")"
- << "engine->evaluate(\"'0'\")"
- << "engine->evaluate(\"'123'\")"
- << "engine->evaluate(\"'12.4'\")"
- << "engine->nullValue()"
- << "engine->undefinedValue()"
- << "engine->newObject()"
- << "engine->newArray()"
- << "engine->newArray(10)"
- << "engine->newDate(QDateTime())"
- << "engine->newQMetaObject(&QObject::staticMetaObject)"
- << "engine->newVariant(QVariant())"
- << "engine->newVariant(QVariant(123))"
- << "engine->newVariant(QVariant(false))"
- << "engine->newQObject(0)"
- << "engine->newQObject(engine)"
- ;
- }
- newRow(expr) << isValid.contains(expr);
-}
-
-void tst_QScriptValue::isValid_test(const char*, const QScriptValue& value)
-{
- QFETCH(bool, expected);
- QCOMPARE(value.isValid(), expected);
- QCOMPARE(value.isValid(), expected);
-}
-
-DEFINE_TEST_FUNCTION(isValid)
-
-
-void tst_QScriptValue::isBool_initData()
-{
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::isBool_makeData(const char* expr)
-{
- static QSet<QString> isBool;
- if (isBool.isEmpty()) {
- isBool << "QScriptValue(true)"
- << "QScriptValue(false)"
- << "QScriptValue(0, true)"
- << "QScriptValue(0, false)"
- << "QScriptValue(engine, true)"
- << "QScriptValue(engine, false)"
- << "engine->evaluate(\"true\")"
- << "engine->evaluate(\"false\")"
- ;
- }
- newRow(expr) << isBool.contains(expr);
-}
-
-void tst_QScriptValue::isBool_test(const char*, const QScriptValue& value)
-{
- QFETCH(bool, expected);
- QCOMPARE(value.isBool(), expected);
- QCOMPARE(value.isBool(), expected);
-}
-
-DEFINE_TEST_FUNCTION(isBool)
-
-
-void tst_QScriptValue::isBoolean_initData()
-{
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::isBoolean_makeData(const char* expr)
-{
- static QSet<QString> isBoolean;
- if (isBoolean.isEmpty()) {
- isBoolean << "QScriptValue(true)"
- << "QScriptValue(false)"
- << "QScriptValue(0, true)"
- << "QScriptValue(0, false)"
- << "QScriptValue(engine, true)"
- << "QScriptValue(engine, false)"
- << "engine->evaluate(\"true\")"
- << "engine->evaluate(\"false\")"
- ;
- }
- newRow(expr) << isBoolean.contains(expr);
-}
-
-void tst_QScriptValue::isBoolean_test(const char*, const QScriptValue& value)
-{
- QFETCH(bool, expected);
- QCOMPARE(value.isBoolean(), expected);
- QCOMPARE(value.isBoolean(), expected);
-}
-
-DEFINE_TEST_FUNCTION(isBoolean)
-
-
-void tst_QScriptValue::isNumber_initData()
-{
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::isNumber_makeData(const char* expr)
-{
- static QSet<QString> isNumber;
- if (isNumber.isEmpty()) {
- isNumber << "QScriptValue(int(122))"
- << "QScriptValue(uint(124))"
- << "QScriptValue(0)"
- << "QScriptValue(0.0)"
- << "QScriptValue(123.0)"
- << "QScriptValue(6.37e-8)"
- << "QScriptValue(-6.37e-8)"
- << "QScriptValue(0x43211234)"
- << "QScriptValue(0x10000)"
- << "QScriptValue(0x10001)"
- << "QScriptValue(qSNaN())"
- << "QScriptValue(qQNaN())"
- << "QScriptValue(qInf())"
- << "QScriptValue(-qInf())"
- << "QScriptValue(0, int(122))"
- << "QScriptValue(0, uint(124))"
- << "QScriptValue(0, 0)"
- << "QScriptValue(0, 0.0)"
- << "QScriptValue(0, 123.0)"
- << "QScriptValue(0, 6.37e-8)"
- << "QScriptValue(0, -6.37e-8)"
- << "QScriptValue(0, 0x43211234)"
- << "QScriptValue(0, 0x10000)"
- << "QScriptValue(0, 0x10001)"
- << "QScriptValue(0, qSNaN())"
- << "QScriptValue(0, qQNaN())"
- << "QScriptValue(0, qInf())"
- << "QScriptValue(0, -qInf())"
- << "QScriptValue(engine, int(122))"
- << "QScriptValue(engine, uint(124))"
- << "QScriptValue(engine, 0)"
- << "QScriptValue(engine, 0.0)"
- << "QScriptValue(engine, 123.0)"
- << "QScriptValue(engine, 6.37e-8)"
- << "QScriptValue(engine, -6.37e-8)"
- << "QScriptValue(engine, 0x43211234)"
- << "QScriptValue(engine, 0x10000)"
- << "QScriptValue(engine, 0x10001)"
- << "QScriptValue(engine, qSNaN())"
- << "QScriptValue(engine, qQNaN())"
- << "QScriptValue(engine, qInf())"
- << "QScriptValue(engine, -qInf())"
- << "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")"
- << "engine->evaluate(\"122\")"
- << "engine->evaluate(\"124\")"
- << "engine->evaluate(\"0\")"
- << "engine->evaluate(\"0.0\")"
- << "engine->evaluate(\"123.0\")"
- << "engine->evaluate(\"6.37e-8\")"
- << "engine->evaluate(\"-6.37e-8\")"
- << "engine->evaluate(\"0x43211234\")"
- << "engine->evaluate(\"0x10000\")"
- << "engine->evaluate(\"0x10001\")"
- << "engine->evaluate(\"NaN\")"
- << "engine->evaluate(\"Infinity\")"
- << "engine->evaluate(\"-Infinity\")"
- ;
- }
- newRow(expr) << isNumber.contains(expr);
-}
-
-void tst_QScriptValue::isNumber_test(const char*, const QScriptValue& value)
-{
- QFETCH(bool, expected);
- QCOMPARE(value.isNumber(), expected);
- QCOMPARE(value.isNumber(), expected);
-}
-
-DEFINE_TEST_FUNCTION(isNumber)
-
-
-void tst_QScriptValue::isFunction_initData()
-{
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::isFunction_makeData(const char* expr)
-{
- static QSet<QString> isFunction;
- if (isFunction.isEmpty()) {
- isFunction << "engine->evaluate(\"Function.prototype\")"
- << "engine->evaluate(\"Object\")"
- << "engine->evaluate(\"Array\")"
- << "engine->evaluate(\"Number\")"
- << "engine->evaluate(\"Function\")"
- << "engine->evaluate(\"(function() { return 1; })\")"
- << "engine->evaluate(\"(function() { return 'ciao'; })\")"
- << "engine->evaluate(\"(function() { throw new Error('foo'); })\")"
- << "engine->evaluate(\"/foo/\")"
- << "engine->newQMetaObject(&QObject::staticMetaObject)"
- ;
- }
- newRow(expr) << isFunction.contains(expr);
-}
-
-void tst_QScriptValue::isFunction_test(const char*, const QScriptValue& value)
-{
- QFETCH(bool, expected);
- QCOMPARE(value.isFunction(), expected);
- QCOMPARE(value.isFunction(), expected);
-}
-
-DEFINE_TEST_FUNCTION(isFunction)
-
-
-void tst_QScriptValue::isNull_initData()
-{
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::isNull_makeData(const char* expr)
-{
- static QSet<QString> isNull;
- if (isNull.isEmpty()) {
- isNull << "QScriptValue(QScriptValue::NullValue)"
- << "QScriptValue(0, QScriptValue::NullValue)"
- << "QScriptValue(engine, QScriptValue::NullValue)"
- << "engine->evaluate(\"null\")"
- << "engine->nullValue()"
- << "engine->newQObject(0)"
- ;
- }
- newRow(expr) << isNull.contains(expr);
-}
-
-void tst_QScriptValue::isNull_test(const char*, const QScriptValue& value)
-{
- QFETCH(bool, expected);
- QCOMPARE(value.isNull(), expected);
- QCOMPARE(value.isNull(), expected);
-}
-
-DEFINE_TEST_FUNCTION(isNull)
-
-
-void tst_QScriptValue::isString_initData()
-{
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::isString_makeData(const char* expr)
-{
- static QSet<QString> isString;
- if (isString.isEmpty()) {
- isString << "QScriptValue(\"NaN\")"
- << "QScriptValue(\"Infinity\")"
- << "QScriptValue(\"-Infinity\")"
- << "QScriptValue(\"ciao\")"
- << "QScriptValue(QString::fromLatin1(\"ciao\"))"
- << "QScriptValue(QString(\"\"))"
- << "QScriptValue(QString())"
- << "QScriptValue(QString(\"0\"))"
- << "QScriptValue(QString(\"123\"))"
- << "QScriptValue(QString(\"12.4\"))"
- << "QScriptValue(0, \"NaN\")"
- << "QScriptValue(0, \"Infinity\")"
- << "QScriptValue(0, \"-Infinity\")"
- << "QScriptValue(0, \"ciao\")"
- << "QScriptValue(0, QString::fromLatin1(\"ciao\"))"
- << "QScriptValue(0, QString(\"\"))"
- << "QScriptValue(0, QString())"
- << "QScriptValue(0, QString(\"0\"))"
- << "QScriptValue(0, QString(\"123\"))"
- << "QScriptValue(0, QString(\"12.3\"))"
- << "QScriptValue(engine, \"NaN\")"
- << "QScriptValue(engine, \"Infinity\")"
- << "QScriptValue(engine, \"-Infinity\")"
- << "QScriptValue(engine, \"ciao\")"
- << "QScriptValue(engine, QString::fromLatin1(\"ciao\"))"
- << "QScriptValue(engine, QString(\"\"))"
- << "QScriptValue(engine, QString())"
- << "QScriptValue(engine, QString(\"0\"))"
- << "QScriptValue(engine, QString(\"123\"))"
- << "QScriptValue(engine, QString(\"1.23\"))"
- << "engine->evaluate(\"'ciao'\")"
- << "engine->evaluate(\"''\")"
- << "engine->evaluate(\"'0'\")"
- << "engine->evaluate(\"'123'\")"
- << "engine->evaluate(\"'12.4'\")"
- ;
- }
- newRow(expr) << isString.contains(expr);
-}
-
-void tst_QScriptValue::isString_test(const char*, const QScriptValue& value)
-{
- QFETCH(bool, expected);
- QCOMPARE(value.isString(), expected);
- QCOMPARE(value.isString(), expected);
-}
-
-DEFINE_TEST_FUNCTION(isString)
-
-
-void tst_QScriptValue::isUndefined_initData()
-{
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::isUndefined_makeData(const char* expr)
-{
- static QSet<QString> isUndefined;
- if (isUndefined.isEmpty()) {
- isUndefined << "QScriptValue(QScriptValue::UndefinedValue)"
- << "QScriptValue(0, QScriptValue::UndefinedValue)"
- << "QScriptValue(engine, QScriptValue::UndefinedValue)"
- << "engine->evaluate(\"{}\")"
- << "engine->evaluate(\"undefined\")"
- << "engine->undefinedValue()"
- ;
- }
- newRow(expr) << isUndefined.contains(expr);
-}
-
-void tst_QScriptValue::isUndefined_test(const char*, const QScriptValue& value)
-{
- QFETCH(bool, expected);
- QCOMPARE(value.isUndefined(), expected);
- QCOMPARE(value.isUndefined(), expected);
-}
-
-DEFINE_TEST_FUNCTION(isUndefined)
-
-
-void tst_QScriptValue::isVariant_initData()
-{
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::isVariant_makeData(const char* expr)
-{
- static QSet<QString> isVariant;
- if (isVariant.isEmpty()) {
- isVariant << "engine->newVariant(QVariant())"
- << "engine->newVariant(QVariant(123))"
- << "engine->newVariant(QVariant(false))"
- ;
- }
- newRow(expr) << isVariant.contains(expr);
-}
-
-void tst_QScriptValue::isVariant_test(const char*, const QScriptValue& value)
-{
- QFETCH(bool, expected);
- QCOMPARE(value.isVariant(), expected);
- QCOMPARE(value.isVariant(), expected);
-}
-
-DEFINE_TEST_FUNCTION(isVariant)
-
-
-void tst_QScriptValue::isQObject_initData()
-{
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::isQObject_makeData(const char* expr)
-{
- static QSet<QString> isQObject;
- if (isQObject.isEmpty()) {
- isQObject << "engine->newQObject(engine)"
- ;
- }
- newRow(expr) << isQObject.contains(expr);
-}
-
-void tst_QScriptValue::isQObject_test(const char*, const QScriptValue& value)
-{
- QFETCH(bool, expected);
- QCOMPARE(value.isQObject(), expected);
- QCOMPARE(value.isQObject(), expected);
-}
-
-DEFINE_TEST_FUNCTION(isQObject)
-
-
-void tst_QScriptValue::isQMetaObject_initData()
-{
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::isQMetaObject_makeData(const char* expr)
-{
- static QSet<QString> isQMetaObject;
- if (isQMetaObject.isEmpty()) {
- isQMetaObject << "engine->newQMetaObject(&QObject::staticMetaObject)"
- ;
- }
- newRow(expr) << isQMetaObject.contains(expr);
-}
-
-void tst_QScriptValue::isQMetaObject_test(const char*, const QScriptValue& value)
-{
- QFETCH(bool, expected);
- QCOMPARE(value.isQMetaObject(), expected);
- QCOMPARE(value.isQMetaObject(), expected);
-}
-
-DEFINE_TEST_FUNCTION(isQMetaObject)
-
-
-void tst_QScriptValue::isObject_initData()
-{
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::isObject_makeData(const char* expr)
-{
- static QSet<QString> isObject;
- if (isObject.isEmpty()) {
- isObject << "engine->evaluate(\"[]\")"
- << "engine->evaluate(\"Object.prototype\")"
- << "engine->evaluate(\"Date.prototype\")"
- << "engine->evaluate(\"Array.prototype\")"
- << "engine->evaluate(\"Function.prototype\")"
- << "engine->evaluate(\"Error.prototype\")"
- << "engine->evaluate(\"Object\")"
- << "engine->evaluate(\"Array\")"
- << "engine->evaluate(\"Number\")"
- << "engine->evaluate(\"Function\")"
- << "engine->evaluate(\"(function() { return 1; })\")"
- << "engine->evaluate(\"(function() { return 'ciao'; })\")"
- << "engine->evaluate(\"(function() { throw new Error('foo'); })\")"
- << "engine->evaluate(\"/foo/\")"
- << "engine->evaluate(\"new Object()\")"
- << "engine->evaluate(\"new Array()\")"
- << "engine->evaluate(\"new Error()\")"
- << "engine->evaluate(\"Undefined\")"
- << "engine->evaluate(\"Null\")"
- << "engine->evaluate(\"True\")"
- << "engine->evaluate(\"False\")"
- << "engine->newObject()"
- << "engine->newArray()"
- << "engine->newArray(10)"
- << "engine->newDate(QDateTime())"
- << "engine->newQMetaObject(&QObject::staticMetaObject)"
- << "engine->newVariant(QVariant())"
- << "engine->newVariant(QVariant(123))"
- << "engine->newVariant(QVariant(false))"
- << "engine->newQObject(engine)"
- ;
- }
- newRow(expr) << isObject.contains(expr);
-}
-
-void tst_QScriptValue::isObject_test(const char*, const QScriptValue& value)
-{
- QFETCH(bool, expected);
- QCOMPARE(value.isObject(), expected);
- QCOMPARE(value.isObject(), expected);
-}
-
-DEFINE_TEST_FUNCTION(isObject)
-
-
-void tst_QScriptValue::isDate_initData()
-{
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::isDate_makeData(const char* expr)
-{
- static QSet<QString> isDate;
- if (isDate.isEmpty()) {
- isDate << "engine->evaluate(\"Date.prototype\")"
- << "engine->newDate(QDateTime())"
- ;
- }
- newRow(expr) << isDate.contains(expr);
-}
-
-void tst_QScriptValue::isDate_test(const char*, const QScriptValue& value)
-{
- QFETCH(bool, expected);
- QCOMPARE(value.isDate(), expected);
- QCOMPARE(value.isDate(), expected);
-}
-
-DEFINE_TEST_FUNCTION(isDate)
-
-
-void tst_QScriptValue::isRegExp_initData()
-{
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::isRegExp_makeData(const char* expr)
-{
- static QSet<QString> isRegExp;
- if (isRegExp.isEmpty()) {
- isRegExp << "engine->evaluate(\"/foo/\")"
- ;
- }
- newRow(expr) << isRegExp.contains(expr);
-}
-
-void tst_QScriptValue::isRegExp_test(const char*, const QScriptValue& value)
-{
- QFETCH(bool, expected);
- QCOMPARE(value.isRegExp(), expected);
- QCOMPARE(value.isRegExp(), expected);
-}
-
-DEFINE_TEST_FUNCTION(isRegExp)
-
-
-void tst_QScriptValue::isArray_initData()
-{
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::isArray_makeData(const char* expr)
-{
- static QSet<QString> isArray;
- if (isArray.isEmpty()) {
- isArray << "engine->evaluate(\"[]\")"
- << "engine->evaluate(\"Array.prototype\")"
- << "engine->evaluate(\"new Array()\")"
- << "engine->newArray()"
- << "engine->newArray(10)"
- ;
- }
- newRow(expr) << isArray.contains(expr);
-}
-
-void tst_QScriptValue::isArray_test(const char*, const QScriptValue& value)
-{
- QFETCH(bool, expected);
- QCOMPARE(value.isArray(), expected);
- QCOMPARE(value.isArray(), expected);
-}
-
-DEFINE_TEST_FUNCTION(isArray)
-
-
-void tst_QScriptValue::isError_initData()
-{
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::isError_makeData(const char* expr)
-{
- static QSet<QString> isError;
- if (isError.isEmpty()) {
- isError << "engine->evaluate(\"Error.prototype\")"
- << "engine->evaluate(\"new Error()\")"
- << "engine->evaluate(\"Undefined\")"
- << "engine->evaluate(\"Null\")"
- << "engine->evaluate(\"True\")"
- << "engine->evaluate(\"False\")"
- ;
- }
- newRow(expr) << isError.contains(expr);
-}
-
-void tst_QScriptValue::isError_test(const char*, const QScriptValue& value)
-{
- QFETCH(bool, expected);
- QCOMPARE(value.isError(), expected);
- QCOMPARE(value.isError(), expected);
-}
-
-DEFINE_TEST_FUNCTION(isError)
-
-
-
-void tst_QScriptValue::toString_initData()
-{
- QTest::addColumn<QString>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::toString_makeData(const char* expr)
-{
- static QHash<QString, QString> toString;
- if (toString.isEmpty()) {
- toString.insert("QScriptValue()", "");
- toString.insert("QScriptValue(QScriptValue::UndefinedValue)", "undefined");
- toString.insert("QScriptValue(QScriptValue::NullValue)", "null");
- toString.insert("QScriptValue(true)", "true");
- toString.insert("QScriptValue(false)", "false");
- toString.insert("QScriptValue(int(122))", "122");
- toString.insert("QScriptValue(uint(124))", "124");
- toString.insert("QScriptValue(0)", "0");
- toString.insert("QScriptValue(0.0)", "0");
- toString.insert("QScriptValue(123.0)", "123");
- toString.insert("QScriptValue(6.37e-8)", "6.37e-8");
- toString.insert("QScriptValue(-6.37e-8)", "-6.37e-8");
- toString.insert("QScriptValue(0x43211234)", "1126240820");
- toString.insert("QScriptValue(0x10000)", "65536");
- toString.insert("QScriptValue(0x10001)", "65537");
- toString.insert("QScriptValue(qSNaN())", "NaN");
- toString.insert("QScriptValue(qQNaN())", "NaN");
- toString.insert("QScriptValue(qInf())", "Infinity");
- toString.insert("QScriptValue(-qInf())", "-Infinity");
- toString.insert("QScriptValue(\"NaN\")", "NaN");
- toString.insert("QScriptValue(\"Infinity\")", "Infinity");
- toString.insert("QScriptValue(\"-Infinity\")", "-Infinity");
- toString.insert("QScriptValue(\"ciao\")", "ciao");
- toString.insert("QScriptValue(QString::fromLatin1(\"ciao\"))", "ciao");
- toString.insert("QScriptValue(QString(\"\"))", "");
- toString.insert("QScriptValue(QString())", "");
- toString.insert("QScriptValue(QString(\"0\"))", "0");
- toString.insert("QScriptValue(QString(\"123\"))", "123");
- toString.insert("QScriptValue(QString(\"12.4\"))", "12.4");
- toString.insert("QScriptValue(0, QScriptValue::UndefinedValue)", "undefined");
- toString.insert("QScriptValue(0, QScriptValue::NullValue)", "null");
- toString.insert("QScriptValue(0, true)", "true");
- toString.insert("QScriptValue(0, false)", "false");
- toString.insert("QScriptValue(0, int(122))", "122");
- toString.insert("QScriptValue(0, uint(124))", "124");
- toString.insert("QScriptValue(0, 0)", "0");
- toString.insert("QScriptValue(0, 0.0)", "0");
- toString.insert("QScriptValue(0, 123.0)", "123");
- toString.insert("QScriptValue(0, 6.37e-8)", "6.37e-8");
- toString.insert("QScriptValue(0, -6.37e-8)", "-6.37e-8");
- toString.insert("QScriptValue(0, 0x43211234)", "1126240820");
- toString.insert("QScriptValue(0, 0x10000)", "65536");
- toString.insert("QScriptValue(0, 0x10001)", "65537");
- toString.insert("QScriptValue(0, qSNaN())", "NaN");
- toString.insert("QScriptValue(0, qQNaN())", "NaN");
- toString.insert("QScriptValue(0, qInf())", "Infinity");
- toString.insert("QScriptValue(0, -qInf())", "-Infinity");
- toString.insert("QScriptValue(0, \"NaN\")", "NaN");
- toString.insert("QScriptValue(0, \"Infinity\")", "Infinity");
- toString.insert("QScriptValue(0, \"-Infinity\")", "-Infinity");
- toString.insert("QScriptValue(0, \"ciao\")", "ciao");
- toString.insert("QScriptValue(0, QString::fromLatin1(\"ciao\"))", "ciao");
- toString.insert("QScriptValue(0, QString(\"\"))", "");
- toString.insert("QScriptValue(0, QString())", "");
- toString.insert("QScriptValue(0, QString(\"0\"))", "0");
- toString.insert("QScriptValue(0, QString(\"123\"))", "123");
- toString.insert("QScriptValue(0, QString(\"12.3\"))", "12.3");
- toString.insert("QScriptValue(engine, QScriptValue::UndefinedValue)", "undefined");
- toString.insert("QScriptValue(engine, QScriptValue::NullValue)", "null");
- toString.insert("QScriptValue(engine, true)", "true");
- toString.insert("QScriptValue(engine, false)", "false");
- toString.insert("QScriptValue(engine, int(122))", "122");
- toString.insert("QScriptValue(engine, uint(124))", "124");
- toString.insert("QScriptValue(engine, 0)", "0");
- toString.insert("QScriptValue(engine, 0.0)", "0");
- toString.insert("QScriptValue(engine, 123.0)", "123");
- toString.insert("QScriptValue(engine, 6.37e-8)", "6.37e-8");
- toString.insert("QScriptValue(engine, -6.37e-8)", "-6.37e-8");
- toString.insert("QScriptValue(engine, 0x43211234)", "1126240820");
- toString.insert("QScriptValue(engine, 0x10000)", "65536");
- toString.insert("QScriptValue(engine, 0x10001)", "65537");
- toString.insert("QScriptValue(engine, qSNaN())", "NaN");
- toString.insert("QScriptValue(engine, qQNaN())", "NaN");
- toString.insert("QScriptValue(engine, qInf())", "Infinity");
- toString.insert("QScriptValue(engine, -qInf())", "-Infinity");
- toString.insert("QScriptValue(engine, \"NaN\")", "NaN");
- toString.insert("QScriptValue(engine, \"Infinity\")", "Infinity");
- toString.insert("QScriptValue(engine, \"-Infinity\")", "-Infinity");
- toString.insert("QScriptValue(engine, \"ciao\")", "ciao");
- toString.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\"))", "ciao");
- toString.insert("QScriptValue(engine, QString(\"\"))", "");
- toString.insert("QScriptValue(engine, QString())", "");
- toString.insert("QScriptValue(engine, QString(\"0\"))", "0");
- toString.insert("QScriptValue(engine, QString(\"123\"))", "123");
- toString.insert("QScriptValue(engine, QString(\"1.23\"))", "1.23");
- toString.insert("engine->evaluate(\"[]\")", "");
- toString.insert("engine->evaluate(\"{}\")", "undefined");
- toString.insert("engine->evaluate(\"Object.prototype\")", "[object Object]");
- toString.insert("engine->evaluate(\"Date.prototype\")", "Invalid Date");
- toString.insert("engine->evaluate(\"Array.prototype\")", "");
- toString.insert("engine->evaluate(\"Function.prototype\")", "function () {\n [native code]\n}");
- toString.insert("engine->evaluate(\"Error.prototype\")", "Error: Unknown error");
- toString.insert("engine->evaluate(\"Object\")", "function Object() {\n [native code]\n}");
- toString.insert("engine->evaluate(\"Array\")", "function Array() {\n [native code]\n}");
- toString.insert("engine->evaluate(\"Number\")", "function Number() {\n [native code]\n}");
- toString.insert("engine->evaluate(\"Function\")", "function Function() {\n [native code]\n}");
- toString.insert("engine->evaluate(\"(function() { return 1; })\")", "function () { return 1; }");
- toString.insert("engine->evaluate(\"(function() { return 'ciao'; })\")", "function () { return 'ciao'; }");
- toString.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\")", "function () { throw new Error('foo'); }");
- toString.insert("engine->evaluate(\"/foo/\")", "/foo/");
- toString.insert("engine->evaluate(\"new Object()\")", "[object Object]");
- toString.insert("engine->evaluate(\"new Array()\")", "");
- toString.insert("engine->evaluate(\"new Error()\")", "Error: Unknown error");
- toString.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")", "22");
- toString.insert("engine->evaluate(\"Undefined\")", "ReferenceError: Can't find variable: Undefined");
- toString.insert("engine->evaluate(\"Null\")", "ReferenceError: Can't find variable: Null");
- toString.insert("engine->evaluate(\"True\")", "ReferenceError: Can't find variable: True");
- toString.insert("engine->evaluate(\"False\")", "ReferenceError: Can't find variable: False");
- toString.insert("engine->evaluate(\"undefined\")", "undefined");
- toString.insert("engine->evaluate(\"null\")", "null");
- toString.insert("engine->evaluate(\"true\")", "true");
- toString.insert("engine->evaluate(\"false\")", "false");
- toString.insert("engine->evaluate(\"122\")", "122");
- toString.insert("engine->evaluate(\"124\")", "124");
- toString.insert("engine->evaluate(\"0\")", "0");
- toString.insert("engine->evaluate(\"0.0\")", "0");
- toString.insert("engine->evaluate(\"123.0\")", "123");
- toString.insert("engine->evaluate(\"6.37e-8\")", "6.37e-8");
- toString.insert("engine->evaluate(\"-6.37e-8\")", "-6.37e-8");
- toString.insert("engine->evaluate(\"0x43211234\")", "1126240820");
- toString.insert("engine->evaluate(\"0x10000\")", "65536");
- toString.insert("engine->evaluate(\"0x10001\")", "65537");
- toString.insert("engine->evaluate(\"NaN\")", "NaN");
- toString.insert("engine->evaluate(\"Infinity\")", "Infinity");
- toString.insert("engine->evaluate(\"-Infinity\")", "-Infinity");
- toString.insert("engine->evaluate(\"'ciao'\")", "ciao");
- toString.insert("engine->evaluate(\"''\")", "");
- toString.insert("engine->evaluate(\"'0'\")", "0");
- toString.insert("engine->evaluate(\"'123'\")", "123");
- toString.insert("engine->evaluate(\"'12.4'\")", "12.4");
- toString.insert("engine->nullValue()", "null");
- toString.insert("engine->undefinedValue()", "undefined");
- toString.insert("engine->newObject()", "[object Object]");
- toString.insert("engine->newArray()", "");
- toString.insert("engine->newArray(10)", ",,,,,,,,,");
- toString.insert("engine->newDate(QDateTime())", "Invalid Date");
- toString.insert("engine->newQMetaObject(&QObject::staticMetaObject)", "[object QMetaObject]");
- toString.insert("engine->newVariant(QVariant())", "undefined");
- toString.insert("engine->newVariant(QVariant(123))", "123");
- toString.insert("engine->newVariant(QVariant(false))", "false");
- toString.insert("engine->newQObject(0)", "null");
- toString.insert("engine->newQObject(engine)", "QScriptEngine(name = \"\")");
- }
- newRow(expr) << toString.value(expr);
-}
-
-void tst_QScriptValue::toString_test(const char*, const QScriptValue& value)
-{
- QFETCH(QString, expected);
- QCOMPARE(value.toString(), expected);
- QCOMPARE(value.toString(), expected);
-}
-
-DEFINE_TEST_FUNCTION(toString)
-
-
-void tst_QScriptValue::toNumber_initData()
-{
- QTest::addColumn<qsreal>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::toNumber_makeData(const char* expr)
-{
- static QHash<QString, qsreal> toNumber;
- if (toNumber.isEmpty()) {
- toNumber.insert("QScriptValue()", 0);
- toNumber.insert("QScriptValue(QScriptValue::UndefinedValue)", qQNaN());
- toNumber.insert("QScriptValue(QScriptValue::NullValue)", 0);
- toNumber.insert("QScriptValue(true)", 1);
- toNumber.insert("QScriptValue(false)", 0);
- toNumber.insert("QScriptValue(int(122))", 122);
- toNumber.insert("QScriptValue(uint(124))", 124);
- toNumber.insert("QScriptValue(0)", 0);
- toNumber.insert("QScriptValue(0.0)", 0);
- toNumber.insert("QScriptValue(123.0)", 123);
- toNumber.insert("QScriptValue(6.37e-8)", 6.369999999999999e-08);
- toNumber.insert("QScriptValue(-6.37e-8)", -6.369999999999999e-08);
- toNumber.insert("QScriptValue(0x43211234)", 1126240820);
- toNumber.insert("QScriptValue(0x10000)", 65536);
- toNumber.insert("QScriptValue(0x10001)", 65537);
- toNumber.insert("QScriptValue(qSNaN())", qQNaN());
- toNumber.insert("QScriptValue(qQNaN())", qQNaN());
- toNumber.insert("QScriptValue(qInf())", qInf());
- toNumber.insert("QScriptValue(-qInf())", qInf());
- toNumber.insert("QScriptValue(\"NaN\")", qQNaN());
- toNumber.insert("QScriptValue(\"Infinity\")", qInf());
- toNumber.insert("QScriptValue(\"-Infinity\")", qInf());
- toNumber.insert("QScriptValue(\"ciao\")", qQNaN());
- toNumber.insert("QScriptValue(QString::fromLatin1(\"ciao\"))", qQNaN());
- toNumber.insert("QScriptValue(QString(\"\"))", 0);
- toNumber.insert("QScriptValue(QString())", 0);
- toNumber.insert("QScriptValue(QString(\"0\"))", 0);
- toNumber.insert("QScriptValue(QString(\"123\"))", 123);
- toNumber.insert("QScriptValue(QString(\"12.4\"))", 12.4);
- toNumber.insert("QScriptValue(0, QScriptValue::UndefinedValue)", qQNaN());
- toNumber.insert("QScriptValue(0, QScriptValue::NullValue)", 0);
- toNumber.insert("QScriptValue(0, true)", 1);
- toNumber.insert("QScriptValue(0, false)", 0);
- toNumber.insert("QScriptValue(0, int(122))", 122);
- toNumber.insert("QScriptValue(0, uint(124))", 124);
- toNumber.insert("QScriptValue(0, 0)", 0);
- toNumber.insert("QScriptValue(0, 0.0)", 0);
- toNumber.insert("QScriptValue(0, 123.0)", 123);
- toNumber.insert("QScriptValue(0, 6.37e-8)", 6.369999999999999e-08);
- toNumber.insert("QScriptValue(0, -6.37e-8)", -6.369999999999999e-08);
- toNumber.insert("QScriptValue(0, 0x43211234)", 1126240820);
- toNumber.insert("QScriptValue(0, 0x10000)", 65536);
- toNumber.insert("QScriptValue(0, 0x10001)", 65537);
- toNumber.insert("QScriptValue(0, qSNaN())", qQNaN());
- toNumber.insert("QScriptValue(0, qQNaN())", qQNaN());
- toNumber.insert("QScriptValue(0, qInf())", qInf());
- toNumber.insert("QScriptValue(0, -qInf())", qInf());
- toNumber.insert("QScriptValue(0, \"NaN\")", qQNaN());
- toNumber.insert("QScriptValue(0, \"Infinity\")", qInf());
- toNumber.insert("QScriptValue(0, \"-Infinity\")", qInf());
- toNumber.insert("QScriptValue(0, \"ciao\")", qQNaN());
- toNumber.insert("QScriptValue(0, QString::fromLatin1(\"ciao\"))", qQNaN());
- toNumber.insert("QScriptValue(0, QString(\"\"))", 0);
- toNumber.insert("QScriptValue(0, QString())", 0);
- toNumber.insert("QScriptValue(0, QString(\"0\"))", 0);
- toNumber.insert("QScriptValue(0, QString(\"123\"))", 123);
- toNumber.insert("QScriptValue(0, QString(\"12.3\"))", 12.3);
- toNumber.insert("QScriptValue(engine, QScriptValue::UndefinedValue)", qQNaN());
- toNumber.insert("QScriptValue(engine, QScriptValue::NullValue)", 0);
- toNumber.insert("QScriptValue(engine, true)", 1);
- toNumber.insert("QScriptValue(engine, false)", 0);
- toNumber.insert("QScriptValue(engine, int(122))", 122);
- toNumber.insert("QScriptValue(engine, uint(124))", 124);
- toNumber.insert("QScriptValue(engine, 0)", 0);
- toNumber.insert("QScriptValue(engine, 0.0)", 0);
- toNumber.insert("QScriptValue(engine, 123.0)", 123);
- toNumber.insert("QScriptValue(engine, 6.37e-8)", 6.369999999999999e-08);
- toNumber.insert("QScriptValue(engine, -6.37e-8)", -6.369999999999999e-08);
- toNumber.insert("QScriptValue(engine, 0x43211234)", 1126240820);
- toNumber.insert("QScriptValue(engine, 0x10000)", 65536);
- toNumber.insert("QScriptValue(engine, 0x10001)", 65537);
- toNumber.insert("QScriptValue(engine, qSNaN())", qQNaN());
- toNumber.insert("QScriptValue(engine, qQNaN())", qQNaN());
- toNumber.insert("QScriptValue(engine, qInf())", qInf());
- toNumber.insert("QScriptValue(engine, -qInf())", qInf());
- toNumber.insert("QScriptValue(engine, \"NaN\")", qQNaN());
- toNumber.insert("QScriptValue(engine, \"Infinity\")", qInf());
- toNumber.insert("QScriptValue(engine, \"-Infinity\")", qInf());
- toNumber.insert("QScriptValue(engine, \"ciao\")", qQNaN());
- toNumber.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\"))", qQNaN());
- toNumber.insert("QScriptValue(engine, QString(\"\"))", 0);
- toNumber.insert("QScriptValue(engine, QString())", 0);
- toNumber.insert("QScriptValue(engine, QString(\"0\"))", 0);
- toNumber.insert("QScriptValue(engine, QString(\"123\"))", 123);
- toNumber.insert("QScriptValue(engine, QString(\"1.23\"))", 1.23);
- toNumber.insert("engine->evaluate(\"[]\")", 0);
- toNumber.insert("engine->evaluate(\"{}\")", qQNaN());
- toNumber.insert("engine->evaluate(\"Object.prototype\")", qQNaN());
- toNumber.insert("engine->evaluate(\"Date.prototype\")", qQNaN());
- toNumber.insert("engine->evaluate(\"Array.prototype\")", 0);
- toNumber.insert("engine->evaluate(\"Function.prototype\")", qQNaN());
- toNumber.insert("engine->evaluate(\"Error.prototype\")", qQNaN());
- toNumber.insert("engine->evaluate(\"Object\")", qQNaN());
- toNumber.insert("engine->evaluate(\"Array\")", qQNaN());
- toNumber.insert("engine->evaluate(\"Number\")", qQNaN());
- toNumber.insert("engine->evaluate(\"Function\")", qQNaN());
- toNumber.insert("engine->evaluate(\"(function() { return 1; })\")", qQNaN());
- toNumber.insert("engine->evaluate(\"(function() { return 'ciao'; })\")", qQNaN());
- toNumber.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\")", qQNaN());
- toNumber.insert("engine->evaluate(\"/foo/\")", qQNaN());
- toNumber.insert("engine->evaluate(\"new Object()\")", qQNaN());
- toNumber.insert("engine->evaluate(\"new Array()\")", 0);
- toNumber.insert("engine->evaluate(\"new Error()\")", qQNaN());
- toNumber.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")", 22);
- toNumber.insert("engine->evaluate(\"Undefined\")", qQNaN());
- toNumber.insert("engine->evaluate(\"Null\")", qQNaN());
- toNumber.insert("engine->evaluate(\"True\")", qQNaN());
- toNumber.insert("engine->evaluate(\"False\")", qQNaN());
- toNumber.insert("engine->evaluate(\"undefined\")", qQNaN());
- toNumber.insert("engine->evaluate(\"null\")", 0);
- toNumber.insert("engine->evaluate(\"true\")", 1);
- toNumber.insert("engine->evaluate(\"false\")", 0);
- toNumber.insert("engine->evaluate(\"122\")", 122);
- toNumber.insert("engine->evaluate(\"124\")", 124);
- toNumber.insert("engine->evaluate(\"0\")", 0);
- toNumber.insert("engine->evaluate(\"0.0\")", 0);
- toNumber.insert("engine->evaluate(\"123.0\")", 123);
- toNumber.insert("engine->evaluate(\"6.37e-8\")", 6.369999999999999e-08);
- toNumber.insert("engine->evaluate(\"-6.37e-8\")", -6.369999999999999e-08);
- toNumber.insert("engine->evaluate(\"0x43211234\")", 1126240820);
- toNumber.insert("engine->evaluate(\"0x10000\")", 65536);
- toNumber.insert("engine->evaluate(\"0x10001\")", 65537);
- toNumber.insert("engine->evaluate(\"NaN\")", qQNaN());
- toNumber.insert("engine->evaluate(\"Infinity\")", qInf());
- toNumber.insert("engine->evaluate(\"-Infinity\")", qInf());
- toNumber.insert("engine->evaluate(\"'ciao'\")", qQNaN());
- toNumber.insert("engine->evaluate(\"''\")", 0);
- toNumber.insert("engine->evaluate(\"'0'\")", 0);
- toNumber.insert("engine->evaluate(\"'123'\")", 123);
- toNumber.insert("engine->evaluate(\"'12.4'\")", 12.4);
- toNumber.insert("engine->nullValue()", 0);
- toNumber.insert("engine->undefinedValue()", qQNaN());
- toNumber.insert("engine->newObject()", qQNaN());
- toNumber.insert("engine->newArray()", 0);
- toNumber.insert("engine->newArray(10)", qQNaN());
- toNumber.insert("engine->newDate(QDateTime())", qQNaN());
- toNumber.insert("engine->newQMetaObject(&QObject::staticMetaObject)", qQNaN());
- toNumber.insert("engine->newVariant(QVariant())", qQNaN());
- toNumber.insert("engine->newVariant(QVariant(123))", 123);
- toNumber.insert("engine->newVariant(QVariant(false))", 0);
- toNumber.insert("engine->newQObject(0)", 0);
- toNumber.insert("engine->newQObject(engine)", qQNaN());
- }
- newRow(expr) << toNumber.value(expr);
-}
-
-void tst_QScriptValue::toNumber_test(const char*, const QScriptValue& value)
-{
- QFETCH(qsreal, expected);
- if (qIsNaN(expected)) {
- QVERIFY(qIsNaN(value.toNumber()));
- return;
- }
- if (qIsInf(expected)) {
- QVERIFY(qIsInf(value.toNumber()));
- QVERIFY(qIsInf(value.toNumber()));
- return;
- }
- QCOMPARE(value.toNumber(), expected);
- QCOMPARE(value.toNumber(), expected);
-}
-
-DEFINE_TEST_FUNCTION(toNumber)
-
-
-void tst_QScriptValue::toBool_initData()
-{
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::toBool_makeData(const char* expr)
-{
- static QHash<QString, bool> toBool;
- if (toBool.isEmpty()) {
- toBool.insert("QScriptValue()", false);
- toBool.insert("QScriptValue(QScriptValue::UndefinedValue)", false);
- toBool.insert("QScriptValue(QScriptValue::NullValue)", false);
- toBool.insert("QScriptValue(true)", true);
- toBool.insert("QScriptValue(false)", false);
- toBool.insert("QScriptValue(int(122))", true);
- toBool.insert("QScriptValue(uint(124))", true);
- toBool.insert("QScriptValue(0)", false);
- toBool.insert("QScriptValue(0.0)", false);
- toBool.insert("QScriptValue(123.0)", true);
- toBool.insert("QScriptValue(6.37e-8)", true);
- toBool.insert("QScriptValue(-6.37e-8)", true);
- toBool.insert("QScriptValue(0x43211234)", true);
- toBool.insert("QScriptValue(0x10000)", true);
- toBool.insert("QScriptValue(0x10001)", true);
- toBool.insert("QScriptValue(qSNaN())", false);
- toBool.insert("QScriptValue(qQNaN())", false);
- toBool.insert("QScriptValue(qInf())", true);
- toBool.insert("QScriptValue(-qInf())", true);
- toBool.insert("QScriptValue(\"NaN\")", true);
- toBool.insert("QScriptValue(\"Infinity\")", true);
- toBool.insert("QScriptValue(\"-Infinity\")", true);
- toBool.insert("QScriptValue(\"ciao\")", true);
- toBool.insert("QScriptValue(QString::fromLatin1(\"ciao\"))", true);
- toBool.insert("QScriptValue(QString(\"\"))", false);
- toBool.insert("QScriptValue(QString())", false);
- toBool.insert("QScriptValue(QString(\"0\"))", true);
- toBool.insert("QScriptValue(QString(\"123\"))", true);
- toBool.insert("QScriptValue(QString(\"12.4\"))", true);
- toBool.insert("QScriptValue(0, QScriptValue::UndefinedValue)", false);
- toBool.insert("QScriptValue(0, QScriptValue::NullValue)", false);
- toBool.insert("QScriptValue(0, true)", true);
- toBool.insert("QScriptValue(0, false)", false);
- toBool.insert("QScriptValue(0, int(122))", true);
- toBool.insert("QScriptValue(0, uint(124))", true);
- toBool.insert("QScriptValue(0, 0)", false);
- toBool.insert("QScriptValue(0, 0.0)", false);
- toBool.insert("QScriptValue(0, 123.0)", true);
- toBool.insert("QScriptValue(0, 6.37e-8)", true);
- toBool.insert("QScriptValue(0, -6.37e-8)", true);
- toBool.insert("QScriptValue(0, 0x43211234)", true);
- toBool.insert("QScriptValue(0, 0x10000)", true);
- toBool.insert("QScriptValue(0, 0x10001)", true);
- toBool.insert("QScriptValue(0, qSNaN())", false);
- toBool.insert("QScriptValue(0, qQNaN())", false);
- toBool.insert("QScriptValue(0, qInf())", true);
- toBool.insert("QScriptValue(0, -qInf())", true);
- toBool.insert("QScriptValue(0, \"NaN\")", true);
- toBool.insert("QScriptValue(0, \"Infinity\")", true);
- toBool.insert("QScriptValue(0, \"-Infinity\")", true);
- toBool.insert("QScriptValue(0, \"ciao\")", true);
- toBool.insert("QScriptValue(0, QString::fromLatin1(\"ciao\"))", true);
- toBool.insert("QScriptValue(0, QString(\"\"))", false);
- toBool.insert("QScriptValue(0, QString())", false);
- toBool.insert("QScriptValue(0, QString(\"0\"))", true);
- toBool.insert("QScriptValue(0, QString(\"123\"))", true);
- toBool.insert("QScriptValue(0, QString(\"12.3\"))", true);
- toBool.insert("QScriptValue(engine, QScriptValue::UndefinedValue)", false);
- toBool.insert("QScriptValue(engine, QScriptValue::NullValue)", false);
- toBool.insert("QScriptValue(engine, true)", true);
- toBool.insert("QScriptValue(engine, false)", false);
- toBool.insert("QScriptValue(engine, int(122))", true);
- toBool.insert("QScriptValue(engine, uint(124))", true);
- toBool.insert("QScriptValue(engine, 0)", false);
- toBool.insert("QScriptValue(engine, 0.0)", false);
- toBool.insert("QScriptValue(engine, 123.0)", true);
- toBool.insert("QScriptValue(engine, 6.37e-8)", true);
- toBool.insert("QScriptValue(engine, -6.37e-8)", true);
- toBool.insert("QScriptValue(engine, 0x43211234)", true);
- toBool.insert("QScriptValue(engine, 0x10000)", true);
- toBool.insert("QScriptValue(engine, 0x10001)", true);
- toBool.insert("QScriptValue(engine, qSNaN())", false);
- toBool.insert("QScriptValue(engine, qQNaN())", false);
- toBool.insert("QScriptValue(engine, qInf())", true);
- toBool.insert("QScriptValue(engine, -qInf())", true);
- toBool.insert("QScriptValue(engine, \"NaN\")", true);
- toBool.insert("QScriptValue(engine, \"Infinity\")", true);
- toBool.insert("QScriptValue(engine, \"-Infinity\")", true);
- toBool.insert("QScriptValue(engine, \"ciao\")", true);
- toBool.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\"))", true);
- toBool.insert("QScriptValue(engine, QString(\"\"))", false);
- toBool.insert("QScriptValue(engine, QString())", false);
- toBool.insert("QScriptValue(engine, QString(\"0\"))", true);
- toBool.insert("QScriptValue(engine, QString(\"123\"))", true);
- toBool.insert("QScriptValue(engine, QString(\"1.23\"))", true);
- toBool.insert("engine->evaluate(\"[]\")", true);
- toBool.insert("engine->evaluate(\"{}\")", false);
- toBool.insert("engine->evaluate(\"Object.prototype\")", true);
- toBool.insert("engine->evaluate(\"Date.prototype\")", true);
- toBool.insert("engine->evaluate(\"Array.prototype\")", true);
- toBool.insert("engine->evaluate(\"Function.prototype\")", true);
- toBool.insert("engine->evaluate(\"Error.prototype\")", true);
- toBool.insert("engine->evaluate(\"Object\")", true);
- toBool.insert("engine->evaluate(\"Array\")", true);
- toBool.insert("engine->evaluate(\"Number\")", true);
- toBool.insert("engine->evaluate(\"Function\")", true);
- toBool.insert("engine->evaluate(\"(function() { return 1; })\")", true);
- toBool.insert("engine->evaluate(\"(function() { return 'ciao'; })\")", true);
- toBool.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\")", true);
- toBool.insert("engine->evaluate(\"/foo/\")", true);
- toBool.insert("engine->evaluate(\"new Object()\")", true);
- toBool.insert("engine->evaluate(\"new Array()\")", true);
- toBool.insert("engine->evaluate(\"new Error()\")", true);
- toBool.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")", true);
- toBool.insert("engine->evaluate(\"Undefined\")", true);
- toBool.insert("engine->evaluate(\"Null\")", true);
- toBool.insert("engine->evaluate(\"True\")", true);
- toBool.insert("engine->evaluate(\"False\")", true);
- toBool.insert("engine->evaluate(\"undefined\")", false);
- toBool.insert("engine->evaluate(\"null\")", false);
- toBool.insert("engine->evaluate(\"true\")", true);
- toBool.insert("engine->evaluate(\"false\")", false);
- toBool.insert("engine->evaluate(\"122\")", true);
- toBool.insert("engine->evaluate(\"124\")", true);
- toBool.insert("engine->evaluate(\"0\")", false);
- toBool.insert("engine->evaluate(\"0.0\")", false);
- toBool.insert("engine->evaluate(\"123.0\")", true);
- toBool.insert("engine->evaluate(\"6.37e-8\")", true);
- toBool.insert("engine->evaluate(\"-6.37e-8\")", true);
- toBool.insert("engine->evaluate(\"0x43211234\")", true);
- toBool.insert("engine->evaluate(\"0x10000\")", true);
- toBool.insert("engine->evaluate(\"0x10001\")", true);
- toBool.insert("engine->evaluate(\"NaN\")", false);
- toBool.insert("engine->evaluate(\"Infinity\")", true);
- toBool.insert("engine->evaluate(\"-Infinity\")", true);
- toBool.insert("engine->evaluate(\"'ciao'\")", true);
- toBool.insert("engine->evaluate(\"''\")", false);
- toBool.insert("engine->evaluate(\"'0'\")", true);
- toBool.insert("engine->evaluate(\"'123'\")", true);
- toBool.insert("engine->evaluate(\"'12.4'\")", true);
- toBool.insert("engine->nullValue()", false);
- toBool.insert("engine->undefinedValue()", false);
- toBool.insert("engine->newObject()", true);
- toBool.insert("engine->newArray()", true);
- toBool.insert("engine->newArray(10)", true);
- toBool.insert("engine->newDate(QDateTime())", true);
- toBool.insert("engine->newQMetaObject(&QObject::staticMetaObject)", true);
- toBool.insert("engine->newVariant(QVariant())", true);
- toBool.insert("engine->newVariant(QVariant(123))", true);
- toBool.insert("engine->newVariant(QVariant(false))", true);
- toBool.insert("engine->newQObject(0)", false);
- toBool.insert("engine->newQObject(engine)", true);
- }
- newRow(expr) << toBool.value(expr);
-}
-
-void tst_QScriptValue::toBool_test(const char*, const QScriptValue& value)
-{
- QFETCH(bool, expected);
- QCOMPARE(value.toBool(), expected);
- QCOMPARE(value.toBool(), expected);
-}
-
-DEFINE_TEST_FUNCTION(toBool)
-
-
-void tst_QScriptValue::toBoolean_initData()
-{
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::toBoolean_makeData(const char* expr)
-{
- static QHash<QString, bool> toBoolean;
- if (toBoolean.isEmpty()) {
- toBoolean.insert("QScriptValue()", false);
- toBoolean.insert("QScriptValue(QScriptValue::UndefinedValue)", false);
- toBoolean.insert("QScriptValue(QScriptValue::NullValue)", false);
- toBoolean.insert("QScriptValue(true)", true);
- toBoolean.insert("QScriptValue(false)", false);
- toBoolean.insert("QScriptValue(int(122))", true);
- toBoolean.insert("QScriptValue(uint(124))", true);
- toBoolean.insert("QScriptValue(0)", false);
- toBoolean.insert("QScriptValue(0.0)", false);
- toBoolean.insert("QScriptValue(123.0)", true);
- toBoolean.insert("QScriptValue(6.37e-8)", true);
- toBoolean.insert("QScriptValue(-6.37e-8)", true);
- toBoolean.insert("QScriptValue(0x43211234)", true);
- toBoolean.insert("QScriptValue(0x10000)", true);
- toBoolean.insert("QScriptValue(0x10001)", true);
- toBoolean.insert("QScriptValue(qSNaN())", false);
- toBoolean.insert("QScriptValue(qQNaN())", false);
- toBoolean.insert("QScriptValue(qInf())", true);
- toBoolean.insert("QScriptValue(-qInf())", true);
- toBoolean.insert("QScriptValue(\"NaN\")", true);
- toBoolean.insert("QScriptValue(\"Infinity\")", true);
- toBoolean.insert("QScriptValue(\"-Infinity\")", true);
- toBoolean.insert("QScriptValue(\"ciao\")", true);
- toBoolean.insert("QScriptValue(QString::fromLatin1(\"ciao\"))", true);
- toBoolean.insert("QScriptValue(QString(\"\"))", false);
- toBoolean.insert("QScriptValue(QString())", false);
- toBoolean.insert("QScriptValue(QString(\"0\"))", true);
- toBoolean.insert("QScriptValue(QString(\"123\"))", true);
- toBoolean.insert("QScriptValue(QString(\"12.4\"))", true);
- toBoolean.insert("QScriptValue(0, QScriptValue::UndefinedValue)", false);
- toBoolean.insert("QScriptValue(0, QScriptValue::NullValue)", false);
- toBoolean.insert("QScriptValue(0, true)", true);
- toBoolean.insert("QScriptValue(0, false)", false);
- toBoolean.insert("QScriptValue(0, int(122))", true);
- toBoolean.insert("QScriptValue(0, uint(124))", true);
- toBoolean.insert("QScriptValue(0, 0)", false);
- toBoolean.insert("QScriptValue(0, 0.0)", false);
- toBoolean.insert("QScriptValue(0, 123.0)", true);
- toBoolean.insert("QScriptValue(0, 6.37e-8)", true);
- toBoolean.insert("QScriptValue(0, -6.37e-8)", true);
- toBoolean.insert("QScriptValue(0, 0x43211234)", true);
- toBoolean.insert("QScriptValue(0, 0x10000)", true);
- toBoolean.insert("QScriptValue(0, 0x10001)", true);
- toBoolean.insert("QScriptValue(0, qSNaN())", false);
- toBoolean.insert("QScriptValue(0, qQNaN())", false);
- toBoolean.insert("QScriptValue(0, qInf())", true);
- toBoolean.insert("QScriptValue(0, -qInf())", true);
- toBoolean.insert("QScriptValue(0, \"NaN\")", true);
- toBoolean.insert("QScriptValue(0, \"Infinity\")", true);
- toBoolean.insert("QScriptValue(0, \"-Infinity\")", true);
- toBoolean.insert("QScriptValue(0, \"ciao\")", true);
- toBoolean.insert("QScriptValue(0, QString::fromLatin1(\"ciao\"))", true);
- toBoolean.insert("QScriptValue(0, QString(\"\"))", false);
- toBoolean.insert("QScriptValue(0, QString())", false);
- toBoolean.insert("QScriptValue(0, QString(\"0\"))", true);
- toBoolean.insert("QScriptValue(0, QString(\"123\"))", true);
- toBoolean.insert("QScriptValue(0, QString(\"12.3\"))", true);
- toBoolean.insert("QScriptValue(engine, QScriptValue::UndefinedValue)", false);
- toBoolean.insert("QScriptValue(engine, QScriptValue::NullValue)", false);
- toBoolean.insert("QScriptValue(engine, true)", true);
- toBoolean.insert("QScriptValue(engine, false)", false);
- toBoolean.insert("QScriptValue(engine, int(122))", true);
- toBoolean.insert("QScriptValue(engine, uint(124))", true);
- toBoolean.insert("QScriptValue(engine, 0)", false);
- toBoolean.insert("QScriptValue(engine, 0.0)", false);
- toBoolean.insert("QScriptValue(engine, 123.0)", true);
- toBoolean.insert("QScriptValue(engine, 6.37e-8)", true);
- toBoolean.insert("QScriptValue(engine, -6.37e-8)", true);
- toBoolean.insert("QScriptValue(engine, 0x43211234)", true);
- toBoolean.insert("QScriptValue(engine, 0x10000)", true);
- toBoolean.insert("QScriptValue(engine, 0x10001)", true);
- toBoolean.insert("QScriptValue(engine, qSNaN())", false);
- toBoolean.insert("QScriptValue(engine, qQNaN())", false);
- toBoolean.insert("QScriptValue(engine, qInf())", true);
- toBoolean.insert("QScriptValue(engine, -qInf())", true);
- toBoolean.insert("QScriptValue(engine, \"NaN\")", true);
- toBoolean.insert("QScriptValue(engine, \"Infinity\")", true);
- toBoolean.insert("QScriptValue(engine, \"-Infinity\")", true);
- toBoolean.insert("QScriptValue(engine, \"ciao\")", true);
- toBoolean.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\"))", true);
- toBoolean.insert("QScriptValue(engine, QString(\"\"))", false);
- toBoolean.insert("QScriptValue(engine, QString())", false);
- toBoolean.insert("QScriptValue(engine, QString(\"0\"))", true);
- toBoolean.insert("QScriptValue(engine, QString(\"123\"))", true);
- toBoolean.insert("QScriptValue(engine, QString(\"1.23\"))", true);
- toBoolean.insert("engine->evaluate(\"[]\")", true);
- toBoolean.insert("engine->evaluate(\"{}\")", false);
- toBoolean.insert("engine->evaluate(\"Object.prototype\")", true);
- toBoolean.insert("engine->evaluate(\"Date.prototype\")", true);
- toBoolean.insert("engine->evaluate(\"Array.prototype\")", true);
- toBoolean.insert("engine->evaluate(\"Function.prototype\")", true);
- toBoolean.insert("engine->evaluate(\"Error.prototype\")", true);
- toBoolean.insert("engine->evaluate(\"Object\")", true);
- toBoolean.insert("engine->evaluate(\"Array\")", true);
- toBoolean.insert("engine->evaluate(\"Number\")", true);
- toBoolean.insert("engine->evaluate(\"Function\")", true);
- toBoolean.insert("engine->evaluate(\"(function() { return 1; })\")", true);
- toBoolean.insert("engine->evaluate(\"(function() { return 'ciao'; })\")", true);
- toBoolean.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\")", true);
- toBoolean.insert("engine->evaluate(\"/foo/\")", true);
- toBoolean.insert("engine->evaluate(\"new Object()\")", true);
- toBoolean.insert("engine->evaluate(\"new Array()\")", true);
- toBoolean.insert("engine->evaluate(\"new Error()\")", true);
- toBoolean.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")", true);
- toBoolean.insert("engine->evaluate(\"Undefined\")", true);
- toBoolean.insert("engine->evaluate(\"Null\")", true);
- toBoolean.insert("engine->evaluate(\"True\")", true);
- toBoolean.insert("engine->evaluate(\"False\")", true);
- toBoolean.insert("engine->evaluate(\"undefined\")", false);
- toBoolean.insert("engine->evaluate(\"null\")", false);
- toBoolean.insert("engine->evaluate(\"true\")", true);
- toBoolean.insert("engine->evaluate(\"false\")", false);
- toBoolean.insert("engine->evaluate(\"122\")", true);
- toBoolean.insert("engine->evaluate(\"124\")", true);
- toBoolean.insert("engine->evaluate(\"0\")", false);
- toBoolean.insert("engine->evaluate(\"0.0\")", false);
- toBoolean.insert("engine->evaluate(\"123.0\")", true);
- toBoolean.insert("engine->evaluate(\"6.37e-8\")", true);
- toBoolean.insert("engine->evaluate(\"-6.37e-8\")", true);
- toBoolean.insert("engine->evaluate(\"0x43211234\")", true);
- toBoolean.insert("engine->evaluate(\"0x10000\")", true);
- toBoolean.insert("engine->evaluate(\"0x10001\")", true);
- toBoolean.insert("engine->evaluate(\"NaN\")", false);
- toBoolean.insert("engine->evaluate(\"Infinity\")", true);
- toBoolean.insert("engine->evaluate(\"-Infinity\")", true);
- toBoolean.insert("engine->evaluate(\"'ciao'\")", true);
- toBoolean.insert("engine->evaluate(\"''\")", false);
- toBoolean.insert("engine->evaluate(\"'0'\")", true);
- toBoolean.insert("engine->evaluate(\"'123'\")", true);
- toBoolean.insert("engine->evaluate(\"'12.4'\")", true);
- toBoolean.insert("engine->nullValue()", false);
- toBoolean.insert("engine->undefinedValue()", false);
- toBoolean.insert("engine->newObject()", true);
- toBoolean.insert("engine->newArray()", true);
- toBoolean.insert("engine->newArray(10)", true);
- toBoolean.insert("engine->newDate(QDateTime())", true);
- toBoolean.insert("engine->newQMetaObject(&QObject::staticMetaObject)", true);
- toBoolean.insert("engine->newVariant(QVariant())", true);
- toBoolean.insert("engine->newVariant(QVariant(123))", true);
- toBoolean.insert("engine->newVariant(QVariant(false))", true);
- toBoolean.insert("engine->newQObject(0)", false);
- toBoolean.insert("engine->newQObject(engine)", true);
- }
- newRow(expr) << toBoolean.value(expr);
-}
-
-void tst_QScriptValue::toBoolean_test(const char*, const QScriptValue& value)
-{
- QFETCH(bool, expected);
- QCOMPARE(value.toBoolean(), expected);
- QCOMPARE(value.toBoolean(), expected);
-}
-
-DEFINE_TEST_FUNCTION(toBoolean)
-
-
-void tst_QScriptValue::toInteger_initData()
-{
- QTest::addColumn<qsreal>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::toInteger_makeData(const char* expr)
-{
- static QHash<QString, qsreal> toInteger;
- if (toInteger.isEmpty()) {
- toInteger.insert("QScriptValue()", 0);
- toInteger.insert("QScriptValue(QScriptValue::UndefinedValue)", 0);
- toInteger.insert("QScriptValue(QScriptValue::NullValue)", 0);
- toInteger.insert("QScriptValue(true)", 1);
- toInteger.insert("QScriptValue(false)", 0);
- toInteger.insert("QScriptValue(int(122))", 122);
- toInteger.insert("QScriptValue(uint(124))", 124);
- toInteger.insert("QScriptValue(0)", 0);
- toInteger.insert("QScriptValue(0.0)", 0);
- toInteger.insert("QScriptValue(123.0)", 123);
- toInteger.insert("QScriptValue(6.37e-8)", 0);
- toInteger.insert("QScriptValue(-6.37e-8)", 0);
- toInteger.insert("QScriptValue(0x43211234)", 1126240820);
- toInteger.insert("QScriptValue(0x10000)", 65536);
- toInteger.insert("QScriptValue(0x10001)", 65537);
- toInteger.insert("QScriptValue(qSNaN())", 0);
- toInteger.insert("QScriptValue(qQNaN())", 0);
- toInteger.insert("QScriptValue(qInf())", qInf());
- toInteger.insert("QScriptValue(-qInf())", qInf());
- toInteger.insert("QScriptValue(\"NaN\")", 0);
- toInteger.insert("QScriptValue(\"Infinity\")", qInf());
- toInteger.insert("QScriptValue(\"-Infinity\")", qInf());
- toInteger.insert("QScriptValue(\"ciao\")", 0);
- toInteger.insert("QScriptValue(QString::fromLatin1(\"ciao\"))", 0);
- toInteger.insert("QScriptValue(QString(\"\"))", 0);
- toInteger.insert("QScriptValue(QString())", 0);
- toInteger.insert("QScriptValue(QString(\"0\"))", 0);
- toInteger.insert("QScriptValue(QString(\"123\"))", 123);
- toInteger.insert("QScriptValue(QString(\"12.4\"))", 12);
- toInteger.insert("QScriptValue(0, QScriptValue::UndefinedValue)", 0);
- toInteger.insert("QScriptValue(0, QScriptValue::NullValue)", 0);
- toInteger.insert("QScriptValue(0, true)", 1);
- toInteger.insert("QScriptValue(0, false)", 0);
- toInteger.insert("QScriptValue(0, int(122))", 122);
- toInteger.insert("QScriptValue(0, uint(124))", 124);
- toInteger.insert("QScriptValue(0, 0)", 0);
- toInteger.insert("QScriptValue(0, 0.0)", 0);
- toInteger.insert("QScriptValue(0, 123.0)", 123);
- toInteger.insert("QScriptValue(0, 6.37e-8)", 0);
- toInteger.insert("QScriptValue(0, -6.37e-8)", 0);
- toInteger.insert("QScriptValue(0, 0x43211234)", 1126240820);
- toInteger.insert("QScriptValue(0, 0x10000)", 65536);
- toInteger.insert("QScriptValue(0, 0x10001)", 65537);
- toInteger.insert("QScriptValue(0, qSNaN())", 0);
- toInteger.insert("QScriptValue(0, qQNaN())", 0);
- toInteger.insert("QScriptValue(0, qInf())", qInf());
- toInteger.insert("QScriptValue(0, -qInf())", qInf());
- toInteger.insert("QScriptValue(0, \"NaN\")", 0);
- toInteger.insert("QScriptValue(0, \"Infinity\")", qInf());
- toInteger.insert("QScriptValue(0, \"-Infinity\")", qInf());
- toInteger.insert("QScriptValue(0, \"ciao\")", 0);
- toInteger.insert("QScriptValue(0, QString::fromLatin1(\"ciao\"))", 0);
- toInteger.insert("QScriptValue(0, QString(\"\"))", 0);
- toInteger.insert("QScriptValue(0, QString())", 0);
- toInteger.insert("QScriptValue(0, QString(\"0\"))", 0);
- toInteger.insert("QScriptValue(0, QString(\"123\"))", 123);
- toInteger.insert("QScriptValue(0, QString(\"12.3\"))", 12);
- toInteger.insert("QScriptValue(engine, QScriptValue::UndefinedValue)", 0);
- toInteger.insert("QScriptValue(engine, QScriptValue::NullValue)", 0);
- toInteger.insert("QScriptValue(engine, true)", 1);
- toInteger.insert("QScriptValue(engine, false)", 0);
- toInteger.insert("QScriptValue(engine, int(122))", 122);
- toInteger.insert("QScriptValue(engine, uint(124))", 124);
- toInteger.insert("QScriptValue(engine, 0)", 0);
- toInteger.insert("QScriptValue(engine, 0.0)", 0);
- toInteger.insert("QScriptValue(engine, 123.0)", 123);
- toInteger.insert("QScriptValue(engine, 6.37e-8)", 0);
- toInteger.insert("QScriptValue(engine, -6.37e-8)", 0);
- toInteger.insert("QScriptValue(engine, 0x43211234)", 1126240820);
- toInteger.insert("QScriptValue(engine, 0x10000)", 65536);
- toInteger.insert("QScriptValue(engine, 0x10001)", 65537);
- toInteger.insert("QScriptValue(engine, qSNaN())", 0);
- toInteger.insert("QScriptValue(engine, qQNaN())", 0);
- toInteger.insert("QScriptValue(engine, qInf())", qInf());
- toInteger.insert("QScriptValue(engine, -qInf())", qInf());
- toInteger.insert("QScriptValue(engine, \"NaN\")", 0);
- toInteger.insert("QScriptValue(engine, \"Infinity\")", qInf());
- toInteger.insert("QScriptValue(engine, \"-Infinity\")", qInf());
- toInteger.insert("QScriptValue(engine, \"ciao\")", 0);
- toInteger.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\"))", 0);
- toInteger.insert("QScriptValue(engine, QString(\"\"))", 0);
- toInteger.insert("QScriptValue(engine, QString())", 0);
- toInteger.insert("QScriptValue(engine, QString(\"0\"))", 0);
- toInteger.insert("QScriptValue(engine, QString(\"123\"))", 123);
- toInteger.insert("QScriptValue(engine, QString(\"1.23\"))", 1);
- toInteger.insert("engine->evaluate(\"[]\")", 0);
- toInteger.insert("engine->evaluate(\"{}\")", 0);
- toInteger.insert("engine->evaluate(\"Object.prototype\")", 0);
- toInteger.insert("engine->evaluate(\"Date.prototype\")", 0);
- toInteger.insert("engine->evaluate(\"Array.prototype\")", 0);
- toInteger.insert("engine->evaluate(\"Function.prototype\")", 0);
- toInteger.insert("engine->evaluate(\"Error.prototype\")", 0);
- toInteger.insert("engine->evaluate(\"Object\")", 0);
- toInteger.insert("engine->evaluate(\"Array\")", 0);
- toInteger.insert("engine->evaluate(\"Number\")", 0);
- toInteger.insert("engine->evaluate(\"Function\")", 0);
- toInteger.insert("engine->evaluate(\"(function() { return 1; })\")", 0);
- toInteger.insert("engine->evaluate(\"(function() { return 'ciao'; })\")", 0);
- toInteger.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\")", 0);
- toInteger.insert("engine->evaluate(\"/foo/\")", 0);
- toInteger.insert("engine->evaluate(\"new Object()\")", 0);
- toInteger.insert("engine->evaluate(\"new Array()\")", 0);
- toInteger.insert("engine->evaluate(\"new Error()\")", 0);
- toInteger.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")", 22);
- toInteger.insert("engine->evaluate(\"Undefined\")", 0);
- toInteger.insert("engine->evaluate(\"Null\")", 0);
- toInteger.insert("engine->evaluate(\"True\")", 0);
- toInteger.insert("engine->evaluate(\"False\")", 0);
- toInteger.insert("engine->evaluate(\"undefined\")", 0);
- toInteger.insert("engine->evaluate(\"null\")", 0);
- toInteger.insert("engine->evaluate(\"true\")", 1);
- toInteger.insert("engine->evaluate(\"false\")", 0);
- toInteger.insert("engine->evaluate(\"122\")", 122);
- toInteger.insert("engine->evaluate(\"124\")", 124);
- toInteger.insert("engine->evaluate(\"0\")", 0);
- toInteger.insert("engine->evaluate(\"0.0\")", 0);
- toInteger.insert("engine->evaluate(\"123.0\")", 123);
- toInteger.insert("engine->evaluate(\"6.37e-8\")", 0);
- toInteger.insert("engine->evaluate(\"-6.37e-8\")", 0);
- toInteger.insert("engine->evaluate(\"0x43211234\")", 1126240820);
- toInteger.insert("engine->evaluate(\"0x10000\")", 65536);
- toInteger.insert("engine->evaluate(\"0x10001\")", 65537);
- toInteger.insert("engine->evaluate(\"NaN\")", 0);
- toInteger.insert("engine->evaluate(\"Infinity\")", qInf());
- toInteger.insert("engine->evaluate(\"-Infinity\")", qInf());
- toInteger.insert("engine->evaluate(\"'ciao'\")", 0);
- toInteger.insert("engine->evaluate(\"''\")", 0);
- toInteger.insert("engine->evaluate(\"'0'\")", 0);
- toInteger.insert("engine->evaluate(\"'123'\")", 123);
- toInteger.insert("engine->evaluate(\"'12.4'\")", 12);
- toInteger.insert("engine->nullValue()", 0);
- toInteger.insert("engine->undefinedValue()", 0);
- toInteger.insert("engine->newObject()", 0);
- toInteger.insert("engine->newArray()", 0);
- toInteger.insert("engine->newArray(10)", 0);
- toInteger.insert("engine->newDate(QDateTime())", 0);
- toInteger.insert("engine->newQMetaObject(&QObject::staticMetaObject)", 0);
- toInteger.insert("engine->newVariant(QVariant())", 0);
- toInteger.insert("engine->newVariant(QVariant(123))", 123);
- toInteger.insert("engine->newVariant(QVariant(false))", 0);
- toInteger.insert("engine->newQObject(0)", 0);
- toInteger.insert("engine->newQObject(engine)", 0);
- }
- newRow(expr) << toInteger.value(expr);
-}
-
-void tst_QScriptValue::toInteger_test(const char*, const QScriptValue& value)
-{
- QFETCH(qsreal, expected);
- if (qIsInf(expected)) {
- QVERIFY(qIsInf(value.toInteger()));
- QVERIFY(qIsInf(value.toInteger()));
- return;
- }
- QCOMPARE(value.toInteger(), expected);
- QCOMPARE(value.toInteger(), expected);
-}
-
-DEFINE_TEST_FUNCTION(toInteger)
-
-
-void tst_QScriptValue::toInt32_initData()
-{
- QTest::addColumn<qint32>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::toInt32_makeData(const char* expr)
-{
- static QHash<QString, qint32> toInt32;
- if (toInt32.isEmpty()) {
- toInt32.insert("QScriptValue()", 0);
- toInt32.insert("QScriptValue(QScriptValue::UndefinedValue)", 0);
- toInt32.insert("QScriptValue(QScriptValue::NullValue)", 0);
- toInt32.insert("QScriptValue(true)", 1);
- toInt32.insert("QScriptValue(false)", 0);
- toInt32.insert("QScriptValue(int(122))", 122);
- toInt32.insert("QScriptValue(uint(124))", 124);
- toInt32.insert("QScriptValue(0)", 0);
- toInt32.insert("QScriptValue(0.0)", 0);
- toInt32.insert("QScriptValue(123.0)", 123);
- toInt32.insert("QScriptValue(6.37e-8)", 0);
- toInt32.insert("QScriptValue(-6.37e-8)", 0);
- toInt32.insert("QScriptValue(0x43211234)", 1126240820);
- toInt32.insert("QScriptValue(0x10000)", 65536);
- toInt32.insert("QScriptValue(0x10001)", 65537);
- toInt32.insert("QScriptValue(qSNaN())", 0);
- toInt32.insert("QScriptValue(qQNaN())", 0);
- toInt32.insert("QScriptValue(qInf())", 0);
- toInt32.insert("QScriptValue(-qInf())", 0);
- toInt32.insert("QScriptValue(\"NaN\")", 0);
- toInt32.insert("QScriptValue(\"Infinity\")", 0);
- toInt32.insert("QScriptValue(\"-Infinity\")", 0);
- toInt32.insert("QScriptValue(\"ciao\")", 0);
- toInt32.insert("QScriptValue(QString::fromLatin1(\"ciao\"))", 0);
- toInt32.insert("QScriptValue(QString(\"\"))", 0);
- toInt32.insert("QScriptValue(QString())", 0);
- toInt32.insert("QScriptValue(QString(\"0\"))", 0);
- toInt32.insert("QScriptValue(QString(\"123\"))", 123);
- toInt32.insert("QScriptValue(QString(\"12.4\"))", 12);
- toInt32.insert("QScriptValue(0, QScriptValue::UndefinedValue)", 0);
- toInt32.insert("QScriptValue(0, QScriptValue::NullValue)", 0);
- toInt32.insert("QScriptValue(0, true)", 1);
- toInt32.insert("QScriptValue(0, false)", 0);
- toInt32.insert("QScriptValue(0, int(122))", 122);
- toInt32.insert("QScriptValue(0, uint(124))", 124);
- toInt32.insert("QScriptValue(0, 0)", 0);
- toInt32.insert("QScriptValue(0, 0.0)", 0);
- toInt32.insert("QScriptValue(0, 123.0)", 123);
- toInt32.insert("QScriptValue(0, 6.37e-8)", 0);
- toInt32.insert("QScriptValue(0, -6.37e-8)", 0);
- toInt32.insert("QScriptValue(0, 0x43211234)", 1126240820);
- toInt32.insert("QScriptValue(0, 0x10000)", 65536);
- toInt32.insert("QScriptValue(0, 0x10001)", 65537);
- toInt32.insert("QScriptValue(0, qSNaN())", 0);
- toInt32.insert("QScriptValue(0, qQNaN())", 0);
- toInt32.insert("QScriptValue(0, qInf())", 0);
- toInt32.insert("QScriptValue(0, -qInf())", 0);
- toInt32.insert("QScriptValue(0, \"NaN\")", 0);
- toInt32.insert("QScriptValue(0, \"Infinity\")", 0);
- toInt32.insert("QScriptValue(0, \"-Infinity\")", 0);
- toInt32.insert("QScriptValue(0, \"ciao\")", 0);
- toInt32.insert("QScriptValue(0, QString::fromLatin1(\"ciao\"))", 0);
- toInt32.insert("QScriptValue(0, QString(\"\"))", 0);
- toInt32.insert("QScriptValue(0, QString())", 0);
- toInt32.insert("QScriptValue(0, QString(\"0\"))", 0);
- toInt32.insert("QScriptValue(0, QString(\"123\"))", 123);
- toInt32.insert("QScriptValue(0, QString(\"12.3\"))", 12);
- toInt32.insert("QScriptValue(engine, QScriptValue::UndefinedValue)", 0);
- toInt32.insert("QScriptValue(engine, QScriptValue::NullValue)", 0);
- toInt32.insert("QScriptValue(engine, true)", 1);
- toInt32.insert("QScriptValue(engine, false)", 0);
- toInt32.insert("QScriptValue(engine, int(122))", 122);
- toInt32.insert("QScriptValue(engine, uint(124))", 124);
- toInt32.insert("QScriptValue(engine, 0)", 0);
- toInt32.insert("QScriptValue(engine, 0.0)", 0);
- toInt32.insert("QScriptValue(engine, 123.0)", 123);
- toInt32.insert("QScriptValue(engine, 6.37e-8)", 0);
- toInt32.insert("QScriptValue(engine, -6.37e-8)", 0);
- toInt32.insert("QScriptValue(engine, 0x43211234)", 1126240820);
- toInt32.insert("QScriptValue(engine, 0x10000)", 65536);
- toInt32.insert("QScriptValue(engine, 0x10001)", 65537);
- toInt32.insert("QScriptValue(engine, qSNaN())", 0);
- toInt32.insert("QScriptValue(engine, qQNaN())", 0);
- toInt32.insert("QScriptValue(engine, qInf())", 0);
- toInt32.insert("QScriptValue(engine, -qInf())", 0);
- toInt32.insert("QScriptValue(engine, \"NaN\")", 0);
- toInt32.insert("QScriptValue(engine, \"Infinity\")", 0);
- toInt32.insert("QScriptValue(engine, \"-Infinity\")", 0);
- toInt32.insert("QScriptValue(engine, \"ciao\")", 0);
- toInt32.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\"))", 0);
- toInt32.insert("QScriptValue(engine, QString(\"\"))", 0);
- toInt32.insert("QScriptValue(engine, QString())", 0);
- toInt32.insert("QScriptValue(engine, QString(\"0\"))", 0);
- toInt32.insert("QScriptValue(engine, QString(\"123\"))", 123);
- toInt32.insert("QScriptValue(engine, QString(\"1.23\"))", 1);
- toInt32.insert("engine->evaluate(\"[]\")", 0);
- toInt32.insert("engine->evaluate(\"{}\")", 0);
- toInt32.insert("engine->evaluate(\"Object.prototype\")", 0);
- toInt32.insert("engine->evaluate(\"Date.prototype\")", 0);
- toInt32.insert("engine->evaluate(\"Array.prototype\")", 0);
- toInt32.insert("engine->evaluate(\"Function.prototype\")", 0);
- toInt32.insert("engine->evaluate(\"Error.prototype\")", 0);
- toInt32.insert("engine->evaluate(\"Object\")", 0);
- toInt32.insert("engine->evaluate(\"Array\")", 0);
- toInt32.insert("engine->evaluate(\"Number\")", 0);
- toInt32.insert("engine->evaluate(\"Function\")", 0);
- toInt32.insert("engine->evaluate(\"(function() { return 1; })\")", 0);
- toInt32.insert("engine->evaluate(\"(function() { return 'ciao'; })\")", 0);
- toInt32.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\")", 0);
- toInt32.insert("engine->evaluate(\"/foo/\")", 0);
- toInt32.insert("engine->evaluate(\"new Object()\")", 0);
- toInt32.insert("engine->evaluate(\"new Array()\")", 0);
- toInt32.insert("engine->evaluate(\"new Error()\")", 0);
- toInt32.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")", 22);
- toInt32.insert("engine->evaluate(\"Undefined\")", 0);
- toInt32.insert("engine->evaluate(\"Null\")", 0);
- toInt32.insert("engine->evaluate(\"True\")", 0);
- toInt32.insert("engine->evaluate(\"False\")", 0);
- toInt32.insert("engine->evaluate(\"undefined\")", 0);
- toInt32.insert("engine->evaluate(\"null\")", 0);
- toInt32.insert("engine->evaluate(\"true\")", 1);
- toInt32.insert("engine->evaluate(\"false\")", 0);
- toInt32.insert("engine->evaluate(\"122\")", 122);
- toInt32.insert("engine->evaluate(\"124\")", 124);
- toInt32.insert("engine->evaluate(\"0\")", 0);
- toInt32.insert("engine->evaluate(\"0.0\")", 0);
- toInt32.insert("engine->evaluate(\"123.0\")", 123);
- toInt32.insert("engine->evaluate(\"6.37e-8\")", 0);
- toInt32.insert("engine->evaluate(\"-6.37e-8\")", 0);
- toInt32.insert("engine->evaluate(\"0x43211234\")", 1126240820);
- toInt32.insert("engine->evaluate(\"0x10000\")", 65536);
- toInt32.insert("engine->evaluate(\"0x10001\")", 65537);
- toInt32.insert("engine->evaluate(\"NaN\")", 0);
- toInt32.insert("engine->evaluate(\"Infinity\")", 0);
- toInt32.insert("engine->evaluate(\"-Infinity\")", 0);
- toInt32.insert("engine->evaluate(\"'ciao'\")", 0);
- toInt32.insert("engine->evaluate(\"''\")", 0);
- toInt32.insert("engine->evaluate(\"'0'\")", 0);
- toInt32.insert("engine->evaluate(\"'123'\")", 123);
- toInt32.insert("engine->evaluate(\"'12.4'\")", 12);
- toInt32.insert("engine->nullValue()", 0);
- toInt32.insert("engine->undefinedValue()", 0);
- toInt32.insert("engine->newObject()", 0);
- toInt32.insert("engine->newArray()", 0);
- toInt32.insert("engine->newArray(10)", 0);
- toInt32.insert("engine->newDate(QDateTime())", 0);
- toInt32.insert("engine->newQMetaObject(&QObject::staticMetaObject)", 0);
- toInt32.insert("engine->newVariant(QVariant())", 0);
- toInt32.insert("engine->newVariant(QVariant(123))", 123);
- toInt32.insert("engine->newVariant(QVariant(false))", 0);
- toInt32.insert("engine->newQObject(0)", 0);
- toInt32.insert("engine->newQObject(engine)", 0);
- }
- newRow(expr) << toInt32.value(expr);
-}
-
-void tst_QScriptValue::toInt32_test(const char*, const QScriptValue& value)
-{
- QFETCH(qint32, expected);
- QCOMPARE(value.toInt32(), expected);
- QCOMPARE(value.toInt32(), expected);
-}
-
-DEFINE_TEST_FUNCTION(toInt32)
-
-
-void tst_QScriptValue::toUInt32_initData()
-{
- QTest::addColumn<quint32>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::toUInt32_makeData(const char* expr)
-{
- static QHash<QString, quint32> toUInt32;
- if (toUInt32.isEmpty()) {
- toUInt32.insert("QScriptValue()", 0);
- toUInt32.insert("QScriptValue(QScriptValue::UndefinedValue)", 0);
- toUInt32.insert("QScriptValue(QScriptValue::NullValue)", 0);
- toUInt32.insert("QScriptValue(true)", 1);
- toUInt32.insert("QScriptValue(false)", 0);
- toUInt32.insert("QScriptValue(int(122))", 122);
- toUInt32.insert("QScriptValue(uint(124))", 124);
- toUInt32.insert("QScriptValue(0)", 0);
- toUInt32.insert("QScriptValue(0.0)", 0);
- toUInt32.insert("QScriptValue(123.0)", 123);
- toUInt32.insert("QScriptValue(6.37e-8)", 0);
- toUInt32.insert("QScriptValue(-6.37e-8)", 0);
- toUInt32.insert("QScriptValue(0x43211234)", 1126240820);
- toUInt32.insert("QScriptValue(0x10000)", 65536);
- toUInt32.insert("QScriptValue(0x10001)", 65537);
- toUInt32.insert("QScriptValue(qSNaN())", 0);
- toUInt32.insert("QScriptValue(qQNaN())", 0);
- toUInt32.insert("QScriptValue(qInf())", 0);
- toUInt32.insert("QScriptValue(-qInf())", 0);
- toUInt32.insert("QScriptValue(\"NaN\")", 0);
- toUInt32.insert("QScriptValue(\"Infinity\")", 0);
- toUInt32.insert("QScriptValue(\"-Infinity\")", 0);
- toUInt32.insert("QScriptValue(\"ciao\")", 0);
- toUInt32.insert("QScriptValue(QString::fromLatin1(\"ciao\"))", 0);
- toUInt32.insert("QScriptValue(QString(\"\"))", 0);
- toUInt32.insert("QScriptValue(QString())", 0);
- toUInt32.insert("QScriptValue(QString(\"0\"))", 0);
- toUInt32.insert("QScriptValue(QString(\"123\"))", 123);
- toUInt32.insert("QScriptValue(QString(\"12.4\"))", 12);
- toUInt32.insert("QScriptValue(0, QScriptValue::UndefinedValue)", 0);
- toUInt32.insert("QScriptValue(0, QScriptValue::NullValue)", 0);
- toUInt32.insert("QScriptValue(0, true)", 1);
- toUInt32.insert("QScriptValue(0, false)", 0);
- toUInt32.insert("QScriptValue(0, int(122))", 122);
- toUInt32.insert("QScriptValue(0, uint(124))", 124);
- toUInt32.insert("QScriptValue(0, 0)", 0);
- toUInt32.insert("QScriptValue(0, 0.0)", 0);
- toUInt32.insert("QScriptValue(0, 123.0)", 123);
- toUInt32.insert("QScriptValue(0, 6.37e-8)", 0);
- toUInt32.insert("QScriptValue(0, -6.37e-8)", 0);
- toUInt32.insert("QScriptValue(0, 0x43211234)", 1126240820);
- toUInt32.insert("QScriptValue(0, 0x10000)", 65536);
- toUInt32.insert("QScriptValue(0, 0x10001)", 65537);
- toUInt32.insert("QScriptValue(0, qSNaN())", 0);
- toUInt32.insert("QScriptValue(0, qQNaN())", 0);
- toUInt32.insert("QScriptValue(0, qInf())", 0);
- toUInt32.insert("QScriptValue(0, -qInf())", 0);
- toUInt32.insert("QScriptValue(0, \"NaN\")", 0);
- toUInt32.insert("QScriptValue(0, \"Infinity\")", 0);
- toUInt32.insert("QScriptValue(0, \"-Infinity\")", 0);
- toUInt32.insert("QScriptValue(0, \"ciao\")", 0);
- toUInt32.insert("QScriptValue(0, QString::fromLatin1(\"ciao\"))", 0);
- toUInt32.insert("QScriptValue(0, QString(\"\"))", 0);
- toUInt32.insert("QScriptValue(0, QString())", 0);
- toUInt32.insert("QScriptValue(0, QString(\"0\"))", 0);
- toUInt32.insert("QScriptValue(0, QString(\"123\"))", 123);
- toUInt32.insert("QScriptValue(0, QString(\"12.3\"))", 12);
- toUInt32.insert("QScriptValue(engine, QScriptValue::UndefinedValue)", 0);
- toUInt32.insert("QScriptValue(engine, QScriptValue::NullValue)", 0);
- toUInt32.insert("QScriptValue(engine, true)", 1);
- toUInt32.insert("QScriptValue(engine, false)", 0);
- toUInt32.insert("QScriptValue(engine, int(122))", 122);
- toUInt32.insert("QScriptValue(engine, uint(124))", 124);
- toUInt32.insert("QScriptValue(engine, 0)", 0);
- toUInt32.insert("QScriptValue(engine, 0.0)", 0);
- toUInt32.insert("QScriptValue(engine, 123.0)", 123);
- toUInt32.insert("QScriptValue(engine, 6.37e-8)", 0);
- toUInt32.insert("QScriptValue(engine, -6.37e-8)", 0);
- toUInt32.insert("QScriptValue(engine, 0x43211234)", 1126240820);
- toUInt32.insert("QScriptValue(engine, 0x10000)", 65536);
- toUInt32.insert("QScriptValue(engine, 0x10001)", 65537);
- toUInt32.insert("QScriptValue(engine, qSNaN())", 0);
- toUInt32.insert("QScriptValue(engine, qQNaN())", 0);
- toUInt32.insert("QScriptValue(engine, qInf())", 0);
- toUInt32.insert("QScriptValue(engine, -qInf())", 0);
- toUInt32.insert("QScriptValue(engine, \"NaN\")", 0);
- toUInt32.insert("QScriptValue(engine, \"Infinity\")", 0);
- toUInt32.insert("QScriptValue(engine, \"-Infinity\")", 0);
- toUInt32.insert("QScriptValue(engine, \"ciao\")", 0);
- toUInt32.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\"))", 0);
- toUInt32.insert("QScriptValue(engine, QString(\"\"))", 0);
- toUInt32.insert("QScriptValue(engine, QString())", 0);
- toUInt32.insert("QScriptValue(engine, QString(\"0\"))", 0);
- toUInt32.insert("QScriptValue(engine, QString(\"123\"))", 123);
- toUInt32.insert("QScriptValue(engine, QString(\"1.23\"))", 1);
- toUInt32.insert("engine->evaluate(\"[]\")", 0);
- toUInt32.insert("engine->evaluate(\"{}\")", 0);
- toUInt32.insert("engine->evaluate(\"Object.prototype\")", 0);
- toUInt32.insert("engine->evaluate(\"Date.prototype\")", 0);
- toUInt32.insert("engine->evaluate(\"Array.prototype\")", 0);
- toUInt32.insert("engine->evaluate(\"Function.prototype\")", 0);
- toUInt32.insert("engine->evaluate(\"Error.prototype\")", 0);
- toUInt32.insert("engine->evaluate(\"Object\")", 0);
- toUInt32.insert("engine->evaluate(\"Array\")", 0);
- toUInt32.insert("engine->evaluate(\"Number\")", 0);
- toUInt32.insert("engine->evaluate(\"Function\")", 0);
- toUInt32.insert("engine->evaluate(\"(function() { return 1; })\")", 0);
- toUInt32.insert("engine->evaluate(\"(function() { return 'ciao'; })\")", 0);
- toUInt32.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\")", 0);
- toUInt32.insert("engine->evaluate(\"/foo/\")", 0);
- toUInt32.insert("engine->evaluate(\"new Object()\")", 0);
- toUInt32.insert("engine->evaluate(\"new Array()\")", 0);
- toUInt32.insert("engine->evaluate(\"new Error()\")", 0);
- toUInt32.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")", 22);
- toUInt32.insert("engine->evaluate(\"Undefined\")", 0);
- toUInt32.insert("engine->evaluate(\"Null\")", 0);
- toUInt32.insert("engine->evaluate(\"True\")", 0);
- toUInt32.insert("engine->evaluate(\"False\")", 0);
- toUInt32.insert("engine->evaluate(\"undefined\")", 0);
- toUInt32.insert("engine->evaluate(\"null\")", 0);
- toUInt32.insert("engine->evaluate(\"true\")", 1);
- toUInt32.insert("engine->evaluate(\"false\")", 0);
- toUInt32.insert("engine->evaluate(\"122\")", 122);
- toUInt32.insert("engine->evaluate(\"124\")", 124);
- toUInt32.insert("engine->evaluate(\"0\")", 0);
- toUInt32.insert("engine->evaluate(\"0.0\")", 0);
- toUInt32.insert("engine->evaluate(\"123.0\")", 123);
- toUInt32.insert("engine->evaluate(\"6.37e-8\")", 0);
- toUInt32.insert("engine->evaluate(\"-6.37e-8\")", 0);
- toUInt32.insert("engine->evaluate(\"0x43211234\")", 1126240820);
- toUInt32.insert("engine->evaluate(\"0x10000\")", 65536);
- toUInt32.insert("engine->evaluate(\"0x10001\")", 65537);
- toUInt32.insert("engine->evaluate(\"NaN\")", 0);
- toUInt32.insert("engine->evaluate(\"Infinity\")", 0);
- toUInt32.insert("engine->evaluate(\"-Infinity\")", 0);
- toUInt32.insert("engine->evaluate(\"'ciao'\")", 0);
- toUInt32.insert("engine->evaluate(\"''\")", 0);
- toUInt32.insert("engine->evaluate(\"'0'\")", 0);
- toUInt32.insert("engine->evaluate(\"'123'\")", 123);
- toUInt32.insert("engine->evaluate(\"'12.4'\")", 12);
- toUInt32.insert("engine->nullValue()", 0);
- toUInt32.insert("engine->undefinedValue()", 0);
- toUInt32.insert("engine->newObject()", 0);
- toUInt32.insert("engine->newArray()", 0);
- toUInt32.insert("engine->newArray(10)", 0);
- toUInt32.insert("engine->newDate(QDateTime())", 0);
- toUInt32.insert("engine->newQMetaObject(&QObject::staticMetaObject)", 0);
- toUInt32.insert("engine->newVariant(QVariant())", 0);
- toUInt32.insert("engine->newVariant(QVariant(123))", 123);
- toUInt32.insert("engine->newVariant(QVariant(false))", 0);
- toUInt32.insert("engine->newQObject(0)", 0);
- toUInt32.insert("engine->newQObject(engine)", 0);
- }
- newRow(expr) << toUInt32.value(expr);
-}
-
-void tst_QScriptValue::toUInt32_test(const char*, const QScriptValue& value)
-{
- QFETCH(quint32, expected);
- QCOMPARE(value.toUInt32(), expected);
- QCOMPARE(value.toUInt32(), expected);
-}
-
-DEFINE_TEST_FUNCTION(toUInt32)
-
-
-void tst_QScriptValue::toUInt16_initData()
-{
- QTest::addColumn<quint16>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::toUInt16_makeData(const char* expr)
-{
- static QHash<QString, quint16> toUInt16;
- if (toUInt16.isEmpty()) {
- toUInt16.insert("QScriptValue()", 0);
- toUInt16.insert("QScriptValue(QScriptValue::UndefinedValue)", 0);
- toUInt16.insert("QScriptValue(QScriptValue::NullValue)", 0);
- toUInt16.insert("QScriptValue(true)", 1);
- toUInt16.insert("QScriptValue(false)", 0);
- toUInt16.insert("QScriptValue(int(122))", 122);
- toUInt16.insert("QScriptValue(uint(124))", 124);
- toUInt16.insert("QScriptValue(0)", 0);
- toUInt16.insert("QScriptValue(0.0)", 0);
- toUInt16.insert("QScriptValue(123.0)", 123);
- toUInt16.insert("QScriptValue(6.37e-8)", 0);
- toUInt16.insert("QScriptValue(-6.37e-8)", 0);
- toUInt16.insert("QScriptValue(0x43211234)", 4660);
- toUInt16.insert("QScriptValue(0x10000)", 0);
- toUInt16.insert("QScriptValue(0x10001)", 1);
- toUInt16.insert("QScriptValue(qSNaN())", 0);
- toUInt16.insert("QScriptValue(qQNaN())", 0);
- toUInt16.insert("QScriptValue(qInf())", 0);
- toUInt16.insert("QScriptValue(-qInf())", 0);
- toUInt16.insert("QScriptValue(\"NaN\")", 0);
- toUInt16.insert("QScriptValue(\"Infinity\")", 0);
- toUInt16.insert("QScriptValue(\"-Infinity\")", 0);
- toUInt16.insert("QScriptValue(\"ciao\")", 0);
- toUInt16.insert("QScriptValue(QString::fromLatin1(\"ciao\"))", 0);
- toUInt16.insert("QScriptValue(QString(\"\"))", 0);
- toUInt16.insert("QScriptValue(QString())", 0);
- toUInt16.insert("QScriptValue(QString(\"0\"))", 0);
- toUInt16.insert("QScriptValue(QString(\"123\"))", 123);
- toUInt16.insert("QScriptValue(QString(\"12.4\"))", 12);
- toUInt16.insert("QScriptValue(0, QScriptValue::UndefinedValue)", 0);
- toUInt16.insert("QScriptValue(0, QScriptValue::NullValue)", 0);
- toUInt16.insert("QScriptValue(0, true)", 1);
- toUInt16.insert("QScriptValue(0, false)", 0);
- toUInt16.insert("QScriptValue(0, int(122))", 122);
- toUInt16.insert("QScriptValue(0, uint(124))", 124);
- toUInt16.insert("QScriptValue(0, 0)", 0);
- toUInt16.insert("QScriptValue(0, 0.0)", 0);
- toUInt16.insert("QScriptValue(0, 123.0)", 123);
- toUInt16.insert("QScriptValue(0, 6.37e-8)", 0);
- toUInt16.insert("QScriptValue(0, -6.37e-8)", 0);
- toUInt16.insert("QScriptValue(0, 0x43211234)", 4660);
- toUInt16.insert("QScriptValue(0, 0x10000)", 0);
- toUInt16.insert("QScriptValue(0, 0x10001)", 1);
- toUInt16.insert("QScriptValue(0, qSNaN())", 0);
- toUInt16.insert("QScriptValue(0, qQNaN())", 0);
- toUInt16.insert("QScriptValue(0, qInf())", 0);
- toUInt16.insert("QScriptValue(0, -qInf())", 0);
- toUInt16.insert("QScriptValue(0, \"NaN\")", 0);
- toUInt16.insert("QScriptValue(0, \"Infinity\")", 0);
- toUInt16.insert("QScriptValue(0, \"-Infinity\")", 0);
- toUInt16.insert("QScriptValue(0, \"ciao\")", 0);
- toUInt16.insert("QScriptValue(0, QString::fromLatin1(\"ciao\"))", 0);
- toUInt16.insert("QScriptValue(0, QString(\"\"))", 0);
- toUInt16.insert("QScriptValue(0, QString())", 0);
- toUInt16.insert("QScriptValue(0, QString(\"0\"))", 0);
- toUInt16.insert("QScriptValue(0, QString(\"123\"))", 123);
- toUInt16.insert("QScriptValue(0, QString(\"12.3\"))", 12);
- toUInt16.insert("QScriptValue(engine, QScriptValue::UndefinedValue)", 0);
- toUInt16.insert("QScriptValue(engine, QScriptValue::NullValue)", 0);
- toUInt16.insert("QScriptValue(engine, true)", 1);
- toUInt16.insert("QScriptValue(engine, false)", 0);
- toUInt16.insert("QScriptValue(engine, int(122))", 122);
- toUInt16.insert("QScriptValue(engine, uint(124))", 124);
- toUInt16.insert("QScriptValue(engine, 0)", 0);
- toUInt16.insert("QScriptValue(engine, 0.0)", 0);
- toUInt16.insert("QScriptValue(engine, 123.0)", 123);
- toUInt16.insert("QScriptValue(engine, 6.37e-8)", 0);
- toUInt16.insert("QScriptValue(engine, -6.37e-8)", 0);
- toUInt16.insert("QScriptValue(engine, 0x43211234)", 4660);
- toUInt16.insert("QScriptValue(engine, 0x10000)", 0);
- toUInt16.insert("QScriptValue(engine, 0x10001)", 1);
- toUInt16.insert("QScriptValue(engine, qSNaN())", 0);
- toUInt16.insert("QScriptValue(engine, qQNaN())", 0);
- toUInt16.insert("QScriptValue(engine, qInf())", 0);
- toUInt16.insert("QScriptValue(engine, -qInf())", 0);
- toUInt16.insert("QScriptValue(engine, \"NaN\")", 0);
- toUInt16.insert("QScriptValue(engine, \"Infinity\")", 0);
- toUInt16.insert("QScriptValue(engine, \"-Infinity\")", 0);
- toUInt16.insert("QScriptValue(engine, \"ciao\")", 0);
- toUInt16.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\"))", 0);
- toUInt16.insert("QScriptValue(engine, QString(\"\"))", 0);
- toUInt16.insert("QScriptValue(engine, QString())", 0);
- toUInt16.insert("QScriptValue(engine, QString(\"0\"))", 0);
- toUInt16.insert("QScriptValue(engine, QString(\"123\"))", 123);
- toUInt16.insert("QScriptValue(engine, QString(\"1.23\"))", 1);
- toUInt16.insert("engine->evaluate(\"[]\")", 0);
- toUInt16.insert("engine->evaluate(\"{}\")", 0);
- toUInt16.insert("engine->evaluate(\"Object.prototype\")", 0);
- toUInt16.insert("engine->evaluate(\"Date.prototype\")", 0);
- toUInt16.insert("engine->evaluate(\"Array.prototype\")", 0);
- toUInt16.insert("engine->evaluate(\"Function.prototype\")", 0);
- toUInt16.insert("engine->evaluate(\"Error.prototype\")", 0);
- toUInt16.insert("engine->evaluate(\"Object\")", 0);
- toUInt16.insert("engine->evaluate(\"Array\")", 0);
- toUInt16.insert("engine->evaluate(\"Number\")", 0);
- toUInt16.insert("engine->evaluate(\"Function\")", 0);
- toUInt16.insert("engine->evaluate(\"(function() { return 1; })\")", 0);
- toUInt16.insert("engine->evaluate(\"(function() { return 'ciao'; })\")", 0);
- toUInt16.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\")", 0);
- toUInt16.insert("engine->evaluate(\"/foo/\")", 0);
- toUInt16.insert("engine->evaluate(\"new Object()\")", 0);
- toUInt16.insert("engine->evaluate(\"new Array()\")", 0);
- toUInt16.insert("engine->evaluate(\"new Error()\")", 0);
- toUInt16.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")", 22);
- toUInt16.insert("engine->evaluate(\"Undefined\")", 0);
- toUInt16.insert("engine->evaluate(\"Null\")", 0);
- toUInt16.insert("engine->evaluate(\"True\")", 0);
- toUInt16.insert("engine->evaluate(\"False\")", 0);
- toUInt16.insert("engine->evaluate(\"undefined\")", 0);
- toUInt16.insert("engine->evaluate(\"null\")", 0);
- toUInt16.insert("engine->evaluate(\"true\")", 1);
- toUInt16.insert("engine->evaluate(\"false\")", 0);
- toUInt16.insert("engine->evaluate(\"122\")", 122);
- toUInt16.insert("engine->evaluate(\"124\")", 124);
- toUInt16.insert("engine->evaluate(\"0\")", 0);
- toUInt16.insert("engine->evaluate(\"0.0\")", 0);
- toUInt16.insert("engine->evaluate(\"123.0\")", 123);
- toUInt16.insert("engine->evaluate(\"6.37e-8\")", 0);
- toUInt16.insert("engine->evaluate(\"-6.37e-8\")", 0);
- toUInt16.insert("engine->evaluate(\"0x43211234\")", 4660);
- toUInt16.insert("engine->evaluate(\"0x10000\")", 0);
- toUInt16.insert("engine->evaluate(\"0x10001\")", 1);
- toUInt16.insert("engine->evaluate(\"NaN\")", 0);
- toUInt16.insert("engine->evaluate(\"Infinity\")", 0);
- toUInt16.insert("engine->evaluate(\"-Infinity\")", 0);
- toUInt16.insert("engine->evaluate(\"'ciao'\")", 0);
- toUInt16.insert("engine->evaluate(\"''\")", 0);
- toUInt16.insert("engine->evaluate(\"'0'\")", 0);
- toUInt16.insert("engine->evaluate(\"'123'\")", 123);
- toUInt16.insert("engine->evaluate(\"'12.4'\")", 12);
- toUInt16.insert("engine->nullValue()", 0);
- toUInt16.insert("engine->undefinedValue()", 0);
- toUInt16.insert("engine->newObject()", 0);
- toUInt16.insert("engine->newArray()", 0);
- toUInt16.insert("engine->newArray(10)", 0);
- toUInt16.insert("engine->newDate(QDateTime())", 0);
- toUInt16.insert("engine->newQMetaObject(&QObject::staticMetaObject)", 0);
- toUInt16.insert("engine->newVariant(QVariant())", 0);
- toUInt16.insert("engine->newVariant(QVariant(123))", 123);
- toUInt16.insert("engine->newVariant(QVariant(false))", 0);
- toUInt16.insert("engine->newQObject(0)", 0);
- toUInt16.insert("engine->newQObject(engine)", 0);
- }
- newRow(expr) << toUInt16.value(expr);
-}
-
-void tst_QScriptValue::toUInt16_test(const char*, const QScriptValue& value)
-{
- QFETCH(quint16, expected);
- QCOMPARE(value.toUInt16(), expected);
- QCOMPARE(value.toUInt16(), expected);
-}
-
-DEFINE_TEST_FUNCTION(toUInt16)
-
-
-void tst_QScriptValue::equals_initData()
-{
- QTest::addColumn<QScriptValue>("other");
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::equals_makeData(const char *expr)
-{
- static QSet<QString> equals;
- if (equals.isEmpty()) {
- equals.insert("QScriptValue() <=> QScriptValue()");
- equals.insert("QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("QScriptValue(QScriptValue::UndefinedValue) <=> engine->evaluate(\"{}\")");
- equals.insert("QScriptValue(QScriptValue::UndefinedValue) <=> engine->evaluate(\"undefined\")");
- equals.insert("QScriptValue(QScriptValue::UndefinedValue) <=> engine->evaluate(\"null\")");
- equals.insert("QScriptValue(QScriptValue::UndefinedValue) <=> engine->nullValue()");
- equals.insert("QScriptValue(QScriptValue::UndefinedValue) <=> engine->undefinedValue()");
- equals.insert("QScriptValue(QScriptValue::UndefinedValue) <=> engine->newQObject(0)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"{}\")");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"undefined\")");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"null\")");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->nullValue()");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->undefinedValue()");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->newQObject(0)");
- equals.insert("QScriptValue(true) <=> QScriptValue(true)");
- equals.insert("QScriptValue(true) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(true) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(true) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(false) <=> QScriptValue(false)");
- equals.insert("QScriptValue(false) <=> QScriptValue(0)");
- equals.insert("QScriptValue(false) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(false) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(false) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(false) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(false) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(false) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(false) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(false) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(false) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(false) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(false) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(false) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(false) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(false) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(false) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(false) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(false) <=> engine->evaluate(\"[]\")");
- equals.insert("QScriptValue(false) <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("QScriptValue(false) <=> engine->evaluate(\"new Array()\")");
- equals.insert("QScriptValue(false) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(false) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(false) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(false) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(false) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(false) <=> engine->newArray()");
- equals.insert("QScriptValue(false) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(int(122)) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(uint(124)) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(uint(124)) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(uint(124)) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(uint(124)) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0) <=> QScriptValue(false)");
- equals.insert("QScriptValue(0) <=> QScriptValue(0)");
- equals.insert("QScriptValue(0) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(0) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(0) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(0) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(0) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(0) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(0) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(0) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(0) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(0) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(0) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(0) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(0) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(0) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(0) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(0) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"[]\")");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"new Array()\")");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(0) <=> engine->newArray()");
- equals.insert("QScriptValue(0) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(false)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"[]\")");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"new Array()\")");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(0.0) <=> engine->newArray()");
- equals.insert("QScriptValue(0.0) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(123.0) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(123.0) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(123.0) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(6.37e-8) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(-6.37e-8)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0, -6.37e-8)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(engine, -6.37e-8)");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"-6.37e-8\")");
- equals.insert("QScriptValue(0x43211234) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0x43211234) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0x43211234) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0x43211234) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0x10000) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0x10000) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0x10000) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0x10000) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0x10001) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0x10001) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0x10001) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0x10001) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(qInf()) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(qInf()) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(qInf()) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(qInf()) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(qInf()) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(qInf()) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(qInf()) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(-qInf())");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(\"-Infinity\")");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, -qInf())");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, -qInf())");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"-Infinity\")");
- equals.insert("QScriptValue(\"NaN\") <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(\"NaN\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(\"NaN\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(\"Infinity\") <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(\"Infinity\") <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(\"Infinity\") <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(\"Infinity\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(\"Infinity\") <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(\"Infinity\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(\"Infinity\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(-qInf())");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(\"-Infinity\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, -qInf())");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, -qInf())");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"-Infinity\")");
- equals.insert("QScriptValue(\"ciao\") <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(\"ciao\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(\"ciao\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(\"ciao\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(\"ciao\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(\"ciao\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(\"ciao\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(false)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"[]\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"new Array()\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->newArray()");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(false)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"[]\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"new Array()\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(QString()) <=> engine->newArray()");
- equals.insert("QScriptValue(QString()) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(false)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->evaluate(\"{}\")");
- equals.insert("QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->evaluate(\"undefined\")");
- equals.insert("QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->evaluate(\"null\")");
- equals.insert("QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->nullValue()");
- equals.insert("QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->undefinedValue()");
- equals.insert("QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->newQObject(0)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"{}\")");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"undefined\")");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"null\")");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->nullValue()");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->undefinedValue()");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->newQObject(0)");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(true)");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(0, true) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(false)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(0, false) <=> engine->evaluate(\"[]\")");
- equals.insert("QScriptValue(0, false) <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("QScriptValue(0, false) <=> engine->evaluate(\"new Array()\")");
- equals.insert("QScriptValue(0, false) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(0, false) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(0, false) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(0, false) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(0, false) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(0, false) <=> engine->newArray()");
- equals.insert("QScriptValue(0, false) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(0, int(122)) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(0, uint(124)) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(0, uint(124)) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(0, uint(124)) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(0, uint(124)) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(false)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"[]\")");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"new Array()\")");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(0, 0) <=> engine->newArray()");
- equals.insert("QScriptValue(0, 0) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(false)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"[]\")");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"new Array()\")");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(0, 0.0) <=> engine->newArray()");
- equals.insert("QScriptValue(0, 0.0) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(0, 123.0) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(0, 123.0) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(0, 123.0) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(-6.37e-8)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0, -6.37e-8)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, -6.37e-8)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"-6.37e-8\")");
- equals.insert("QScriptValue(0, 0x43211234) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0, 0x43211234) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0, 0x43211234) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0, 0x43211234) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0, 0x10000) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0, 0x10000) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0, 0x10000) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0, 0x10000) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0, 0x10001) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0, 0x10001) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0, 0x10001) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0, 0x10001) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0, qInf()) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, qInf()) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, qInf()) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, qInf()) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, qInf()) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, qInf()) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, qInf()) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(-qInf())");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(\"-Infinity\")");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, -qInf())");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, -qInf())");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"-Infinity\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, \"Infinity\") <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, \"Infinity\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, \"Infinity\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(-qInf())");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(\"-Infinity\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, -qInf())");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, -qInf())");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"-Infinity\")");
- equals.insert("QScriptValue(0, \"ciao\") <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(0, \"ciao\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, \"ciao\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(0, \"ciao\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, \"ciao\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(0, \"ciao\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, \"ciao\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(false)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"[]\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"new Array()\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->newArray()");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(false)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"[]\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"new Array()\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->newArray()");
- equals.insert("QScriptValue(0, QString()) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(false)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->evaluate(\"{}\")");
- equals.insert("QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->evaluate(\"undefined\")");
- equals.insert("QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->evaluate(\"null\")");
- equals.insert("QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->nullValue()");
- equals.insert("QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->undefinedValue()");
- equals.insert("QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->newQObject(0)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"{}\")");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"undefined\")");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"null\")");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->nullValue()");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->undefinedValue()");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->newQObject(0)");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(true)");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(engine, true) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(false)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(engine, false) <=> engine->evaluate(\"[]\")");
- equals.insert("QScriptValue(engine, false) <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("QScriptValue(engine, false) <=> engine->evaluate(\"new Array()\")");
- equals.insert("QScriptValue(engine, false) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(engine, false) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(engine, false) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(engine, false) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(engine, false) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(engine, false) <=> engine->newArray()");
- equals.insert("QScriptValue(engine, false) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(engine, int(122)) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(engine, uint(124)) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(engine, uint(124)) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(engine, uint(124)) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(engine, uint(124)) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(false)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"[]\")");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"new Array()\")");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(engine, 0) <=> engine->newArray()");
- equals.insert("QScriptValue(engine, 0) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(false)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"[]\")");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"new Array()\")");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->newArray()");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(engine, 123.0) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(engine, 123.0) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(engine, 123.0) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(-6.37e-8)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, -6.37e-8)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, -6.37e-8)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"-6.37e-8\")");
- equals.insert("QScriptValue(engine, 0x43211234) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(engine, 0x43211234) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(engine, 0x43211234) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(engine, 0x43211234) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(engine, 0x10000) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(engine, 0x10000) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(engine, 0x10000) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(engine, 0x10000) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(engine, 0x10001) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(engine, 0x10001) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(engine, 0x10001) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(engine, 0x10001) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(engine, qInf()) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, qInf()) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, qInf()) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, qInf()) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, qInf()) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, qInf()) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, qInf()) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(-qInf())");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(\"-Infinity\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, -qInf())");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, -qInf())");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"-Infinity\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(-qInf())");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(\"-Infinity\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, -qInf())");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, -qInf())");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"-Infinity\")");
- equals.insert("QScriptValue(engine, \"ciao\") <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(engine, \"ciao\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, \"ciao\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(engine, \"ciao\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, \"ciao\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(engine, \"ciao\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(false)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"[]\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"new Array()\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->newArray()");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(false)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"[]\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"new Array()\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->newArray()");
- equals.insert("QScriptValue(engine, QString()) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(false)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(false)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0.0)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(QString(\"\"))");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(QString())");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, false)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, 0)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, 0.0)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, QString(\"\"))");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, QString())");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, false)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, 0)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, 0.0)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, QString())");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"[]\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"false\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"0\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"0.0\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"''\")");
- equals.insert("engine->evaluate(\"{}\") <=> QScriptValue(QScriptValue::UndefinedValue)");
- equals.insert("engine->evaluate(\"{}\") <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("engine->evaluate(\"{}\") <=> QScriptValue(0, QScriptValue::UndefinedValue)");
- equals.insert("engine->evaluate(\"{}\") <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("engine->evaluate(\"{}\") <=> QScriptValue(engine, QScriptValue::UndefinedValue)");
- equals.insert("engine->evaluate(\"{}\") <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("engine->evaluate(\"{}\") <=> engine->evaluate(\"{}\")");
- equals.insert("engine->evaluate(\"{}\") <=> engine->evaluate(\"undefined\")");
- equals.insert("engine->evaluate(\"{}\") <=> engine->evaluate(\"null\")");
- equals.insert("engine->evaluate(\"{}\") <=> engine->nullValue()");
- equals.insert("engine->evaluate(\"{}\") <=> engine->undefinedValue()");
- equals.insert("engine->evaluate(\"{}\") <=> engine->newQObject(0)");
- equals.insert("engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("engine->evaluate(\"Date.prototype\") <=> engine->evaluate(\"Date.prototype\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(false)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0.0)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(QString(\"\"))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(QString())");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, false)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, 0)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, 0.0)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, QString(\"\"))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, QString())");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, false)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, 0)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, 0.0)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, QString())");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"false\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"0\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"0.0\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"''\")");
- equals.insert("engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("engine->evaluate(\"Object\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"Array\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"Number\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"Function\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"(function() { return 1; })\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"/foo/\")");
- equals.insert("engine->evaluate(\"new Object()\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(false)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0.0)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(QString(\"\"))");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(QString())");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, false)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, 0)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, 0.0)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, QString(\"\"))");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, QString())");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, false)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, 0)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, 0.0)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, QString())");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"new Array()\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"false\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"0\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"0.0\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"''\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> engine->evaluate(\"new Error()\")");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("engine->evaluate(\"Undefined\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("engine->evaluate(\"Null\") <=> engine->evaluate(\"Null\")");
- equals.insert("engine->evaluate(\"True\") <=> engine->evaluate(\"True\")");
- equals.insert("engine->evaluate(\"False\") <=> engine->evaluate(\"False\")");
- equals.insert("engine->evaluate(\"undefined\") <=> QScriptValue(QScriptValue::UndefinedValue)");
- equals.insert("engine->evaluate(\"undefined\") <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("engine->evaluate(\"undefined\") <=> QScriptValue(0, QScriptValue::UndefinedValue)");
- equals.insert("engine->evaluate(\"undefined\") <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("engine->evaluate(\"undefined\") <=> QScriptValue(engine, QScriptValue::UndefinedValue)");
- equals.insert("engine->evaluate(\"undefined\") <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("engine->evaluate(\"undefined\") <=> engine->evaluate(\"{}\")");
- equals.insert("engine->evaluate(\"undefined\") <=> engine->evaluate(\"undefined\")");
- equals.insert("engine->evaluate(\"undefined\") <=> engine->evaluate(\"null\")");
- equals.insert("engine->evaluate(\"undefined\") <=> engine->nullValue()");
- equals.insert("engine->evaluate(\"undefined\") <=> engine->undefinedValue()");
- equals.insert("engine->evaluate(\"undefined\") <=> engine->newQObject(0)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(QScriptValue::UndefinedValue)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(0, QScriptValue::UndefinedValue)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(engine, QScriptValue::UndefinedValue)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("engine->evaluate(\"null\") <=> engine->evaluate(\"{}\")");
- equals.insert("engine->evaluate(\"null\") <=> engine->evaluate(\"undefined\")");
- equals.insert("engine->evaluate(\"null\") <=> engine->evaluate(\"null\")");
- equals.insert("engine->evaluate(\"null\") <=> engine->nullValue()");
- equals.insert("engine->evaluate(\"null\") <=> engine->undefinedValue()");
- equals.insert("engine->evaluate(\"null\") <=> engine->newQObject(0)");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(true)");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(0, true)");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(engine, true)");
- equals.insert("engine->evaluate(\"true\") <=> engine->evaluate(\"true\")");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(false)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0.0)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(QString(\"\"))");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(QString())");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(QString(\"0\"))");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0, false)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0, 0)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0, 0.0)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0, QString(\"\"))");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0, QString())");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(engine, false)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(engine, 0)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(engine, 0.0)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(engine, QString())");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("engine->evaluate(\"false\") <=> engine->evaluate(\"[]\")");
- equals.insert("engine->evaluate(\"false\") <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("engine->evaluate(\"false\") <=> engine->evaluate(\"new Array()\")");
- equals.insert("engine->evaluate(\"false\") <=> engine->evaluate(\"false\")");
- equals.insert("engine->evaluate(\"false\") <=> engine->evaluate(\"0\")");
- equals.insert("engine->evaluate(\"false\") <=> engine->evaluate(\"0.0\")");
- equals.insert("engine->evaluate(\"false\") <=> engine->evaluate(\"''\")");
- equals.insert("engine->evaluate(\"false\") <=> engine->evaluate(\"'0'\")");
- equals.insert("engine->evaluate(\"false\") <=> engine->newArray()");
- equals.insert("engine->evaluate(\"false\") <=> engine->newVariant(QVariant(false))");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(int(122))");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(0, int(122))");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(engine, int(122))");
- equals.insert("engine->evaluate(\"122\") <=> engine->evaluate(\"122\")");
- equals.insert("engine->evaluate(\"124\") <=> QScriptValue(uint(124))");
- equals.insert("engine->evaluate(\"124\") <=> QScriptValue(0, uint(124))");
- equals.insert("engine->evaluate(\"124\") <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->evaluate(\"124\") <=> engine->evaluate(\"124\")");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(false)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0.0)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(QString(\"\"))");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(QString())");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(QString(\"0\"))");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0, false)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0, 0)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0, 0.0)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0, QString(\"\"))");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0, QString())");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(engine, false)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(engine, 0)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(engine, 0.0)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(engine, QString())");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"[]\")");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"new Array()\")");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"false\")");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"0\")");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"0.0\")");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"''\")");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"'0'\")");
- equals.insert("engine->evaluate(\"0\") <=> engine->newArray()");
- equals.insert("engine->evaluate(\"0\") <=> engine->newVariant(QVariant(false))");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(false)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0.0)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(QString(\"\"))");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(QString())");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(QString(\"0\"))");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0, false)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0, 0)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0, 0.0)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0, QString(\"\"))");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0, QString())");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(engine, false)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(engine, 0)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(engine, 0.0)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(engine, QString())");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"[]\")");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"new Array()\")");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"false\")");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"0\")");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"0.0\")");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"''\")");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"'0'\")");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->newArray()");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->newVariant(QVariant(false))");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(123.0)");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(0, 123.0)");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->evaluate(\"123.0\") <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->evaluate(\"123.0\") <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->evaluate(\"123.0\") <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(6.37e-8)");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, 6.37e-8)");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(-6.37e-8)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, -6.37e-8)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, -6.37e-8)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"-6.37e-8\")");
- equals.insert("engine->evaluate(\"0x43211234\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"0x43211234\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"0x43211234\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"0x43211234\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"0x10000\") <=> QScriptValue(0x10000)");
- equals.insert("engine->evaluate(\"0x10000\") <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->evaluate(\"0x10000\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->evaluate(\"0x10000\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->evaluate(\"0x10001\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"0x10001\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"0x10001\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"0x10001\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"Infinity\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"Infinity\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"Infinity\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"Infinity\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"Infinity\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"Infinity\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"Infinity\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(-qInf())");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(\"-Infinity\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, -qInf())");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, -qInf())");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"-Infinity\")");
- equals.insert("engine->evaluate(\"'ciao'\") <=> QScriptValue(\"ciao\")");
- equals.insert("engine->evaluate(\"'ciao'\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"'ciao'\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->evaluate(\"'ciao'\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"'ciao'\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->evaluate(\"'ciao'\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(false)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0.0)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(QString(\"\"))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(QString())");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, false)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, 0)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, 0.0)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, QString(\"\"))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, QString())");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, false)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, 0)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, 0.0)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, QString())");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"[]\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"new Array()\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"false\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"0\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"0.0\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"''\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->newArray()");
- equals.insert("engine->evaluate(\"''\") <=> engine->newVariant(QVariant(false))");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(false)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0.0)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(QString(\"0\"))");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0, false)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0, 0)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0, 0.0)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(engine, false)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(engine, 0)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(engine, 0.0)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"false\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"0\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"0.0\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"'0'\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->newVariant(QVariant(false))");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(123.0)");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(0, 123.0)");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"'12.4'\")");
- equals.insert("engine->nullValue() <=> QScriptValue(QScriptValue::UndefinedValue)");
- equals.insert("engine->nullValue() <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("engine->nullValue() <=> QScriptValue(0, QScriptValue::UndefinedValue)");
- equals.insert("engine->nullValue() <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("engine->nullValue() <=> QScriptValue(engine, QScriptValue::UndefinedValue)");
- equals.insert("engine->nullValue() <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("engine->nullValue() <=> engine->evaluate(\"{}\")");
- equals.insert("engine->nullValue() <=> engine->evaluate(\"undefined\")");
- equals.insert("engine->nullValue() <=> engine->evaluate(\"null\")");
- equals.insert("engine->nullValue() <=> engine->nullValue()");
- equals.insert("engine->nullValue() <=> engine->undefinedValue()");
- equals.insert("engine->nullValue() <=> engine->newQObject(0)");
- equals.insert("engine->undefinedValue() <=> QScriptValue(QScriptValue::UndefinedValue)");
- equals.insert("engine->undefinedValue() <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("engine->undefinedValue() <=> QScriptValue(0, QScriptValue::UndefinedValue)");
- equals.insert("engine->undefinedValue() <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("engine->undefinedValue() <=> QScriptValue(engine, QScriptValue::UndefinedValue)");
- equals.insert("engine->undefinedValue() <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("engine->undefinedValue() <=> engine->evaluate(\"{}\")");
- equals.insert("engine->undefinedValue() <=> engine->evaluate(\"undefined\")");
- equals.insert("engine->undefinedValue() <=> engine->evaluate(\"null\")");
- equals.insert("engine->undefinedValue() <=> engine->nullValue()");
- equals.insert("engine->undefinedValue() <=> engine->undefinedValue()");
- equals.insert("engine->undefinedValue() <=> engine->newQObject(0)");
- equals.insert("engine->newObject() <=> engine->newObject()");
- equals.insert("engine->newArray() <=> QScriptValue(false)");
- equals.insert("engine->newArray() <=> QScriptValue(0)");
- equals.insert("engine->newArray() <=> QScriptValue(0.0)");
- equals.insert("engine->newArray() <=> QScriptValue(QString(\"\"))");
- equals.insert("engine->newArray() <=> QScriptValue(QString())");
- equals.insert("engine->newArray() <=> QScriptValue(0, false)");
- equals.insert("engine->newArray() <=> QScriptValue(0, 0)");
- equals.insert("engine->newArray() <=> QScriptValue(0, 0.0)");
- equals.insert("engine->newArray() <=> QScriptValue(0, QString(\"\"))");
- equals.insert("engine->newArray() <=> QScriptValue(0, QString())");
- equals.insert("engine->newArray() <=> QScriptValue(engine, false)");
- equals.insert("engine->newArray() <=> QScriptValue(engine, 0)");
- equals.insert("engine->newArray() <=> QScriptValue(engine, 0.0)");
- equals.insert("engine->newArray() <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("engine->newArray() <=> QScriptValue(engine, QString())");
- equals.insert("engine->newArray() <=> engine->evaluate(\"false\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"0\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"0.0\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"''\")");
- equals.insert("engine->newArray() <=> engine->newArray()");
- equals.insert("engine->newArray(10) <=> engine->newArray(10)");
- equals.insert("engine->newDate(QDateTime()) <=> engine->newDate(QDateTime())");
- equals.insert("engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("engine->newVariant(QVariant()) <=> engine->newVariant(QVariant())");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(123.0)");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(0, 123.0)");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->newVariant(QVariant(123)) <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->newVariant(QVariant(123)) <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->newVariant(QVariant(123)) <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(false)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0.0)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(QString(\"\"))");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(QString())");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(QString(\"0\"))");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0, false)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0, 0)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0, 0.0)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0, QString())");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(engine, false)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(engine, 0)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(engine, 0.0)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(engine, QString())");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("engine->newVariant(QVariant(false)) <=> engine->evaluate(\"false\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> engine->evaluate(\"0\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> engine->evaluate(\"0.0\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> engine->evaluate(\"''\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> engine->evaluate(\"'0'\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> engine->newVariant(QVariant(false))");
- equals.insert("engine->newQObject(0) <=> QScriptValue(QScriptValue::UndefinedValue)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(0, QScriptValue::UndefinedValue)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(engine, QScriptValue::UndefinedValue)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("engine->newQObject(0) <=> engine->evaluate(\"{}\")");
- equals.insert("engine->newQObject(0) <=> engine->evaluate(\"undefined\")");
- equals.insert("engine->newQObject(0) <=> engine->evaluate(\"null\")");
- equals.insert("engine->newQObject(0) <=> engine->nullValue()");
- equals.insert("engine->newQObject(0) <=> engine->undefinedValue()");
- equals.insert("engine->newQObject(0) <=> engine->newQObject(0)");
- equals.insert("engine->newQObject(engine) <=> engine->newQObject(engine)");
- }
- QHash<QString, QScriptValue>::const_iterator it;
- for (it = m_values.constBegin(); it != m_values.constEnd(); ++it) {
- QString tag = QString::fromLatin1("%20 <=> %21").arg(expr).arg(it.key());
- newRow(tag.toLatin1()) << it.value() << equals.contains(tag);
- }
-}
-
-void tst_QScriptValue::equals_test(const char *, const QScriptValue& value)
-{
- QFETCH(QScriptValue, other);
- QFETCH(bool, expected);
- QCOMPARE(value.equals(other), expected);
-}
-
-DEFINE_TEST_FUNCTION(equals)
-
-
-void tst_QScriptValue::strictlyEquals_initData()
-{
- QTest::addColumn<QScriptValue>("other");
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::strictlyEquals_makeData(const char *expr)
-{
- static QSet<QString> equals;
- if (equals.isEmpty()) {
- equals.insert("QScriptValue() <=> QScriptValue()");
- equals.insert("QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(QScriptValue::UndefinedValue) <=> engine->evaluate(\"{}\")");
- equals.insert("QScriptValue(QScriptValue::UndefinedValue) <=> engine->evaluate(\"undefined\")");
- equals.insert("QScriptValue(QScriptValue::UndefinedValue) <=> engine->undefinedValue()");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"null\")");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->nullValue()");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->newQObject(0)");
- equals.insert("QScriptValue(true) <=> QScriptValue(true)");
- equals.insert("QScriptValue(true) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(true) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(true) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(false) <=> QScriptValue(false)");
- equals.insert("QScriptValue(false) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(false) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(false) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(int(122)) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(uint(124)) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(uint(124)) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(uint(124)) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(uint(124)) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0) <=> QScriptValue(0)");
- equals.insert("QScriptValue(0) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(0) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(0) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(0) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(0) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(123.0) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(6.37e-8) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(-6.37e-8)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0, -6.37e-8)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(engine, -6.37e-8)");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"-6.37e-8\")");
- equals.insert("QScriptValue(0x43211234) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0x43211234) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0x43211234) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0x43211234) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0x10000) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0x10000) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0x10000) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0x10000) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0x10001) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0x10001) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0x10001) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0x10001) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(qInf()) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(qInf()) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(qInf()) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(qInf()) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(-qInf())");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, -qInf())");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, -qInf())");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"-Infinity\")");
- equals.insert("QScriptValue(\"NaN\") <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(\"NaN\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(\"NaN\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(\"Infinity\") <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(\"Infinity\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(\"Infinity\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(\"-Infinity\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("QScriptValue(\"ciao\") <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(\"ciao\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(\"ciao\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(\"ciao\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(\"ciao\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(\"ciao\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(\"ciao\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->evaluate(\"{}\")");
- equals.insert("QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->evaluate(\"undefined\")");
- equals.insert("QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->undefinedValue()");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"null\")");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->nullValue()");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->newQObject(0)");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(true)");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(0, true) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(false)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(0, false) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(0, int(122)) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(0, uint(124)) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(0, uint(124)) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(0, uint(124)) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(0, uint(124)) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(0, 123.0) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(-6.37e-8)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0, -6.37e-8)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, -6.37e-8)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"-6.37e-8\")");
- equals.insert("QScriptValue(0, 0x43211234) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0, 0x43211234) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0, 0x43211234) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0, 0x43211234) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0, 0x10000) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0, 0x10000) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0, 0x10000) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0, 0x10000) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0, 0x10001) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0, 0x10001) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0, 0x10001) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0, 0x10001) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0, qInf()) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, qInf()) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, qInf()) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, qInf()) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(-qInf())");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, -qInf())");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, -qInf())");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"-Infinity\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(\"-Infinity\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("QScriptValue(0, \"ciao\") <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(0, \"ciao\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, \"ciao\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(0, \"ciao\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, \"ciao\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(0, \"ciao\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, \"ciao\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)");
- equals.insert("QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->evaluate(\"{}\")");
- equals.insert("QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->evaluate(\"undefined\")");
- equals.insert("QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->undefinedValue()");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"null\")");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->nullValue()");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->newQObject(0)");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(true)");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(engine, true) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(false)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(engine, false) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(engine, int(122)) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(engine, uint(124)) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(engine, uint(124)) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(engine, uint(124)) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(engine, uint(124)) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(engine, 123.0) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(-6.37e-8)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, -6.37e-8)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, -6.37e-8)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"-6.37e-8\")");
- equals.insert("QScriptValue(engine, 0x43211234) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(engine, 0x43211234) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(engine, 0x43211234) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(engine, 0x43211234) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(engine, 0x10000) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(engine, 0x10000) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(engine, 0x10000) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(engine, 0x10000) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(engine, 0x10001) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(engine, 0x10001) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(engine, 0x10001) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(engine, 0x10001) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(engine, qInf()) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, qInf()) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, qInf()) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, qInf()) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(-qInf())");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, -qInf())");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, -qInf())");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"-Infinity\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(\"-Infinity\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("QScriptValue(engine, \"ciao\") <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(engine, \"ciao\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, \"ciao\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(engine, \"ciao\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, \"ciao\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(engine, \"ciao\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"[]\")");
- equals.insert("engine->evaluate(\"{}\") <=> QScriptValue(QScriptValue::UndefinedValue)");
- equals.insert("engine->evaluate(\"{}\") <=> QScriptValue(0, QScriptValue::UndefinedValue)");
- equals.insert("engine->evaluate(\"{}\") <=> QScriptValue(engine, QScriptValue::UndefinedValue)");
- equals.insert("engine->evaluate(\"{}\") <=> engine->evaluate(\"{}\")");
- equals.insert("engine->evaluate(\"{}\") <=> engine->evaluate(\"undefined\")");
- equals.insert("engine->evaluate(\"{}\") <=> engine->undefinedValue()");
- equals.insert("engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("engine->evaluate(\"Date.prototype\") <=> engine->evaluate(\"Date.prototype\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("engine->evaluate(\"Object\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"Array\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"Number\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"Function\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"(function() { return 1; })\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"/foo/\")");
- equals.insert("engine->evaluate(\"new Object()\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"new Array()\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> engine->evaluate(\"new Error()\")");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("engine->evaluate(\"Undefined\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("engine->evaluate(\"Null\") <=> engine->evaluate(\"Null\")");
- equals.insert("engine->evaluate(\"True\") <=> engine->evaluate(\"True\")");
- equals.insert("engine->evaluate(\"False\") <=> engine->evaluate(\"False\")");
- equals.insert("engine->evaluate(\"undefined\") <=> QScriptValue(QScriptValue::UndefinedValue)");
- equals.insert("engine->evaluate(\"undefined\") <=> QScriptValue(0, QScriptValue::UndefinedValue)");
- equals.insert("engine->evaluate(\"undefined\") <=> QScriptValue(engine, QScriptValue::UndefinedValue)");
- equals.insert("engine->evaluate(\"undefined\") <=> engine->evaluate(\"{}\")");
- equals.insert("engine->evaluate(\"undefined\") <=> engine->evaluate(\"undefined\")");
- equals.insert("engine->evaluate(\"undefined\") <=> engine->undefinedValue()");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("engine->evaluate(\"null\") <=> engine->evaluate(\"null\")");
- equals.insert("engine->evaluate(\"null\") <=> engine->nullValue()");
- equals.insert("engine->evaluate(\"null\") <=> engine->newQObject(0)");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(true)");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(0, true)");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(engine, true)");
- equals.insert("engine->evaluate(\"true\") <=> engine->evaluate(\"true\")");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(false)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0, false)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(engine, false)");
- equals.insert("engine->evaluate(\"false\") <=> engine->evaluate(\"false\")");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(int(122))");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(0, int(122))");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(engine, int(122))");
- equals.insert("engine->evaluate(\"122\") <=> engine->evaluate(\"122\")");
- equals.insert("engine->evaluate(\"124\") <=> QScriptValue(uint(124))");
- equals.insert("engine->evaluate(\"124\") <=> QScriptValue(0, uint(124))");
- equals.insert("engine->evaluate(\"124\") <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->evaluate(\"124\") <=> engine->evaluate(\"124\")");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0.0)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0, 0)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0, 0.0)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(engine, 0)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(engine, 0.0)");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"0\")");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"0.0\")");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0.0)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0, 0)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0, 0.0)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(engine, 0)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(engine, 0.0)");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"0\")");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"0.0\")");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(123.0)");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(0, 123.0)");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->evaluate(\"123.0\") <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(6.37e-8)");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, 6.37e-8)");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(-6.37e-8)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, -6.37e-8)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, -6.37e-8)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"-6.37e-8\")");
- equals.insert("engine->evaluate(\"0x43211234\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"0x43211234\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"0x43211234\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"0x43211234\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"0x10000\") <=> QScriptValue(0x10000)");
- equals.insert("engine->evaluate(\"0x10000\") <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->evaluate(\"0x10000\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->evaluate(\"0x10000\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->evaluate(\"0x10001\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"0x10001\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"0x10001\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"0x10001\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"Infinity\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"Infinity\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"Infinity\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"Infinity\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(-qInf())");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, -qInf())");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, -qInf())");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"-Infinity\")");
- equals.insert("engine->evaluate(\"'ciao'\") <=> QScriptValue(\"ciao\")");
- equals.insert("engine->evaluate(\"'ciao'\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"'ciao'\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->evaluate(\"'ciao'\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"'ciao'\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->evaluate(\"'ciao'\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(QString(\"\"))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(QString())");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, QString(\"\"))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, QString())");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, QString())");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"''\")");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(QString(\"0\"))");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"'0'\")");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"'12.4'\")");
- equals.insert("engine->nullValue() <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("engine->nullValue() <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("engine->nullValue() <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("engine->nullValue() <=> engine->evaluate(\"null\")");
- equals.insert("engine->nullValue() <=> engine->nullValue()");
- equals.insert("engine->nullValue() <=> engine->newQObject(0)");
- equals.insert("engine->undefinedValue() <=> QScriptValue(QScriptValue::UndefinedValue)");
- equals.insert("engine->undefinedValue() <=> QScriptValue(0, QScriptValue::UndefinedValue)");
- equals.insert("engine->undefinedValue() <=> QScriptValue(engine, QScriptValue::UndefinedValue)");
- equals.insert("engine->undefinedValue() <=> engine->evaluate(\"{}\")");
- equals.insert("engine->undefinedValue() <=> engine->evaluate(\"undefined\")");
- equals.insert("engine->undefinedValue() <=> engine->undefinedValue()");
- equals.insert("engine->newObject() <=> engine->newObject()");
- equals.insert("engine->newArray() <=> engine->newArray()");
- equals.insert("engine->newArray(10) <=> engine->newArray(10)");
- equals.insert("engine->newDate(QDateTime()) <=> engine->newDate(QDateTime())");
- equals.insert("engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("engine->newVariant(QVariant()) <=> engine->newVariant(QVariant())");
- equals.insert("engine->newVariant(QVariant(123)) <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->newVariant(QVariant(false)) <=> engine->newVariant(QVariant(false))");
- equals.insert("engine->newQObject(0) <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("engine->newQObject(0) <=> engine->evaluate(\"null\")");
- equals.insert("engine->newQObject(0) <=> engine->nullValue()");
- equals.insert("engine->newQObject(0) <=> engine->newQObject(0)");
- equals.insert("engine->newQObject(engine) <=> engine->newQObject(engine)");
- }
- QHash<QString, QScriptValue>::const_iterator it;
- for (it = m_values.constBegin(); it != m_values.constEnd(); ++it) {
- QString tag = QString::fromLatin1("%20 <=> %21").arg(expr).arg(it.key());
- newRow(tag.toLatin1()) << it.value() << equals.contains(tag);
- }
-}
-
-void tst_QScriptValue::strictlyEquals_test(const char *, const QScriptValue& value)
-{
- QFETCH(QScriptValue, other);
- QFETCH(bool, expected);
- QCOMPARE(value.strictlyEquals(other), expected);
-}
-
-DEFINE_TEST_FUNCTION(strictlyEquals)
-
-
-void tst_QScriptValue::lessThan_initData()
-{
- QTest::addColumn<QScriptValue>("other");
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::lessThan_makeData(const char *expr)
-{
- static QSet<QString> equals;
- if (equals.isEmpty()) {
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(true)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(QScriptValue::NullValue) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(true) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(true) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(true) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(true) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(true) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(true) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(true) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(true) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(true) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(true) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(true) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(true) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(true) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(true) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(true) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(true) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(true) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(true) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(true) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(true) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(true) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(true) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(true) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(true) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(true) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(true) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(true) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(true) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(true) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(true) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(true) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(true) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(true) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(true) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(true) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(true) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(true) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(true) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(true) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(true) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(true) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(false) <=> QScriptValue(true)");
- equals.insert("QScriptValue(false) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(false) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(false) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(false) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(false) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(false) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(false) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(false) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(false) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(false) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(false) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(false) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(false) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(false) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(false) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(false) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(false) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(false) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(false) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(false) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(false) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(false) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(false) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(false) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(false) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(false) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(false) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(false) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(false) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(false) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(false) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(false) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(false) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(false) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(false) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(false) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(false) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(false) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(false) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(false) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(false) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(false) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(false) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(false) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(false) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(false) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(false) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(false) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(int(122)) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(int(122)) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(int(122)) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(int(122)) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(int(122)) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(int(122)) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(int(122)) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(int(122)) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(int(122)) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(uint(124)) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(uint(124)) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(uint(124)) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(uint(124)) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(uint(124)) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(uint(124)) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(uint(124)) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(uint(124)) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(uint(124)) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(uint(124)) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(uint(124)) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(uint(124)) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(uint(124)) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(uint(124)) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(uint(124)) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(uint(124)) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(uint(124)) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(uint(124)) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(uint(124)) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0) <=> QScriptValue(true)");
- equals.insert("QScriptValue(0) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(0) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(0) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(0) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(0) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(0) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(0) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(0) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(0) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(0) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(0) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(0) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(0) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(0) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(0) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(0) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(0) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(0) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(0) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(0) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(0) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(0) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(true)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(0.0) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(0.0) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(0.0) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(123.0) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(123.0) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(123.0) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(123.0) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(123.0) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(123.0) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(true)");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(6.37e-8) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(6.37e-8) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(6.37e-8) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(6.37e-8) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(6.37e-8) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(6.37e-8) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(6.37e-8) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(6.37e-8) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(6.37e-8) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(6.37e-8) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(6.37e-8) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(6.37e-8) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(6.37e-8) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(true)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(false)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(-6.37e-8) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"[]\")");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"new Array()\")");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"null\")");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->nullValue()");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->newArray()");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(-6.37e-8) <=> engine->newQObject(0)");
- equals.insert("QScriptValue(0x43211234) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0x43211234) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0x43211234) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0x43211234) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0x43211234) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0x43211234) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0x43211234) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0x10000) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0x10000) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0x10000) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0x10000) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0x10000) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0x10000) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0x10000) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0x10000) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0x10000) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0x10000) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0x10000) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0x10000) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0x10000) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0x10000) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0x10000) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0x10001) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0x10001) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0x10001) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0x10001) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0x10001) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0x10001) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0x10001) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0x10001) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0x10001) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0x10001) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0x10001) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(true)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(false)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(-6.37e-8)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, -6.37e-8)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, -6.37e-8)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(-qInf()) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"[]\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"new Array()\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"null\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"-6.37e-8\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(-qInf()) <=> engine->nullValue()");
- equals.insert("QScriptValue(-qInf()) <=> engine->newArray()");
- equals.insert("QScriptValue(-qInf()) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(-qInf()) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(-qInf()) <=> engine->newQObject(0)");
- equals.insert("QScriptValue(\"NaN\") <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(\"NaN\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(\"NaN\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(\"NaN\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(\"NaN\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(\"NaN\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(\"NaN\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(\"NaN\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(\"NaN\") <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(\"NaN\") <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(\"NaN\") <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(\"NaN\") <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(\"NaN\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(\"NaN\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(\"NaN\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(\"NaN\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(\"NaN\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(\"NaN\") <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(\"NaN\") <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(\"NaN\") <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(\"NaN\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(\"NaN\") <=> engine->newObject()");
- equals.insert("QScriptValue(\"NaN\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(\"NaN\") <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(\"Infinity\") <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(\"Infinity\") <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(\"Infinity\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(\"Infinity\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(\"Infinity\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(\"Infinity\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(\"Infinity\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(\"Infinity\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(\"Infinity\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(\"Infinity\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(\"Infinity\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(\"Infinity\") <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(\"Infinity\") <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(\"Infinity\") <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(\"Infinity\") <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(\"Infinity\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(\"Infinity\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(\"Infinity\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(\"Infinity\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(\"Infinity\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(\"Infinity\") <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(\"Infinity\") <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(\"Infinity\") <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(\"Infinity\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(\"Infinity\") <=> engine->newObject()");
- equals.insert("QScriptValue(\"Infinity\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(\"Infinity\") <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(true)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(false)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(-6.37e-8)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, -6.37e-8)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, -6.37e-8)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(\"-Infinity\") <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"/foo/\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"new Error()\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"null\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"-6.37e-8\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->nullValue()");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->newObject()");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->newQObject(0)");
- equals.insert("QScriptValue(\"-Infinity\") <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(\"ciao\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(\"ciao\") <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(\"ciao\") <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(\"ciao\") <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(\"ciao\") <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(\"ciao\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(\"ciao\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(\"ciao\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(true)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(\"-Infinity\")");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(QString(\"\")) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"/foo/\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"new Error()\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->newObject()");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->newArray(10)");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(QString(\"\")) <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(true)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(\"-Infinity\")");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(QString()) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"/foo/\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"new Error()\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(QString()) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(QString()) <=> engine->newObject()");
- equals.insert("QScriptValue(QString()) <=> engine->newArray(10)");
- equals.insert("QScriptValue(QString()) <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(QString()) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(QString()) <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(true)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(QString(\"0\")) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"new Error()\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->newObject()");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(QString(\"0\")) <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"new Error()\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->newObject()");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(QString(\"123\")) <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"new Error()\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->newObject()");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(QString(\"12.4\")) <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(true)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(0, QScriptValue::NullValue) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(0, true) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(0, true) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(0, true) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(0, true) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0, true) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(0, true) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0, true) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0, true) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0, true) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, true) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(0, true) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(0, true) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(true)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(0, false) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(0, false) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(0, false) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(0, false) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(0, false) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0, false) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(0, false) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(0, false) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0, false) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0, false) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0, false) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, false) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(0, false) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(0, false) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, int(122)) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(0, int(122)) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0, int(122)) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(0, int(122)) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0, int(122)) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0, int(122)) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0, int(122)) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, int(122)) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(0, int(122)) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(0, uint(124)) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0, uint(124)) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0, uint(124)) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0, uint(124)) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, uint(124)) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, uint(124)) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0, uint(124)) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0, uint(124)) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0, uint(124)) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, uint(124)) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, uint(124)) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0, uint(124)) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0, uint(124)) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0, uint(124)) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, uint(124)) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, uint(124)) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0, uint(124)) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0, uint(124)) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0, uint(124)) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(true)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(0, 0) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(0, 0) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(0, 0) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(true)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(0, 0.0) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(0, 0.0) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(0, 0.0) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, 123.0) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, 123.0) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0, 123.0) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0, 123.0) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0, 123.0) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0, 123.0) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(true)");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(0, 6.37e-8) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(true)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(false)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"[]\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"new Array()\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"null\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->nullValue()");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->newArray()");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(0, -6.37e-8) <=> engine->newQObject(0)");
- equals.insert("QScriptValue(0, 0x43211234) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, 0x43211234) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, 0x43211234) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, 0x43211234) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, 0x43211234) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, 0x43211234) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, 0x43211234) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, 0x10000) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0, 0x10000) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0, 0x10000) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, 0x10000) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, 0x10000) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0, 0x10000) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0, 0x10000) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, 0x10000) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, 0x10000) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0, 0x10000) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0, 0x10000) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, 0x10000) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, 0x10000) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0, 0x10000) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0, 0x10000) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, 0x10001) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0, 0x10001) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, 0x10001) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, 0x10001) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0, 0x10001) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, 0x10001) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, 0x10001) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0, 0x10001) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, 0x10001) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, 0x10001) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0, 0x10001) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(true)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(false)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(-6.37e-8)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, -6.37e-8)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, -6.37e-8)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(0, -qInf()) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"[]\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"new Array()\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"null\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"-6.37e-8\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->nullValue()");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->newArray()");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(0, -qInf()) <=> engine->newQObject(0)");
- equals.insert("QScriptValue(0, \"NaN\") <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, \"NaN\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, \"NaN\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, \"NaN\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(0, \"NaN\") <=> engine->newObject()");
- equals.insert("QScriptValue(0, \"NaN\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(0, \"NaN\") <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(0, \"Infinity\") <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, \"Infinity\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, \"Infinity\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(0, \"Infinity\") <=> engine->newObject()");
- equals.insert("QScriptValue(0, \"Infinity\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(0, \"Infinity\") <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(true)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(false)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(-6.37e-8)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, -6.37e-8)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, -6.37e-8)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"/foo/\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"new Error()\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"null\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"-6.37e-8\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->nullValue()");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->newObject()");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->newQObject(0)");
- equals.insert("QScriptValue(0, \"-Infinity\") <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(0, \"ciao\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(0, \"ciao\") <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(0, \"ciao\") <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(0, \"ciao\") <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(0, \"ciao\") <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(0, \"ciao\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(0, \"ciao\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(0, \"ciao\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(true)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(\"-Infinity\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"/foo/\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"new Error()\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->newObject()");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->newArray(10)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(0, QString(\"\")) <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(true)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(\"-Infinity\")");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(0, QString()) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"/foo/\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"new Error()\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(0, QString()) <=> engine->newObject()");
- equals.insert("QScriptValue(0, QString()) <=> engine->newArray(10)");
- equals.insert("QScriptValue(0, QString()) <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(0, QString()) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(0, QString()) <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(true)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"new Error()\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->newObject()");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(0, QString(\"0\")) <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"new Error()\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->newObject()");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(0, QString(\"123\")) <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"new Error()\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->newObject()");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(0, QString(\"12.3\")) <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(true)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(engine, QScriptValue::NullValue) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(engine, true) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(engine, true) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(engine, true) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(engine, true) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(engine, true) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(engine, true) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(engine, true) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(engine, true) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(engine, true) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, true) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(engine, true) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(engine, true) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(true)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(engine, false) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(engine, false) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(engine, false) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(engine, false) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(engine, false) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(engine, false) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(engine, false) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(engine, false) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(engine, false) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(engine, false) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(engine, false) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, false) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(engine, false) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(engine, false) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, int(122)) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(engine, int(122)) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(engine, int(122)) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(engine, int(122)) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(engine, int(122)) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(engine, int(122)) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(engine, int(122)) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, int(122)) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(engine, int(122)) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(engine, uint(124)) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(engine, uint(124)) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(engine, uint(124)) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(engine, uint(124)) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, uint(124)) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, uint(124)) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(engine, uint(124)) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(engine, uint(124)) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(engine, uint(124)) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, uint(124)) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, uint(124)) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(engine, uint(124)) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(engine, uint(124)) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(engine, uint(124)) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, uint(124)) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, uint(124)) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(engine, uint(124)) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(engine, uint(124)) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(engine, uint(124)) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(true)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(engine, 0) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(engine, 0) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(engine, 0) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(true)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(engine, 0.0) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(engine, 0.0) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, 123.0) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, 123.0) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(engine, 123.0) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(engine, 123.0) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(engine, 123.0) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(engine, 123.0) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(true)");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(engine, 6.37e-8) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(true)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(false)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"[]\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"new Array()\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"null\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->nullValue()");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->newArray()");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(engine, -6.37e-8) <=> engine->newQObject(0)");
- equals.insert("QScriptValue(engine, 0x43211234) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, 0x43211234) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, 0x43211234) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, 0x43211234) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, 0x43211234) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, 0x43211234) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, 0x43211234) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, 0x10000) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(engine, 0x10000) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(engine, 0x10000) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, 0x10000) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, 0x10000) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(engine, 0x10000) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(engine, 0x10000) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, 0x10000) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, 0x10000) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(engine, 0x10000) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(engine, 0x10000) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, 0x10000) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, 0x10000) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(engine, 0x10000) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(engine, 0x10000) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, 0x10001) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(engine, 0x10001) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, 0x10001) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, 0x10001) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(engine, 0x10001) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, 0x10001) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, 0x10001) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(engine, 0x10001) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, 0x10001) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, 0x10001) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(engine, 0x10001) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(true)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(false)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(-6.37e-8)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(QString(\"\"))");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(QString())");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, -6.37e-8)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, QString(\"\"))");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, QString())");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, -6.37e-8)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, QString())");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(engine, -qInf()) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"[]\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"new Array()\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"null\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"-6.37e-8\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"''\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->nullValue()");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->newArray()");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(engine, -qInf()) <=> engine->newQObject(0)");
- equals.insert("QScriptValue(engine, \"NaN\") <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, \"NaN\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, \"NaN\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(engine, \"NaN\") <=> engine->newObject()");
- equals.insert("QScriptValue(engine, \"NaN\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(engine, \"NaN\") <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> engine->newObject()");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(engine, \"Infinity\") <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(true)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(false)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0.0)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(-6.37e-8)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, false)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, 0)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, 0.0)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, -6.37e-8)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, false)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, 0)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, 0.0)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, -6.37e-8)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"/foo/\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"new Error()\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"null\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"false\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"0\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"0.0\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"-6.37e-8\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->nullValue()");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->newObject()");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->newVariant(QVariant(false))");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->newQObject(0)");
- equals.insert("QScriptValue(engine, \"-Infinity\") <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(true)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(\"-Infinity\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"/foo/\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"new Error()\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->newObject()");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->newArray(10)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(engine, QString(\"\")) <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(true)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(\"-Infinity\")");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(QString(\"0\"))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(engine, QString()) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"/foo/\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"new Error()\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"'0'\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(engine, QString()) <=> engine->newObject()");
- equals.insert("QScriptValue(engine, QString()) <=> engine->newArray(10)");
- equals.insert("QScriptValue(engine, QString()) <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(engine, QString()) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(engine, QString()) <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(true)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(6.37e-8)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, true)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, true)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"new Error()\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"true\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->newObject()");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(engine, QString(\"0\")) <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"new Error()\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->newObject()");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(engine, QString(\"123\")) <=> engine->newQObject(engine)");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(int(122))");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(uint(124))");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(123.0)");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0x43211234)");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0x10000)");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0x10001)");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(qInf())");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(\"NaN\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(\"Infinity\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(\"ciao\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(QString(\"123\"))");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, int(122))");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, uint(124))");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, 123.0)");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, 0x43211234)");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, 0x10000)");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, 0x10001)");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, qInf())");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, \"NaN\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, \"ciao\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, int(122))");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, uint(124))");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, 123.0)");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, 0x10000)");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, 0x10001)");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, qInf())");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, \"NaN\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"Object\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"Array\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"Number\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"Function\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"new Object()\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"new Error()\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"Undefined\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"Null\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"True\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"False\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"122\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"124\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"123.0\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"0x10000\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"0x10001\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"Infinity\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"'123'\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->newObject()");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->newVariant(QVariant(123))");
- equals.insert("QScriptValue(engine, QString(\"1.23\")) <=> engine->newQObject(engine)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(true)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(int(122))");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(uint(124))");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(123.0)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(6.37e-8)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0x10000)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(\"NaN\")");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(\"-Infinity\")");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(\"ciao\")");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(QString(\"0\"))");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, true)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, int(122))");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, uint(124))");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, 123.0)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, 6.37e-8)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, true)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, int(122))");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->evaluate(\"[]\") <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"/foo/\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"new Error()\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"Null\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"True\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"False\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"true\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"122\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"124\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"'0'\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"'12.4'\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->newObject()");
- equals.insert("engine->evaluate(\"[]\") <=> engine->newArray(10)");
- equals.insert("engine->evaluate(\"[]\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("engine->evaluate(\"[]\") <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->evaluate(\"[]\") <=> engine->newQObject(engine)");
- equals.insert("engine->evaluate(\"Object.prototype\") <=> QScriptValue(\"ciao\")");
- equals.insert("engine->evaluate(\"Object.prototype\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"Object.prototype\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->evaluate(\"Object.prototype\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"Object.prototype\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->evaluate(\"Object.prototype\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->evaluate(\"Object.prototype\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(true)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(int(122))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(uint(124))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(123.0)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(6.37e-8)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0x10000)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(\"NaN\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(\"-Infinity\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(\"ciao\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(QString(\"0\"))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, true)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, int(122))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, uint(124))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, 123.0)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, 6.37e-8)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, true)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, int(122))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"/foo/\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"new Error()\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Null\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"True\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"False\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"true\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"122\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"124\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"'0'\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"'12.4'\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->newObject()");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->newArray(10)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->newQObject(engine)");
- equals.insert("engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> QScriptValue(\"NaN\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> QScriptValue(\"ciao\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Null\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"True\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"False\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> engine->newObject()");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> engine->newQObject(engine)");
- equals.insert("engine->evaluate(\"Array\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"Array\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"Array\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"Number\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"Function\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"Function\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"(function() { return 1; })\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"(function() { return 1; })\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"(function() { return 1; })\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"(function() { return 1; })\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"(function() { return 1; })\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> QScriptValue(\"NaN\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> QScriptValue(\"ciao\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"/foo/\") <=> QScriptValue(QString(\"0\"))");
- equals.insert("engine->evaluate(\"/foo/\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->evaluate(\"/foo/\") <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("engine->evaluate(\"/foo/\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"/foo/\") <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("engine->evaluate(\"/foo/\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->evaluate(\"/foo/\") <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("engine->evaluate(\"/foo/\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"/foo/\") <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("engine->evaluate(\"/foo/\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->evaluate(\"/foo/\") <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"new Error()\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"Null\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"True\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"False\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"'0'\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"'12.4'\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->newObject()");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->newQObject(engine)");
- equals.insert("engine->evaluate(\"new Object()\") <=> QScriptValue(\"ciao\")");
- equals.insert("engine->evaluate(\"new Object()\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"new Object()\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->evaluate(\"new Object()\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"new Object()\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->evaluate(\"new Object()\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"new Object()\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->evaluate(\"new Object()\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"new Object()\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"new Object()\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"new Object()\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"new Object()\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->evaluate(\"new Object()\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->evaluate(\"new Object()\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"new Object()\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->evaluate(\"new Object()\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(true)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(int(122))");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(uint(124))");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(123.0)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(6.37e-8)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0x10000)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(\"NaN\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(\"-Infinity\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(\"ciao\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(QString(\"0\"))");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, true)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, int(122))");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, uint(124))");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, 123.0)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, 6.37e-8)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, true)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, int(122))");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->evaluate(\"new Array()\") <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"/foo/\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"new Error()\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Null\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"True\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"False\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"true\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"122\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"124\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"'0'\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"'12.4'\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->newObject()");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->newArray(10)");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->newQObject(engine)");
- equals.insert("engine->evaluate(\"new Error()\") <=> QScriptValue(\"NaN\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> QScriptValue(\"ciao\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"new Error()\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"new Error()\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"new Error()\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> engine->evaluate(\"Null\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> engine->evaluate(\"True\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> engine->evaluate(\"False\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> engine->newObject()");
- equals.insert("engine->evaluate(\"new Error()\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("engine->evaluate(\"new Error()\") <=> engine->newQObject(engine)");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(int(122))");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(uint(124))");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(123.0)");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0x10000)");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0, int(122))");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0, uint(124))");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0, 123.0)");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(engine, int(122))");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"122\")");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"124\")");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->evaluate(\"Undefined\") <=> QScriptValue(\"ciao\")");
- equals.insert("engine->evaluate(\"Undefined\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"Undefined\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->evaluate(\"Undefined\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"Undefined\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->evaluate(\"Undefined\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"Undefined\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("engine->evaluate(\"Undefined\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->evaluate(\"Undefined\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"Undefined\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"Undefined\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"Undefined\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"Undefined\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->evaluate(\"Undefined\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->evaluate(\"Undefined\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"Undefined\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("engine->evaluate(\"Undefined\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->evaluate(\"Undefined\") <=> engine->newObject()");
- equals.insert("engine->evaluate(\"Undefined\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("engine->evaluate(\"Null\") <=> QScriptValue(\"ciao\")");
- equals.insert("engine->evaluate(\"Null\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"Null\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->evaluate(\"Null\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"Null\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->evaluate(\"Null\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"Null\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("engine->evaluate(\"Null\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->evaluate(\"Null\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"Null\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"Null\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"Null\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"Null\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->evaluate(\"Null\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->evaluate(\"Null\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"Null\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("engine->evaluate(\"Null\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("engine->evaluate(\"Null\") <=> engine->evaluate(\"True\")");
- equals.insert("engine->evaluate(\"Null\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->evaluate(\"Null\") <=> engine->newObject()");
- equals.insert("engine->evaluate(\"Null\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("engine->evaluate(\"True\") <=> QScriptValue(\"ciao\")");
- equals.insert("engine->evaluate(\"True\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"True\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->evaluate(\"True\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"True\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->evaluate(\"True\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"True\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("engine->evaluate(\"True\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->evaluate(\"True\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"True\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"True\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"True\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"True\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->evaluate(\"True\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->evaluate(\"True\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"True\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("engine->evaluate(\"True\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("engine->evaluate(\"True\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->evaluate(\"True\") <=> engine->newObject()");
- equals.insert("engine->evaluate(\"True\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("engine->evaluate(\"False\") <=> QScriptValue(\"ciao\")");
- equals.insert("engine->evaluate(\"False\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"False\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->evaluate(\"False\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"False\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->evaluate(\"False\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"False\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("engine->evaluate(\"False\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->evaluate(\"False\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"False\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"False\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"False\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"False\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->evaluate(\"False\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->evaluate(\"False\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"False\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("engine->evaluate(\"False\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("engine->evaluate(\"False\") <=> engine->evaluate(\"Null\")");
- equals.insert("engine->evaluate(\"False\") <=> engine->evaluate(\"True\")");
- equals.insert("engine->evaluate(\"False\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->evaluate(\"False\") <=> engine->newObject()");
- equals.insert("engine->evaluate(\"False\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(true)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(int(122))");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(uint(124))");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(123.0)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(6.37e-8)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(0x10000)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(0, true)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(0, int(122))");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(0, uint(124))");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(0, 123.0)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(0, 6.37e-8)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(engine, true)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(engine, int(122))");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->evaluate(\"null\") <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("engine->evaluate(\"null\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("engine->evaluate(\"null\") <=> engine->evaluate(\"true\")");
- equals.insert("engine->evaluate(\"null\") <=> engine->evaluate(\"122\")");
- equals.insert("engine->evaluate(\"null\") <=> engine->evaluate(\"124\")");
- equals.insert("engine->evaluate(\"null\") <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->evaluate(\"null\") <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("engine->evaluate(\"null\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"null\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->evaluate(\"null\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"null\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"null\") <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->evaluate(\"null\") <=> engine->evaluate(\"'12.4'\")");
- equals.insert("engine->evaluate(\"null\") <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(int(122))");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(uint(124))");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(123.0)");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(0x10000)");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(0, int(122))");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(0, uint(124))");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(0, 123.0)");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(engine, int(122))");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->evaluate(\"true\") <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("engine->evaluate(\"true\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("engine->evaluate(\"true\") <=> engine->evaluate(\"122\")");
- equals.insert("engine->evaluate(\"true\") <=> engine->evaluate(\"124\")");
- equals.insert("engine->evaluate(\"true\") <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->evaluate(\"true\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"true\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->evaluate(\"true\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"true\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"true\") <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->evaluate(\"true\") <=> engine->evaluate(\"'12.4'\")");
- equals.insert("engine->evaluate(\"true\") <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(true)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(int(122))");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(uint(124))");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(123.0)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(6.37e-8)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0x10000)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0, true)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0, int(122))");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0, uint(124))");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0, 123.0)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0, 6.37e-8)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(engine, true)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(engine, int(122))");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->evaluate(\"false\") <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("engine->evaluate(\"false\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("engine->evaluate(\"false\") <=> engine->evaluate(\"true\")");
- equals.insert("engine->evaluate(\"false\") <=> engine->evaluate(\"122\")");
- equals.insert("engine->evaluate(\"false\") <=> engine->evaluate(\"124\")");
- equals.insert("engine->evaluate(\"false\") <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->evaluate(\"false\") <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("engine->evaluate(\"false\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"false\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->evaluate(\"false\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"false\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"false\") <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->evaluate(\"false\") <=> engine->evaluate(\"'12.4'\")");
- equals.insert("engine->evaluate(\"false\") <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(uint(124))");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(123.0)");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(0x10000)");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(0, uint(124))");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(0, 123.0)");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"122\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->evaluate(\"122\") <=> engine->evaluate(\"124\")");
- equals.insert("engine->evaluate(\"122\") <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->evaluate(\"122\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"122\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->evaluate(\"122\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"122\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"122\") <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->evaluate(\"122\") <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->evaluate(\"124\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"124\") <=> QScriptValue(0x10000)");
- equals.insert("engine->evaluate(\"124\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"124\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"124\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"124\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"124\") <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->evaluate(\"124\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"124\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"124\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"124\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"124\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->evaluate(\"124\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"124\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"124\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"124\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"124\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->evaluate(\"124\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"124\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(true)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(int(122))");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(uint(124))");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(123.0)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(6.37e-8)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0x10000)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0, true)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0, int(122))");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0, uint(124))");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0, 123.0)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0, 6.37e-8)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(engine, true)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(engine, int(122))");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->evaluate(\"0\") <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"true\")");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"122\")");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"124\")");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->evaluate(\"0\") <=> engine->evaluate(\"'12.4'\")");
- equals.insert("engine->evaluate(\"0\") <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(true)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(int(122))");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(uint(124))");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(123.0)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(6.37e-8)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0x10000)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0, true)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0, int(122))");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0, uint(124))");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0, 123.0)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0, 6.37e-8)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(engine, true)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(engine, int(122))");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->evaluate(\"0.0\") <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"true\")");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"122\")");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"124\")");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->evaluate(\"'12.4'\")");
- equals.insert("engine->evaluate(\"0.0\") <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(uint(124))");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(0x10000)");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(0, uint(124))");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"123.0\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"123.0\") <=> engine->evaluate(\"124\")");
- equals.insert("engine->evaluate(\"123.0\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"123.0\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->evaluate(\"123.0\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"123.0\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(true)");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(int(122))");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(uint(124))");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(123.0)");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(0x10000)");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, true)");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, int(122))");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, uint(124))");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, 123.0)");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, true)");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, int(122))");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"true\")");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"122\")");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"124\")");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"'12.4'\")");
- equals.insert("engine->evaluate(\"6.37e-8\") <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(true)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(false)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(int(122))");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(uint(124))");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0.0)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(123.0)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(6.37e-8)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0x10000)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(QString(\"\"))");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(QString())");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(QString(\"0\"))");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, true)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, false)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, int(122))");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, uint(124))");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, 0)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, 0.0)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, 123.0)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, 6.37e-8)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, QString(\"\"))");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, QString())");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, true)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, false)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, int(122))");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, 0)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, 0.0)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, QString())");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"[]\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"new Array()\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"null\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"true\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"false\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"122\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"124\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"0\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"0.0\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"''\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"'0'\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"'12.4'\")");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->nullValue()");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->newArray()");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->newVariant(QVariant(false))");
- equals.insert("engine->evaluate(\"-6.37e-8\") <=> engine->newQObject(0)");
- equals.insert("engine->evaluate(\"0x43211234\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"0x43211234\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"0x43211234\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"0x43211234\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"0x43211234\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"0x43211234\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"0x43211234\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"0x10000\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"0x10000\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"0x10000\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"0x10000\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"0x10000\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"0x10000\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"0x10000\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"0x10000\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"0x10000\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"0x10000\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"0x10000\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"0x10000\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"0x10000\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"0x10000\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"0x10000\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"0x10001\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"0x10001\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"0x10001\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"0x10001\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"0x10001\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"0x10001\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"0x10001\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"0x10001\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"0x10001\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"0x10001\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"0x10001\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(QScriptValue::NullValue)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(true)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(false)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(int(122))");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(uint(124))");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0.0)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(123.0)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(6.37e-8)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(-6.37e-8)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0x10000)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(QString(\"\"))");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(QString())");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(QString(\"0\"))");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, QScriptValue::NullValue)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, true)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, false)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, int(122))");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, uint(124))");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, 0)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, 0.0)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, 123.0)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, 6.37e-8)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, -6.37e-8)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, QString(\"\"))");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, QString())");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, QScriptValue::NullValue)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, true)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, false)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, int(122))");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, 0)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, 0.0)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, -6.37e-8)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, QString(\"\"))");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, QString())");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"[]\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"Array.prototype\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"new Array()\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"null\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"true\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"false\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"122\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"124\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"0\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"0.0\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"-6.37e-8\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"''\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"'0'\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"'12.4'\")");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->nullValue()");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->newArray()");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->newVariant(QVariant(false))");
- equals.insert("engine->evaluate(\"-Infinity\") <=> engine->newQObject(0)");
- equals.insert("engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(true)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(int(122))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(uint(124))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(123.0)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(6.37e-8)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0x10000)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(\"NaN\")");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(\"-Infinity\")");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(\"ciao\")");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(QString(\"0\"))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, true)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, int(122))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, uint(124))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, 123.0)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, 6.37e-8)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, true)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, int(122))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->evaluate(\"''\") <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"/foo/\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"new Error()\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"Null\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"True\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"False\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"true\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"122\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"124\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"'0'\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->evaluate(\"'12.4'\")");
- equals.insert("engine->evaluate(\"''\") <=> engine->newObject()");
- equals.insert("engine->evaluate(\"''\") <=> engine->newArray(10)");
- equals.insert("engine->evaluate(\"''\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("engine->evaluate(\"''\") <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->evaluate(\"''\") <=> engine->newQObject(engine)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(true)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(int(122))");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(uint(124))");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(123.0)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(6.37e-8)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0x10000)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(\"NaN\")");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(\"ciao\")");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0, true)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0, int(122))");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0, uint(124))");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0, 123.0)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0, 6.37e-8)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(engine, true)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(engine, int(122))");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->evaluate(\"'0'\") <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"new Error()\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"Null\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"True\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"False\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"true\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"122\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"124\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->evaluate(\"'12.4'\")");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->newObject()");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->evaluate(\"'0'\") <=> engine->newQObject(engine)");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(uint(124))");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(0x10000)");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(\"NaN\")");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(\"ciao\")");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(0, uint(124))");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->evaluate(\"'123'\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"new Error()\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"Null\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"True\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"False\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"124\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->newObject()");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("engine->evaluate(\"'123'\") <=> engine->newQObject(engine)");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(int(122))");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(uint(124))");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(123.0)");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(0x43211234)");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(0x10000)");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(0x10001)");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(qInf())");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(\"NaN\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(\"ciao\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(0, int(122))");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(0, uint(124))");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(0, 123.0)");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(0, qInf())");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(0, \"NaN\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, int(122))");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, qInf())");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, \"NaN\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"Number\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"new Object()\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"new Error()\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"Undefined\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"Null\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"True\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"False\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"122\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"124\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->newObject()");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->evaluate(\"'12.4'\") <=> engine->newQObject(engine)");
- equals.insert("engine->nullValue() <=> QScriptValue(true)");
- equals.insert("engine->nullValue() <=> QScriptValue(int(122))");
- equals.insert("engine->nullValue() <=> QScriptValue(uint(124))");
- equals.insert("engine->nullValue() <=> QScriptValue(123.0)");
- equals.insert("engine->nullValue() <=> QScriptValue(6.37e-8)");
- equals.insert("engine->nullValue() <=> QScriptValue(0x43211234)");
- equals.insert("engine->nullValue() <=> QScriptValue(0x10000)");
- equals.insert("engine->nullValue() <=> QScriptValue(0x10001)");
- equals.insert("engine->nullValue() <=> QScriptValue(qInf())");
- equals.insert("engine->nullValue() <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->nullValue() <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->nullValue() <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("engine->nullValue() <=> QScriptValue(0, true)");
- equals.insert("engine->nullValue() <=> QScriptValue(0, int(122))");
- equals.insert("engine->nullValue() <=> QScriptValue(0, uint(124))");
- equals.insert("engine->nullValue() <=> QScriptValue(0, 123.0)");
- equals.insert("engine->nullValue() <=> QScriptValue(0, 6.37e-8)");
- equals.insert("engine->nullValue() <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->nullValue() <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->nullValue() <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->nullValue() <=> QScriptValue(0, qInf())");
- equals.insert("engine->nullValue() <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->nullValue() <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->nullValue() <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("engine->nullValue() <=> QScriptValue(engine, true)");
- equals.insert("engine->nullValue() <=> QScriptValue(engine, int(122))");
- equals.insert("engine->nullValue() <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->nullValue() <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->nullValue() <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("engine->nullValue() <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->nullValue() <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->nullValue() <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->nullValue() <=> QScriptValue(engine, qInf())");
- equals.insert("engine->nullValue() <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->nullValue() <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->nullValue() <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("engine->nullValue() <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("engine->nullValue() <=> engine->evaluate(\"true\")");
- equals.insert("engine->nullValue() <=> engine->evaluate(\"122\")");
- equals.insert("engine->nullValue() <=> engine->evaluate(\"124\")");
- equals.insert("engine->nullValue() <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->nullValue() <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("engine->nullValue() <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->nullValue() <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->nullValue() <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->nullValue() <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->nullValue() <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->nullValue() <=> engine->evaluate(\"'12.4'\")");
- equals.insert("engine->nullValue() <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->newObject() <=> QScriptValue(\"ciao\")");
- equals.insert("engine->newObject() <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->newObject() <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->newObject() <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->newObject() <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->newObject() <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->newObject() <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->newObject() <=> engine->evaluate(\"Object\")");
- equals.insert("engine->newObject() <=> engine->evaluate(\"Array\")");
- equals.insert("engine->newObject() <=> engine->evaluate(\"Number\")");
- equals.insert("engine->newObject() <=> engine->evaluate(\"Function\")");
- equals.insert("engine->newObject() <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->newObject() <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->newObject() <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->newObject() <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->newObject() <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("engine->newArray() <=> QScriptValue(true)");
- equals.insert("engine->newArray() <=> QScriptValue(int(122))");
- equals.insert("engine->newArray() <=> QScriptValue(uint(124))");
- equals.insert("engine->newArray() <=> QScriptValue(123.0)");
- equals.insert("engine->newArray() <=> QScriptValue(6.37e-8)");
- equals.insert("engine->newArray() <=> QScriptValue(0x43211234)");
- equals.insert("engine->newArray() <=> QScriptValue(0x10000)");
- equals.insert("engine->newArray() <=> QScriptValue(0x10001)");
- equals.insert("engine->newArray() <=> QScriptValue(qInf())");
- equals.insert("engine->newArray() <=> QScriptValue(\"NaN\")");
- equals.insert("engine->newArray() <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->newArray() <=> QScriptValue(\"-Infinity\")");
- equals.insert("engine->newArray() <=> QScriptValue(\"ciao\")");
- equals.insert("engine->newArray() <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->newArray() <=> QScriptValue(QString(\"0\"))");
- equals.insert("engine->newArray() <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->newArray() <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("engine->newArray() <=> QScriptValue(0, true)");
- equals.insert("engine->newArray() <=> QScriptValue(0, int(122))");
- equals.insert("engine->newArray() <=> QScriptValue(0, uint(124))");
- equals.insert("engine->newArray() <=> QScriptValue(0, 123.0)");
- equals.insert("engine->newArray() <=> QScriptValue(0, 6.37e-8)");
- equals.insert("engine->newArray() <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->newArray() <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->newArray() <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->newArray() <=> QScriptValue(0, qInf())");
- equals.insert("engine->newArray() <=> QScriptValue(0, \"NaN\")");
- equals.insert("engine->newArray() <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->newArray() <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("engine->newArray() <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->newArray() <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->newArray() <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("engine->newArray() <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->newArray() <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("engine->newArray() <=> QScriptValue(engine, true)");
- equals.insert("engine->newArray() <=> QScriptValue(engine, int(122))");
- equals.insert("engine->newArray() <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->newArray() <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->newArray() <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("engine->newArray() <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->newArray() <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->newArray() <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->newArray() <=> QScriptValue(engine, qInf())");
- equals.insert("engine->newArray() <=> QScriptValue(engine, \"NaN\")");
- equals.insert("engine->newArray() <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->newArray() <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("engine->newArray() <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->newArray() <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->newArray() <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("engine->newArray() <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->newArray() <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("engine->newArray() <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"Object\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"Array\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"Number\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"Function\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"/foo/\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"new Object()\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"new Error()\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"Undefined\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"Null\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"True\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"False\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"true\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"122\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"124\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"'0'\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"'12.4'\")");
- equals.insert("engine->newArray() <=> engine->newObject()");
- equals.insert("engine->newArray() <=> engine->newArray(10)");
- equals.insert("engine->newArray() <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("engine->newArray() <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->newArray() <=> engine->newQObject(engine)");
- equals.insert("engine->newArray(10) <=> QScriptValue(\"NaN\")");
- equals.insert("engine->newArray(10) <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->newArray(10) <=> QScriptValue(\"-Infinity\")");
- equals.insert("engine->newArray(10) <=> QScriptValue(\"ciao\")");
- equals.insert("engine->newArray(10) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->newArray(10) <=> QScriptValue(QString(\"0\"))");
- equals.insert("engine->newArray(10) <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->newArray(10) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("engine->newArray(10) <=> QScriptValue(0, \"NaN\")");
- equals.insert("engine->newArray(10) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->newArray(10) <=> QScriptValue(0, \"-Infinity\")");
- equals.insert("engine->newArray(10) <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->newArray(10) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->newArray(10) <=> QScriptValue(0, QString(\"0\"))");
- equals.insert("engine->newArray(10) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->newArray(10) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("engine->newArray(10) <=> QScriptValue(engine, \"NaN\")");
- equals.insert("engine->newArray(10) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->newArray(10) <=> QScriptValue(engine, \"-Infinity\")");
- equals.insert("engine->newArray(10) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->newArray(10) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->newArray(10) <=> QScriptValue(engine, QString(\"0\"))");
- equals.insert("engine->newArray(10) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->newArray(10) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"Error.prototype\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"Object\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"Array\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"Number\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"Function\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"/foo/\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"new Object()\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"new Error()\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"Undefined\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"Null\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"True\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"False\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"'0'\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("engine->newArray(10) <=> engine->newObject()");
- equals.insert("engine->newArray(10) <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- equals.insert("engine->newArray(10) <=> engine->newQObject(engine)");
- equals.insert("engine->newQMetaObject(&QObject::staticMetaObject) <=> QScriptValue(\"ciao\")");
- equals.insert("engine->newQMetaObject(&QObject::staticMetaObject) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->newQMetaObject(&QObject::staticMetaObject) <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->newQMetaObject(&QObject::staticMetaObject) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->newQMetaObject(&QObject::staticMetaObject) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->newQMetaObject(&QObject::staticMetaObject) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->evaluate(\"Object\")");
- equals.insert("engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->evaluate(\"Array\")");
- equals.insert("engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->evaluate(\"Number\")");
- equals.insert("engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->evaluate(\"Function\")");
- equals.insert("engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(uint(124))");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(0x43211234)");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(0x10000)");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(0x10001)");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(qInf())");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(0, uint(124))");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(0, qInf())");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(engine, qInf())");
- equals.insert("engine->newVariant(QVariant(123)) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->newVariant(QVariant(123)) <=> engine->evaluate(\"124\")");
- equals.insert("engine->newVariant(QVariant(123)) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->newVariant(QVariant(123)) <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->newVariant(QVariant(123)) <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->newVariant(QVariant(123)) <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(true)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(int(122))");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(uint(124))");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(123.0)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(6.37e-8)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0x43211234)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0x10000)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0x10001)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(qInf())");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0, true)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0, int(122))");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0, uint(124))");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0, 123.0)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0, qInf())");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(engine, true)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(engine, int(122))");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(engine, qInf())");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->newVariant(QVariant(false)) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("engine->newVariant(QVariant(false)) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> engine->evaluate(\"true\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> engine->evaluate(\"122\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> engine->evaluate(\"124\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->newQObject(0) <=> QScriptValue(true)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(int(122))");
- equals.insert("engine->newQObject(0) <=> QScriptValue(uint(124))");
- equals.insert("engine->newQObject(0) <=> QScriptValue(123.0)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(6.37e-8)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(0x43211234)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(0x10000)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(0x10001)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(qInf())");
- equals.insert("engine->newQObject(0) <=> QScriptValue(\"Infinity\")");
- equals.insert("engine->newQObject(0) <=> QScriptValue(QString(\"123\"))");
- equals.insert("engine->newQObject(0) <=> QScriptValue(QString(\"12.4\"))");
- equals.insert("engine->newQObject(0) <=> QScriptValue(0, true)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(0, int(122))");
- equals.insert("engine->newQObject(0) <=> QScriptValue(0, uint(124))");
- equals.insert("engine->newQObject(0) <=> QScriptValue(0, 123.0)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(0, 6.37e-8)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(0, 0x43211234)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(0, 0x10000)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(0, 0x10001)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(0, qInf())");
- equals.insert("engine->newQObject(0) <=> QScriptValue(0, \"Infinity\")");
- equals.insert("engine->newQObject(0) <=> QScriptValue(0, QString(\"123\"))");
- equals.insert("engine->newQObject(0) <=> QScriptValue(0, QString(\"12.3\"))");
- equals.insert("engine->newQObject(0) <=> QScriptValue(engine, true)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(engine, int(122))");
- equals.insert("engine->newQObject(0) <=> QScriptValue(engine, uint(124))");
- equals.insert("engine->newQObject(0) <=> QScriptValue(engine, 123.0)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(engine, 6.37e-8)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(engine, 0x43211234)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(engine, 0x10000)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(engine, 0x10001)");
- equals.insert("engine->newQObject(0) <=> QScriptValue(engine, qInf())");
- equals.insert("engine->newQObject(0) <=> QScriptValue(engine, \"Infinity\")");
- equals.insert("engine->newQObject(0) <=> QScriptValue(engine, QString(\"123\"))");
- equals.insert("engine->newQObject(0) <=> QScriptValue(engine, QString(\"1.23\"))");
- equals.insert("engine->newQObject(0) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")");
- equals.insert("engine->newQObject(0) <=> engine->evaluate(\"true\")");
- equals.insert("engine->newQObject(0) <=> engine->evaluate(\"122\")");
- equals.insert("engine->newQObject(0) <=> engine->evaluate(\"124\")");
- equals.insert("engine->newQObject(0) <=> engine->evaluate(\"123.0\")");
- equals.insert("engine->newQObject(0) <=> engine->evaluate(\"6.37e-8\")");
- equals.insert("engine->newQObject(0) <=> engine->evaluate(\"0x43211234\")");
- equals.insert("engine->newQObject(0) <=> engine->evaluate(\"0x10000\")");
- equals.insert("engine->newQObject(0) <=> engine->evaluate(\"0x10001\")");
- equals.insert("engine->newQObject(0) <=> engine->evaluate(\"Infinity\")");
- equals.insert("engine->newQObject(0) <=> engine->evaluate(\"'123'\")");
- equals.insert("engine->newQObject(0) <=> engine->evaluate(\"'12.4'\")");
- equals.insert("engine->newQObject(0) <=> engine->newVariant(QVariant(123))");
- equals.insert("engine->newQObject(engine) <=> QScriptValue(\"ciao\")");
- equals.insert("engine->newQObject(engine) <=> QScriptValue(QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->newQObject(engine) <=> QScriptValue(0, \"ciao\")");
- equals.insert("engine->newQObject(engine) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->newQObject(engine) <=> QScriptValue(engine, \"ciao\")");
- equals.insert("engine->newQObject(engine) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))");
- equals.insert("engine->newQObject(engine) <=> engine->evaluate(\"Object.prototype\")");
- equals.insert("engine->newQObject(engine) <=> engine->evaluate(\"Function.prototype\")");
- equals.insert("engine->newQObject(engine) <=> engine->evaluate(\"Object\")");
- equals.insert("engine->newQObject(engine) <=> engine->evaluate(\"Array\")");
- equals.insert("engine->newQObject(engine) <=> engine->evaluate(\"Number\")");
- equals.insert("engine->newQObject(engine) <=> engine->evaluate(\"Function\")");
- equals.insert("engine->newQObject(engine) <=> engine->evaluate(\"(function() { return 1; })\")");
- equals.insert("engine->newQObject(engine) <=> engine->evaluate(\"(function() { return 'ciao'; })\")");
- equals.insert("engine->newQObject(engine) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")");
- equals.insert("engine->newQObject(engine) <=> engine->evaluate(\"new Object()\")");
- equals.insert("engine->newQObject(engine) <=> engine->evaluate(\"Undefined\")");
- equals.insert("engine->newQObject(engine) <=> engine->evaluate(\"Null\")");
- equals.insert("engine->newQObject(engine) <=> engine->evaluate(\"True\")");
- equals.insert("engine->newQObject(engine) <=> engine->evaluate(\"False\")");
- equals.insert("engine->newQObject(engine) <=> engine->evaluate(\"'ciao'\")");
- equals.insert("engine->newQObject(engine) <=> engine->newObject()");
- equals.insert("engine->newQObject(engine) <=> engine->newQMetaObject(&QObject::staticMetaObject)");
- }
- QHash<QString, QScriptValue>::const_iterator it;
- for (it = m_values.constBegin(); it != m_values.constEnd(); ++it) {
- QString tag = QString::fromLatin1("%20 <=> %21").arg(expr).arg(it.key());
- newRow(tag.toLatin1()) << it.value() << equals.contains(tag);
- }
-}
-
-void tst_QScriptValue::lessThan_test(const char *, const QScriptValue& value)
-{
- QFETCH(QScriptValue, other);
- QFETCH(bool, expected);
- QCOMPARE(value.lessThan(other), expected);
-}
-
-DEFINE_TEST_FUNCTION(lessThan)
-
-
-void tst_QScriptValue::instanceOf_initData()
-{
- QTest::addColumn<QScriptValue>("other");
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::instanceOf_makeData(const char *expr)
-{
- static QSet<QString> equals;
- if (equals.isEmpty()) {
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"[]\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"Date.prototype\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"Object\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"Object\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"Array\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"Array\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"Number\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"Number\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"Function\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"Function\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"(function() { return 1; })\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"(function() { return 1; })\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\") <=> engine->evaluate(\"Function\")");
- equals.insert("engine->evaluate(\"/foo/\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"new Object()\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Array\")");
- equals.insert("engine->evaluate(\"new Error()\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"Undefined\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"Null\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"True\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->evaluate(\"False\") <=> engine->evaluate(\"Object\")");
- equals.insert("engine->newObject() <=> engine->evaluate(\"Object\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"Object\")");
- equals.insert("engine->newArray() <=> engine->evaluate(\"Array\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"Object\")");
- equals.insert("engine->newArray(10) <=> engine->evaluate(\"Array\")");
- equals.insert("engine->newDate(QDateTime()) <=> engine->evaluate(\"Object\")");
- equals.insert("engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->evaluate(\"Object\")");
- equals.insert("engine->newVariant(QVariant()) <=> engine->evaluate(\"Object\")");
- equals.insert("engine->newVariant(QVariant(123)) <=> engine->evaluate(\"Object\")");
- equals.insert("engine->newVariant(QVariant(false)) <=> engine->evaluate(\"Object\")");
- equals.insert("engine->newQObject(engine) <=> engine->evaluate(\"Object\")");
- }
- QHash<QString, QScriptValue>::const_iterator it;
- for (it = m_values.constBegin(); it != m_values.constEnd(); ++it) {
- QString tag = QString::fromLatin1("%20 <=> %21").arg(expr).arg(it.key());
- newRow(tag.toLatin1()) << it.value() << equals.contains(tag);
- }
-}
-
-void tst_QScriptValue::instanceOf_test(const char *, const QScriptValue& value)
-{
- QFETCH(QScriptValue, other);
- QFETCH(bool, expected);
- QCOMPARE(value.instanceOf(other), expected);
-}
-
-DEFINE_TEST_FUNCTION(instanceOf)
-
-
-void tst_QScriptValue::qscriptvalue_castQString_initData()
-{
- QTest::addColumn<QString>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::qscriptvalue_castQString_makeData(const char* expr)
-{
- static QHash<QString, QString> value;
- if (value.isEmpty()) {
- value.insert("QScriptValue()", "");
- value.insert("QScriptValue(QScriptValue::UndefinedValue)", "");
- value.insert("QScriptValue(QScriptValue::NullValue)", "");
- value.insert("QScriptValue(true)", "true");
- value.insert("QScriptValue(false)", "false");
- value.insert("QScriptValue(int(122))", "122");
- value.insert("QScriptValue(uint(124))", "124");
- value.insert("QScriptValue(0)", "0");
- value.insert("QScriptValue(0.0)", "0");
- value.insert("QScriptValue(123.0)", "123");
- value.insert("QScriptValue(6.37e-8)", "6.37e-8");
- value.insert("QScriptValue(-6.37e-8)", "-6.37e-8");
- value.insert("QScriptValue(0x43211234)", "1126240820");
- value.insert("QScriptValue(0x10000)", "65536");
- value.insert("QScriptValue(0x10001)", "65537");
- value.insert("QScriptValue(qSNaN())", "NaN");
- value.insert("QScriptValue(qQNaN())", "NaN");
- value.insert("QScriptValue(qInf())", "Infinity");
- value.insert("QScriptValue(-qInf())", "-Infinity");
- value.insert("QScriptValue(\"NaN\")", "NaN");
- value.insert("QScriptValue(\"Infinity\")", "Infinity");
- value.insert("QScriptValue(\"-Infinity\")", "-Infinity");
- value.insert("QScriptValue(\"ciao\")", "ciao");
- value.insert("QScriptValue(QString::fromLatin1(\"ciao\"))", "ciao");
- value.insert("QScriptValue(QString(\"\"))", "");
- value.insert("QScriptValue(QString())", "");
- value.insert("QScriptValue(QString(\"0\"))", "0");
- value.insert("QScriptValue(QString(\"123\"))", "123");
- value.insert("QScriptValue(QString(\"12.4\"))", "12.4");
- value.insert("QScriptValue(0, QScriptValue::UndefinedValue)", "");
- value.insert("QScriptValue(0, QScriptValue::NullValue)", "");
- value.insert("QScriptValue(0, true)", "true");
- value.insert("QScriptValue(0, false)", "false");
- value.insert("QScriptValue(0, int(122))", "122");
- value.insert("QScriptValue(0, uint(124))", "124");
- value.insert("QScriptValue(0, 0)", "0");
- value.insert("QScriptValue(0, 0.0)", "0");
- value.insert("QScriptValue(0, 123.0)", "123");
- value.insert("QScriptValue(0, 6.37e-8)", "6.37e-8");
- value.insert("QScriptValue(0, -6.37e-8)", "-6.37e-8");
- value.insert("QScriptValue(0, 0x43211234)", "1126240820");
- value.insert("QScriptValue(0, 0x10000)", "65536");
- value.insert("QScriptValue(0, 0x10001)", "65537");
- value.insert("QScriptValue(0, qSNaN())", "NaN");
- value.insert("QScriptValue(0, qQNaN())", "NaN");
- value.insert("QScriptValue(0, qInf())", "Infinity");
- value.insert("QScriptValue(0, -qInf())", "-Infinity");
- value.insert("QScriptValue(0, \"NaN\")", "NaN");
- value.insert("QScriptValue(0, \"Infinity\")", "Infinity");
- value.insert("QScriptValue(0, \"-Infinity\")", "-Infinity");
- value.insert("QScriptValue(0, \"ciao\")", "ciao");
- value.insert("QScriptValue(0, QString::fromLatin1(\"ciao\"))", "ciao");
- value.insert("QScriptValue(0, QString(\"\"))", "");
- value.insert("QScriptValue(0, QString())", "");
- value.insert("QScriptValue(0, QString(\"0\"))", "0");
- value.insert("QScriptValue(0, QString(\"123\"))", "123");
- value.insert("QScriptValue(0, QString(\"12.3\"))", "12.3");
- value.insert("QScriptValue(engine, QScriptValue::UndefinedValue)", "");
- value.insert("QScriptValue(engine, QScriptValue::NullValue)", "");
- value.insert("QScriptValue(engine, true)", "true");
- value.insert("QScriptValue(engine, false)", "false");
- value.insert("QScriptValue(engine, int(122))", "122");
- value.insert("QScriptValue(engine, uint(124))", "124");
- value.insert("QScriptValue(engine, 0)", "0");
- value.insert("QScriptValue(engine, 0.0)", "0");
- value.insert("QScriptValue(engine, 123.0)", "123");
- value.insert("QScriptValue(engine, 6.37e-8)", "6.37e-8");
- value.insert("QScriptValue(engine, -6.37e-8)", "-6.37e-8");
- value.insert("QScriptValue(engine, 0x43211234)", "1126240820");
- value.insert("QScriptValue(engine, 0x10000)", "65536");
- value.insert("QScriptValue(engine, 0x10001)", "65537");
- value.insert("QScriptValue(engine, qSNaN())", "NaN");
- value.insert("QScriptValue(engine, qQNaN())", "NaN");
- value.insert("QScriptValue(engine, qInf())", "Infinity");
- value.insert("QScriptValue(engine, -qInf())", "-Infinity");
- value.insert("QScriptValue(engine, \"NaN\")", "NaN");
- value.insert("QScriptValue(engine, \"Infinity\")", "Infinity");
- value.insert("QScriptValue(engine, \"-Infinity\")", "-Infinity");
- value.insert("QScriptValue(engine, \"ciao\")", "ciao");
- value.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\"))", "ciao");
- value.insert("QScriptValue(engine, QString(\"\"))", "");
- value.insert("QScriptValue(engine, QString())", "");
- value.insert("QScriptValue(engine, QString(\"0\"))", "0");
- value.insert("QScriptValue(engine, QString(\"123\"))", "123");
- value.insert("QScriptValue(engine, QString(\"1.23\"))", "1.23");
- value.insert("engine->evaluate(\"[]\")", "");
- value.insert("engine->evaluate(\"{}\")", "");
- value.insert("engine->evaluate(\"Object.prototype\")", "[object Object]");
- value.insert("engine->evaluate(\"Date.prototype\")", "Invalid Date");
- value.insert("engine->evaluate(\"Array.prototype\")", "");
- value.insert("engine->evaluate(\"Function.prototype\")", "function () {\n [native code]\n}");
- value.insert("engine->evaluate(\"Error.prototype\")", "Error: Unknown error");
- value.insert("engine->evaluate(\"Object\")", "function Object() {\n [native code]\n}");
- value.insert("engine->evaluate(\"Array\")", "function Array() {\n [native code]\n}");
- value.insert("engine->evaluate(\"Number\")", "function Number() {\n [native code]\n}");
- value.insert("engine->evaluate(\"Function\")", "function Function() {\n [native code]\n}");
- value.insert("engine->evaluate(\"(function() { return 1; })\")", "function () { return 1; }");
- value.insert("engine->evaluate(\"(function() { return 'ciao'; })\")", "function () { return 'ciao'; }");
- value.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\")", "function () { throw new Error('foo'); }");
- value.insert("engine->evaluate(\"/foo/\")", "/foo/");
- value.insert("engine->evaluate(\"new Object()\")", "[object Object]");
- value.insert("engine->evaluate(\"new Array()\")", "");
- value.insert("engine->evaluate(\"new Error()\")", "Error: Unknown error");
- value.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")", "22");
- value.insert("engine->evaluate(\"Undefined\")", "ReferenceError: Can't find variable: Undefined");
- value.insert("engine->evaluate(\"Null\")", "ReferenceError: Can't find variable: Null");
- value.insert("engine->evaluate(\"True\")", "ReferenceError: Can't find variable: True");
- value.insert("engine->evaluate(\"False\")", "ReferenceError: Can't find variable: False");
- value.insert("engine->evaluate(\"undefined\")", "");
- value.insert("engine->evaluate(\"null\")", "");
- value.insert("engine->evaluate(\"true\")", "true");
- value.insert("engine->evaluate(\"false\")", "false");
- value.insert("engine->evaluate(\"122\")", "122");
- value.insert("engine->evaluate(\"124\")", "124");
- value.insert("engine->evaluate(\"0\")", "0");
- value.insert("engine->evaluate(\"0.0\")", "0");
- value.insert("engine->evaluate(\"123.0\")", "123");
- value.insert("engine->evaluate(\"6.37e-8\")", "6.37e-8");
- value.insert("engine->evaluate(\"-6.37e-8\")", "-6.37e-8");
- value.insert("engine->evaluate(\"0x43211234\")", "1126240820");
- value.insert("engine->evaluate(\"0x10000\")", "65536");
- value.insert("engine->evaluate(\"0x10001\")", "65537");
- value.insert("engine->evaluate(\"NaN\")", "NaN");
- value.insert("engine->evaluate(\"Infinity\")", "Infinity");
- value.insert("engine->evaluate(\"-Infinity\")", "-Infinity");
- value.insert("engine->evaluate(\"'ciao'\")", "ciao");
- value.insert("engine->evaluate(\"''\")", "");
- value.insert("engine->evaluate(\"'0'\")", "0");
- value.insert("engine->evaluate(\"'123'\")", "123");
- value.insert("engine->evaluate(\"'12.4'\")", "12.4");
- value.insert("engine->nullValue()", "");
- value.insert("engine->undefinedValue()", "");
- value.insert("engine->newObject()", "[object Object]");
- value.insert("engine->newArray()", "");
- value.insert("engine->newArray(10)", ",,,,,,,,,");
- value.insert("engine->newDate(QDateTime())", "Invalid Date");
- value.insert("engine->newQMetaObject(&QObject::staticMetaObject)", "[object QMetaObject]");
- value.insert("engine->newVariant(QVariant())", "undefined");
- value.insert("engine->newVariant(QVariant(123))", "123");
- value.insert("engine->newVariant(QVariant(false))", "false");
- value.insert("engine->newQObject(0)", "");
- value.insert("engine->newQObject(engine)", "QScriptEngine(name = \"\")");
- }
- newRow(expr) << value.value(expr);
-}
-
-void tst_QScriptValue::qscriptvalue_castQString_test(const char*, const QScriptValue& value)
-{
- QFETCH(QString, expected);
- QCOMPARE(qscriptvalue_cast<QString>(value), expected);
- QCOMPARE(qscriptvalue_cast<QString>(value), expected);
-}
-
-DEFINE_TEST_FUNCTION(qscriptvalue_castQString)
-
-
-void tst_QScriptValue::qscriptvalue_castqsreal_initData()
-{
- QTest::addColumn<qsreal>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::qscriptvalue_castqsreal_makeData(const char* expr)
-{
- static QHash<QString, qsreal> value;
- if (value.isEmpty()) {
- value.insert("QScriptValue()", 0);
- value.insert("QScriptValue(QScriptValue::UndefinedValue)", qQNaN());
- value.insert("QScriptValue(QScriptValue::NullValue)", 0);
- value.insert("QScriptValue(true)", 1);
- value.insert("QScriptValue(false)", 0);
- value.insert("QScriptValue(int(122))", 122);
- value.insert("QScriptValue(uint(124))", 124);
- value.insert("QScriptValue(0)", 0);
- value.insert("QScriptValue(0.0)", 0);
- value.insert("QScriptValue(123.0)", 123);
- value.insert("QScriptValue(6.37e-8)", 6.369999999999999e-08);
- value.insert("QScriptValue(-6.37e-8)", -6.369999999999999e-08);
- value.insert("QScriptValue(0x43211234)", 1126240820);
- value.insert("QScriptValue(0x10000)", 65536);
- value.insert("QScriptValue(0x10001)", 65537);
- value.insert("QScriptValue(qSNaN())", qQNaN());
- value.insert("QScriptValue(qQNaN())", qQNaN());
- value.insert("QScriptValue(qInf())", qInf());
- value.insert("QScriptValue(-qInf())", qInf());
- value.insert("QScriptValue(\"NaN\")", qQNaN());
- value.insert("QScriptValue(\"Infinity\")", qInf());
- value.insert("QScriptValue(\"-Infinity\")", qInf());
- value.insert("QScriptValue(\"ciao\")", qQNaN());
- value.insert("QScriptValue(QString::fromLatin1(\"ciao\"))", qQNaN());
- value.insert("QScriptValue(QString(\"\"))", 0);
- value.insert("QScriptValue(QString())", 0);
- value.insert("QScriptValue(QString(\"0\"))", 0);
- value.insert("QScriptValue(QString(\"123\"))", 123);
- value.insert("QScriptValue(QString(\"12.4\"))", 12.4);
- value.insert("QScriptValue(0, QScriptValue::UndefinedValue)", qQNaN());
- value.insert("QScriptValue(0, QScriptValue::NullValue)", 0);
- value.insert("QScriptValue(0, true)", 1);
- value.insert("QScriptValue(0, false)", 0);
- value.insert("QScriptValue(0, int(122))", 122);
- value.insert("QScriptValue(0, uint(124))", 124);
- value.insert("QScriptValue(0, 0)", 0);
- value.insert("QScriptValue(0, 0.0)", 0);
- value.insert("QScriptValue(0, 123.0)", 123);
- value.insert("QScriptValue(0, 6.37e-8)", 6.369999999999999e-08);
- value.insert("QScriptValue(0, -6.37e-8)", -6.369999999999999e-08);
- value.insert("QScriptValue(0, 0x43211234)", 1126240820);
- value.insert("QScriptValue(0, 0x10000)", 65536);
- value.insert("QScriptValue(0, 0x10001)", 65537);
- value.insert("QScriptValue(0, qSNaN())", qQNaN());
- value.insert("QScriptValue(0, qQNaN())", qQNaN());
- value.insert("QScriptValue(0, qInf())", qInf());
- value.insert("QScriptValue(0, -qInf())", qInf());
- value.insert("QScriptValue(0, \"NaN\")", qQNaN());
- value.insert("QScriptValue(0, \"Infinity\")", qInf());
- value.insert("QScriptValue(0, \"-Infinity\")", qInf());
- value.insert("QScriptValue(0, \"ciao\")", qQNaN());
- value.insert("QScriptValue(0, QString::fromLatin1(\"ciao\"))", qQNaN());
- value.insert("QScriptValue(0, QString(\"\"))", 0);
- value.insert("QScriptValue(0, QString())", 0);
- value.insert("QScriptValue(0, QString(\"0\"))", 0);
- value.insert("QScriptValue(0, QString(\"123\"))", 123);
- value.insert("QScriptValue(0, QString(\"12.3\"))", 12.3);
- value.insert("QScriptValue(engine, QScriptValue::UndefinedValue)", qQNaN());
- value.insert("QScriptValue(engine, QScriptValue::NullValue)", 0);
- value.insert("QScriptValue(engine, true)", 1);
- value.insert("QScriptValue(engine, false)", 0);
- value.insert("QScriptValue(engine, int(122))", 122);
- value.insert("QScriptValue(engine, uint(124))", 124);
- value.insert("QScriptValue(engine, 0)", 0);
- value.insert("QScriptValue(engine, 0.0)", 0);
- value.insert("QScriptValue(engine, 123.0)", 123);
- value.insert("QScriptValue(engine, 6.37e-8)", 6.369999999999999e-08);
- value.insert("QScriptValue(engine, -6.37e-8)", -6.369999999999999e-08);
- value.insert("QScriptValue(engine, 0x43211234)", 1126240820);
- value.insert("QScriptValue(engine, 0x10000)", 65536);
- value.insert("QScriptValue(engine, 0x10001)", 65537);
- value.insert("QScriptValue(engine, qSNaN())", qQNaN());
- value.insert("QScriptValue(engine, qQNaN())", qQNaN());
- value.insert("QScriptValue(engine, qInf())", qInf());
- value.insert("QScriptValue(engine, -qInf())", qInf());
- value.insert("QScriptValue(engine, \"NaN\")", qQNaN());
- value.insert("QScriptValue(engine, \"Infinity\")", qInf());
- value.insert("QScriptValue(engine, \"-Infinity\")", qInf());
- value.insert("QScriptValue(engine, \"ciao\")", qQNaN());
- value.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\"))", qQNaN());
- value.insert("QScriptValue(engine, QString(\"\"))", 0);
- value.insert("QScriptValue(engine, QString())", 0);
- value.insert("QScriptValue(engine, QString(\"0\"))", 0);
- value.insert("QScriptValue(engine, QString(\"123\"))", 123);
- value.insert("QScriptValue(engine, QString(\"1.23\"))", 1.23);
- value.insert("engine->evaluate(\"[]\")", 0);
- value.insert("engine->evaluate(\"{}\")", qQNaN());
- value.insert("engine->evaluate(\"Object.prototype\")", qQNaN());
- value.insert("engine->evaluate(\"Date.prototype\")", qQNaN());
- value.insert("engine->evaluate(\"Array.prototype\")", 0);
- value.insert("engine->evaluate(\"Function.prototype\")", qQNaN());
- value.insert("engine->evaluate(\"Error.prototype\")", qQNaN());
- value.insert("engine->evaluate(\"Object\")", qQNaN());
- value.insert("engine->evaluate(\"Array\")", qQNaN());
- value.insert("engine->evaluate(\"Number\")", qQNaN());
- value.insert("engine->evaluate(\"Function\")", qQNaN());
- value.insert("engine->evaluate(\"(function() { return 1; })\")", qQNaN());
- value.insert("engine->evaluate(\"(function() { return 'ciao'; })\")", qQNaN());
- value.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\")", qQNaN());
- value.insert("engine->evaluate(\"/foo/\")", qQNaN());
- value.insert("engine->evaluate(\"new Object()\")", qQNaN());
- value.insert("engine->evaluate(\"new Array()\")", 0);
- value.insert("engine->evaluate(\"new Error()\")", qQNaN());
- value.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")", 22);
- value.insert("engine->evaluate(\"Undefined\")", qQNaN());
- value.insert("engine->evaluate(\"Null\")", qQNaN());
- value.insert("engine->evaluate(\"True\")", qQNaN());
- value.insert("engine->evaluate(\"False\")", qQNaN());
- value.insert("engine->evaluate(\"undefined\")", qQNaN());
- value.insert("engine->evaluate(\"null\")", 0);
- value.insert("engine->evaluate(\"true\")", 1);
- value.insert("engine->evaluate(\"false\")", 0);
- value.insert("engine->evaluate(\"122\")", 122);
- value.insert("engine->evaluate(\"124\")", 124);
- value.insert("engine->evaluate(\"0\")", 0);
- value.insert("engine->evaluate(\"0.0\")", 0);
- value.insert("engine->evaluate(\"123.0\")", 123);
- value.insert("engine->evaluate(\"6.37e-8\")", 6.369999999999999e-08);
- value.insert("engine->evaluate(\"-6.37e-8\")", -6.369999999999999e-08);
- value.insert("engine->evaluate(\"0x43211234\")", 1126240820);
- value.insert("engine->evaluate(\"0x10000\")", 65536);
- value.insert("engine->evaluate(\"0x10001\")", 65537);
- value.insert("engine->evaluate(\"NaN\")", qQNaN());
- value.insert("engine->evaluate(\"Infinity\")", qInf());
- value.insert("engine->evaluate(\"-Infinity\")", qInf());
- value.insert("engine->evaluate(\"'ciao'\")", qQNaN());
- value.insert("engine->evaluate(\"''\")", 0);
- value.insert("engine->evaluate(\"'0'\")", 0);
- value.insert("engine->evaluate(\"'123'\")", 123);
- value.insert("engine->evaluate(\"'12.4'\")", 12.4);
- value.insert("engine->nullValue()", 0);
- value.insert("engine->undefinedValue()", qQNaN());
- value.insert("engine->newObject()", qQNaN());
- value.insert("engine->newArray()", 0);
- value.insert("engine->newArray(10)", qQNaN());
- value.insert("engine->newDate(QDateTime())", qQNaN());
- value.insert("engine->newQMetaObject(&QObject::staticMetaObject)", qQNaN());
- value.insert("engine->newVariant(QVariant())", qQNaN());
- value.insert("engine->newVariant(QVariant(123))", 123);
- value.insert("engine->newVariant(QVariant(false))", 0);
- value.insert("engine->newQObject(0)", 0);
- value.insert("engine->newQObject(engine)", qQNaN());
- }
- newRow(expr) << value.value(expr);
-}
-
-void tst_QScriptValue::qscriptvalue_castqsreal_test(const char*, const QScriptValue& value)
-{
- QFETCH(qsreal, expected);
- if (qIsNaN(expected)) {
- QVERIFY(qIsNaN(qscriptvalue_cast<qsreal>(value)));
- QVERIFY(qIsNaN(qscriptvalue_cast<qsreal>(value)));
- return;
- }
- if (qIsInf(expected)) {
- QVERIFY(qIsInf(qscriptvalue_cast<qsreal>(value)));
- QVERIFY(qIsInf(qscriptvalue_cast<qsreal>(value)));
- return;
- }
- QCOMPARE(qscriptvalue_cast<qsreal>(value), expected);
- QCOMPARE(qscriptvalue_cast<qsreal>(value), expected);
-}
-
-DEFINE_TEST_FUNCTION(qscriptvalue_castqsreal)
-
-
-void tst_QScriptValue::qscriptvalue_castbool_initData()
-{
- QTest::addColumn<bool>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::qscriptvalue_castbool_makeData(const char* expr)
-{
- static QHash<QString, bool> value;
- if (value.isEmpty()) {
- value.insert("QScriptValue()", false);
- value.insert("QScriptValue(QScriptValue::UndefinedValue)", false);
- value.insert("QScriptValue(QScriptValue::NullValue)", false);
- value.insert("QScriptValue(true)", true);
- value.insert("QScriptValue(false)", false);
- value.insert("QScriptValue(int(122))", true);
- value.insert("QScriptValue(uint(124))", true);
- value.insert("QScriptValue(0)", false);
- value.insert("QScriptValue(0.0)", false);
- value.insert("QScriptValue(123.0)", true);
- value.insert("QScriptValue(6.37e-8)", true);
- value.insert("QScriptValue(-6.37e-8)", true);
- value.insert("QScriptValue(0x43211234)", true);
- value.insert("QScriptValue(0x10000)", true);
- value.insert("QScriptValue(0x10001)", true);
- value.insert("QScriptValue(qSNaN())", false);
- value.insert("QScriptValue(qQNaN())", false);
- value.insert("QScriptValue(qInf())", true);
- value.insert("QScriptValue(-qInf())", true);
- value.insert("QScriptValue(\"NaN\")", true);
- value.insert("QScriptValue(\"Infinity\")", true);
- value.insert("QScriptValue(\"-Infinity\")", true);
- value.insert("QScriptValue(\"ciao\")", true);
- value.insert("QScriptValue(QString::fromLatin1(\"ciao\"))", true);
- value.insert("QScriptValue(QString(\"\"))", false);
- value.insert("QScriptValue(QString())", false);
- value.insert("QScriptValue(QString(\"0\"))", true);
- value.insert("QScriptValue(QString(\"123\"))", true);
- value.insert("QScriptValue(QString(\"12.4\"))", true);
- value.insert("QScriptValue(0, QScriptValue::UndefinedValue)", false);
- value.insert("QScriptValue(0, QScriptValue::NullValue)", false);
- value.insert("QScriptValue(0, true)", true);
- value.insert("QScriptValue(0, false)", false);
- value.insert("QScriptValue(0, int(122))", true);
- value.insert("QScriptValue(0, uint(124))", true);
- value.insert("QScriptValue(0, 0)", false);
- value.insert("QScriptValue(0, 0.0)", false);
- value.insert("QScriptValue(0, 123.0)", true);
- value.insert("QScriptValue(0, 6.37e-8)", true);
- value.insert("QScriptValue(0, -6.37e-8)", true);
- value.insert("QScriptValue(0, 0x43211234)", true);
- value.insert("QScriptValue(0, 0x10000)", true);
- value.insert("QScriptValue(0, 0x10001)", true);
- value.insert("QScriptValue(0, qSNaN())", false);
- value.insert("QScriptValue(0, qQNaN())", false);
- value.insert("QScriptValue(0, qInf())", true);
- value.insert("QScriptValue(0, -qInf())", true);
- value.insert("QScriptValue(0, \"NaN\")", true);
- value.insert("QScriptValue(0, \"Infinity\")", true);
- value.insert("QScriptValue(0, \"-Infinity\")", true);
- value.insert("QScriptValue(0, \"ciao\")", true);
- value.insert("QScriptValue(0, QString::fromLatin1(\"ciao\"))", true);
- value.insert("QScriptValue(0, QString(\"\"))", false);
- value.insert("QScriptValue(0, QString())", false);
- value.insert("QScriptValue(0, QString(\"0\"))", true);
- value.insert("QScriptValue(0, QString(\"123\"))", true);
- value.insert("QScriptValue(0, QString(\"12.3\"))", true);
- value.insert("QScriptValue(engine, QScriptValue::UndefinedValue)", false);
- value.insert("QScriptValue(engine, QScriptValue::NullValue)", false);
- value.insert("QScriptValue(engine, true)", true);
- value.insert("QScriptValue(engine, false)", false);
- value.insert("QScriptValue(engine, int(122))", true);
- value.insert("QScriptValue(engine, uint(124))", true);
- value.insert("QScriptValue(engine, 0)", false);
- value.insert("QScriptValue(engine, 0.0)", false);
- value.insert("QScriptValue(engine, 123.0)", true);
- value.insert("QScriptValue(engine, 6.37e-8)", true);
- value.insert("QScriptValue(engine, -6.37e-8)", true);
- value.insert("QScriptValue(engine, 0x43211234)", true);
- value.insert("QScriptValue(engine, 0x10000)", true);
- value.insert("QScriptValue(engine, 0x10001)", true);
- value.insert("QScriptValue(engine, qSNaN())", false);
- value.insert("QScriptValue(engine, qQNaN())", false);
- value.insert("QScriptValue(engine, qInf())", true);
- value.insert("QScriptValue(engine, -qInf())", true);
- value.insert("QScriptValue(engine, \"NaN\")", true);
- value.insert("QScriptValue(engine, \"Infinity\")", true);
- value.insert("QScriptValue(engine, \"-Infinity\")", true);
- value.insert("QScriptValue(engine, \"ciao\")", true);
- value.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\"))", true);
- value.insert("QScriptValue(engine, QString(\"\"))", false);
- value.insert("QScriptValue(engine, QString())", false);
- value.insert("QScriptValue(engine, QString(\"0\"))", true);
- value.insert("QScriptValue(engine, QString(\"123\"))", true);
- value.insert("QScriptValue(engine, QString(\"1.23\"))", true);
- value.insert("engine->evaluate(\"[]\")", true);
- value.insert("engine->evaluate(\"{}\")", false);
- value.insert("engine->evaluate(\"Object.prototype\")", true);
- value.insert("engine->evaluate(\"Date.prototype\")", true);
- value.insert("engine->evaluate(\"Array.prototype\")", true);
- value.insert("engine->evaluate(\"Function.prototype\")", true);
- value.insert("engine->evaluate(\"Error.prototype\")", true);
- value.insert("engine->evaluate(\"Object\")", true);
- value.insert("engine->evaluate(\"Array\")", true);
- value.insert("engine->evaluate(\"Number\")", true);
- value.insert("engine->evaluate(\"Function\")", true);
- value.insert("engine->evaluate(\"(function() { return 1; })\")", true);
- value.insert("engine->evaluate(\"(function() { return 'ciao'; })\")", true);
- value.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\")", true);
- value.insert("engine->evaluate(\"/foo/\")", true);
- value.insert("engine->evaluate(\"new Object()\")", true);
- value.insert("engine->evaluate(\"new Array()\")", true);
- value.insert("engine->evaluate(\"new Error()\")", true);
- value.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")", true);
- value.insert("engine->evaluate(\"Undefined\")", true);
- value.insert("engine->evaluate(\"Null\")", true);
- value.insert("engine->evaluate(\"True\")", true);
- value.insert("engine->evaluate(\"False\")", true);
- value.insert("engine->evaluate(\"undefined\")", false);
- value.insert("engine->evaluate(\"null\")", false);
- value.insert("engine->evaluate(\"true\")", true);
- value.insert("engine->evaluate(\"false\")", false);
- value.insert("engine->evaluate(\"122\")", true);
- value.insert("engine->evaluate(\"124\")", true);
- value.insert("engine->evaluate(\"0\")", false);
- value.insert("engine->evaluate(\"0.0\")", false);
- value.insert("engine->evaluate(\"123.0\")", true);
- value.insert("engine->evaluate(\"6.37e-8\")", true);
- value.insert("engine->evaluate(\"-6.37e-8\")", true);
- value.insert("engine->evaluate(\"0x43211234\")", true);
- value.insert("engine->evaluate(\"0x10000\")", true);
- value.insert("engine->evaluate(\"0x10001\")", true);
- value.insert("engine->evaluate(\"NaN\")", false);
- value.insert("engine->evaluate(\"Infinity\")", true);
- value.insert("engine->evaluate(\"-Infinity\")", true);
- value.insert("engine->evaluate(\"'ciao'\")", true);
- value.insert("engine->evaluate(\"''\")", false);
- value.insert("engine->evaluate(\"'0'\")", true);
- value.insert("engine->evaluate(\"'123'\")", true);
- value.insert("engine->evaluate(\"'12.4'\")", true);
- value.insert("engine->nullValue()", false);
- value.insert("engine->undefinedValue()", false);
- value.insert("engine->newObject()", true);
- value.insert("engine->newArray()", true);
- value.insert("engine->newArray(10)", true);
- value.insert("engine->newDate(QDateTime())", true);
- value.insert("engine->newQMetaObject(&QObject::staticMetaObject)", true);
- value.insert("engine->newVariant(QVariant())", true);
- value.insert("engine->newVariant(QVariant(123))", true);
- value.insert("engine->newVariant(QVariant(false))", true);
- value.insert("engine->newQObject(0)", false);
- value.insert("engine->newQObject(engine)", true);
- }
- newRow(expr) << value.value(expr);
-}
-
-void tst_QScriptValue::qscriptvalue_castbool_test(const char*, const QScriptValue& value)
-{
- QFETCH(bool, expected);
- QCOMPARE(qscriptvalue_cast<bool>(value), expected);
- QCOMPARE(qscriptvalue_cast<bool>(value), expected);
-}
-
-DEFINE_TEST_FUNCTION(qscriptvalue_castbool)
-
-
-void tst_QScriptValue::qscriptvalue_castqint32_initData()
-{
- QTest::addColumn<qint32>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::qscriptvalue_castqint32_makeData(const char* expr)
-{
- static QHash<QString, qint32> value;
- if (value.isEmpty()) {
- value.insert("QScriptValue()", 0);
- value.insert("QScriptValue(QScriptValue::UndefinedValue)", 0);
- value.insert("QScriptValue(QScriptValue::NullValue)", 0);
- value.insert("QScriptValue(true)", 1);
- value.insert("QScriptValue(false)", 0);
- value.insert("QScriptValue(int(122))", 122);
- value.insert("QScriptValue(uint(124))", 124);
- value.insert("QScriptValue(0)", 0);
- value.insert("QScriptValue(0.0)", 0);
- value.insert("QScriptValue(123.0)", 123);
- value.insert("QScriptValue(6.37e-8)", 0);
- value.insert("QScriptValue(-6.37e-8)", 0);
- value.insert("QScriptValue(0x43211234)", 1126240820);
- value.insert("QScriptValue(0x10000)", 65536);
- value.insert("QScriptValue(0x10001)", 65537);
- value.insert("QScriptValue(qSNaN())", 0);
- value.insert("QScriptValue(qQNaN())", 0);
- value.insert("QScriptValue(qInf())", 0);
- value.insert("QScriptValue(-qInf())", 0);
- value.insert("QScriptValue(\"NaN\")", 0);
- value.insert("QScriptValue(\"Infinity\")", 0);
- value.insert("QScriptValue(\"-Infinity\")", 0);
- value.insert("QScriptValue(\"ciao\")", 0);
- value.insert("QScriptValue(QString::fromLatin1(\"ciao\"))", 0);
- value.insert("QScriptValue(QString(\"\"))", 0);
- value.insert("QScriptValue(QString())", 0);
- value.insert("QScriptValue(QString(\"0\"))", 0);
- value.insert("QScriptValue(QString(\"123\"))", 123);
- value.insert("QScriptValue(QString(\"12.4\"))", 12);
- value.insert("QScriptValue(0, QScriptValue::UndefinedValue)", 0);
- value.insert("QScriptValue(0, QScriptValue::NullValue)", 0);
- value.insert("QScriptValue(0, true)", 1);
- value.insert("QScriptValue(0, false)", 0);
- value.insert("QScriptValue(0, int(122))", 122);
- value.insert("QScriptValue(0, uint(124))", 124);
- value.insert("QScriptValue(0, 0)", 0);
- value.insert("QScriptValue(0, 0.0)", 0);
- value.insert("QScriptValue(0, 123.0)", 123);
- value.insert("QScriptValue(0, 6.37e-8)", 0);
- value.insert("QScriptValue(0, -6.37e-8)", 0);
- value.insert("QScriptValue(0, 0x43211234)", 1126240820);
- value.insert("QScriptValue(0, 0x10000)", 65536);
- value.insert("QScriptValue(0, 0x10001)", 65537);
- value.insert("QScriptValue(0, qSNaN())", 0);
- value.insert("QScriptValue(0, qQNaN())", 0);
- value.insert("QScriptValue(0, qInf())", 0);
- value.insert("QScriptValue(0, -qInf())", 0);
- value.insert("QScriptValue(0, \"NaN\")", 0);
- value.insert("QScriptValue(0, \"Infinity\")", 0);
- value.insert("QScriptValue(0, \"-Infinity\")", 0);
- value.insert("QScriptValue(0, \"ciao\")", 0);
- value.insert("QScriptValue(0, QString::fromLatin1(\"ciao\"))", 0);
- value.insert("QScriptValue(0, QString(\"\"))", 0);
- value.insert("QScriptValue(0, QString())", 0);
- value.insert("QScriptValue(0, QString(\"0\"))", 0);
- value.insert("QScriptValue(0, QString(\"123\"))", 123);
- value.insert("QScriptValue(0, QString(\"12.3\"))", 12);
- value.insert("QScriptValue(engine, QScriptValue::UndefinedValue)", 0);
- value.insert("QScriptValue(engine, QScriptValue::NullValue)", 0);
- value.insert("QScriptValue(engine, true)", 1);
- value.insert("QScriptValue(engine, false)", 0);
- value.insert("QScriptValue(engine, int(122))", 122);
- value.insert("QScriptValue(engine, uint(124))", 124);
- value.insert("QScriptValue(engine, 0)", 0);
- value.insert("QScriptValue(engine, 0.0)", 0);
- value.insert("QScriptValue(engine, 123.0)", 123);
- value.insert("QScriptValue(engine, 6.37e-8)", 0);
- value.insert("QScriptValue(engine, -6.37e-8)", 0);
- value.insert("QScriptValue(engine, 0x43211234)", 1126240820);
- value.insert("QScriptValue(engine, 0x10000)", 65536);
- value.insert("QScriptValue(engine, 0x10001)", 65537);
- value.insert("QScriptValue(engine, qSNaN())", 0);
- value.insert("QScriptValue(engine, qQNaN())", 0);
- value.insert("QScriptValue(engine, qInf())", 0);
- value.insert("QScriptValue(engine, -qInf())", 0);
- value.insert("QScriptValue(engine, \"NaN\")", 0);
- value.insert("QScriptValue(engine, \"Infinity\")", 0);
- value.insert("QScriptValue(engine, \"-Infinity\")", 0);
- value.insert("QScriptValue(engine, \"ciao\")", 0);
- value.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\"))", 0);
- value.insert("QScriptValue(engine, QString(\"\"))", 0);
- value.insert("QScriptValue(engine, QString())", 0);
- value.insert("QScriptValue(engine, QString(\"0\"))", 0);
- value.insert("QScriptValue(engine, QString(\"123\"))", 123);
- value.insert("QScriptValue(engine, QString(\"1.23\"))", 1);
- value.insert("engine->evaluate(\"[]\")", 0);
- value.insert("engine->evaluate(\"{}\")", 0);
- value.insert("engine->evaluate(\"Object.prototype\")", 0);
- value.insert("engine->evaluate(\"Date.prototype\")", 0);
- value.insert("engine->evaluate(\"Array.prototype\")", 0);
- value.insert("engine->evaluate(\"Function.prototype\")", 0);
- value.insert("engine->evaluate(\"Error.prototype\")", 0);
- value.insert("engine->evaluate(\"Object\")", 0);
- value.insert("engine->evaluate(\"Array\")", 0);
- value.insert("engine->evaluate(\"Number\")", 0);
- value.insert("engine->evaluate(\"Function\")", 0);
- value.insert("engine->evaluate(\"(function() { return 1; })\")", 0);
- value.insert("engine->evaluate(\"(function() { return 'ciao'; })\")", 0);
- value.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\")", 0);
- value.insert("engine->evaluate(\"/foo/\")", 0);
- value.insert("engine->evaluate(\"new Object()\")", 0);
- value.insert("engine->evaluate(\"new Array()\")", 0);
- value.insert("engine->evaluate(\"new Error()\")", 0);
- value.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")", 22);
- value.insert("engine->evaluate(\"Undefined\")", 0);
- value.insert("engine->evaluate(\"Null\")", 0);
- value.insert("engine->evaluate(\"True\")", 0);
- value.insert("engine->evaluate(\"False\")", 0);
- value.insert("engine->evaluate(\"undefined\")", 0);
- value.insert("engine->evaluate(\"null\")", 0);
- value.insert("engine->evaluate(\"true\")", 1);
- value.insert("engine->evaluate(\"false\")", 0);
- value.insert("engine->evaluate(\"122\")", 122);
- value.insert("engine->evaluate(\"124\")", 124);
- value.insert("engine->evaluate(\"0\")", 0);
- value.insert("engine->evaluate(\"0.0\")", 0);
- value.insert("engine->evaluate(\"123.0\")", 123);
- value.insert("engine->evaluate(\"6.37e-8\")", 0);
- value.insert("engine->evaluate(\"-6.37e-8\")", 0);
- value.insert("engine->evaluate(\"0x43211234\")", 1126240820);
- value.insert("engine->evaluate(\"0x10000\")", 65536);
- value.insert("engine->evaluate(\"0x10001\")", 65537);
- value.insert("engine->evaluate(\"NaN\")", 0);
- value.insert("engine->evaluate(\"Infinity\")", 0);
- value.insert("engine->evaluate(\"-Infinity\")", 0);
- value.insert("engine->evaluate(\"'ciao'\")", 0);
- value.insert("engine->evaluate(\"''\")", 0);
- value.insert("engine->evaluate(\"'0'\")", 0);
- value.insert("engine->evaluate(\"'123'\")", 123);
- value.insert("engine->evaluate(\"'12.4'\")", 12);
- value.insert("engine->nullValue()", 0);
- value.insert("engine->undefinedValue()", 0);
- value.insert("engine->newObject()", 0);
- value.insert("engine->newArray()", 0);
- value.insert("engine->newArray(10)", 0);
- value.insert("engine->newDate(QDateTime())", 0);
- value.insert("engine->newQMetaObject(&QObject::staticMetaObject)", 0);
- value.insert("engine->newVariant(QVariant())", 0);
- value.insert("engine->newVariant(QVariant(123))", 123);
- value.insert("engine->newVariant(QVariant(false))", 0);
- value.insert("engine->newQObject(0)", 0);
- value.insert("engine->newQObject(engine)", 0);
- }
- newRow(expr) << value.value(expr);
-}
-
-void tst_QScriptValue::qscriptvalue_castqint32_test(const char*, const QScriptValue& value)
-{
- QFETCH(qint32, expected);
- QCOMPARE(qscriptvalue_cast<qint32>(value), expected);
- QCOMPARE(qscriptvalue_cast<qint32>(value), expected);
-}
-
-DEFINE_TEST_FUNCTION(qscriptvalue_castqint32)
-
-
-void tst_QScriptValue::qscriptvalue_castquint32_initData()
-{
- QTest::addColumn<quint32>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::qscriptvalue_castquint32_makeData(const char* expr)
-{
- static QHash<QString, quint32> value;
- if (value.isEmpty()) {
- value.insert("QScriptValue()", 0);
- value.insert("QScriptValue(QScriptValue::UndefinedValue)", 0);
- value.insert("QScriptValue(QScriptValue::NullValue)", 0);
- value.insert("QScriptValue(true)", 1);
- value.insert("QScriptValue(false)", 0);
- value.insert("QScriptValue(int(122))", 122);
- value.insert("QScriptValue(uint(124))", 124);
- value.insert("QScriptValue(0)", 0);
- value.insert("QScriptValue(0.0)", 0);
- value.insert("QScriptValue(123.0)", 123);
- value.insert("QScriptValue(6.37e-8)", 0);
- value.insert("QScriptValue(-6.37e-8)", 0);
- value.insert("QScriptValue(0x43211234)", 1126240820);
- value.insert("QScriptValue(0x10000)", 65536);
- value.insert("QScriptValue(0x10001)", 65537);
- value.insert("QScriptValue(qSNaN())", 0);
- value.insert("QScriptValue(qQNaN())", 0);
- value.insert("QScriptValue(qInf())", 0);
- value.insert("QScriptValue(-qInf())", 0);
- value.insert("QScriptValue(\"NaN\")", 0);
- value.insert("QScriptValue(\"Infinity\")", 0);
- value.insert("QScriptValue(\"-Infinity\")", 0);
- value.insert("QScriptValue(\"ciao\")", 0);
- value.insert("QScriptValue(QString::fromLatin1(\"ciao\"))", 0);
- value.insert("QScriptValue(QString(\"\"))", 0);
- value.insert("QScriptValue(QString())", 0);
- value.insert("QScriptValue(QString(\"0\"))", 0);
- value.insert("QScriptValue(QString(\"123\"))", 123);
- value.insert("QScriptValue(QString(\"12.4\"))", 12);
- value.insert("QScriptValue(0, QScriptValue::UndefinedValue)", 0);
- value.insert("QScriptValue(0, QScriptValue::NullValue)", 0);
- value.insert("QScriptValue(0, true)", 1);
- value.insert("QScriptValue(0, false)", 0);
- value.insert("QScriptValue(0, int(122))", 122);
- value.insert("QScriptValue(0, uint(124))", 124);
- value.insert("QScriptValue(0, 0)", 0);
- value.insert("QScriptValue(0, 0.0)", 0);
- value.insert("QScriptValue(0, 123.0)", 123);
- value.insert("QScriptValue(0, 6.37e-8)", 0);
- value.insert("QScriptValue(0, -6.37e-8)", 0);
- value.insert("QScriptValue(0, 0x43211234)", 1126240820);
- value.insert("QScriptValue(0, 0x10000)", 65536);
- value.insert("QScriptValue(0, 0x10001)", 65537);
- value.insert("QScriptValue(0, qSNaN())", 0);
- value.insert("QScriptValue(0, qQNaN())", 0);
- value.insert("QScriptValue(0, qInf())", 0);
- value.insert("QScriptValue(0, -qInf())", 0);
- value.insert("QScriptValue(0, \"NaN\")", 0);
- value.insert("QScriptValue(0, \"Infinity\")", 0);
- value.insert("QScriptValue(0, \"-Infinity\")", 0);
- value.insert("QScriptValue(0, \"ciao\")", 0);
- value.insert("QScriptValue(0, QString::fromLatin1(\"ciao\"))", 0);
- value.insert("QScriptValue(0, QString(\"\"))", 0);
- value.insert("QScriptValue(0, QString())", 0);
- value.insert("QScriptValue(0, QString(\"0\"))", 0);
- value.insert("QScriptValue(0, QString(\"123\"))", 123);
- value.insert("QScriptValue(0, QString(\"12.3\"))", 12);
- value.insert("QScriptValue(engine, QScriptValue::UndefinedValue)", 0);
- value.insert("QScriptValue(engine, QScriptValue::NullValue)", 0);
- value.insert("QScriptValue(engine, true)", 1);
- value.insert("QScriptValue(engine, false)", 0);
- value.insert("QScriptValue(engine, int(122))", 122);
- value.insert("QScriptValue(engine, uint(124))", 124);
- value.insert("QScriptValue(engine, 0)", 0);
- value.insert("QScriptValue(engine, 0.0)", 0);
- value.insert("QScriptValue(engine, 123.0)", 123);
- value.insert("QScriptValue(engine, 6.37e-8)", 0);
- value.insert("QScriptValue(engine, -6.37e-8)", 0);
- value.insert("QScriptValue(engine, 0x43211234)", 1126240820);
- value.insert("QScriptValue(engine, 0x10000)", 65536);
- value.insert("QScriptValue(engine, 0x10001)", 65537);
- value.insert("QScriptValue(engine, qSNaN())", 0);
- value.insert("QScriptValue(engine, qQNaN())", 0);
- value.insert("QScriptValue(engine, qInf())", 0);
- value.insert("QScriptValue(engine, -qInf())", 0);
- value.insert("QScriptValue(engine, \"NaN\")", 0);
- value.insert("QScriptValue(engine, \"Infinity\")", 0);
- value.insert("QScriptValue(engine, \"-Infinity\")", 0);
- value.insert("QScriptValue(engine, \"ciao\")", 0);
- value.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\"))", 0);
- value.insert("QScriptValue(engine, QString(\"\"))", 0);
- value.insert("QScriptValue(engine, QString())", 0);
- value.insert("QScriptValue(engine, QString(\"0\"))", 0);
- value.insert("QScriptValue(engine, QString(\"123\"))", 123);
- value.insert("QScriptValue(engine, QString(\"1.23\"))", 1);
- value.insert("engine->evaluate(\"[]\")", 0);
- value.insert("engine->evaluate(\"{}\")", 0);
- value.insert("engine->evaluate(\"Object.prototype\")", 0);
- value.insert("engine->evaluate(\"Date.prototype\")", 0);
- value.insert("engine->evaluate(\"Array.prototype\")", 0);
- value.insert("engine->evaluate(\"Function.prototype\")", 0);
- value.insert("engine->evaluate(\"Error.prototype\")", 0);
- value.insert("engine->evaluate(\"Object\")", 0);
- value.insert("engine->evaluate(\"Array\")", 0);
- value.insert("engine->evaluate(\"Number\")", 0);
- value.insert("engine->evaluate(\"Function\")", 0);
- value.insert("engine->evaluate(\"(function() { return 1; })\")", 0);
- value.insert("engine->evaluate(\"(function() { return 'ciao'; })\")", 0);
- value.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\")", 0);
- value.insert("engine->evaluate(\"/foo/\")", 0);
- value.insert("engine->evaluate(\"new Object()\")", 0);
- value.insert("engine->evaluate(\"new Array()\")", 0);
- value.insert("engine->evaluate(\"new Error()\")", 0);
- value.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")", 22);
- value.insert("engine->evaluate(\"Undefined\")", 0);
- value.insert("engine->evaluate(\"Null\")", 0);
- value.insert("engine->evaluate(\"True\")", 0);
- value.insert("engine->evaluate(\"False\")", 0);
- value.insert("engine->evaluate(\"undefined\")", 0);
- value.insert("engine->evaluate(\"null\")", 0);
- value.insert("engine->evaluate(\"true\")", 1);
- value.insert("engine->evaluate(\"false\")", 0);
- value.insert("engine->evaluate(\"122\")", 122);
- value.insert("engine->evaluate(\"124\")", 124);
- value.insert("engine->evaluate(\"0\")", 0);
- value.insert("engine->evaluate(\"0.0\")", 0);
- value.insert("engine->evaluate(\"123.0\")", 123);
- value.insert("engine->evaluate(\"6.37e-8\")", 0);
- value.insert("engine->evaluate(\"-6.37e-8\")", 0);
- value.insert("engine->evaluate(\"0x43211234\")", 1126240820);
- value.insert("engine->evaluate(\"0x10000\")", 65536);
- value.insert("engine->evaluate(\"0x10001\")", 65537);
- value.insert("engine->evaluate(\"NaN\")", 0);
- value.insert("engine->evaluate(\"Infinity\")", 0);
- value.insert("engine->evaluate(\"-Infinity\")", 0);
- value.insert("engine->evaluate(\"'ciao'\")", 0);
- value.insert("engine->evaluate(\"''\")", 0);
- value.insert("engine->evaluate(\"'0'\")", 0);
- value.insert("engine->evaluate(\"'123'\")", 123);
- value.insert("engine->evaluate(\"'12.4'\")", 12);
- value.insert("engine->nullValue()", 0);
- value.insert("engine->undefinedValue()", 0);
- value.insert("engine->newObject()", 0);
- value.insert("engine->newArray()", 0);
- value.insert("engine->newArray(10)", 0);
- value.insert("engine->newDate(QDateTime())", 0);
- value.insert("engine->newQMetaObject(&QObject::staticMetaObject)", 0);
- value.insert("engine->newVariant(QVariant())", 0);
- value.insert("engine->newVariant(QVariant(123))", 123);
- value.insert("engine->newVariant(QVariant(false))", 0);
- value.insert("engine->newQObject(0)", 0);
- value.insert("engine->newQObject(engine)", 0);
- }
- newRow(expr) << value.value(expr);
-}
-
-void tst_QScriptValue::qscriptvalue_castquint32_test(const char*, const QScriptValue& value)
-{
- QFETCH(quint32, expected);
- QCOMPARE(qscriptvalue_cast<quint32>(value), expected);
- QCOMPARE(qscriptvalue_cast<quint32>(value), expected);
-}
-
-DEFINE_TEST_FUNCTION(qscriptvalue_castquint32)
-
-
-void tst_QScriptValue::qscriptvalue_castquint16_initData()
-{
- QTest::addColumn<quint16>("expected");
- initScriptValues();
-}
-
-void tst_QScriptValue::qscriptvalue_castquint16_makeData(const char* expr)
-{
- static QHash<QString, quint16> value;
- if (value.isEmpty()) {
- value.insert("QScriptValue()", 0);
- value.insert("QScriptValue(QScriptValue::UndefinedValue)", 0);
- value.insert("QScriptValue(QScriptValue::NullValue)", 0);
- value.insert("QScriptValue(true)", 1);
- value.insert("QScriptValue(false)", 0);
- value.insert("QScriptValue(int(122))", 122);
- value.insert("QScriptValue(uint(124))", 124);
- value.insert("QScriptValue(0)", 0);
- value.insert("QScriptValue(0.0)", 0);
- value.insert("QScriptValue(123.0)", 123);
- value.insert("QScriptValue(6.37e-8)", 0);
- value.insert("QScriptValue(-6.37e-8)", 0);
- value.insert("QScriptValue(0x43211234)", 4660);
- value.insert("QScriptValue(0x10000)", 0);
- value.insert("QScriptValue(0x10001)", 1);
- value.insert("QScriptValue(qSNaN())", 0);
- value.insert("QScriptValue(qQNaN())", 0);
- value.insert("QScriptValue(qInf())", 0);
- value.insert("QScriptValue(-qInf())", 0);
- value.insert("QScriptValue(\"NaN\")", 0);
- value.insert("QScriptValue(\"Infinity\")", 0);
- value.insert("QScriptValue(\"-Infinity\")", 0);
- value.insert("QScriptValue(\"ciao\")", 0);
- value.insert("QScriptValue(QString::fromLatin1(\"ciao\"))", 0);
- value.insert("QScriptValue(QString(\"\"))", 0);
- value.insert("QScriptValue(QString())", 0);
- value.insert("QScriptValue(QString(\"0\"))", 0);
- value.insert("QScriptValue(QString(\"123\"))", 123);
- value.insert("QScriptValue(QString(\"12.4\"))", 12);
- value.insert("QScriptValue(0, QScriptValue::UndefinedValue)", 0);
- value.insert("QScriptValue(0, QScriptValue::NullValue)", 0);
- value.insert("QScriptValue(0, true)", 1);
- value.insert("QScriptValue(0, false)", 0);
- value.insert("QScriptValue(0, int(122))", 122);
- value.insert("QScriptValue(0, uint(124))", 124);
- value.insert("QScriptValue(0, 0)", 0);
- value.insert("QScriptValue(0, 0.0)", 0);
- value.insert("QScriptValue(0, 123.0)", 123);
- value.insert("QScriptValue(0, 6.37e-8)", 0);
- value.insert("QScriptValue(0, -6.37e-8)", 0);
- value.insert("QScriptValue(0, 0x43211234)", 4660);
- value.insert("QScriptValue(0, 0x10000)", 0);
- value.insert("QScriptValue(0, 0x10001)", 1);
- value.insert("QScriptValue(0, qSNaN())", 0);
- value.insert("QScriptValue(0, qQNaN())", 0);
- value.insert("QScriptValue(0, qInf())", 0);
- value.insert("QScriptValue(0, -qInf())", 0);
- value.insert("QScriptValue(0, \"NaN\")", 0);
- value.insert("QScriptValue(0, \"Infinity\")", 0);
- value.insert("QScriptValue(0, \"-Infinity\")", 0);
- value.insert("QScriptValue(0, \"ciao\")", 0);
- value.insert("QScriptValue(0, QString::fromLatin1(\"ciao\"))", 0);
- value.insert("QScriptValue(0, QString(\"\"))", 0);
- value.insert("QScriptValue(0, QString())", 0);
- value.insert("QScriptValue(0, QString(\"0\"))", 0);
- value.insert("QScriptValue(0, QString(\"123\"))", 123);
- value.insert("QScriptValue(0, QString(\"12.3\"))", 12);
- value.insert("QScriptValue(engine, QScriptValue::UndefinedValue)", 0);
- value.insert("QScriptValue(engine, QScriptValue::NullValue)", 0);
- value.insert("QScriptValue(engine, true)", 1);
- value.insert("QScriptValue(engine, false)", 0);
- value.insert("QScriptValue(engine, int(122))", 122);
- value.insert("QScriptValue(engine, uint(124))", 124);
- value.insert("QScriptValue(engine, 0)", 0);
- value.insert("QScriptValue(engine, 0.0)", 0);
- value.insert("QScriptValue(engine, 123.0)", 123);
- value.insert("QScriptValue(engine, 6.37e-8)", 0);
- value.insert("QScriptValue(engine, -6.37e-8)", 0);
- value.insert("QScriptValue(engine, 0x43211234)", 4660);
- value.insert("QScriptValue(engine, 0x10000)", 0);
- value.insert("QScriptValue(engine, 0x10001)", 1);
- value.insert("QScriptValue(engine, qSNaN())", 0);
- value.insert("QScriptValue(engine, qQNaN())", 0);
- value.insert("QScriptValue(engine, qInf())", 0);
- value.insert("QScriptValue(engine, -qInf())", 0);
- value.insert("QScriptValue(engine, \"NaN\")", 0);
- value.insert("QScriptValue(engine, \"Infinity\")", 0);
- value.insert("QScriptValue(engine, \"-Infinity\")", 0);
- value.insert("QScriptValue(engine, \"ciao\")", 0);
- value.insert("QScriptValue(engine, QString::fromLatin1(\"ciao\"))", 0);
- value.insert("QScriptValue(engine, QString(\"\"))", 0);
- value.insert("QScriptValue(engine, QString())", 0);
- value.insert("QScriptValue(engine, QString(\"0\"))", 0);
- value.insert("QScriptValue(engine, QString(\"123\"))", 123);
- value.insert("QScriptValue(engine, QString(\"1.23\"))", 1);
- value.insert("engine->evaluate(\"[]\")", 0);
- value.insert("engine->evaluate(\"{}\")", 0);
- value.insert("engine->evaluate(\"Object.prototype\")", 0);
- value.insert("engine->evaluate(\"Date.prototype\")", 0);
- value.insert("engine->evaluate(\"Array.prototype\")", 0);
- value.insert("engine->evaluate(\"Function.prototype\")", 0);
- value.insert("engine->evaluate(\"Error.prototype\")", 0);
- value.insert("engine->evaluate(\"Object\")", 0);
- value.insert("engine->evaluate(\"Array\")", 0);
- value.insert("engine->evaluate(\"Number\")", 0);
- value.insert("engine->evaluate(\"Function\")", 0);
- value.insert("engine->evaluate(\"(function() { return 1; })\")", 0);
- value.insert("engine->evaluate(\"(function() { return 'ciao'; })\")", 0);
- value.insert("engine->evaluate(\"(function() { throw new Error('foo'); })\")", 0);
- value.insert("engine->evaluate(\"/foo/\")", 0);
- value.insert("engine->evaluate(\"new Object()\")", 0);
- value.insert("engine->evaluate(\"new Array()\")", 0);
- value.insert("engine->evaluate(\"new Error()\")", 0);
- value.insert("engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")", 22);
- value.insert("engine->evaluate(\"Undefined\")", 0);
- value.insert("engine->evaluate(\"Null\")", 0);
- value.insert("engine->evaluate(\"True\")", 0);
- value.insert("engine->evaluate(\"False\")", 0);
- value.insert("engine->evaluate(\"undefined\")", 0);
- value.insert("engine->evaluate(\"null\")", 0);
- value.insert("engine->evaluate(\"true\")", 1);
- value.insert("engine->evaluate(\"false\")", 0);
- value.insert("engine->evaluate(\"122\")", 122);
- value.insert("engine->evaluate(\"124\")", 124);
- value.insert("engine->evaluate(\"0\")", 0);
- value.insert("engine->evaluate(\"0.0\")", 0);
- value.insert("engine->evaluate(\"123.0\")", 123);
- value.insert("engine->evaluate(\"6.37e-8\")", 0);
- value.insert("engine->evaluate(\"-6.37e-8\")", 0);
- value.insert("engine->evaluate(\"0x43211234\")", 4660);
- value.insert("engine->evaluate(\"0x10000\")", 0);
- value.insert("engine->evaluate(\"0x10001\")", 1);
- value.insert("engine->evaluate(\"NaN\")", 0);
- value.insert("engine->evaluate(\"Infinity\")", 0);
- value.insert("engine->evaluate(\"-Infinity\")", 0);
- value.insert("engine->evaluate(\"'ciao'\")", 0);
- value.insert("engine->evaluate(\"''\")", 0);
- value.insert("engine->evaluate(\"'0'\")", 0);
- value.insert("engine->evaluate(\"'123'\")", 123);
- value.insert("engine->evaluate(\"'12.4'\")", 12);
- value.insert("engine->nullValue()", 0);
- value.insert("engine->undefinedValue()", 0);
- value.insert("engine->newObject()", 0);
- value.insert("engine->newArray()", 0);
- value.insert("engine->newArray(10)", 0);
- value.insert("engine->newDate(QDateTime())", 0);
- value.insert("engine->newQMetaObject(&QObject::staticMetaObject)", 0);
- value.insert("engine->newVariant(QVariant())", 0);
- value.insert("engine->newVariant(QVariant(123))", 123);
- value.insert("engine->newVariant(QVariant(false))", 0);
- value.insert("engine->newQObject(0)", 0);
- value.insert("engine->newQObject(engine)", 0);
- }
- newRow(expr) << value.value(expr);
-}
-
-void tst_QScriptValue::qscriptvalue_castquint16_test(const char*, const QScriptValue& value)
-{
- QFETCH(quint16, expected);
- QCOMPARE(qscriptvalue_cast<quint16>(value), expected);
- QCOMPARE(qscriptvalue_cast<quint16>(value), expected);
-}
-
-DEFINE_TEST_FUNCTION(qscriptvalue_castquint16)
diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue_generated_cast.cpp b/tests/auto/qscriptvalue/tst_qscriptvalue_generated_cast.cpp
new file mode 100644
index 0000000..e651810
--- /dev/null
+++ b/tests/auto/qscriptvalue/tst_qscriptvalue_generated_cast.cpp
@@ -0,0 +1,1453 @@
+/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the test suite of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the Technology Preview License Agreement accompanying
+** this package.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** If you have questions regarding the use of this file, please contact
+** Nokia at qt-info@nokia.com.
+**
+**
+**
+**
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/****************************************************************************
+*************** This file has been generated. DO NOT MODIFY! ****************
+****************************************************************************/
+
+#include "tst_qscriptvalue.h"
+
+
+
+void tst_QScriptValue::qscriptvalue_castQString_initData()
+{
+ QTest::addColumn<QString>("expected");
+ initScriptValues();
+}
+
+static QString qscriptvalue_castQString_tagArray [] = {
+ "QScriptValue()",
+ "QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(true)",
+ "QScriptValue(false)",
+ "QScriptValue(int(122))",
+ "QScriptValue(uint(124))",
+ "QScriptValue(0)",
+ "QScriptValue(0.0)",
+ "QScriptValue(123.0)",
+ "QScriptValue(6.37e-8)",
+ "QScriptValue(-6.37e-8)",
+ "QScriptValue(0x43211234)",
+ "QScriptValue(0x10000)",
+ "QScriptValue(0x10001)",
+ "QScriptValue(qSNaN())",
+ "QScriptValue(qQNaN())",
+ "QScriptValue(qInf())",
+ "QScriptValue(-qInf())",
+ "QScriptValue(\"NaN\")",
+ "QScriptValue(\"Infinity\")",
+ "QScriptValue(\"-Infinity\")",
+ "QScriptValue(\"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"\"))",
+ "QScriptValue(QString())",
+ "QScriptValue(QString(\"0\"))",
+ "QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(0, true)",
+ "QScriptValue(0, false)",
+ "QScriptValue(0, int(122))",
+ "QScriptValue(0, uint(124))",
+ "QScriptValue(0, 0)",
+ "QScriptValue(0, 0.0)",
+ "QScriptValue(0, 123.0)",
+ "QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, -6.37e-8)",
+ "QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 0x10001)",
+ "QScriptValue(0, qSNaN())",
+ "QScriptValue(0, qQNaN())",
+ "QScriptValue(0, qInf())",
+ "QScriptValue(0, -qInf())",
+ "QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, QString())",
+ "QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(engine, true)",
+ "QScriptValue(engine, false)",
+ "QScriptValue(engine, int(122))",
+ "QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, 0)",
+ "QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, qSNaN())",
+ "QScriptValue(engine, qQNaN())",
+ "QScriptValue(engine, qInf())",
+ "QScriptValue(engine, -qInf())",
+ "QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, QString())",
+ "QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"[]\")",
+ "engine->evaluate(\"{}\")",
+ "engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Date.prototype\")",
+ "engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Null\")",
+ "engine->evaluate(\"True\")",
+ "engine->evaluate(\"False\")",
+ "engine->evaluate(\"undefined\")",
+ "engine->evaluate(\"null\")",
+ "engine->evaluate(\"true\")",
+ "engine->evaluate(\"false\")",
+ "engine->evaluate(\"122\")",
+ "engine->evaluate(\"124\")",
+ "engine->evaluate(\"0\")",
+ "engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"-6.37e-8\")",
+ "engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"NaN\")",
+ "engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"-Infinity\")",
+ "engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"''\")",
+ "engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"'12.4'\")",
+ "engine->nullValue()",
+ "engine->undefinedValue()",
+ "engine->newObject()",
+ "engine->newArray()",
+ "engine->newArray(10)",
+ "engine->newDate(QDateTime())",
+ "engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->newVariant(QVariant())",
+ "engine->newVariant(QVariant(123))",
+ "engine->newVariant(QVariant(false))",
+ "engine->newQObject(0)",
+ "engine->newQObject(engine)",};
+static QString qscriptvalue_castQString_valueArray [] = {
+ "", "",
+ "", "true",
+ "false", "122",
+ "124", "0",
+ "0", "123",
+ "6.37e-8", "-6.37e-8",
+ "1126240820", "65536",
+ "65537", "NaN",
+ "NaN", "Infinity",
+ "-Infinity", "NaN",
+ "Infinity", "-Infinity",
+ "ciao", "ciao",
+ "", "",
+ "0", "123",
+ "12.4", "",
+ "", "true",
+ "false", "122",
+ "124", "0",
+ "0", "123",
+ "6.37e-8", "-6.37e-8",
+ "1126240820", "65536",
+ "65537", "NaN",
+ "NaN", "Infinity",
+ "-Infinity", "NaN",
+ "Infinity", "-Infinity",
+ "ciao", "ciao",
+ "", "",
+ "0", "123",
+ "12.3", "",
+ "", "true",
+ "false", "122",
+ "124", "0",
+ "0", "123",
+ "6.37e-8", "-6.37e-8",
+ "1126240820", "65536",
+ "65537", "NaN",
+ "NaN", "Infinity",
+ "-Infinity", "NaN",
+ "Infinity", "-Infinity",
+ "ciao", "ciao",
+ "", "",
+ "0", "123",
+ "1.23", "",
+ "", "[object Object]",
+ "Invalid Date", "",
+ "function () {\n [native code]\n}", "Error: Unknown error",
+ "function Object() {\n [native code]\n}", "function Array() {\n [native code]\n}",
+ "function Number() {\n [native code]\n}", "function Function() {\n [native code]\n}",
+ "function () { return 1; }", "function () { return 'ciao'; }",
+ "function () { throw new Error('foo'); }", "/foo/",
+ "[object Object]", "",
+ "Error: Unknown error", "22",
+ "ReferenceError: Can't find variable: Undefined", "ReferenceError: Can't find variable: Null",
+ "ReferenceError: Can't find variable: True", "ReferenceError: Can't find variable: False",
+ "", "",
+ "true", "false",
+ "122", "124",
+ "0", "0",
+ "123", "6.37e-8",
+ "-6.37e-8", "1126240820",
+ "65536", "65537",
+ "NaN", "Infinity",
+ "-Infinity", "ciao",
+ "", "0",
+ "123", "12.4",
+ "", "",
+ "[object Object]", "",
+ ",,,,,,,,,", "Invalid Date",
+ "[object QMetaObject]", "undefined",
+ "123", "false",
+ "", "QScriptEngine(name = \"\")", };
+void tst_QScriptValue::qscriptvalue_castQString_makeData(const char* expr)
+{
+ static QHash<QString, QString> value;
+ if (value.isEmpty()) {
+ value.reserve(142);
+ for (unsigned i = 0; i < 142; ++i)
+ value.insert(qscriptvalue_castQString_tagArray[i], qscriptvalue_castQString_valueArray[i]);
+ }
+ newRow(expr) << value.value(expr);
+}
+
+void tst_QScriptValue::qscriptvalue_castQString_test(const char*, const QScriptValue& value)
+{
+ QFETCH(QString, expected);
+ QCOMPARE(qscriptvalue_cast<QString>(value), expected);
+ QCOMPARE(qscriptvalue_cast<QString>(value), expected);
+}
+
+DEFINE_TEST_FUNCTION(qscriptvalue_castQString)
+
+
+void tst_QScriptValue::qscriptvalue_castqsreal_initData()
+{
+ QTest::addColumn<qsreal>("expected");
+ initScriptValues();
+}
+
+static QString qscriptvalue_castqsreal_tagArray [] = {
+ "QScriptValue()",
+ "QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(true)",
+ "QScriptValue(false)",
+ "QScriptValue(int(122))",
+ "QScriptValue(uint(124))",
+ "QScriptValue(0)",
+ "QScriptValue(0.0)",
+ "QScriptValue(123.0)",
+ "QScriptValue(6.37e-8)",
+ "QScriptValue(-6.37e-8)",
+ "QScriptValue(0x43211234)",
+ "QScriptValue(0x10000)",
+ "QScriptValue(0x10001)",
+ "QScriptValue(qSNaN())",
+ "QScriptValue(qQNaN())",
+ "QScriptValue(qInf())",
+ "QScriptValue(-qInf())",
+ "QScriptValue(\"NaN\")",
+ "QScriptValue(\"Infinity\")",
+ "QScriptValue(\"-Infinity\")",
+ "QScriptValue(\"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"\"))",
+ "QScriptValue(QString())",
+ "QScriptValue(QString(\"0\"))",
+ "QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(0, true)",
+ "QScriptValue(0, false)",
+ "QScriptValue(0, int(122))",
+ "QScriptValue(0, uint(124))",
+ "QScriptValue(0, 0)",
+ "QScriptValue(0, 0.0)",
+ "QScriptValue(0, 123.0)",
+ "QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, -6.37e-8)",
+ "QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 0x10001)",
+ "QScriptValue(0, qSNaN())",
+ "QScriptValue(0, qQNaN())",
+ "QScriptValue(0, qInf())",
+ "QScriptValue(0, -qInf())",
+ "QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, QString())",
+ "QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(engine, true)",
+ "QScriptValue(engine, false)",
+ "QScriptValue(engine, int(122))",
+ "QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, 0)",
+ "QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, qSNaN())",
+ "QScriptValue(engine, qQNaN())",
+ "QScriptValue(engine, qInf())",
+ "QScriptValue(engine, -qInf())",
+ "QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, QString())",
+ "QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"[]\")",
+ "engine->evaluate(\"{}\")",
+ "engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Date.prototype\")",
+ "engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Null\")",
+ "engine->evaluate(\"True\")",
+ "engine->evaluate(\"False\")",
+ "engine->evaluate(\"undefined\")",
+ "engine->evaluate(\"null\")",
+ "engine->evaluate(\"true\")",
+ "engine->evaluate(\"false\")",
+ "engine->evaluate(\"122\")",
+ "engine->evaluate(\"124\")",
+ "engine->evaluate(\"0\")",
+ "engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"-6.37e-8\")",
+ "engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"NaN\")",
+ "engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"-Infinity\")",
+ "engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"''\")",
+ "engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"'12.4'\")",
+ "engine->nullValue()",
+ "engine->undefinedValue()",
+ "engine->newObject()",
+ "engine->newArray()",
+ "engine->newArray(10)",
+ "engine->newDate(QDateTime())",
+ "engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->newVariant(QVariant())",
+ "engine->newVariant(QVariant(123))",
+ "engine->newVariant(QVariant(false))",
+ "engine->newQObject(0)",
+ "engine->newQObject(engine)",};
+static qsreal qscriptvalue_castqsreal_valueArray [] = {
+ 0, qQNaN(), 0, 1, 0, 122, 124, 0, 0, 123,
+ 6.369999999999999e-08, -6.369999999999999e-08, 1126240820, 65536, 65537, qQNaN(), qQNaN(), qInf(), qInf(), qQNaN(),
+ qInf(), qInf(), qQNaN(), qQNaN(), 0, 0, 0, 123, 12.4, qQNaN(),
+ 0, 1, 0, 122, 124, 0, 0, 123, 6.369999999999999e-08, -6.369999999999999e-08,
+ 1126240820, 65536, 65537, qQNaN(), qQNaN(), qInf(), qInf(), qQNaN(), qInf(), qInf(),
+ qQNaN(), qQNaN(), 0, 0, 0, 123, 12.3, qQNaN(), 0, 1,
+ 0, 122, 124, 0, 0, 123, 6.369999999999999e-08, -6.369999999999999e-08, 1126240820, 65536,
+ 65537, qQNaN(), qQNaN(), qInf(), qInf(), qQNaN(), qInf(), qInf(), qQNaN(), qQNaN(),
+ 0, 0, 0, 123, 1.23, 0, qQNaN(), qQNaN(), qQNaN(), 0,
+ qQNaN(), qQNaN(), qQNaN(), qQNaN(), qQNaN(), qQNaN(), qQNaN(), qQNaN(), qQNaN(), qQNaN(),
+ qQNaN(), 0, qQNaN(), 22, qQNaN(), qQNaN(), qQNaN(), qQNaN(), qQNaN(), 0,
+ 1, 0, 122, 124, 0, 0, 123, 6.369999999999999e-08, -6.369999999999999e-08, 1126240820,
+ 65536, 65537, qQNaN(), qInf(), qInf(), qQNaN(), 0, 0, 123, 12.4,
+ 0, qQNaN(), qQNaN(), 0, qQNaN(), qQNaN(), qQNaN(), qQNaN(), 123, 0,
+ 0, qQNaN(), };
+void tst_QScriptValue::qscriptvalue_castqsreal_makeData(const char* expr)
+{
+ static QHash<QString, qsreal> value;
+ if (value.isEmpty()) {
+ value.reserve(142);
+ for (unsigned i = 0; i < 142; ++i)
+ value.insert(qscriptvalue_castqsreal_tagArray[i], qscriptvalue_castqsreal_valueArray[i]);
+ }
+ newRow(expr) << value.value(expr);
+}
+
+void tst_QScriptValue::qscriptvalue_castqsreal_test(const char*, const QScriptValue& value)
+{
+ QFETCH(qsreal, expected);
+ if (qIsNaN(expected)) {
+ QVERIFY(qIsNaN(qscriptvalue_cast<qsreal>(value)));
+ QVERIFY(qIsNaN(qscriptvalue_cast<qsreal>(value)));
+ return;
+ }
+ if (qIsInf(expected)) {
+ QVERIFY(qIsInf(qscriptvalue_cast<qsreal>(value)));
+ QVERIFY(qIsInf(qscriptvalue_cast<qsreal>(value)));
+ return;
+ }
+ QCOMPARE(qscriptvalue_cast<qsreal>(value), expected);
+ QCOMPARE(qscriptvalue_cast<qsreal>(value), expected);
+}
+
+DEFINE_TEST_FUNCTION(qscriptvalue_castqsreal)
+
+
+void tst_QScriptValue::qscriptvalue_castbool_initData()
+{
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString qscriptvalue_castbool_tagArray [] = {
+ "QScriptValue()",
+ "QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(true)",
+ "QScriptValue(false)",
+ "QScriptValue(int(122))",
+ "QScriptValue(uint(124))",
+ "QScriptValue(0)",
+ "QScriptValue(0.0)",
+ "QScriptValue(123.0)",
+ "QScriptValue(6.37e-8)",
+ "QScriptValue(-6.37e-8)",
+ "QScriptValue(0x43211234)",
+ "QScriptValue(0x10000)",
+ "QScriptValue(0x10001)",
+ "QScriptValue(qSNaN())",
+ "QScriptValue(qQNaN())",
+ "QScriptValue(qInf())",
+ "QScriptValue(-qInf())",
+ "QScriptValue(\"NaN\")",
+ "QScriptValue(\"Infinity\")",
+ "QScriptValue(\"-Infinity\")",
+ "QScriptValue(\"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"\"))",
+ "QScriptValue(QString())",
+ "QScriptValue(QString(\"0\"))",
+ "QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(0, true)",
+ "QScriptValue(0, false)",
+ "QScriptValue(0, int(122))",
+ "QScriptValue(0, uint(124))",
+ "QScriptValue(0, 0)",
+ "QScriptValue(0, 0.0)",
+ "QScriptValue(0, 123.0)",
+ "QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, -6.37e-8)",
+ "QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 0x10001)",
+ "QScriptValue(0, qSNaN())",
+ "QScriptValue(0, qQNaN())",
+ "QScriptValue(0, qInf())",
+ "QScriptValue(0, -qInf())",
+ "QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, QString())",
+ "QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(engine, true)",
+ "QScriptValue(engine, false)",
+ "QScriptValue(engine, int(122))",
+ "QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, 0)",
+ "QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, qSNaN())",
+ "QScriptValue(engine, qQNaN())",
+ "QScriptValue(engine, qInf())",
+ "QScriptValue(engine, -qInf())",
+ "QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, QString())",
+ "QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"[]\")",
+ "engine->evaluate(\"{}\")",
+ "engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Date.prototype\")",
+ "engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Null\")",
+ "engine->evaluate(\"True\")",
+ "engine->evaluate(\"False\")",
+ "engine->evaluate(\"undefined\")",
+ "engine->evaluate(\"null\")",
+ "engine->evaluate(\"true\")",
+ "engine->evaluate(\"false\")",
+ "engine->evaluate(\"122\")",
+ "engine->evaluate(\"124\")",
+ "engine->evaluate(\"0\")",
+ "engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"-6.37e-8\")",
+ "engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"NaN\")",
+ "engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"-Infinity\")",
+ "engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"''\")",
+ "engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"'12.4'\")",
+ "engine->nullValue()",
+ "engine->undefinedValue()",
+ "engine->newObject()",
+ "engine->newArray()",
+ "engine->newArray(10)",
+ "engine->newDate(QDateTime())",
+ "engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->newVariant(QVariant())",
+ "engine->newVariant(QVariant(123))",
+ "engine->newVariant(QVariant(false))",
+ "engine->newQObject(0)",
+ "engine->newQObject(engine)",};
+static bool qscriptvalue_castbool_valueArray [] = {
+ false, false,
+ false, true,
+ false, true,
+ true, false,
+ false, true,
+ true, true,
+ true, true,
+ true, false,
+ false, true,
+ true, true,
+ true, true,
+ true, true,
+ false, false,
+ true, true,
+ true, false,
+ false, true,
+ false, true,
+ true, false,
+ false, true,
+ true, true,
+ true, true,
+ true, false,
+ false, true,
+ true, true,
+ true, true,
+ true, true,
+ false, false,
+ true, true,
+ true, false,
+ false, true,
+ false, true,
+ true, false,
+ false, true,
+ true, true,
+ true, true,
+ true, false,
+ false, true,
+ true, true,
+ true, true,
+ true, true,
+ false, false,
+ true, true,
+ true, true,
+ false, true,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ false, false,
+ true, false,
+ true, true,
+ false, false,
+ true, true,
+ true, true,
+ true, true,
+ false, true,
+ true, true,
+ false, true,
+ true, true,
+ false, false,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ false, true, };
+void tst_QScriptValue::qscriptvalue_castbool_makeData(const char* expr)
+{
+ static QHash<QString, bool> value;
+ if (value.isEmpty()) {
+ value.reserve(142);
+ for (unsigned i = 0; i < 142; ++i)
+ value.insert(qscriptvalue_castbool_tagArray[i], qscriptvalue_castbool_valueArray[i]);
+ }
+ newRow(expr) << value.value(expr);
+}
+
+void tst_QScriptValue::qscriptvalue_castbool_test(const char*, const QScriptValue& value)
+{
+ QFETCH(bool, expected);
+ QCOMPARE(qscriptvalue_cast<bool>(value), expected);
+ QCOMPARE(qscriptvalue_cast<bool>(value), expected);
+}
+
+DEFINE_TEST_FUNCTION(qscriptvalue_castbool)
+
+
+void tst_QScriptValue::qscriptvalue_castqint32_initData()
+{
+ QTest::addColumn<qint32>("expected");
+ initScriptValues();
+}
+
+static QString qscriptvalue_castqint32_tagArray [] = {
+ "QScriptValue()",
+ "QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(true)",
+ "QScriptValue(false)",
+ "QScriptValue(int(122))",
+ "QScriptValue(uint(124))",
+ "QScriptValue(0)",
+ "QScriptValue(0.0)",
+ "QScriptValue(123.0)",
+ "QScriptValue(6.37e-8)",
+ "QScriptValue(-6.37e-8)",
+ "QScriptValue(0x43211234)",
+ "QScriptValue(0x10000)",
+ "QScriptValue(0x10001)",
+ "QScriptValue(qSNaN())",
+ "QScriptValue(qQNaN())",
+ "QScriptValue(qInf())",
+ "QScriptValue(-qInf())",
+ "QScriptValue(\"NaN\")",
+ "QScriptValue(\"Infinity\")",
+ "QScriptValue(\"-Infinity\")",
+ "QScriptValue(\"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"\"))",
+ "QScriptValue(QString())",
+ "QScriptValue(QString(\"0\"))",
+ "QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(0, true)",
+ "QScriptValue(0, false)",
+ "QScriptValue(0, int(122))",
+ "QScriptValue(0, uint(124))",
+ "QScriptValue(0, 0)",
+ "QScriptValue(0, 0.0)",
+ "QScriptValue(0, 123.0)",
+ "QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, -6.37e-8)",
+ "QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 0x10001)",
+ "QScriptValue(0, qSNaN())",
+ "QScriptValue(0, qQNaN())",
+ "QScriptValue(0, qInf())",
+ "QScriptValue(0, -qInf())",
+ "QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, QString())",
+ "QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(engine, true)",
+ "QScriptValue(engine, false)",
+ "QScriptValue(engine, int(122))",
+ "QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, 0)",
+ "QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, qSNaN())",
+ "QScriptValue(engine, qQNaN())",
+ "QScriptValue(engine, qInf())",
+ "QScriptValue(engine, -qInf())",
+ "QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, QString())",
+ "QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"[]\")",
+ "engine->evaluate(\"{}\")",
+ "engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Date.prototype\")",
+ "engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Null\")",
+ "engine->evaluate(\"True\")",
+ "engine->evaluate(\"False\")",
+ "engine->evaluate(\"undefined\")",
+ "engine->evaluate(\"null\")",
+ "engine->evaluate(\"true\")",
+ "engine->evaluate(\"false\")",
+ "engine->evaluate(\"122\")",
+ "engine->evaluate(\"124\")",
+ "engine->evaluate(\"0\")",
+ "engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"-6.37e-8\")",
+ "engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"NaN\")",
+ "engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"-Infinity\")",
+ "engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"''\")",
+ "engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"'12.4'\")",
+ "engine->nullValue()",
+ "engine->undefinedValue()",
+ "engine->newObject()",
+ "engine->newArray()",
+ "engine->newArray(10)",
+ "engine->newDate(QDateTime())",
+ "engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->newVariant(QVariant())",
+ "engine->newVariant(QVariant(123))",
+ "engine->newVariant(QVariant(false))",
+ "engine->newQObject(0)",
+ "engine->newQObject(engine)",};
+static qint32 qscriptvalue_castqint32_valueArray [] = {
+ 0, 0,
+ 0, 1,
+ 0, 122,
+ 124, 0,
+ 0, 123,
+ 0, 0,
+ 1126240820, 65536,
+ 65537, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 123,
+ 12, 0,
+ 0, 1,
+ 0, 122,
+ 124, 0,
+ 0, 123,
+ 0, 0,
+ 1126240820, 65536,
+ 65537, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 123,
+ 12, 0,
+ 0, 1,
+ 0, 122,
+ 124, 0,
+ 0, 123,
+ 0, 0,
+ 1126240820, 65536,
+ 65537, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 123,
+ 1, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 22,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 1, 0,
+ 122, 124,
+ 0, 0,
+ 123, 0,
+ 0, 1126240820,
+ 65536, 65537,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 123, 12,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 123, 0,
+ 0, 0, };
+void tst_QScriptValue::qscriptvalue_castqint32_makeData(const char* expr)
+{
+ static QHash<QString, qint32> value;
+ if (value.isEmpty()) {
+ value.reserve(142);
+ for (unsigned i = 0; i < 142; ++i)
+ value.insert(qscriptvalue_castqint32_tagArray[i], qscriptvalue_castqint32_valueArray[i]);
+ }
+ newRow(expr) << value.value(expr);
+}
+
+void tst_QScriptValue::qscriptvalue_castqint32_test(const char*, const QScriptValue& value)
+{
+ QFETCH(qint32, expected);
+ QCOMPARE(qscriptvalue_cast<qint32>(value), expected);
+ QCOMPARE(qscriptvalue_cast<qint32>(value), expected);
+}
+
+DEFINE_TEST_FUNCTION(qscriptvalue_castqint32)
+
+
+void tst_QScriptValue::qscriptvalue_castquint32_initData()
+{
+ QTest::addColumn<quint32>("expected");
+ initScriptValues();
+}
+
+static QString qscriptvalue_castquint32_tagArray [] = {
+ "QScriptValue()",
+ "QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(true)",
+ "QScriptValue(false)",
+ "QScriptValue(int(122))",
+ "QScriptValue(uint(124))",
+ "QScriptValue(0)",
+ "QScriptValue(0.0)",
+ "QScriptValue(123.0)",
+ "QScriptValue(6.37e-8)",
+ "QScriptValue(-6.37e-8)",
+ "QScriptValue(0x43211234)",
+ "QScriptValue(0x10000)",
+ "QScriptValue(0x10001)",
+ "QScriptValue(qSNaN())",
+ "QScriptValue(qQNaN())",
+ "QScriptValue(qInf())",
+ "QScriptValue(-qInf())",
+ "QScriptValue(\"NaN\")",
+ "QScriptValue(\"Infinity\")",
+ "QScriptValue(\"-Infinity\")",
+ "QScriptValue(\"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"\"))",
+ "QScriptValue(QString())",
+ "QScriptValue(QString(\"0\"))",
+ "QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(0, true)",
+ "QScriptValue(0, false)",
+ "QScriptValue(0, int(122))",
+ "QScriptValue(0, uint(124))",
+ "QScriptValue(0, 0)",
+ "QScriptValue(0, 0.0)",
+ "QScriptValue(0, 123.0)",
+ "QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, -6.37e-8)",
+ "QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 0x10001)",
+ "QScriptValue(0, qSNaN())",
+ "QScriptValue(0, qQNaN())",
+ "QScriptValue(0, qInf())",
+ "QScriptValue(0, -qInf())",
+ "QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, QString())",
+ "QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(engine, true)",
+ "QScriptValue(engine, false)",
+ "QScriptValue(engine, int(122))",
+ "QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, 0)",
+ "QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, qSNaN())",
+ "QScriptValue(engine, qQNaN())",
+ "QScriptValue(engine, qInf())",
+ "QScriptValue(engine, -qInf())",
+ "QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, QString())",
+ "QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"[]\")",
+ "engine->evaluate(\"{}\")",
+ "engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Date.prototype\")",
+ "engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Null\")",
+ "engine->evaluate(\"True\")",
+ "engine->evaluate(\"False\")",
+ "engine->evaluate(\"undefined\")",
+ "engine->evaluate(\"null\")",
+ "engine->evaluate(\"true\")",
+ "engine->evaluate(\"false\")",
+ "engine->evaluate(\"122\")",
+ "engine->evaluate(\"124\")",
+ "engine->evaluate(\"0\")",
+ "engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"-6.37e-8\")",
+ "engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"NaN\")",
+ "engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"-Infinity\")",
+ "engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"''\")",
+ "engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"'12.4'\")",
+ "engine->nullValue()",
+ "engine->undefinedValue()",
+ "engine->newObject()",
+ "engine->newArray()",
+ "engine->newArray(10)",
+ "engine->newDate(QDateTime())",
+ "engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->newVariant(QVariant())",
+ "engine->newVariant(QVariant(123))",
+ "engine->newVariant(QVariant(false))",
+ "engine->newQObject(0)",
+ "engine->newQObject(engine)",};
+static quint32 qscriptvalue_castquint32_valueArray [] = {
+ 0, 0,
+ 0, 1,
+ 0, 122,
+ 124, 0,
+ 0, 123,
+ 0, 0,
+ 1126240820, 65536,
+ 65537, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 123,
+ 12, 0,
+ 0, 1,
+ 0, 122,
+ 124, 0,
+ 0, 123,
+ 0, 0,
+ 1126240820, 65536,
+ 65537, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 123,
+ 12, 0,
+ 0, 1,
+ 0, 122,
+ 124, 0,
+ 0, 123,
+ 0, 0,
+ 1126240820, 65536,
+ 65537, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 123,
+ 1, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 22,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 1, 0,
+ 122, 124,
+ 0, 0,
+ 123, 0,
+ 0, 1126240820,
+ 65536, 65537,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 123, 12,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 123, 0,
+ 0, 0, };
+void tst_QScriptValue::qscriptvalue_castquint32_makeData(const char* expr)
+{
+ static QHash<QString, quint32> value;
+ if (value.isEmpty()) {
+ value.reserve(142);
+ for (unsigned i = 0; i < 142; ++i)
+ value.insert(qscriptvalue_castquint32_tagArray[i], qscriptvalue_castquint32_valueArray[i]);
+ }
+ newRow(expr) << value.value(expr);
+}
+
+void tst_QScriptValue::qscriptvalue_castquint32_test(const char*, const QScriptValue& value)
+{
+ QFETCH(quint32, expected);
+ QCOMPARE(qscriptvalue_cast<quint32>(value), expected);
+ QCOMPARE(qscriptvalue_cast<quint32>(value), expected);
+}
+
+DEFINE_TEST_FUNCTION(qscriptvalue_castquint32)
+
+
+void tst_QScriptValue::qscriptvalue_castquint16_initData()
+{
+ QTest::addColumn<quint16>("expected");
+ initScriptValues();
+}
+
+static QString qscriptvalue_castquint16_tagArray [] = {
+ "QScriptValue()",
+ "QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(true)",
+ "QScriptValue(false)",
+ "QScriptValue(int(122))",
+ "QScriptValue(uint(124))",
+ "QScriptValue(0)",
+ "QScriptValue(0.0)",
+ "QScriptValue(123.0)",
+ "QScriptValue(6.37e-8)",
+ "QScriptValue(-6.37e-8)",
+ "QScriptValue(0x43211234)",
+ "QScriptValue(0x10000)",
+ "QScriptValue(0x10001)",
+ "QScriptValue(qSNaN())",
+ "QScriptValue(qQNaN())",
+ "QScriptValue(qInf())",
+ "QScriptValue(-qInf())",
+ "QScriptValue(\"NaN\")",
+ "QScriptValue(\"Infinity\")",
+ "QScriptValue(\"-Infinity\")",
+ "QScriptValue(\"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"\"))",
+ "QScriptValue(QString())",
+ "QScriptValue(QString(\"0\"))",
+ "QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(0, true)",
+ "QScriptValue(0, false)",
+ "QScriptValue(0, int(122))",
+ "QScriptValue(0, uint(124))",
+ "QScriptValue(0, 0)",
+ "QScriptValue(0, 0.0)",
+ "QScriptValue(0, 123.0)",
+ "QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, -6.37e-8)",
+ "QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 0x10001)",
+ "QScriptValue(0, qSNaN())",
+ "QScriptValue(0, qQNaN())",
+ "QScriptValue(0, qInf())",
+ "QScriptValue(0, -qInf())",
+ "QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, QString())",
+ "QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(engine, true)",
+ "QScriptValue(engine, false)",
+ "QScriptValue(engine, int(122))",
+ "QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, 0)",
+ "QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, qSNaN())",
+ "QScriptValue(engine, qQNaN())",
+ "QScriptValue(engine, qInf())",
+ "QScriptValue(engine, -qInf())",
+ "QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, QString())",
+ "QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"[]\")",
+ "engine->evaluate(\"{}\")",
+ "engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Date.prototype\")",
+ "engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Null\")",
+ "engine->evaluate(\"True\")",
+ "engine->evaluate(\"False\")",
+ "engine->evaluate(\"undefined\")",
+ "engine->evaluate(\"null\")",
+ "engine->evaluate(\"true\")",
+ "engine->evaluate(\"false\")",
+ "engine->evaluate(\"122\")",
+ "engine->evaluate(\"124\")",
+ "engine->evaluate(\"0\")",
+ "engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"-6.37e-8\")",
+ "engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"NaN\")",
+ "engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"-Infinity\")",
+ "engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"''\")",
+ "engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"'12.4'\")",
+ "engine->nullValue()",
+ "engine->undefinedValue()",
+ "engine->newObject()",
+ "engine->newArray()",
+ "engine->newArray(10)",
+ "engine->newDate(QDateTime())",
+ "engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->newVariant(QVariant())",
+ "engine->newVariant(QVariant(123))",
+ "engine->newVariant(QVariant(false))",
+ "engine->newQObject(0)",
+ "engine->newQObject(engine)",};
+static quint16 qscriptvalue_castquint16_valueArray [] = {
+ 0, 0,
+ 0, 1,
+ 0, 122,
+ 124, 0,
+ 0, 123,
+ 0, 0,
+ 4660, 0,
+ 1, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 123,
+ 12, 0,
+ 0, 1,
+ 0, 122,
+ 124, 0,
+ 0, 123,
+ 0, 0,
+ 4660, 0,
+ 1, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 123,
+ 12, 0,
+ 0, 1,
+ 0, 122,
+ 124, 0,
+ 0, 123,
+ 0, 0,
+ 4660, 0,
+ 1, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 123,
+ 1, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 22,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 1, 0,
+ 122, 124,
+ 0, 0,
+ 123, 0,
+ 0, 4660,
+ 0, 1,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 123, 12,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 123, 0,
+ 0, 0, };
+void tst_QScriptValue::qscriptvalue_castquint16_makeData(const char* expr)
+{
+ static QHash<QString, quint16> value;
+ if (value.isEmpty()) {
+ value.reserve(142);
+ for (unsigned i = 0; i < 142; ++i)
+ value.insert(qscriptvalue_castquint16_tagArray[i], qscriptvalue_castquint16_valueArray[i]);
+ }
+ newRow(expr) << value.value(expr);
+}
+
+void tst_QScriptValue::qscriptvalue_castquint16_test(const char*, const QScriptValue& value)
+{
+ QFETCH(quint16, expected);
+ QCOMPARE(qscriptvalue_cast<quint16>(value), expected);
+ QCOMPARE(qscriptvalue_cast<quint16>(value), expected);
+}
+
+DEFINE_TEST_FUNCTION(qscriptvalue_castquint16)
diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue_generated_comparison.cpp b/tests/auto/qscriptvalue/tst_qscriptvalue_generated_comparison.cpp
new file mode 100644
index 0000000..6e1f8ee
--- /dev/null
+++ b/tests/auto/qscriptvalue/tst_qscriptvalue_generated_comparison.cpp
@@ -0,0 +1,7026 @@
+/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the test suite of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the Technology Preview License Agreement accompanying
+** this package.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** If you have questions regarding the use of this file, please contact
+** Nokia at qt-info@nokia.com.
+**
+**
+**
+**
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/****************************************************************************
+*************** This file has been generated. DO NOT MODIFY! ****************
+****************************************************************************/
+
+#include "tst_qscriptvalue.h"
+
+
+
+void tst_QScriptValue::equals_initData()
+{
+ QTest::addColumn<QScriptValue>("other");
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString equals_array [] = {
+ "QScriptValue() <=> QScriptValue()",
+ "QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(QScriptValue::UndefinedValue) <=> engine->evaluate(\"{}\")",
+ "QScriptValue(QScriptValue::UndefinedValue) <=> engine->evaluate(\"undefined\")",
+ "QScriptValue(QScriptValue::UndefinedValue) <=> engine->evaluate(\"null\")",
+ "QScriptValue(QScriptValue::UndefinedValue) <=> engine->nullValue()",
+ "QScriptValue(QScriptValue::UndefinedValue) <=> engine->undefinedValue()",
+ "QScriptValue(QScriptValue::UndefinedValue) <=> engine->newQObject(0)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"{}\")",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"undefined\")",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"null\")",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->nullValue()",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->undefinedValue()",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->newQObject(0)",
+ "QScriptValue(true) <=> QScriptValue(true)",
+ "QScriptValue(true) <=> QScriptValue(0, true)",
+ "QScriptValue(true) <=> QScriptValue(engine, true)",
+ "QScriptValue(true) <=> engine->evaluate(\"true\")",
+ "QScriptValue(false) <=> QScriptValue(false)",
+ "QScriptValue(false) <=> QScriptValue(0)",
+ "QScriptValue(false) <=> QScriptValue(0.0)",
+ "QScriptValue(false) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(false) <=> QScriptValue(QString())",
+ "QScriptValue(false) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(false) <=> QScriptValue(0, false)",
+ "QScriptValue(false) <=> QScriptValue(0, 0)",
+ "QScriptValue(false) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(false) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(false) <=> QScriptValue(0, QString())",
+ "QScriptValue(false) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(false) <=> QScriptValue(engine, false)",
+ "QScriptValue(false) <=> QScriptValue(engine, 0)",
+ "QScriptValue(false) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(false) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(false) <=> QScriptValue(engine, QString())",
+ "QScriptValue(false) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(false) <=> engine->evaluate(\"[]\")",
+ "QScriptValue(false) <=> engine->evaluate(\"Array.prototype\")",
+ "QScriptValue(false) <=> engine->evaluate(\"new Array()\")",
+ "QScriptValue(false) <=> engine->evaluate(\"false\")",
+ "QScriptValue(false) <=> engine->evaluate(\"0\")",
+ "QScriptValue(false) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(false) <=> engine->evaluate(\"''\")",
+ "QScriptValue(false) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(false) <=> engine->newArray()",
+ "QScriptValue(false) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(int(122)) <=> QScriptValue(int(122))",
+ "QScriptValue(int(122)) <=> QScriptValue(0, int(122))",
+ "QScriptValue(int(122)) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(int(122)) <=> engine->evaluate(\"122\")",
+ "QScriptValue(uint(124)) <=> QScriptValue(uint(124))",
+ "QScriptValue(uint(124)) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(uint(124)) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(uint(124)) <=> engine->evaluate(\"124\")",
+ "QScriptValue(0) <=> QScriptValue(false)",
+ "QScriptValue(0) <=> QScriptValue(0)",
+ "QScriptValue(0) <=> QScriptValue(0.0)",
+ "QScriptValue(0) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(0) <=> QScriptValue(QString())",
+ "QScriptValue(0) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(0) <=> QScriptValue(0, false)",
+ "QScriptValue(0) <=> QScriptValue(0, 0)",
+ "QScriptValue(0) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(0) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0) <=> QScriptValue(0, QString())",
+ "QScriptValue(0) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0) <=> QScriptValue(engine, false)",
+ "QScriptValue(0) <=> QScriptValue(engine, 0)",
+ "QScriptValue(0) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(0) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(0) <=> QScriptValue(engine, QString())",
+ "QScriptValue(0) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(0) <=> engine->evaluate(\"[]\")",
+ "QScriptValue(0) <=> engine->evaluate(\"Array.prototype\")",
+ "QScriptValue(0) <=> engine->evaluate(\"new Array()\")",
+ "QScriptValue(0) <=> engine->evaluate(\"false\")",
+ "QScriptValue(0) <=> engine->evaluate(\"0\")",
+ "QScriptValue(0) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(0) <=> engine->evaluate(\"''\")",
+ "QScriptValue(0) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(0) <=> engine->newArray()",
+ "QScriptValue(0) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(0.0) <=> QScriptValue(false)",
+ "QScriptValue(0.0) <=> QScriptValue(0)",
+ "QScriptValue(0.0) <=> QScriptValue(0.0)",
+ "QScriptValue(0.0) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(0.0) <=> QScriptValue(QString())",
+ "QScriptValue(0.0) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(0.0) <=> QScriptValue(0, false)",
+ "QScriptValue(0.0) <=> QScriptValue(0, 0)",
+ "QScriptValue(0.0) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(0.0) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0.0) <=> QScriptValue(0, QString())",
+ "QScriptValue(0.0) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0.0) <=> QScriptValue(engine, false)",
+ "QScriptValue(0.0) <=> QScriptValue(engine, 0)",
+ "QScriptValue(0.0) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(0.0) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(0.0) <=> QScriptValue(engine, QString())",
+ "QScriptValue(0.0) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(0.0) <=> engine->evaluate(\"[]\")",
+ "QScriptValue(0.0) <=> engine->evaluate(\"Array.prototype\")",
+ "QScriptValue(0.0) <=> engine->evaluate(\"new Array()\")",
+ "QScriptValue(0.0) <=> engine->evaluate(\"false\")",
+ "QScriptValue(0.0) <=> engine->evaluate(\"0\")",
+ "QScriptValue(0.0) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(0.0) <=> engine->evaluate(\"''\")",
+ "QScriptValue(0.0) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(0.0) <=> engine->newArray()",
+ "QScriptValue(0.0) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(123.0) <=> QScriptValue(123.0)",
+ "QScriptValue(123.0) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(123.0) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(123.0) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(123.0) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(123.0) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(123.0) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(123.0) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(123.0) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(6.37e-8) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(6.37e-8) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(6.37e-8) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(6.37e-8) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(-6.37e-8)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0, -6.37e-8)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"-6.37e-8\")",
+ "QScriptValue(0x43211234) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0x43211234) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0x43211234) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0x43211234) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0x10000) <=> QScriptValue(0x10000)",
+ "QScriptValue(0x10000) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0x10000) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0x10000) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0x10001) <=> QScriptValue(0x10001)",
+ "QScriptValue(0x10001) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0x10001) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0x10001) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(qInf()) <=> QScriptValue(qInf())",
+ "QScriptValue(qInf()) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(qInf()) <=> QScriptValue(0, qInf())",
+ "QScriptValue(qInf()) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(qInf()) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(qInf()) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(qInf()) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(-qInf()) <=> QScriptValue(-qInf())",
+ "QScriptValue(-qInf()) <=> QScriptValue(\"-Infinity\")",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, -qInf())",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, -qInf())",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"-Infinity\")",
+ "QScriptValue(\"NaN\") <=> QScriptValue(\"NaN\")",
+ "QScriptValue(\"NaN\") <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(\"NaN\") <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(\"Infinity\") <=> QScriptValue(qInf())",
+ "QScriptValue(\"Infinity\") <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(\"Infinity\") <=> QScriptValue(0, qInf())",
+ "QScriptValue(\"Infinity\") <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(\"Infinity\") <=> QScriptValue(engine, qInf())",
+ "QScriptValue(\"Infinity\") <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(\"Infinity\") <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(-qInf())",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(\"-Infinity\")",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, -qInf())",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, -qInf())",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"-Infinity\")",
+ "QScriptValue(\"ciao\") <=> QScriptValue(\"ciao\")",
+ "QScriptValue(\"ciao\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(\"ciao\") <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(\"ciao\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(\"ciao\") <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(\"ciao\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(\"ciao\") <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(\"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(false)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0.0)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(QString())",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, false)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, 0)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, QString())",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, false)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, 0)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, QString())",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"[]\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"Array.prototype\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"new Array()\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"false\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"0\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"''\")",
+ "QScriptValue(QString(\"\")) <=> engine->newArray()",
+ "QScriptValue(QString(\"\")) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(QString()) <=> QScriptValue(false)",
+ "QScriptValue(QString()) <=> QScriptValue(0)",
+ "QScriptValue(QString()) <=> QScriptValue(0.0)",
+ "QScriptValue(QString()) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(QString()) <=> QScriptValue(QString())",
+ "QScriptValue(QString()) <=> QScriptValue(0, false)",
+ "QScriptValue(QString()) <=> QScriptValue(0, 0)",
+ "QScriptValue(QString()) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(QString()) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(QString()) <=> QScriptValue(0, QString())",
+ "QScriptValue(QString()) <=> QScriptValue(engine, false)",
+ "QScriptValue(QString()) <=> QScriptValue(engine, 0)",
+ "QScriptValue(QString()) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(QString()) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(QString()) <=> QScriptValue(engine, QString())",
+ "QScriptValue(QString()) <=> engine->evaluate(\"[]\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"Array.prototype\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"new Array()\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"false\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"0\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"''\")",
+ "QScriptValue(QString()) <=> engine->newArray()",
+ "QScriptValue(QString()) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(false)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0.0)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0, false)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0, 0)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, false)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, 0)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"false\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"0\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(QString(\"0\")) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(123.0)",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(QString(\"123\")) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->evaluate(\"{}\")",
+ "QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->evaluate(\"undefined\")",
+ "QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->evaluate(\"null\")",
+ "QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->nullValue()",
+ "QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->undefinedValue()",
+ "QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->newQObject(0)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"{}\")",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"undefined\")",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"null\")",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->nullValue()",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->undefinedValue()",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->newQObject(0)",
+ "QScriptValue(0, true) <=> QScriptValue(true)",
+ "QScriptValue(0, true) <=> QScriptValue(0, true)",
+ "QScriptValue(0, true) <=> QScriptValue(engine, true)",
+ "QScriptValue(0, true) <=> engine->evaluate(\"true\")",
+ "QScriptValue(0, false) <=> QScriptValue(false)",
+ "QScriptValue(0, false) <=> QScriptValue(0)",
+ "QScriptValue(0, false) <=> QScriptValue(0.0)",
+ "QScriptValue(0, false) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(0, false) <=> QScriptValue(QString())",
+ "QScriptValue(0, false) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(0, false) <=> QScriptValue(0, false)",
+ "QScriptValue(0, false) <=> QScriptValue(0, 0)",
+ "QScriptValue(0, false) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(0, false) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, false) <=> QScriptValue(0, QString())",
+ "QScriptValue(0, false) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, false) <=> QScriptValue(engine, false)",
+ "QScriptValue(0, false) <=> QScriptValue(engine, 0)",
+ "QScriptValue(0, false) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(0, false) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(0, false) <=> QScriptValue(engine, QString())",
+ "QScriptValue(0, false) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(0, false) <=> engine->evaluate(\"[]\")",
+ "QScriptValue(0, false) <=> engine->evaluate(\"Array.prototype\")",
+ "QScriptValue(0, false) <=> engine->evaluate(\"new Array()\")",
+ "QScriptValue(0, false) <=> engine->evaluate(\"false\")",
+ "QScriptValue(0, false) <=> engine->evaluate(\"0\")",
+ "QScriptValue(0, false) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(0, false) <=> engine->evaluate(\"''\")",
+ "QScriptValue(0, false) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(0, false) <=> engine->newArray()",
+ "QScriptValue(0, false) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(0, int(122)) <=> QScriptValue(int(122))",
+ "QScriptValue(0, int(122)) <=> QScriptValue(0, int(122))",
+ "QScriptValue(0, int(122)) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(0, int(122)) <=> engine->evaluate(\"122\")",
+ "QScriptValue(0, uint(124)) <=> QScriptValue(uint(124))",
+ "QScriptValue(0, uint(124)) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(0, uint(124)) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(0, uint(124)) <=> engine->evaluate(\"124\")",
+ "QScriptValue(0, 0) <=> QScriptValue(false)",
+ "QScriptValue(0, 0) <=> QScriptValue(0)",
+ "QScriptValue(0, 0) <=> QScriptValue(0.0)",
+ "QScriptValue(0, 0) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(0, 0) <=> QScriptValue(QString())",
+ "QScriptValue(0, 0) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(0, 0) <=> QScriptValue(0, false)",
+ "QScriptValue(0, 0) <=> QScriptValue(0, 0)",
+ "QScriptValue(0, 0) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(0, 0) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, 0) <=> QScriptValue(0, QString())",
+ "QScriptValue(0, 0) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, 0) <=> QScriptValue(engine, false)",
+ "QScriptValue(0, 0) <=> QScriptValue(engine, 0)",
+ "QScriptValue(0, 0) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(0, 0) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(0, 0) <=> QScriptValue(engine, QString())",
+ "QScriptValue(0, 0) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"[]\")",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"Array.prototype\")",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"new Array()\")",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"false\")",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"0\")",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"''\")",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(0, 0) <=> engine->newArray()",
+ "QScriptValue(0, 0) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(0, 0.0) <=> QScriptValue(false)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0.0)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(0, 0.0) <=> QScriptValue(QString())",
+ "QScriptValue(0, 0.0) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0, false)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0, 0)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0, QString())",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, 0.0) <=> QScriptValue(engine, false)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(engine, 0)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(0, 0.0) <=> QScriptValue(engine, QString())",
+ "QScriptValue(0, 0.0) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"[]\")",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"Array.prototype\")",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"new Array()\")",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"false\")",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"0\")",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"''\")",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(0, 0.0) <=> engine->newArray()",
+ "QScriptValue(0, 0.0) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(0, 123.0) <=> QScriptValue(123.0)",
+ "QScriptValue(0, 123.0) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(0, 123.0) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(0, 123.0) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, 123.0) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(0, 123.0) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(0, 123.0) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(0, 123.0) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(0, 123.0) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(-6.37e-8)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, -6.37e-8)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"-6.37e-8\")",
+ "QScriptValue(0, 0x43211234) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0, 0x43211234) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0x43211234) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0, 0x43211234) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0, 0x10000) <=> QScriptValue(0x10000)",
+ "QScriptValue(0, 0x10000) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 0x10000) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0, 0x10000) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0, 0x10001) <=> QScriptValue(0x10001)",
+ "QScriptValue(0, 0x10001) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0, 0x10001) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0, 0x10001) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0, qInf()) <=> QScriptValue(qInf())",
+ "QScriptValue(0, qInf()) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, qInf()) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, qInf()) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, qInf()) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, qInf()) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, qInf()) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(-qInf())",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(\"-Infinity\")",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, -qInf())",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, -qInf())",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"-Infinity\")",
+ "QScriptValue(0, \"NaN\") <=> QScriptValue(\"NaN\")",
+ "QScriptValue(0, \"NaN\") <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, \"NaN\") <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(0, \"Infinity\") <=> QScriptValue(qInf())",
+ "QScriptValue(0, \"Infinity\") <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, \"Infinity\") <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, \"Infinity\") <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, \"Infinity\") <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, \"Infinity\") <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(-qInf())",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(\"-Infinity\")",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, -qInf())",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, -qInf())",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"-Infinity\")",
+ "QScriptValue(0, \"ciao\") <=> QScriptValue(\"ciao\")",
+ "QScriptValue(0, \"ciao\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, \"ciao\") <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, \"ciao\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, \"ciao\") <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(0, \"ciao\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, \"ciao\") <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(\"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(false)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0.0)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(QString())",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, false)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, 0)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, QString())",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, false)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, 0)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, QString())",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"[]\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Array.prototype\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"new Array()\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"false\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"0\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"''\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->newArray()",
+ "QScriptValue(0, QString(\"\")) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(0, QString()) <=> QScriptValue(false)",
+ "QScriptValue(0, QString()) <=> QScriptValue(0)",
+ "QScriptValue(0, QString()) <=> QScriptValue(0.0)",
+ "QScriptValue(0, QString()) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(0, QString()) <=> QScriptValue(QString())",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, false)",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, 0)",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, QString())",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, false)",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, 0)",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, QString())",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"[]\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"Array.prototype\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"new Array()\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"false\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"0\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"''\")",
+ "QScriptValue(0, QString()) <=> engine->newArray()",
+ "QScriptValue(0, QString()) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(false)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0.0)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, false)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, 0)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, false)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, 0)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"false\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"0\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(123.0)",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->evaluate(\"{}\")",
+ "QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->evaluate(\"undefined\")",
+ "QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->evaluate(\"null\")",
+ "QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->nullValue()",
+ "QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->undefinedValue()",
+ "QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->newQObject(0)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"{}\")",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"undefined\")",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"null\")",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->nullValue()",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->undefinedValue()",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->newQObject(0)",
+ "QScriptValue(engine, true) <=> QScriptValue(true)",
+ "QScriptValue(engine, true) <=> QScriptValue(0, true)",
+ "QScriptValue(engine, true) <=> QScriptValue(engine, true)",
+ "QScriptValue(engine, true) <=> engine->evaluate(\"true\")",
+ "QScriptValue(engine, false) <=> QScriptValue(false)",
+ "QScriptValue(engine, false) <=> QScriptValue(0)",
+ "QScriptValue(engine, false) <=> QScriptValue(0.0)",
+ "QScriptValue(engine, false) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(engine, false) <=> QScriptValue(QString())",
+ "QScriptValue(engine, false) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(engine, false) <=> QScriptValue(0, false)",
+ "QScriptValue(engine, false) <=> QScriptValue(0, 0)",
+ "QScriptValue(engine, false) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(engine, false) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(engine, false) <=> QScriptValue(0, QString())",
+ "QScriptValue(engine, false) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(engine, false) <=> QScriptValue(engine, false)",
+ "QScriptValue(engine, false) <=> QScriptValue(engine, 0)",
+ "QScriptValue(engine, false) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, false) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, false) <=> QScriptValue(engine, QString())",
+ "QScriptValue(engine, false) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, false) <=> engine->evaluate(\"[]\")",
+ "QScriptValue(engine, false) <=> engine->evaluate(\"Array.prototype\")",
+ "QScriptValue(engine, false) <=> engine->evaluate(\"new Array()\")",
+ "QScriptValue(engine, false) <=> engine->evaluate(\"false\")",
+ "QScriptValue(engine, false) <=> engine->evaluate(\"0\")",
+ "QScriptValue(engine, false) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(engine, false) <=> engine->evaluate(\"''\")",
+ "QScriptValue(engine, false) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(engine, false) <=> engine->newArray()",
+ "QScriptValue(engine, false) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(int(122))",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(0, int(122))",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(engine, int(122)) <=> engine->evaluate(\"122\")",
+ "QScriptValue(engine, uint(124)) <=> QScriptValue(uint(124))",
+ "QScriptValue(engine, uint(124)) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(engine, uint(124)) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, uint(124)) <=> engine->evaluate(\"124\")",
+ "QScriptValue(engine, 0) <=> QScriptValue(false)",
+ "QScriptValue(engine, 0) <=> QScriptValue(0)",
+ "QScriptValue(engine, 0) <=> QScriptValue(0.0)",
+ "QScriptValue(engine, 0) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(engine, 0) <=> QScriptValue(QString())",
+ "QScriptValue(engine, 0) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(engine, 0) <=> QScriptValue(0, false)",
+ "QScriptValue(engine, 0) <=> QScriptValue(0, 0)",
+ "QScriptValue(engine, 0) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(engine, 0) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(engine, 0) <=> QScriptValue(0, QString())",
+ "QScriptValue(engine, 0) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(engine, 0) <=> QScriptValue(engine, false)",
+ "QScriptValue(engine, 0) <=> QScriptValue(engine, 0)",
+ "QScriptValue(engine, 0) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, 0) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, 0) <=> QScriptValue(engine, QString())",
+ "QScriptValue(engine, 0) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"[]\")",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"Array.prototype\")",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"new Array()\")",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"false\")",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"0\")",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"''\")",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(engine, 0) <=> engine->newArray()",
+ "QScriptValue(engine, 0) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(false)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0.0)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(QString())",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0, false)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0, 0)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0, QString())",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(engine, false)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(engine, 0)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(engine, QString())",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"[]\")",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"Array.prototype\")",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"new Array()\")",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"false\")",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"0\")",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"''\")",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(engine, 0.0) <=> engine->newArray()",
+ "QScriptValue(engine, 0.0) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(123.0)",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, 123.0) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(engine, 123.0) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(engine, 123.0) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(-6.37e-8)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, -6.37e-8)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"-6.37e-8\")",
+ "QScriptValue(engine, 0x43211234) <=> QScriptValue(0x43211234)",
+ "QScriptValue(engine, 0x43211234) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(engine, 0x43211234) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0x43211234) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(engine, 0x10000) <=> QScriptValue(0x10000)",
+ "QScriptValue(engine, 0x10000) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(engine, 0x10000) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 0x10000) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(engine, 0x10001) <=> QScriptValue(0x10001)",
+ "QScriptValue(engine, 0x10001) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(engine, 0x10001) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, 0x10001) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(engine, qInf()) <=> QScriptValue(qInf())",
+ "QScriptValue(engine, qInf()) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, qInf()) <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, qInf()) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, qInf()) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, qInf()) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, qInf()) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(-qInf())",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(\"-Infinity\")",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, -qInf())",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, -qInf())",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"-Infinity\")",
+ "QScriptValue(engine, \"NaN\") <=> QScriptValue(\"NaN\")",
+ "QScriptValue(engine, \"NaN\") <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(engine, \"NaN\") <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, \"Infinity\") <=> QScriptValue(qInf())",
+ "QScriptValue(engine, \"Infinity\") <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, \"Infinity\") <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, \"Infinity\") <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, \"Infinity\") <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, \"Infinity\") <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(-qInf())",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(\"-Infinity\")",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, -qInf())",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, -qInf())",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"-Infinity\")",
+ "QScriptValue(engine, \"ciao\") <=> QScriptValue(\"ciao\")",
+ "QScriptValue(engine, \"ciao\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, \"ciao\") <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(engine, \"ciao\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, \"ciao\") <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, \"ciao\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(\"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(false)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0.0)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(QString())",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, false)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, 0)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, QString())",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, false)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, 0)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, QString())",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"[]\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Array.prototype\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"new Array()\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"false\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"0\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"''\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->newArray()",
+ "QScriptValue(engine, QString(\"\")) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(false)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0.0)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(QString())",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, false)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, 0)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, QString())",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, false)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, 0)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, QString())",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"[]\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"Array.prototype\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"new Array()\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"false\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"0\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"''\")",
+ "QScriptValue(engine, QString()) <=> engine->newArray()",
+ "QScriptValue(engine, QString()) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(false)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0.0)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, false)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, 0)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, false)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, 0)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"false\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"0\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(123.0)",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"[]\") <=> QScriptValue(false)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0.0)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(QString(\"\"))",
+ "engine->evaluate(\"[]\") <=> QScriptValue(QString())",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, false)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, 0)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, 0.0)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, QString(\"\"))",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, QString())",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, false)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, 0)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, 0.0)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, QString(\"\"))",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, QString())",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"[]\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"false\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"0\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"''\")",
+ "engine->evaluate(\"{}\") <=> QScriptValue(QScriptValue::UndefinedValue)",
+ "engine->evaluate(\"{}\") <=> QScriptValue(QScriptValue::NullValue)",
+ "engine->evaluate(\"{}\") <=> QScriptValue(0, QScriptValue::UndefinedValue)",
+ "engine->evaluate(\"{}\") <=> QScriptValue(0, QScriptValue::NullValue)",
+ "engine->evaluate(\"{}\") <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "engine->evaluate(\"{}\") <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "engine->evaluate(\"{}\") <=> engine->evaluate(\"{}\")",
+ "engine->evaluate(\"{}\") <=> engine->evaluate(\"undefined\")",
+ "engine->evaluate(\"{}\") <=> engine->evaluate(\"null\")",
+ "engine->evaluate(\"{}\") <=> engine->nullValue()",
+ "engine->evaluate(\"{}\") <=> engine->undefinedValue()",
+ "engine->evaluate(\"{}\") <=> engine->newQObject(0)",
+ "engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Date.prototype\") <=> engine->evaluate(\"Date.prototype\")",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(false)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0.0)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(QString(\"\"))",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(QString())",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, false)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, 0)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, 0.0)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, QString(\"\"))",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, QString())",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, false)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, 0)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, 0.0)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, QString(\"\"))",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, QString())",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"false\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"0\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"''\")",
+ "engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"Object\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Number\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Function\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 1; })\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"new Object()\") <=> engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(false)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0.0)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(QString(\"\"))",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(QString())",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, false)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, 0)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, 0.0)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, QString(\"\"))",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, QString())",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, false)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, 0)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, 0.0)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, QString(\"\"))",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, QString())",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"false\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"0\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"''\")",
+ "engine->evaluate(\"new Error()\") <=> engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"Undefined\") <=> engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Null\") <=> engine->evaluate(\"Null\")",
+ "engine->evaluate(\"True\") <=> engine->evaluate(\"True\")",
+ "engine->evaluate(\"False\") <=> engine->evaluate(\"False\")",
+ "engine->evaluate(\"undefined\") <=> QScriptValue(QScriptValue::UndefinedValue)",
+ "engine->evaluate(\"undefined\") <=> QScriptValue(QScriptValue::NullValue)",
+ "engine->evaluate(\"undefined\") <=> QScriptValue(0, QScriptValue::UndefinedValue)",
+ "engine->evaluate(\"undefined\") <=> QScriptValue(0, QScriptValue::NullValue)",
+ "engine->evaluate(\"undefined\") <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "engine->evaluate(\"undefined\") <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "engine->evaluate(\"undefined\") <=> engine->evaluate(\"{}\")",
+ "engine->evaluate(\"undefined\") <=> engine->evaluate(\"undefined\")",
+ "engine->evaluate(\"undefined\") <=> engine->evaluate(\"null\")",
+ "engine->evaluate(\"undefined\") <=> engine->nullValue()",
+ "engine->evaluate(\"undefined\") <=> engine->undefinedValue()",
+ "engine->evaluate(\"undefined\") <=> engine->newQObject(0)",
+ "engine->evaluate(\"null\") <=> QScriptValue(QScriptValue::UndefinedValue)",
+ "engine->evaluate(\"null\") <=> QScriptValue(QScriptValue::NullValue)",
+ "engine->evaluate(\"null\") <=> QScriptValue(0, QScriptValue::UndefinedValue)",
+ "engine->evaluate(\"null\") <=> QScriptValue(0, QScriptValue::NullValue)",
+ "engine->evaluate(\"null\") <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "engine->evaluate(\"null\") <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "engine->evaluate(\"null\") <=> engine->evaluate(\"{}\")",
+ "engine->evaluate(\"null\") <=> engine->evaluate(\"undefined\")",
+ "engine->evaluate(\"null\") <=> engine->evaluate(\"null\")",
+ "engine->evaluate(\"null\") <=> engine->nullValue()",
+ "engine->evaluate(\"null\") <=> engine->undefinedValue()",
+ "engine->evaluate(\"null\") <=> engine->newQObject(0)",
+ "engine->evaluate(\"true\") <=> QScriptValue(true)",
+ "engine->evaluate(\"true\") <=> QScriptValue(0, true)",
+ "engine->evaluate(\"true\") <=> QScriptValue(engine, true)",
+ "engine->evaluate(\"true\") <=> engine->evaluate(\"true\")",
+ "engine->evaluate(\"false\") <=> QScriptValue(false)",
+ "engine->evaluate(\"false\") <=> QScriptValue(0)",
+ "engine->evaluate(\"false\") <=> QScriptValue(0.0)",
+ "engine->evaluate(\"false\") <=> QScriptValue(QString(\"\"))",
+ "engine->evaluate(\"false\") <=> QScriptValue(QString())",
+ "engine->evaluate(\"false\") <=> QScriptValue(QString(\"0\"))",
+ "engine->evaluate(\"false\") <=> QScriptValue(0, false)",
+ "engine->evaluate(\"false\") <=> QScriptValue(0, 0)",
+ "engine->evaluate(\"false\") <=> QScriptValue(0, 0.0)",
+ "engine->evaluate(\"false\") <=> QScriptValue(0, QString(\"\"))",
+ "engine->evaluate(\"false\") <=> QScriptValue(0, QString())",
+ "engine->evaluate(\"false\") <=> QScriptValue(0, QString(\"0\"))",
+ "engine->evaluate(\"false\") <=> QScriptValue(engine, false)",
+ "engine->evaluate(\"false\") <=> QScriptValue(engine, 0)",
+ "engine->evaluate(\"false\") <=> QScriptValue(engine, 0.0)",
+ "engine->evaluate(\"false\") <=> QScriptValue(engine, QString(\"\"))",
+ "engine->evaluate(\"false\") <=> QScriptValue(engine, QString())",
+ "engine->evaluate(\"false\") <=> QScriptValue(engine, QString(\"0\"))",
+ "engine->evaluate(\"false\") <=> engine->evaluate(\"[]\")",
+ "engine->evaluate(\"false\") <=> engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"false\") <=> engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"false\") <=> engine->evaluate(\"false\")",
+ "engine->evaluate(\"false\") <=> engine->evaluate(\"0\")",
+ "engine->evaluate(\"false\") <=> engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"false\") <=> engine->evaluate(\"''\")",
+ "engine->evaluate(\"false\") <=> engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"false\") <=> engine->newArray()",
+ "engine->evaluate(\"false\") <=> engine->newVariant(QVariant(false))",
+ "engine->evaluate(\"122\") <=> QScriptValue(int(122))",
+ "engine->evaluate(\"122\") <=> QScriptValue(0, int(122))",
+ "engine->evaluate(\"122\") <=> QScriptValue(engine, int(122))",
+ "engine->evaluate(\"122\") <=> engine->evaluate(\"122\")",
+ "engine->evaluate(\"124\") <=> QScriptValue(uint(124))",
+ "engine->evaluate(\"124\") <=> QScriptValue(0, uint(124))",
+ "engine->evaluate(\"124\") <=> QScriptValue(engine, uint(124))",
+ "engine->evaluate(\"124\") <=> engine->evaluate(\"124\")",
+ "engine->evaluate(\"0\") <=> QScriptValue(false)",
+ "engine->evaluate(\"0\") <=> QScriptValue(0)",
+ "engine->evaluate(\"0\") <=> QScriptValue(0.0)",
+ "engine->evaluate(\"0\") <=> QScriptValue(QString(\"\"))",
+ "engine->evaluate(\"0\") <=> QScriptValue(QString())",
+ "engine->evaluate(\"0\") <=> QScriptValue(QString(\"0\"))",
+ "engine->evaluate(\"0\") <=> QScriptValue(0, false)",
+ "engine->evaluate(\"0\") <=> QScriptValue(0, 0)",
+ "engine->evaluate(\"0\") <=> QScriptValue(0, 0.0)",
+ "engine->evaluate(\"0\") <=> QScriptValue(0, QString(\"\"))",
+ "engine->evaluate(\"0\") <=> QScriptValue(0, QString())",
+ "engine->evaluate(\"0\") <=> QScriptValue(0, QString(\"0\"))",
+ "engine->evaluate(\"0\") <=> QScriptValue(engine, false)",
+ "engine->evaluate(\"0\") <=> QScriptValue(engine, 0)",
+ "engine->evaluate(\"0\") <=> QScriptValue(engine, 0.0)",
+ "engine->evaluate(\"0\") <=> QScriptValue(engine, QString(\"\"))",
+ "engine->evaluate(\"0\") <=> QScriptValue(engine, QString())",
+ "engine->evaluate(\"0\") <=> QScriptValue(engine, QString(\"0\"))",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"[]\")",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"false\")",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"0\")",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"''\")",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"0\") <=> engine->newArray()",
+ "engine->evaluate(\"0\") <=> engine->newVariant(QVariant(false))",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(false)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0.0)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(QString(\"\"))",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(QString())",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(QString(\"0\"))",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0, false)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0, 0)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0, 0.0)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0, QString(\"\"))",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0, QString())",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0, QString(\"0\"))",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(engine, false)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(engine, 0)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(engine, 0.0)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(engine, QString(\"\"))",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(engine, QString())",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(engine, QString(\"0\"))",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"[]\")",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"false\")",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"0\")",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"''\")",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"0.0\") <=> engine->newArray()",
+ "engine->evaluate(\"0.0\") <=> engine->newVariant(QVariant(false))",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(123.0)",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(QString(\"123\"))",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(0, 123.0)",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(0, QString(\"123\"))",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(engine, 123.0)",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->evaluate(\"123.0\") <=> engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"123.0\") <=> engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"123.0\") <=> engine->newVariant(QVariant(123))",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(6.37e-8)",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, 6.37e-8)",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, 6.37e-8)",
+ "engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(-6.37e-8)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, -6.37e-8)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, -6.37e-8)",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"-6.37e-8\")",
+ "engine->evaluate(\"0x43211234\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"0x43211234\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"0x43211234\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"0x43211234\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0x10000\") <=> QScriptValue(0x10000)",
+ "engine->evaluate(\"0x10000\") <=> QScriptValue(0, 0x10000)",
+ "engine->evaluate(\"0x10000\") <=> QScriptValue(engine, 0x10000)",
+ "engine->evaluate(\"0x10000\") <=> engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"0x10001\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"0x10001\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"0x10001\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"0x10001\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"Infinity\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"Infinity\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"Infinity\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"Infinity\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"Infinity\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"Infinity\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"Infinity\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(-qInf())",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(\"-Infinity\")",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, -qInf())",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, \"-Infinity\")",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, -qInf())",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, \"-Infinity\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"-Infinity\")",
+ "engine->evaluate(\"'ciao'\") <=> QScriptValue(\"ciao\")",
+ "engine->evaluate(\"'ciao'\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"'ciao'\") <=> QScriptValue(0, \"ciao\")",
+ "engine->evaluate(\"'ciao'\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"'ciao'\") <=> QScriptValue(engine, \"ciao\")",
+ "engine->evaluate(\"'ciao'\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"''\") <=> QScriptValue(false)",
+ "engine->evaluate(\"''\") <=> QScriptValue(0)",
+ "engine->evaluate(\"''\") <=> QScriptValue(0.0)",
+ "engine->evaluate(\"''\") <=> QScriptValue(QString(\"\"))",
+ "engine->evaluate(\"''\") <=> QScriptValue(QString())",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, false)",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, 0)",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, 0.0)",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, QString(\"\"))",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, QString())",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, false)",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, 0)",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, 0.0)",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, QString(\"\"))",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, QString())",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"[]\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"false\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"0\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"''\")",
+ "engine->evaluate(\"''\") <=> engine->newArray()",
+ "engine->evaluate(\"''\") <=> engine->newVariant(QVariant(false))",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(false)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0.0)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(QString(\"0\"))",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0, false)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0, 0)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0, 0.0)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0, QString(\"0\"))",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(engine, false)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(engine, 0)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(engine, 0.0)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(engine, QString(\"0\"))",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"false\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"0\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"'0'\") <=> engine->newVariant(QVariant(false))",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(123.0)",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(QString(\"123\"))",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(0, 123.0)",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(0, QString(\"123\"))",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(engine, 123.0)",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"'123'\") <=> engine->newVariant(QVariant(123))",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(QString(\"12.4\"))",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"'12.4'\")",
+ "engine->nullValue() <=> QScriptValue(QScriptValue::UndefinedValue)",
+ "engine->nullValue() <=> QScriptValue(QScriptValue::NullValue)",
+ "engine->nullValue() <=> QScriptValue(0, QScriptValue::UndefinedValue)",
+ "engine->nullValue() <=> QScriptValue(0, QScriptValue::NullValue)",
+ "engine->nullValue() <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "engine->nullValue() <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "engine->nullValue() <=> engine->evaluate(\"{}\")",
+ "engine->nullValue() <=> engine->evaluate(\"undefined\")",
+ "engine->nullValue() <=> engine->evaluate(\"null\")",
+ "engine->nullValue() <=> engine->nullValue()",
+ "engine->nullValue() <=> engine->undefinedValue()",
+ "engine->nullValue() <=> engine->newQObject(0)",
+ "engine->undefinedValue() <=> QScriptValue(QScriptValue::UndefinedValue)",
+ "engine->undefinedValue() <=> QScriptValue(QScriptValue::NullValue)",
+ "engine->undefinedValue() <=> QScriptValue(0, QScriptValue::UndefinedValue)",
+ "engine->undefinedValue() <=> QScriptValue(0, QScriptValue::NullValue)",
+ "engine->undefinedValue() <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "engine->undefinedValue() <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "engine->undefinedValue() <=> engine->evaluate(\"{}\")",
+ "engine->undefinedValue() <=> engine->evaluate(\"undefined\")",
+ "engine->undefinedValue() <=> engine->evaluate(\"null\")",
+ "engine->undefinedValue() <=> engine->nullValue()",
+ "engine->undefinedValue() <=> engine->undefinedValue()",
+ "engine->undefinedValue() <=> engine->newQObject(0)",
+ "engine->newObject() <=> engine->newObject()",
+ "engine->newArray() <=> QScriptValue(false)",
+ "engine->newArray() <=> QScriptValue(0)",
+ "engine->newArray() <=> QScriptValue(0.0)",
+ "engine->newArray() <=> QScriptValue(QString(\"\"))",
+ "engine->newArray() <=> QScriptValue(QString())",
+ "engine->newArray() <=> QScriptValue(0, false)",
+ "engine->newArray() <=> QScriptValue(0, 0)",
+ "engine->newArray() <=> QScriptValue(0, 0.0)",
+ "engine->newArray() <=> QScriptValue(0, QString(\"\"))",
+ "engine->newArray() <=> QScriptValue(0, QString())",
+ "engine->newArray() <=> QScriptValue(engine, false)",
+ "engine->newArray() <=> QScriptValue(engine, 0)",
+ "engine->newArray() <=> QScriptValue(engine, 0.0)",
+ "engine->newArray() <=> QScriptValue(engine, QString(\"\"))",
+ "engine->newArray() <=> QScriptValue(engine, QString())",
+ "engine->newArray() <=> engine->evaluate(\"false\")",
+ "engine->newArray() <=> engine->evaluate(\"0\")",
+ "engine->newArray() <=> engine->evaluate(\"0.0\")",
+ "engine->newArray() <=> engine->evaluate(\"''\")",
+ "engine->newArray() <=> engine->newArray()",
+ "engine->newArray(10) <=> engine->newArray(10)",
+ "engine->newDate(QDateTime()) <=> engine->newDate(QDateTime())",
+ "engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->newVariant(QVariant()) <=> engine->newVariant(QVariant())",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(123.0)",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(QString(\"123\"))",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(0, 123.0)",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(0, QString(\"123\"))",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(engine, 123.0)",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->newVariant(QVariant(123)) <=> engine->evaluate(\"123.0\")",
+ "engine->newVariant(QVariant(123)) <=> engine->evaluate(\"'123'\")",
+ "engine->newVariant(QVariant(123)) <=> engine->newVariant(QVariant(123))",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(false)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0.0)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(QString(\"\"))",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(QString())",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(QString(\"0\"))",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0, false)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0, 0)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0, 0.0)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0, QString(\"\"))",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0, QString())",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0, QString(\"0\"))",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(engine, false)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(engine, 0)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(engine, 0.0)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(engine, QString(\"\"))",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(engine, QString())",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(engine, QString(\"0\"))",
+ "engine->newVariant(QVariant(false)) <=> engine->evaluate(\"false\")",
+ "engine->newVariant(QVariant(false)) <=> engine->evaluate(\"0\")",
+ "engine->newVariant(QVariant(false)) <=> engine->evaluate(\"0.0\")",
+ "engine->newVariant(QVariant(false)) <=> engine->evaluate(\"''\")",
+ "engine->newVariant(QVariant(false)) <=> engine->evaluate(\"'0'\")",
+ "engine->newVariant(QVariant(false)) <=> engine->newVariant(QVariant(false))",
+ "engine->newQObject(0) <=> QScriptValue(QScriptValue::UndefinedValue)",
+ "engine->newQObject(0) <=> QScriptValue(QScriptValue::NullValue)",
+ "engine->newQObject(0) <=> QScriptValue(0, QScriptValue::UndefinedValue)",
+ "engine->newQObject(0) <=> QScriptValue(0, QScriptValue::NullValue)",
+ "engine->newQObject(0) <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "engine->newQObject(0) <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "engine->newQObject(0) <=> engine->evaluate(\"{}\")",
+ "engine->newQObject(0) <=> engine->evaluate(\"undefined\")",
+ "engine->newQObject(0) <=> engine->evaluate(\"null\")",
+ "engine->newQObject(0) <=> engine->nullValue()",
+ "engine->newQObject(0) <=> engine->undefinedValue()",
+ "engine->newQObject(0) <=> engine->newQObject(0)",
+ "engine->newQObject(engine) <=> engine->newQObject(engine)",};
+
+void tst_QScriptValue::equals_makeData(const char *expr)
+{
+ static QSet<QString> equals;
+ if (equals.isEmpty()) {
+ equals.reserve(1217);
+ for (unsigned i = 0; i < 1217; ++i)
+ equals.insert(equals_array[i]);
+ }
+ QHash<QString, QScriptValue>::const_iterator it;
+ for (it = m_values.constBegin(); it != m_values.constEnd(); ++it) {
+ QString tag = QString::fromLatin1("%20 <=> %21").arg(expr).arg(it.key());
+ newRow(tag.toLatin1()) << it.value() << equals.contains(tag);
+ }
+}
+
+void tst_QScriptValue::equals_test(const char *, const QScriptValue& value)
+{
+ QFETCH(QScriptValue, other);
+ QFETCH(bool, expected);
+ QCOMPARE(value.equals(other), expected);
+}
+
+DEFINE_TEST_FUNCTION(equals)
+
+
+void tst_QScriptValue::strictlyEquals_initData()
+{
+ QTest::addColumn<QScriptValue>("other");
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString strictlyEquals_array [] = {
+ "QScriptValue() <=> QScriptValue()",
+ "QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::UndefinedValue) <=> engine->evaluate(\"{}\")",
+ "QScriptValue(QScriptValue::UndefinedValue) <=> engine->evaluate(\"undefined\")",
+ "QScriptValue(QScriptValue::UndefinedValue) <=> engine->undefinedValue()",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"null\")",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->nullValue()",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->newQObject(0)",
+ "QScriptValue(true) <=> QScriptValue(true)",
+ "QScriptValue(true) <=> QScriptValue(0, true)",
+ "QScriptValue(true) <=> QScriptValue(engine, true)",
+ "QScriptValue(true) <=> engine->evaluate(\"true\")",
+ "QScriptValue(false) <=> QScriptValue(false)",
+ "QScriptValue(false) <=> QScriptValue(0, false)",
+ "QScriptValue(false) <=> QScriptValue(engine, false)",
+ "QScriptValue(false) <=> engine->evaluate(\"false\")",
+ "QScriptValue(int(122)) <=> QScriptValue(int(122))",
+ "QScriptValue(int(122)) <=> QScriptValue(0, int(122))",
+ "QScriptValue(int(122)) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(int(122)) <=> engine->evaluate(\"122\")",
+ "QScriptValue(uint(124)) <=> QScriptValue(uint(124))",
+ "QScriptValue(uint(124)) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(uint(124)) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(uint(124)) <=> engine->evaluate(\"124\")",
+ "QScriptValue(0) <=> QScriptValue(0)",
+ "QScriptValue(0) <=> QScriptValue(0.0)",
+ "QScriptValue(0) <=> QScriptValue(0, 0)",
+ "QScriptValue(0) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(0) <=> QScriptValue(engine, 0)",
+ "QScriptValue(0) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(0) <=> engine->evaluate(\"0\")",
+ "QScriptValue(0) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(0.0) <=> QScriptValue(0)",
+ "QScriptValue(0.0) <=> QScriptValue(0.0)",
+ "QScriptValue(0.0) <=> QScriptValue(0, 0)",
+ "QScriptValue(0.0) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(0.0) <=> QScriptValue(engine, 0)",
+ "QScriptValue(0.0) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(0.0) <=> engine->evaluate(\"0\")",
+ "QScriptValue(0.0) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(123.0) <=> QScriptValue(123.0)",
+ "QScriptValue(123.0) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(123.0) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(123.0) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(6.37e-8) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(6.37e-8) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(6.37e-8) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(6.37e-8) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(-6.37e-8)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0, -6.37e-8)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"-6.37e-8\")",
+ "QScriptValue(0x43211234) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0x43211234) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0x43211234) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0x43211234) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0x10000) <=> QScriptValue(0x10000)",
+ "QScriptValue(0x10000) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0x10000) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0x10000) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0x10001) <=> QScriptValue(0x10001)",
+ "QScriptValue(0x10001) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0x10001) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0x10001) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(qInf()) <=> QScriptValue(qInf())",
+ "QScriptValue(qInf()) <=> QScriptValue(0, qInf())",
+ "QScriptValue(qInf()) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(qInf()) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(-qInf()) <=> QScriptValue(-qInf())",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, -qInf())",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, -qInf())",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"-Infinity\")",
+ "QScriptValue(\"NaN\") <=> QScriptValue(\"NaN\")",
+ "QScriptValue(\"NaN\") <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(\"NaN\") <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(\"Infinity\") <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(\"Infinity\") <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(\"Infinity\") <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(\"-Infinity\")",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(\"ciao\") <=> QScriptValue(\"ciao\")",
+ "QScriptValue(\"ciao\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(\"ciao\") <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(\"ciao\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(\"ciao\") <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(\"ciao\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(\"ciao\") <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(\"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(QString())",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, QString())",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, QString())",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"''\")",
+ "QScriptValue(QString()) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(QString()) <=> QScriptValue(QString())",
+ "QScriptValue(QString()) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(QString()) <=> QScriptValue(0, QString())",
+ "QScriptValue(QString()) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(QString()) <=> QScriptValue(engine, QString())",
+ "QScriptValue(QString()) <=> engine->evaluate(\"''\")",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->evaluate(\"{}\")",
+ "QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->evaluate(\"undefined\")",
+ "QScriptValue(0, QScriptValue::UndefinedValue) <=> engine->undefinedValue()",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"null\")",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->nullValue()",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->newQObject(0)",
+ "QScriptValue(0, true) <=> QScriptValue(true)",
+ "QScriptValue(0, true) <=> QScriptValue(0, true)",
+ "QScriptValue(0, true) <=> QScriptValue(engine, true)",
+ "QScriptValue(0, true) <=> engine->evaluate(\"true\")",
+ "QScriptValue(0, false) <=> QScriptValue(false)",
+ "QScriptValue(0, false) <=> QScriptValue(0, false)",
+ "QScriptValue(0, false) <=> QScriptValue(engine, false)",
+ "QScriptValue(0, false) <=> engine->evaluate(\"false\")",
+ "QScriptValue(0, int(122)) <=> QScriptValue(int(122))",
+ "QScriptValue(0, int(122)) <=> QScriptValue(0, int(122))",
+ "QScriptValue(0, int(122)) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(0, int(122)) <=> engine->evaluate(\"122\")",
+ "QScriptValue(0, uint(124)) <=> QScriptValue(uint(124))",
+ "QScriptValue(0, uint(124)) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(0, uint(124)) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(0, uint(124)) <=> engine->evaluate(\"124\")",
+ "QScriptValue(0, 0) <=> QScriptValue(0)",
+ "QScriptValue(0, 0) <=> QScriptValue(0.0)",
+ "QScriptValue(0, 0) <=> QScriptValue(0, 0)",
+ "QScriptValue(0, 0) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(0, 0) <=> QScriptValue(engine, 0)",
+ "QScriptValue(0, 0) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"0\")",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0.0)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0, 0)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(engine, 0)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"0\")",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(0, 123.0) <=> QScriptValue(123.0)",
+ "QScriptValue(0, 123.0) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(0, 123.0) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(0, 123.0) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(-6.37e-8)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, -6.37e-8)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"-6.37e-8\")",
+ "QScriptValue(0, 0x43211234) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0, 0x43211234) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0x43211234) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0, 0x43211234) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0, 0x10000) <=> QScriptValue(0x10000)",
+ "QScriptValue(0, 0x10000) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 0x10000) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0, 0x10000) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0, 0x10001) <=> QScriptValue(0x10001)",
+ "QScriptValue(0, 0x10001) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0, 0x10001) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0, 0x10001) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0, qInf()) <=> QScriptValue(qInf())",
+ "QScriptValue(0, qInf()) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, qInf()) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, qInf()) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(-qInf())",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, -qInf())",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, -qInf())",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"-Infinity\")",
+ "QScriptValue(0, \"NaN\") <=> QScriptValue(\"NaN\")",
+ "QScriptValue(0, \"NaN\") <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, \"NaN\") <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(0, \"Infinity\") <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, \"Infinity\") <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, \"Infinity\") <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(\"-Infinity\")",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(0, \"ciao\") <=> QScriptValue(\"ciao\")",
+ "QScriptValue(0, \"ciao\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, \"ciao\") <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, \"ciao\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, \"ciao\") <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(0, \"ciao\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, \"ciao\") <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(\"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(QString())",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, QString())",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, QString())",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"''\")",
+ "QScriptValue(0, QString()) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(0, QString()) <=> QScriptValue(QString())",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, QString())",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, QString())",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"''\")",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::UndefinedValue) <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->evaluate(\"{}\")",
+ "QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->evaluate(\"undefined\")",
+ "QScriptValue(engine, QScriptValue::UndefinedValue) <=> engine->undefinedValue()",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"null\")",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->nullValue()",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->newQObject(0)",
+ "QScriptValue(engine, true) <=> QScriptValue(true)",
+ "QScriptValue(engine, true) <=> QScriptValue(0, true)",
+ "QScriptValue(engine, true) <=> QScriptValue(engine, true)",
+ "QScriptValue(engine, true) <=> engine->evaluate(\"true\")",
+ "QScriptValue(engine, false) <=> QScriptValue(false)",
+ "QScriptValue(engine, false) <=> QScriptValue(0, false)",
+ "QScriptValue(engine, false) <=> QScriptValue(engine, false)",
+ "QScriptValue(engine, false) <=> engine->evaluate(\"false\")",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(int(122))",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(0, int(122))",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(engine, int(122)) <=> engine->evaluate(\"122\")",
+ "QScriptValue(engine, uint(124)) <=> QScriptValue(uint(124))",
+ "QScriptValue(engine, uint(124)) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(engine, uint(124)) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, uint(124)) <=> engine->evaluate(\"124\")",
+ "QScriptValue(engine, 0) <=> QScriptValue(0)",
+ "QScriptValue(engine, 0) <=> QScriptValue(0.0)",
+ "QScriptValue(engine, 0) <=> QScriptValue(0, 0)",
+ "QScriptValue(engine, 0) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(engine, 0) <=> QScriptValue(engine, 0)",
+ "QScriptValue(engine, 0) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"0\")",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0.0)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0, 0)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(engine, 0)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"0\")",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(123.0)",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, 123.0) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(-6.37e-8)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, -6.37e-8)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"-6.37e-8\")",
+ "QScriptValue(engine, 0x43211234) <=> QScriptValue(0x43211234)",
+ "QScriptValue(engine, 0x43211234) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(engine, 0x43211234) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0x43211234) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(engine, 0x10000) <=> QScriptValue(0x10000)",
+ "QScriptValue(engine, 0x10000) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(engine, 0x10000) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 0x10000) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(engine, 0x10001) <=> QScriptValue(0x10001)",
+ "QScriptValue(engine, 0x10001) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(engine, 0x10001) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, 0x10001) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(engine, qInf()) <=> QScriptValue(qInf())",
+ "QScriptValue(engine, qInf()) <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, qInf()) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, qInf()) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(-qInf())",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, -qInf())",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, -qInf())",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"-Infinity\")",
+ "QScriptValue(engine, \"NaN\") <=> QScriptValue(\"NaN\")",
+ "QScriptValue(engine, \"NaN\") <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(engine, \"NaN\") <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, \"Infinity\") <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, \"Infinity\") <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, \"Infinity\") <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(\"-Infinity\")",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(engine, \"ciao\") <=> QScriptValue(\"ciao\")",
+ "QScriptValue(engine, \"ciao\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, \"ciao\") <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(engine, \"ciao\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, \"ciao\") <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, \"ciao\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(\"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(QString())",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, QString())",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, QString())",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"''\")",
+ "QScriptValue(engine, QString()) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(QString())",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, QString())",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, QString())",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"''\")",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"[]\")",
+ "engine->evaluate(\"{}\") <=> QScriptValue(QScriptValue::UndefinedValue)",
+ "engine->evaluate(\"{}\") <=> QScriptValue(0, QScriptValue::UndefinedValue)",
+ "engine->evaluate(\"{}\") <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "engine->evaluate(\"{}\") <=> engine->evaluate(\"{}\")",
+ "engine->evaluate(\"{}\") <=> engine->evaluate(\"undefined\")",
+ "engine->evaluate(\"{}\") <=> engine->undefinedValue()",
+ "engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Date.prototype\") <=> engine->evaluate(\"Date.prototype\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"Object\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Number\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Function\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 1; })\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"new Object()\") <=> engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"new Error()\") <=> engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"Undefined\") <=> engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Null\") <=> engine->evaluate(\"Null\")",
+ "engine->evaluate(\"True\") <=> engine->evaluate(\"True\")",
+ "engine->evaluate(\"False\") <=> engine->evaluate(\"False\")",
+ "engine->evaluate(\"undefined\") <=> QScriptValue(QScriptValue::UndefinedValue)",
+ "engine->evaluate(\"undefined\") <=> QScriptValue(0, QScriptValue::UndefinedValue)",
+ "engine->evaluate(\"undefined\") <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "engine->evaluate(\"undefined\") <=> engine->evaluate(\"{}\")",
+ "engine->evaluate(\"undefined\") <=> engine->evaluate(\"undefined\")",
+ "engine->evaluate(\"undefined\") <=> engine->undefinedValue()",
+ "engine->evaluate(\"null\") <=> QScriptValue(QScriptValue::NullValue)",
+ "engine->evaluate(\"null\") <=> QScriptValue(0, QScriptValue::NullValue)",
+ "engine->evaluate(\"null\") <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "engine->evaluate(\"null\") <=> engine->evaluate(\"null\")",
+ "engine->evaluate(\"null\") <=> engine->nullValue()",
+ "engine->evaluate(\"null\") <=> engine->newQObject(0)",
+ "engine->evaluate(\"true\") <=> QScriptValue(true)",
+ "engine->evaluate(\"true\") <=> QScriptValue(0, true)",
+ "engine->evaluate(\"true\") <=> QScriptValue(engine, true)",
+ "engine->evaluate(\"true\") <=> engine->evaluate(\"true\")",
+ "engine->evaluate(\"false\") <=> QScriptValue(false)",
+ "engine->evaluate(\"false\") <=> QScriptValue(0, false)",
+ "engine->evaluate(\"false\") <=> QScriptValue(engine, false)",
+ "engine->evaluate(\"false\") <=> engine->evaluate(\"false\")",
+ "engine->evaluate(\"122\") <=> QScriptValue(int(122))",
+ "engine->evaluate(\"122\") <=> QScriptValue(0, int(122))",
+ "engine->evaluate(\"122\") <=> QScriptValue(engine, int(122))",
+ "engine->evaluate(\"122\") <=> engine->evaluate(\"122\")",
+ "engine->evaluate(\"124\") <=> QScriptValue(uint(124))",
+ "engine->evaluate(\"124\") <=> QScriptValue(0, uint(124))",
+ "engine->evaluate(\"124\") <=> QScriptValue(engine, uint(124))",
+ "engine->evaluate(\"124\") <=> engine->evaluate(\"124\")",
+ "engine->evaluate(\"0\") <=> QScriptValue(0)",
+ "engine->evaluate(\"0\") <=> QScriptValue(0.0)",
+ "engine->evaluate(\"0\") <=> QScriptValue(0, 0)",
+ "engine->evaluate(\"0\") <=> QScriptValue(0, 0.0)",
+ "engine->evaluate(\"0\") <=> QScriptValue(engine, 0)",
+ "engine->evaluate(\"0\") <=> QScriptValue(engine, 0.0)",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"0\")",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0.0)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0, 0)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0, 0.0)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(engine, 0)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(engine, 0.0)",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"0\")",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(123.0)",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(0, 123.0)",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(engine, 123.0)",
+ "engine->evaluate(\"123.0\") <=> engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(6.37e-8)",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, 6.37e-8)",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, 6.37e-8)",
+ "engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(-6.37e-8)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, -6.37e-8)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, -6.37e-8)",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"-6.37e-8\")",
+ "engine->evaluate(\"0x43211234\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"0x43211234\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"0x43211234\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"0x43211234\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0x10000\") <=> QScriptValue(0x10000)",
+ "engine->evaluate(\"0x10000\") <=> QScriptValue(0, 0x10000)",
+ "engine->evaluate(\"0x10000\") <=> QScriptValue(engine, 0x10000)",
+ "engine->evaluate(\"0x10000\") <=> engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"0x10001\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"0x10001\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"0x10001\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"0x10001\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"Infinity\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"Infinity\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"Infinity\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"Infinity\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(-qInf())",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, -qInf())",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, -qInf())",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"-Infinity\")",
+ "engine->evaluate(\"'ciao'\") <=> QScriptValue(\"ciao\")",
+ "engine->evaluate(\"'ciao'\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"'ciao'\") <=> QScriptValue(0, \"ciao\")",
+ "engine->evaluate(\"'ciao'\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"'ciao'\") <=> QScriptValue(engine, \"ciao\")",
+ "engine->evaluate(\"'ciao'\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"''\") <=> QScriptValue(QString(\"\"))",
+ "engine->evaluate(\"''\") <=> QScriptValue(QString())",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, QString(\"\"))",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, QString())",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, QString(\"\"))",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, QString())",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"''\")",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(QString(\"0\"))",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0, QString(\"0\"))",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(engine, QString(\"0\"))",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(QString(\"123\"))",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(0, QString(\"123\"))",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(QString(\"12.4\"))",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"'12.4'\")",
+ "engine->nullValue() <=> QScriptValue(QScriptValue::NullValue)",
+ "engine->nullValue() <=> QScriptValue(0, QScriptValue::NullValue)",
+ "engine->nullValue() <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "engine->nullValue() <=> engine->evaluate(\"null\")",
+ "engine->nullValue() <=> engine->nullValue()",
+ "engine->nullValue() <=> engine->newQObject(0)",
+ "engine->undefinedValue() <=> QScriptValue(QScriptValue::UndefinedValue)",
+ "engine->undefinedValue() <=> QScriptValue(0, QScriptValue::UndefinedValue)",
+ "engine->undefinedValue() <=> QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "engine->undefinedValue() <=> engine->evaluate(\"{}\")",
+ "engine->undefinedValue() <=> engine->evaluate(\"undefined\")",
+ "engine->undefinedValue() <=> engine->undefinedValue()",
+ "engine->newObject() <=> engine->newObject()",
+ "engine->newArray() <=> engine->newArray()",
+ "engine->newArray(10) <=> engine->newArray(10)",
+ "engine->newDate(QDateTime()) <=> engine->newDate(QDateTime())",
+ "engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->newVariant(QVariant()) <=> engine->newVariant(QVariant())",
+ "engine->newVariant(QVariant(123)) <=> engine->newVariant(QVariant(123))",
+ "engine->newVariant(QVariant(false)) <=> engine->newVariant(QVariant(false))",
+ "engine->newQObject(0) <=> QScriptValue(QScriptValue::NullValue)",
+ "engine->newQObject(0) <=> QScriptValue(0, QScriptValue::NullValue)",
+ "engine->newQObject(0) <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "engine->newQObject(0) <=> engine->evaluate(\"null\")",
+ "engine->newQObject(0) <=> engine->nullValue()",
+ "engine->newQObject(0) <=> engine->newQObject(0)",
+ "engine->newQObject(engine) <=> engine->newQObject(engine)",};
+
+void tst_QScriptValue::strictlyEquals_makeData(const char *expr)
+{
+ static QSet<QString> equals;
+ if (equals.isEmpty()) {
+ equals.reserve(523);
+ for (unsigned i = 0; i < 523; ++i)
+ equals.insert(strictlyEquals_array[i]);
+ }
+ QHash<QString, QScriptValue>::const_iterator it;
+ for (it = m_values.constBegin(); it != m_values.constEnd(); ++it) {
+ QString tag = QString::fromLatin1("%20 <=> %21").arg(expr).arg(it.key());
+ newRow(tag.toLatin1()) << it.value() << equals.contains(tag);
+ }
+}
+
+void tst_QScriptValue::strictlyEquals_test(const char *, const QScriptValue& value)
+{
+ QFETCH(QScriptValue, other);
+ QFETCH(bool, expected);
+ QCOMPARE(value.strictlyEquals(other), expected);
+}
+
+DEFINE_TEST_FUNCTION(strictlyEquals)
+
+
+void tst_QScriptValue::lessThan_initData()
+{
+ QTest::addColumn<QScriptValue>("other");
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString lessThan_array [] = {
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(true)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(int(122))",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(uint(124))",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(123.0)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0x43211234)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0x10000)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0x10001)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(qInf())",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, true)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, int(122))",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, qInf())",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, true)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(QScriptValue::NullValue) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"true\")",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"122\")",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"124\")",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(QScriptValue::NullValue) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(true) <=> QScriptValue(int(122))",
+ "QScriptValue(true) <=> QScriptValue(uint(124))",
+ "QScriptValue(true) <=> QScriptValue(123.0)",
+ "QScriptValue(true) <=> QScriptValue(0x43211234)",
+ "QScriptValue(true) <=> QScriptValue(0x10000)",
+ "QScriptValue(true) <=> QScriptValue(0x10001)",
+ "QScriptValue(true) <=> QScriptValue(qInf())",
+ "QScriptValue(true) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(true) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(true) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(true) <=> QScriptValue(0, int(122))",
+ "QScriptValue(true) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(true) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(true) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(true) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(true) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(true) <=> QScriptValue(0, qInf())",
+ "QScriptValue(true) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(true) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(true) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(true) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(true) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(true) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(true) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(true) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(true) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(true) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(true) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(true) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(true) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(true) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(true) <=> engine->evaluate(\"122\")",
+ "QScriptValue(true) <=> engine->evaluate(\"124\")",
+ "QScriptValue(true) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(true) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(true) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(true) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(true) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(true) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(true) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(true) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(false) <=> QScriptValue(true)",
+ "QScriptValue(false) <=> QScriptValue(int(122))",
+ "QScriptValue(false) <=> QScriptValue(uint(124))",
+ "QScriptValue(false) <=> QScriptValue(123.0)",
+ "QScriptValue(false) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(false) <=> QScriptValue(0x43211234)",
+ "QScriptValue(false) <=> QScriptValue(0x10000)",
+ "QScriptValue(false) <=> QScriptValue(0x10001)",
+ "QScriptValue(false) <=> QScriptValue(qInf())",
+ "QScriptValue(false) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(false) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(false) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(false) <=> QScriptValue(0, true)",
+ "QScriptValue(false) <=> QScriptValue(0, int(122))",
+ "QScriptValue(false) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(false) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(false) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(false) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(false) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(false) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(false) <=> QScriptValue(0, qInf())",
+ "QScriptValue(false) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(false) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(false) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(false) <=> QScriptValue(engine, true)",
+ "QScriptValue(false) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(false) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(false) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(false) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(false) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(false) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(false) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(false) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(false) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(false) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(false) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(false) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(false) <=> engine->evaluate(\"true\")",
+ "QScriptValue(false) <=> engine->evaluate(\"122\")",
+ "QScriptValue(false) <=> engine->evaluate(\"124\")",
+ "QScriptValue(false) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(false) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(false) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(false) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(false) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(false) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(false) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(false) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(false) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(int(122)) <=> QScriptValue(uint(124))",
+ "QScriptValue(int(122)) <=> QScriptValue(123.0)",
+ "QScriptValue(int(122)) <=> QScriptValue(0x43211234)",
+ "QScriptValue(int(122)) <=> QScriptValue(0x10000)",
+ "QScriptValue(int(122)) <=> QScriptValue(0x10001)",
+ "QScriptValue(int(122)) <=> QScriptValue(qInf())",
+ "QScriptValue(int(122)) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(int(122)) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(int(122)) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(int(122)) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(int(122)) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(int(122)) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(int(122)) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(int(122)) <=> QScriptValue(0, qInf())",
+ "QScriptValue(int(122)) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(int(122)) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(int(122)) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(int(122)) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(int(122)) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(int(122)) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(int(122)) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(int(122)) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(int(122)) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(int(122)) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(int(122)) <=> engine->evaluate(\"124\")",
+ "QScriptValue(int(122)) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(int(122)) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(int(122)) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(int(122)) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(int(122)) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(int(122)) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(int(122)) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(uint(124)) <=> QScriptValue(0x43211234)",
+ "QScriptValue(uint(124)) <=> QScriptValue(0x10000)",
+ "QScriptValue(uint(124)) <=> QScriptValue(0x10001)",
+ "QScriptValue(uint(124)) <=> QScriptValue(qInf())",
+ "QScriptValue(uint(124)) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(uint(124)) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(uint(124)) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(uint(124)) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(uint(124)) <=> QScriptValue(0, qInf())",
+ "QScriptValue(uint(124)) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(uint(124)) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(uint(124)) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(uint(124)) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(uint(124)) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(uint(124)) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(uint(124)) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(uint(124)) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(uint(124)) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(uint(124)) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0) <=> QScriptValue(true)",
+ "QScriptValue(0) <=> QScriptValue(int(122))",
+ "QScriptValue(0) <=> QScriptValue(uint(124))",
+ "QScriptValue(0) <=> QScriptValue(123.0)",
+ "QScriptValue(0) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(0) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0) <=> QScriptValue(0x10000)",
+ "QScriptValue(0) <=> QScriptValue(0x10001)",
+ "QScriptValue(0) <=> QScriptValue(qInf())",
+ "QScriptValue(0) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(0) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0) <=> QScriptValue(0, true)",
+ "QScriptValue(0) <=> QScriptValue(0, int(122))",
+ "QScriptValue(0) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(0) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(0) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(0) <=> QScriptValue(engine, true)",
+ "QScriptValue(0) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(0) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(0) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(0) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(0) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(0) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(0) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(0) <=> engine->evaluate(\"true\")",
+ "QScriptValue(0) <=> engine->evaluate(\"122\")",
+ "QScriptValue(0) <=> engine->evaluate(\"124\")",
+ "QScriptValue(0) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(0) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(0) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(0) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(0) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(0.0) <=> QScriptValue(true)",
+ "QScriptValue(0.0) <=> QScriptValue(int(122))",
+ "QScriptValue(0.0) <=> QScriptValue(uint(124))",
+ "QScriptValue(0.0) <=> QScriptValue(123.0)",
+ "QScriptValue(0.0) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(0.0) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0.0) <=> QScriptValue(0x10000)",
+ "QScriptValue(0.0) <=> QScriptValue(0x10001)",
+ "QScriptValue(0.0) <=> QScriptValue(qInf())",
+ "QScriptValue(0.0) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0.0) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(0.0) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0.0) <=> QScriptValue(0, true)",
+ "QScriptValue(0.0) <=> QScriptValue(0, int(122))",
+ "QScriptValue(0.0) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(0.0) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(0.0) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0.0) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0.0) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0.0) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0.0) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0.0) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0.0) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0.0) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(0.0) <=> QScriptValue(engine, true)",
+ "QScriptValue(0.0) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(0.0) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(0.0) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(0.0) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(0.0) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0.0) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0.0) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0.0) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0.0) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0.0) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(0.0) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(0.0) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(0.0) <=> engine->evaluate(\"true\")",
+ "QScriptValue(0.0) <=> engine->evaluate(\"122\")",
+ "QScriptValue(0.0) <=> engine->evaluate(\"124\")",
+ "QScriptValue(0.0) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(0.0) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(0.0) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0.0) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0.0) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0.0) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0.0) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(0.0) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(0.0) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(123.0) <=> QScriptValue(uint(124))",
+ "QScriptValue(123.0) <=> QScriptValue(0x43211234)",
+ "QScriptValue(123.0) <=> QScriptValue(0x10000)",
+ "QScriptValue(123.0) <=> QScriptValue(0x10001)",
+ "QScriptValue(123.0) <=> QScriptValue(qInf())",
+ "QScriptValue(123.0) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(123.0) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(123.0) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(123.0) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(123.0) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(123.0) <=> QScriptValue(0, qInf())",
+ "QScriptValue(123.0) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(123.0) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(123.0) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(123.0) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(123.0) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(123.0) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(123.0) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(123.0) <=> engine->evaluate(\"124\")",
+ "QScriptValue(123.0) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(123.0) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(123.0) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(123.0) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(6.37e-8) <=> QScriptValue(true)",
+ "QScriptValue(6.37e-8) <=> QScriptValue(int(122))",
+ "QScriptValue(6.37e-8) <=> QScriptValue(uint(124))",
+ "QScriptValue(6.37e-8) <=> QScriptValue(123.0)",
+ "QScriptValue(6.37e-8) <=> QScriptValue(0x43211234)",
+ "QScriptValue(6.37e-8) <=> QScriptValue(0x10000)",
+ "QScriptValue(6.37e-8) <=> QScriptValue(0x10001)",
+ "QScriptValue(6.37e-8) <=> QScriptValue(qInf())",
+ "QScriptValue(6.37e-8) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(6.37e-8) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(6.37e-8) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(6.37e-8) <=> QScriptValue(0, true)",
+ "QScriptValue(6.37e-8) <=> QScriptValue(0, int(122))",
+ "QScriptValue(6.37e-8) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(6.37e-8) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(6.37e-8) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(6.37e-8) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(6.37e-8) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(6.37e-8) <=> QScriptValue(0, qInf())",
+ "QScriptValue(6.37e-8) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(6.37e-8) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(6.37e-8) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(6.37e-8) <=> QScriptValue(engine, true)",
+ "QScriptValue(6.37e-8) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(6.37e-8) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(6.37e-8) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(6.37e-8) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(6.37e-8) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(6.37e-8) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(6.37e-8) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(6.37e-8) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(6.37e-8) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(6.37e-8) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(6.37e-8) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(6.37e-8) <=> engine->evaluate(\"true\")",
+ "QScriptValue(6.37e-8) <=> engine->evaluate(\"122\")",
+ "QScriptValue(6.37e-8) <=> engine->evaluate(\"124\")",
+ "QScriptValue(6.37e-8) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(6.37e-8) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(6.37e-8) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(6.37e-8) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(6.37e-8) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(6.37e-8) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(6.37e-8) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(6.37e-8) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(true)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(false)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(int(122))",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(uint(124))",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0.0)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(123.0)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0x43211234)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0x10000)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0x10001)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(qInf())",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(QString())",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0, true)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0, false)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0, int(122))",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0, 0)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0, qInf())",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0, QString())",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(engine, true)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(engine, false)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(engine, 0)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(engine, QString())",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(-6.37e-8) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"[]\")",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"Array.prototype\")",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"new Array()\")",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"null\")",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"true\")",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"false\")",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"122\")",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"124\")",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"0\")",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"''\")",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(-6.37e-8) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(-6.37e-8) <=> engine->nullValue()",
+ "QScriptValue(-6.37e-8) <=> engine->newArray()",
+ "QScriptValue(-6.37e-8) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(-6.37e-8) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(-6.37e-8) <=> engine->newQObject(0)",
+ "QScriptValue(0x43211234) <=> QScriptValue(qInf())",
+ "QScriptValue(0x43211234) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0x43211234) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0x43211234) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0x43211234) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0x43211234) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0x43211234) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0x10000) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0x10000) <=> QScriptValue(0x10001)",
+ "QScriptValue(0x10000) <=> QScriptValue(qInf())",
+ "QScriptValue(0x10000) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0x10000) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0x10000) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0x10000) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0x10000) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0x10000) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0x10000) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0x10000) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0x10000) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0x10000) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0x10000) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0x10000) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0x10001) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0x10001) <=> QScriptValue(qInf())",
+ "QScriptValue(0x10001) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0x10001) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0x10001) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0x10001) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0x10001) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0x10001) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0x10001) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0x10001) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0x10001) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(-qInf()) <=> QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(-qInf()) <=> QScriptValue(true)",
+ "QScriptValue(-qInf()) <=> QScriptValue(false)",
+ "QScriptValue(-qInf()) <=> QScriptValue(int(122))",
+ "QScriptValue(-qInf()) <=> QScriptValue(uint(124))",
+ "QScriptValue(-qInf()) <=> QScriptValue(0)",
+ "QScriptValue(-qInf()) <=> QScriptValue(0.0)",
+ "QScriptValue(-qInf()) <=> QScriptValue(123.0)",
+ "QScriptValue(-qInf()) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(-qInf()) <=> QScriptValue(-6.37e-8)",
+ "QScriptValue(-qInf()) <=> QScriptValue(0x43211234)",
+ "QScriptValue(-qInf()) <=> QScriptValue(0x10000)",
+ "QScriptValue(-qInf()) <=> QScriptValue(0x10001)",
+ "QScriptValue(-qInf()) <=> QScriptValue(qInf())",
+ "QScriptValue(-qInf()) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(-qInf()) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(-qInf()) <=> QScriptValue(QString())",
+ "QScriptValue(-qInf()) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(-qInf()) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(-qInf()) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, true)",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, false)",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, int(122))",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, 0)",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, -6.37e-8)",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, qInf())",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, QString())",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(-qInf()) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, true)",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, false)",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, 0)",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, QString())",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(-qInf()) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"[]\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"Array.prototype\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"new Array()\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"null\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"true\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"false\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"122\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"124\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"0\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"-6.37e-8\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"''\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(-qInf()) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(-qInf()) <=> engine->nullValue()",
+ "QScriptValue(-qInf()) <=> engine->newArray()",
+ "QScriptValue(-qInf()) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(-qInf()) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(-qInf()) <=> engine->newQObject(0)",
+ "QScriptValue(\"NaN\") <=> QScriptValue(\"ciao\")",
+ "QScriptValue(\"NaN\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(\"NaN\") <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(\"NaN\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(\"NaN\") <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(\"NaN\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(\"NaN\") <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(\"NaN\") <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(\"NaN\") <=> engine->evaluate(\"Object\")",
+ "QScriptValue(\"NaN\") <=> engine->evaluate(\"Array\")",
+ "QScriptValue(\"NaN\") <=> engine->evaluate(\"Number\")",
+ "QScriptValue(\"NaN\") <=> engine->evaluate(\"Function\")",
+ "QScriptValue(\"NaN\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(\"NaN\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(\"NaN\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(\"NaN\") <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(\"NaN\") <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(\"NaN\") <=> engine->evaluate(\"Null\")",
+ "QScriptValue(\"NaN\") <=> engine->evaluate(\"True\")",
+ "QScriptValue(\"NaN\") <=> engine->evaluate(\"False\")",
+ "QScriptValue(\"NaN\") <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(\"NaN\") <=> engine->newObject()",
+ "QScriptValue(\"NaN\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(\"NaN\") <=> engine->newQObject(engine)",
+ "QScriptValue(\"Infinity\") <=> QScriptValue(\"NaN\")",
+ "QScriptValue(\"Infinity\") <=> QScriptValue(\"ciao\")",
+ "QScriptValue(\"Infinity\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(\"Infinity\") <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(\"Infinity\") <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(\"Infinity\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(\"Infinity\") <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(\"Infinity\") <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(\"Infinity\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(\"Infinity\") <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(\"Infinity\") <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(\"Infinity\") <=> engine->evaluate(\"Object\")",
+ "QScriptValue(\"Infinity\") <=> engine->evaluate(\"Array\")",
+ "QScriptValue(\"Infinity\") <=> engine->evaluate(\"Number\")",
+ "QScriptValue(\"Infinity\") <=> engine->evaluate(\"Function\")",
+ "QScriptValue(\"Infinity\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(\"Infinity\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(\"Infinity\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(\"Infinity\") <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(\"Infinity\") <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(\"Infinity\") <=> engine->evaluate(\"Null\")",
+ "QScriptValue(\"Infinity\") <=> engine->evaluate(\"True\")",
+ "QScriptValue(\"Infinity\") <=> engine->evaluate(\"False\")",
+ "QScriptValue(\"Infinity\") <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(\"Infinity\") <=> engine->newObject()",
+ "QScriptValue(\"Infinity\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(\"Infinity\") <=> engine->newQObject(engine)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(true)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(false)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(int(122))",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(uint(124))",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0.0)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(123.0)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(6.37e-8)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(-6.37e-8)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0x43211234)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0x10000)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0x10001)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(qInf())",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(\"NaN\")",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(\"ciao\")",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, true)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, false)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, int(122))",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, uint(124))",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, 0)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, 0.0)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, 123.0)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, -6.37e-8)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, qInf())",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, true)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, false)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, int(122))",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, 0)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, qInf())",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(\"-Infinity\") <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"Error.prototype\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"Object\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"Array\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"Number\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"Function\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"/foo/\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"new Error()\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"Null\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"True\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"False\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"null\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"true\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"false\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"122\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"124\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"0\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"-6.37e-8\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(\"-Infinity\") <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(\"-Infinity\") <=> engine->nullValue()",
+ "QScriptValue(\"-Infinity\") <=> engine->newObject()",
+ "QScriptValue(\"-Infinity\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(\"-Infinity\") <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(\"-Infinity\") <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(\"-Infinity\") <=> engine->newQObject(0)",
+ "QScriptValue(\"-Infinity\") <=> engine->newQObject(engine)",
+ "QScriptValue(\"ciao\") <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(\"ciao\") <=> engine->evaluate(\"Object\")",
+ "QScriptValue(\"ciao\") <=> engine->evaluate(\"Array\")",
+ "QScriptValue(\"ciao\") <=> engine->evaluate(\"Number\")",
+ "QScriptValue(\"ciao\") <=> engine->evaluate(\"Function\")",
+ "QScriptValue(\"ciao\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(\"ciao\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(\"ciao\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Object\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Array\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Number\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Function\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(true)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(int(122))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(uint(124))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(123.0)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0x43211234)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0x10000)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0x10001)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(qInf())",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(\"NaN\")",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(\"-Infinity\")",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(\"ciao\")",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, true)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, int(122))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, qInf())",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, true)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(QString(\"\")) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"Error.prototype\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"Object\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"Array\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"Number\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"Function\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"/foo/\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"new Error()\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"Null\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"True\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"False\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"true\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"122\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"124\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(QString(\"\")) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(QString(\"\")) <=> engine->newObject()",
+ "QScriptValue(QString(\"\")) <=> engine->newArray(10)",
+ "QScriptValue(QString(\"\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(QString(\"\")) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(QString(\"\")) <=> engine->newQObject(engine)",
+ "QScriptValue(QString()) <=> QScriptValue(true)",
+ "QScriptValue(QString()) <=> QScriptValue(int(122))",
+ "QScriptValue(QString()) <=> QScriptValue(uint(124))",
+ "QScriptValue(QString()) <=> QScriptValue(123.0)",
+ "QScriptValue(QString()) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(QString()) <=> QScriptValue(0x43211234)",
+ "QScriptValue(QString()) <=> QScriptValue(0x10000)",
+ "QScriptValue(QString()) <=> QScriptValue(0x10001)",
+ "QScriptValue(QString()) <=> QScriptValue(qInf())",
+ "QScriptValue(QString()) <=> QScriptValue(\"NaN\")",
+ "QScriptValue(QString()) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(QString()) <=> QScriptValue(\"-Infinity\")",
+ "QScriptValue(QString()) <=> QScriptValue(\"ciao\")",
+ "QScriptValue(QString()) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString()) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(QString()) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString()) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(QString()) <=> QScriptValue(0, true)",
+ "QScriptValue(QString()) <=> QScriptValue(0, int(122))",
+ "QScriptValue(QString()) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(QString()) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(QString()) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(QString()) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(QString()) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(QString()) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(QString()) <=> QScriptValue(0, qInf())",
+ "QScriptValue(QString()) <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(QString()) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(QString()) <=> QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(QString()) <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(QString()) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString()) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(QString()) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(QString()) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(QString()) <=> QScriptValue(engine, true)",
+ "QScriptValue(QString()) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(QString()) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(QString()) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(QString()) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(QString()) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(QString()) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(QString()) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(QString()) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(QString()) <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(QString()) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(QString()) <=> QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(QString()) <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(QString()) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString()) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(QString()) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(QString()) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(QString()) <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"Error.prototype\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"Object\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"Array\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"Number\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"Function\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"/foo/\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"new Error()\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"Null\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"True\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"False\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"true\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"122\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"124\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(QString()) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(QString()) <=> engine->newObject()",
+ "QScriptValue(QString()) <=> engine->newArray(10)",
+ "QScriptValue(QString()) <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(QString()) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(QString()) <=> engine->newQObject(engine)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(true)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(int(122))",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(uint(124))",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(123.0)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0x43211234)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0x10000)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0x10001)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(qInf())",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(\"NaN\")",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(\"ciao\")",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0, true)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0, int(122))",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0, qInf())",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, true)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(QString(\"0\")) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"Error.prototype\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"Object\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"Array\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"Number\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"Function\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"new Error()\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"Null\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"True\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"False\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"true\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"122\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"124\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(QString(\"0\")) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(QString(\"0\")) <=> engine->newObject()",
+ "QScriptValue(QString(\"0\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(QString(\"0\")) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(QString(\"0\")) <=> engine->newQObject(engine)",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(uint(124))",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(0x43211234)",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(0x10000)",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(0x10001)",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(qInf())",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(\"NaN\")",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(\"ciao\")",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(0, qInf())",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(QString(\"123\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"Error.prototype\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"Object\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"Array\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"Number\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"Function\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"new Error()\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"Null\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"True\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"False\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"124\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(QString(\"123\")) <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(QString(\"123\")) <=> engine->newObject()",
+ "QScriptValue(QString(\"123\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(QString(\"123\")) <=> engine->newQObject(engine)",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(int(122))",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(uint(124))",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(123.0)",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(0x43211234)",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(0x10000)",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(0x10001)",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(qInf())",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(\"NaN\")",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(\"ciao\")",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, int(122))",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, qInf())",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"12.4\")) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"Error.prototype\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"Object\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"Array\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"Number\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"Function\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"new Error()\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"Null\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"True\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"False\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"122\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"124\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(QString(\"12.4\")) <=> engine->newObject()",
+ "QScriptValue(QString(\"12.4\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(QString(\"12.4\")) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(QString(\"12.4\")) <=> engine->newQObject(engine)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(true)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(int(122))",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(uint(124))",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(123.0)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0x10000)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0x10001)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(qInf())",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, true)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, int(122))",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, true)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(0, QScriptValue::NullValue) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"true\")",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"122\")",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"124\")",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(0, QScriptValue::NullValue) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(0, true) <=> QScriptValue(int(122))",
+ "QScriptValue(0, true) <=> QScriptValue(uint(124))",
+ "QScriptValue(0, true) <=> QScriptValue(123.0)",
+ "QScriptValue(0, true) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0, true) <=> QScriptValue(0x10000)",
+ "QScriptValue(0, true) <=> QScriptValue(0x10001)",
+ "QScriptValue(0, true) <=> QScriptValue(qInf())",
+ "QScriptValue(0, true) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, true) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(0, true) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, true) <=> QScriptValue(0, int(122))",
+ "QScriptValue(0, true) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(0, true) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(0, true) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, true) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0, true) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0, true) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, true) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, true) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, true) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(0, true) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(0, true) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(0, true) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(0, true) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0, true) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0, true) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0, true) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, true) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, true) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(0, true) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(0, true) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(0, true) <=> engine->evaluate(\"122\")",
+ "QScriptValue(0, true) <=> engine->evaluate(\"124\")",
+ "QScriptValue(0, true) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(0, true) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0, true) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0, true) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0, true) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, true) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(0, true) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(0, true) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(0, false) <=> QScriptValue(true)",
+ "QScriptValue(0, false) <=> QScriptValue(int(122))",
+ "QScriptValue(0, false) <=> QScriptValue(uint(124))",
+ "QScriptValue(0, false) <=> QScriptValue(123.0)",
+ "QScriptValue(0, false) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(0, false) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0, false) <=> QScriptValue(0x10000)",
+ "QScriptValue(0, false) <=> QScriptValue(0x10001)",
+ "QScriptValue(0, false) <=> QScriptValue(qInf())",
+ "QScriptValue(0, false) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, false) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(0, false) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, false) <=> QScriptValue(0, true)",
+ "QScriptValue(0, false) <=> QScriptValue(0, int(122))",
+ "QScriptValue(0, false) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(0, false) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(0, false) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, false) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, false) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0, false) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0, false) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, false) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, false) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, false) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(0, false) <=> QScriptValue(engine, true)",
+ "QScriptValue(0, false) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(0, false) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(0, false) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(0, false) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(0, false) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0, false) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0, false) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0, false) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, false) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, false) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(0, false) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(0, false) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(0, false) <=> engine->evaluate(\"true\")",
+ "QScriptValue(0, false) <=> engine->evaluate(\"122\")",
+ "QScriptValue(0, false) <=> engine->evaluate(\"124\")",
+ "QScriptValue(0, false) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(0, false) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(0, false) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0, false) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0, false) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0, false) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, false) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(0, false) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(0, false) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(0, int(122)) <=> QScriptValue(uint(124))",
+ "QScriptValue(0, int(122)) <=> QScriptValue(123.0)",
+ "QScriptValue(0, int(122)) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0, int(122)) <=> QScriptValue(0x10000)",
+ "QScriptValue(0, int(122)) <=> QScriptValue(0x10001)",
+ "QScriptValue(0, int(122)) <=> QScriptValue(qInf())",
+ "QScriptValue(0, int(122)) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, int(122)) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(0, int(122)) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(0, int(122)) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(0, int(122)) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, int(122)) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0, int(122)) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0, int(122)) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, int(122)) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, int(122)) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, int(122)) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(0, int(122)) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(0, int(122)) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0, int(122)) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0, int(122)) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0, int(122)) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, int(122)) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, int(122)) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(0, int(122)) <=> engine->evaluate(\"124\")",
+ "QScriptValue(0, int(122)) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(0, int(122)) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0, int(122)) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0, int(122)) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0, int(122)) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, int(122)) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(0, int(122)) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(0, uint(124)) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0, uint(124)) <=> QScriptValue(0x10000)",
+ "QScriptValue(0, uint(124)) <=> QScriptValue(0x10001)",
+ "QScriptValue(0, uint(124)) <=> QScriptValue(qInf())",
+ "QScriptValue(0, uint(124)) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, uint(124)) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, uint(124)) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0, uint(124)) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0, uint(124)) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, uint(124)) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, uint(124)) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0, uint(124)) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0, uint(124)) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0, uint(124)) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, uint(124)) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, uint(124)) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0, uint(124)) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0, uint(124)) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0, uint(124)) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, 0) <=> QScriptValue(true)",
+ "QScriptValue(0, 0) <=> QScriptValue(int(122))",
+ "QScriptValue(0, 0) <=> QScriptValue(uint(124))",
+ "QScriptValue(0, 0) <=> QScriptValue(123.0)",
+ "QScriptValue(0, 0) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(0, 0) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0, 0) <=> QScriptValue(0x10000)",
+ "QScriptValue(0, 0) <=> QScriptValue(0x10001)",
+ "QScriptValue(0, 0) <=> QScriptValue(qInf())",
+ "QScriptValue(0, 0) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, 0) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(0, 0) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, 0) <=> QScriptValue(0, true)",
+ "QScriptValue(0, 0) <=> QScriptValue(0, int(122))",
+ "QScriptValue(0, 0) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(0, 0) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(0, 0) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, 0) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 0) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0, 0) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, 0) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, 0) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, 0) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(0, 0) <=> QScriptValue(engine, true)",
+ "QScriptValue(0, 0) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(0, 0) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(0, 0) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(0, 0) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(0, 0) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0, 0) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0, 0) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0, 0) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, 0) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, 0) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(0, 0) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"true\")",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"122\")",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"124\")",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(0, 0) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(0, 0) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(0, 0.0) <=> QScriptValue(true)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(int(122))",
+ "QScriptValue(0, 0.0) <=> QScriptValue(uint(124))",
+ "QScriptValue(0, 0.0) <=> QScriptValue(123.0)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0x10000)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0x10001)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(qInf())",
+ "QScriptValue(0, 0.0) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, 0.0) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(0, 0.0) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0, true)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0, int(122))",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, 0.0) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(0, 0.0) <=> QScriptValue(engine, true)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(0, 0.0) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(0, 0.0) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0, 0.0) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, 0.0) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, 0.0) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(0, 0.0) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"true\")",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"122\")",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"124\")",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(0, 0.0) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(0, 0.0) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(0, 123.0) <=> QScriptValue(uint(124))",
+ "QScriptValue(0, 123.0) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0, 123.0) <=> QScriptValue(0x10000)",
+ "QScriptValue(0, 123.0) <=> QScriptValue(0x10001)",
+ "QScriptValue(0, 123.0) <=> QScriptValue(qInf())",
+ "QScriptValue(0, 123.0) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, 123.0) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(0, 123.0) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 123.0) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 123.0) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0, 123.0) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, 123.0) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, 123.0) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(0, 123.0) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0, 123.0) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0, 123.0) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0, 123.0) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, 123.0) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, 123.0) <=> engine->evaluate(\"124\")",
+ "QScriptValue(0, 123.0) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0, 123.0) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0, 123.0) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0, 123.0) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(true)",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(int(122))",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(uint(124))",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(123.0)",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(0x10000)",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(0x10001)",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(qInf())",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(0, true)",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(0, int(122))",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, true)",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(0, 6.37e-8) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"true\")",
+ "QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"122\")",
+ "QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"124\")",
+ "QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(0, 6.37e-8) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(0, 6.37e-8) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(true)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(false)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(int(122))",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(uint(124))",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0.0)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(123.0)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0x10000)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0x10001)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(qInf())",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(QString())",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, true)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, false)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, int(122))",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, 0)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, QString())",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, true)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, false)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, 0)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, QString())",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(0, -6.37e-8) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"[]\")",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"Array.prototype\")",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"new Array()\")",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"null\")",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"true\")",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"false\")",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"122\")",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"124\")",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"0\")",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"''\")",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(0, -6.37e-8) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(0, -6.37e-8) <=> engine->nullValue()",
+ "QScriptValue(0, -6.37e-8) <=> engine->newArray()",
+ "QScriptValue(0, -6.37e-8) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(0, -6.37e-8) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(0, -6.37e-8) <=> engine->newQObject(0)",
+ "QScriptValue(0, 0x43211234) <=> QScriptValue(qInf())",
+ "QScriptValue(0, 0x43211234) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, 0x43211234) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, 0x43211234) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, 0x43211234) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, 0x43211234) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, 0x43211234) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, 0x10000) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0, 0x10000) <=> QScriptValue(0x10001)",
+ "QScriptValue(0, 0x10000) <=> QScriptValue(qInf())",
+ "QScriptValue(0, 0x10000) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, 0x10000) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0x10000) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0, 0x10000) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, 0x10000) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, 0x10000) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0, 0x10000) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0, 0x10000) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, 0x10000) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, 0x10000) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0, 0x10000) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0, 0x10000) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, 0x10001) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0, 0x10001) <=> QScriptValue(qInf())",
+ "QScriptValue(0, 0x10001) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, 0x10001) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0x10001) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, 0x10001) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, 0x10001) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0, 0x10001) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, 0x10001) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, 0x10001) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0, 0x10001) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(true)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(false)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(int(122))",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(uint(124))",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0.0)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(123.0)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(-6.37e-8)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0x10000)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0x10001)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(qInf())",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(QString())",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, true)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, false)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, int(122))",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, 0)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, -6.37e-8)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, QString())",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, true)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, false)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, 0)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, QString())",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(0, -qInf()) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"[]\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"Array.prototype\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"new Array()\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"null\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"true\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"false\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"122\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"124\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"0\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"-6.37e-8\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"''\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(0, -qInf()) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(0, -qInf()) <=> engine->nullValue()",
+ "QScriptValue(0, -qInf()) <=> engine->newArray()",
+ "QScriptValue(0, -qInf()) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(0, -qInf()) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(0, -qInf()) <=> engine->newQObject(0)",
+ "QScriptValue(0, \"NaN\") <=> QScriptValue(\"ciao\")",
+ "QScriptValue(0, \"NaN\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, \"NaN\") <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, \"NaN\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, \"NaN\") <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(0, \"NaN\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, \"NaN\") <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(0, \"NaN\") <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(0, \"NaN\") <=> engine->evaluate(\"Object\")",
+ "QScriptValue(0, \"NaN\") <=> engine->evaluate(\"Array\")",
+ "QScriptValue(0, \"NaN\") <=> engine->evaluate(\"Number\")",
+ "QScriptValue(0, \"NaN\") <=> engine->evaluate(\"Function\")",
+ "QScriptValue(0, \"NaN\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(0, \"NaN\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(0, \"NaN\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(0, \"NaN\") <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(0, \"NaN\") <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(0, \"NaN\") <=> engine->evaluate(\"Null\")",
+ "QScriptValue(0, \"NaN\") <=> engine->evaluate(\"True\")",
+ "QScriptValue(0, \"NaN\") <=> engine->evaluate(\"False\")",
+ "QScriptValue(0, \"NaN\") <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(0, \"NaN\") <=> engine->newObject()",
+ "QScriptValue(0, \"NaN\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(0, \"NaN\") <=> engine->newQObject(engine)",
+ "QScriptValue(0, \"Infinity\") <=> QScriptValue(\"NaN\")",
+ "QScriptValue(0, \"Infinity\") <=> QScriptValue(\"ciao\")",
+ "QScriptValue(0, \"Infinity\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, \"Infinity\") <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, \"Infinity\") <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, \"Infinity\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, \"Infinity\") <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(0, \"Infinity\") <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(0, \"Infinity\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"Object\")",
+ "QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"Array\")",
+ "QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"Number\")",
+ "QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"Function\")",
+ "QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"Null\")",
+ "QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"True\")",
+ "QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"False\")",
+ "QScriptValue(0, \"Infinity\") <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(0, \"Infinity\") <=> engine->newObject()",
+ "QScriptValue(0, \"Infinity\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(0, \"Infinity\") <=> engine->newQObject(engine)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(true)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(false)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(int(122))",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(uint(124))",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0.0)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(123.0)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(6.37e-8)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(-6.37e-8)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0x43211234)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0x10000)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0x10001)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(qInf())",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(\"NaN\")",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(\"ciao\")",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, true)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, false)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, int(122))",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, uint(124))",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, 0)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, 0.0)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, 123.0)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, -6.37e-8)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, true)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, false)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, int(122))",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, 0)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(0, \"-Infinity\") <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"Error.prototype\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"Object\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"Array\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"Number\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"Function\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"/foo/\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"new Error()\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"Null\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"True\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"False\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"null\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"true\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"false\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"122\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"124\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"0\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"-6.37e-8\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(0, \"-Infinity\") <=> engine->nullValue()",
+ "QScriptValue(0, \"-Infinity\") <=> engine->newObject()",
+ "QScriptValue(0, \"-Infinity\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(0, \"-Infinity\") <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(0, \"-Infinity\") <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(0, \"-Infinity\") <=> engine->newQObject(0)",
+ "QScriptValue(0, \"-Infinity\") <=> engine->newQObject(engine)",
+ "QScriptValue(0, \"ciao\") <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(0, \"ciao\") <=> engine->evaluate(\"Object\")",
+ "QScriptValue(0, \"ciao\") <=> engine->evaluate(\"Array\")",
+ "QScriptValue(0, \"ciao\") <=> engine->evaluate(\"Number\")",
+ "QScriptValue(0, \"ciao\") <=> engine->evaluate(\"Function\")",
+ "QScriptValue(0, \"ciao\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(0, \"ciao\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(0, \"ciao\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Object\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Array\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Number\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Function\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(true)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(int(122))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(uint(124))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(123.0)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0x10000)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0x10001)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(qInf())",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(\"NaN\")",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(\"-Infinity\")",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(\"ciao\")",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, true)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, int(122))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, true)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(0, QString(\"\")) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Error.prototype\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Object\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Array\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Number\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Function\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"/foo/\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"new Error()\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Null\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"True\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"False\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"true\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"122\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"124\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(0, QString(\"\")) <=> engine->newObject()",
+ "QScriptValue(0, QString(\"\")) <=> engine->newArray(10)",
+ "QScriptValue(0, QString(\"\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(0, QString(\"\")) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(0, QString(\"\")) <=> engine->newQObject(engine)",
+ "QScriptValue(0, QString()) <=> QScriptValue(true)",
+ "QScriptValue(0, QString()) <=> QScriptValue(int(122))",
+ "QScriptValue(0, QString()) <=> QScriptValue(uint(124))",
+ "QScriptValue(0, QString()) <=> QScriptValue(123.0)",
+ "QScriptValue(0, QString()) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(0, QString()) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0, QString()) <=> QScriptValue(0x10000)",
+ "QScriptValue(0, QString()) <=> QScriptValue(0x10001)",
+ "QScriptValue(0, QString()) <=> QScriptValue(qInf())",
+ "QScriptValue(0, QString()) <=> QScriptValue(\"NaN\")",
+ "QScriptValue(0, QString()) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, QString()) <=> QScriptValue(\"-Infinity\")",
+ "QScriptValue(0, QString()) <=> QScriptValue(\"ciao\")",
+ "QScriptValue(0, QString()) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString()) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(0, QString()) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(0, QString()) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, true)",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, int(122))",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString()) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, true)",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(0, QString()) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"Error.prototype\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"Object\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"Array\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"Number\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"Function\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"/foo/\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"new Error()\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"Null\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"True\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"False\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"true\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"122\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"124\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(0, QString()) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(0, QString()) <=> engine->newObject()",
+ "QScriptValue(0, QString()) <=> engine->newArray(10)",
+ "QScriptValue(0, QString()) <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(0, QString()) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(0, QString()) <=> engine->newQObject(engine)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(true)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(int(122))",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(uint(124))",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(123.0)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0x10000)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0x10001)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(qInf())",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(\"NaN\")",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(\"ciao\")",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, true)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, int(122))",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, true)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(0, QString(\"0\")) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"Error.prototype\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"Object\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"Array\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"Number\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"Function\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"new Error()\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"Null\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"True\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"False\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"true\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"122\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"124\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(0, QString(\"0\")) <=> engine->newObject()",
+ "QScriptValue(0, QString(\"0\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(0, QString(\"0\")) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(0, QString(\"0\")) <=> engine->newQObject(engine)",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(uint(124))",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(0x10000)",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(0x10001)",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(qInf())",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(\"NaN\")",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(\"ciao\")",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(0, QString(\"123\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"Error.prototype\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"Object\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"Array\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"Number\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"Function\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"new Error()\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"Null\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"True\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"False\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"124\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(0, QString(\"123\")) <=> engine->newObject()",
+ "QScriptValue(0, QString(\"123\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(0, QString(\"123\")) <=> engine->newQObject(engine)",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(int(122))",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(uint(124))",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(123.0)",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0x43211234)",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0x10000)",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0x10001)",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(qInf())",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(\"NaN\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(\"ciao\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, int(122))",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, qInf())",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"12.3\")) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"Error.prototype\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"Object\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"Array\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"Number\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"Function\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"new Error()\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"Null\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"True\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"False\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"122\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"124\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->newObject()",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(0, QString(\"12.3\")) <=> engine->newQObject(engine)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(true)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(int(122))",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(uint(124))",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(123.0)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0x43211234)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0x10000)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0x10001)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(qInf())",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, true)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, int(122))",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, true)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"true\")",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"122\")",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"124\")",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(engine, QScriptValue::NullValue) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(engine, true) <=> QScriptValue(int(122))",
+ "QScriptValue(engine, true) <=> QScriptValue(uint(124))",
+ "QScriptValue(engine, true) <=> QScriptValue(123.0)",
+ "QScriptValue(engine, true) <=> QScriptValue(0x43211234)",
+ "QScriptValue(engine, true) <=> QScriptValue(0x10000)",
+ "QScriptValue(engine, true) <=> QScriptValue(0x10001)",
+ "QScriptValue(engine, true) <=> QScriptValue(qInf())",
+ "QScriptValue(engine, true) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, true) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(engine, true) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(engine, true) <=> QScriptValue(0, int(122))",
+ "QScriptValue(engine, true) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(engine, true) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(engine, true) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(engine, true) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(engine, true) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(engine, true) <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, true) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, true) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(engine, true) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, true) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(engine, true) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, true) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, true) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, true) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, true) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, true) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, true) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, true) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, true) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(engine, true) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(engine, true) <=> engine->evaluate(\"122\")",
+ "QScriptValue(engine, true) <=> engine->evaluate(\"124\")",
+ "QScriptValue(engine, true) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(engine, true) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(engine, true) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(engine, true) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(engine, true) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, true) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(engine, true) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(engine, true) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(engine, false) <=> QScriptValue(true)",
+ "QScriptValue(engine, false) <=> QScriptValue(int(122))",
+ "QScriptValue(engine, false) <=> QScriptValue(uint(124))",
+ "QScriptValue(engine, false) <=> QScriptValue(123.0)",
+ "QScriptValue(engine, false) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(engine, false) <=> QScriptValue(0x43211234)",
+ "QScriptValue(engine, false) <=> QScriptValue(0x10000)",
+ "QScriptValue(engine, false) <=> QScriptValue(0x10001)",
+ "QScriptValue(engine, false) <=> QScriptValue(qInf())",
+ "QScriptValue(engine, false) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, false) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(engine, false) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(engine, false) <=> QScriptValue(0, true)",
+ "QScriptValue(engine, false) <=> QScriptValue(0, int(122))",
+ "QScriptValue(engine, false) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(engine, false) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(engine, false) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(engine, false) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(engine, false) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(engine, false) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(engine, false) <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, false) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, false) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(engine, false) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, false) <=> QScriptValue(engine, true)",
+ "QScriptValue(engine, false) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(engine, false) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, false) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, false) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, false) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, false) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, false) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, false) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, false) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, false) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, false) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(engine, false) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(engine, false) <=> engine->evaluate(\"true\")",
+ "QScriptValue(engine, false) <=> engine->evaluate(\"122\")",
+ "QScriptValue(engine, false) <=> engine->evaluate(\"124\")",
+ "QScriptValue(engine, false) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(engine, false) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(engine, false) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(engine, false) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(engine, false) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(engine, false) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, false) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(engine, false) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(engine, false) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(uint(124))",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(123.0)",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(0x43211234)",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(0x10000)",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(0x10001)",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(qInf())",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, int(122)) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, int(122)) <=> engine->evaluate(\"124\")",
+ "QScriptValue(engine, int(122)) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(engine, int(122)) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(engine, int(122)) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(engine, int(122)) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(engine, int(122)) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, int(122)) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(engine, int(122)) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(engine, uint(124)) <=> QScriptValue(0x43211234)",
+ "QScriptValue(engine, uint(124)) <=> QScriptValue(0x10000)",
+ "QScriptValue(engine, uint(124)) <=> QScriptValue(0x10001)",
+ "QScriptValue(engine, uint(124)) <=> QScriptValue(qInf())",
+ "QScriptValue(engine, uint(124)) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, uint(124)) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(engine, uint(124)) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(engine, uint(124)) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(engine, uint(124)) <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, uint(124)) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, uint(124)) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, uint(124)) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, uint(124)) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, uint(124)) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, uint(124)) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, uint(124)) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(engine, uint(124)) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(engine, uint(124)) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(engine, uint(124)) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, 0) <=> QScriptValue(true)",
+ "QScriptValue(engine, 0) <=> QScriptValue(int(122))",
+ "QScriptValue(engine, 0) <=> QScriptValue(uint(124))",
+ "QScriptValue(engine, 0) <=> QScriptValue(123.0)",
+ "QScriptValue(engine, 0) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(engine, 0) <=> QScriptValue(0x43211234)",
+ "QScriptValue(engine, 0) <=> QScriptValue(0x10000)",
+ "QScriptValue(engine, 0) <=> QScriptValue(0x10001)",
+ "QScriptValue(engine, 0) <=> QScriptValue(qInf())",
+ "QScriptValue(engine, 0) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, 0) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(engine, 0) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(engine, 0) <=> QScriptValue(0, true)",
+ "QScriptValue(engine, 0) <=> QScriptValue(0, int(122))",
+ "QScriptValue(engine, 0) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(engine, 0) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(engine, 0) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(engine, 0) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(engine, 0) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(engine, 0) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(engine, 0) <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, 0) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, 0) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(engine, 0) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, 0) <=> QScriptValue(engine, true)",
+ "QScriptValue(engine, 0) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(engine, 0) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, 0) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, 0) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, 0) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 0) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, 0) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, 0) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, 0) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, 0) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"true\")",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"122\")",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"124\")",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(engine, 0) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(engine, 0) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(true)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(int(122))",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(uint(124))",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(123.0)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0x43211234)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0x10000)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0x10001)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(qInf())",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0, true)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0, int(122))",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(engine, true)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, 0.0) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"true\")",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"122\")",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"124\")",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(engine, 0.0) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(engine, 0.0) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(uint(124))",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(0x43211234)",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(0x10000)",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(0x10001)",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(qInf())",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, 123.0) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, 123.0) <=> engine->evaluate(\"124\")",
+ "QScriptValue(engine, 123.0) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(engine, 123.0) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(engine, 123.0) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(engine, 123.0) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(true)",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(int(122))",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(uint(124))",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(123.0)",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(0x43211234)",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(0x10000)",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(0x10001)",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(qInf())",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, true)",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, int(122))",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, true)",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, 6.37e-8) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"true\")",
+ "QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"122\")",
+ "QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"124\")",
+ "QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(engine, 6.37e-8) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(engine, 6.37e-8) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(true)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(false)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(int(122))",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(uint(124))",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0.0)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(123.0)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0x43211234)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0x10000)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0x10001)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(qInf())",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(QString())",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, true)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, false)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, int(122))",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, 0)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, QString())",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, true)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, false)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, 0)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, QString())",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, -6.37e-8) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"[]\")",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"Array.prototype\")",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"new Array()\")",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"null\")",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"true\")",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"false\")",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"122\")",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"124\")",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"0\")",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"''\")",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(engine, -6.37e-8) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(engine, -6.37e-8) <=> engine->nullValue()",
+ "QScriptValue(engine, -6.37e-8) <=> engine->newArray()",
+ "QScriptValue(engine, -6.37e-8) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(engine, -6.37e-8) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(engine, -6.37e-8) <=> engine->newQObject(0)",
+ "QScriptValue(engine, 0x43211234) <=> QScriptValue(qInf())",
+ "QScriptValue(engine, 0x43211234) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, 0x43211234) <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, 0x43211234) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, 0x43211234) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, 0x43211234) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, 0x43211234) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, 0x10000) <=> QScriptValue(0x43211234)",
+ "QScriptValue(engine, 0x10000) <=> QScriptValue(0x10001)",
+ "QScriptValue(engine, 0x10000) <=> QScriptValue(qInf())",
+ "QScriptValue(engine, 0x10000) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, 0x10000) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(engine, 0x10000) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(engine, 0x10000) <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, 0x10000) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, 0x10000) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0x10000) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, 0x10000) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, 0x10000) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, 0x10000) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(engine, 0x10000) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(engine, 0x10000) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, 0x10001) <=> QScriptValue(0x43211234)",
+ "QScriptValue(engine, 0x10001) <=> QScriptValue(qInf())",
+ "QScriptValue(engine, 0x10001) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, 0x10001) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(engine, 0x10001) <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, 0x10001) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, 0x10001) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0x10001) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, 0x10001) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, 0x10001) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(engine, 0x10001) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(true)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(false)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(int(122))",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(uint(124))",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0.0)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(123.0)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(-6.37e-8)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0x43211234)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0x10000)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0x10001)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(qInf())",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(QString(\"\"))",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(QString())",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, true)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, false)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, int(122))",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, 0)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, 0.0)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, -6.37e-8)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, QString(\"\"))",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, QString())",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, true)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, false)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, 0)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, QString())",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, -qInf()) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"[]\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"Array.prototype\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"new Array()\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"null\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"true\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"false\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"122\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"124\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"0\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"-6.37e-8\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"''\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(engine, -qInf()) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(engine, -qInf()) <=> engine->nullValue()",
+ "QScriptValue(engine, -qInf()) <=> engine->newArray()",
+ "QScriptValue(engine, -qInf()) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(engine, -qInf()) <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(engine, -qInf()) <=> engine->newQObject(0)",
+ "QScriptValue(engine, \"NaN\") <=> QScriptValue(\"ciao\")",
+ "QScriptValue(engine, \"NaN\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, \"NaN\") <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(engine, \"NaN\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, \"NaN\") <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, \"NaN\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"Object\")",
+ "QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"Array\")",
+ "QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"Number\")",
+ "QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"Function\")",
+ "QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"Null\")",
+ "QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"True\")",
+ "QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"False\")",
+ "QScriptValue(engine, \"NaN\") <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(engine, \"NaN\") <=> engine->newObject()",
+ "QScriptValue(engine, \"NaN\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(engine, \"NaN\") <=> engine->newQObject(engine)",
+ "QScriptValue(engine, \"Infinity\") <=> QScriptValue(\"NaN\")",
+ "QScriptValue(engine, \"Infinity\") <=> QScriptValue(\"ciao\")",
+ "QScriptValue(engine, \"Infinity\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, \"Infinity\") <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(engine, \"Infinity\") <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(engine, \"Infinity\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, \"Infinity\") <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, \"Infinity\") <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, \"Infinity\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"Object\")",
+ "QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"Array\")",
+ "QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"Number\")",
+ "QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"Function\")",
+ "QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"Null\")",
+ "QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"True\")",
+ "QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"False\")",
+ "QScriptValue(engine, \"Infinity\") <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(engine, \"Infinity\") <=> engine->newObject()",
+ "QScriptValue(engine, \"Infinity\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(engine, \"Infinity\") <=> engine->newQObject(engine)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(true)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(false)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(int(122))",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(uint(124))",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0.0)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(123.0)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(6.37e-8)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(-6.37e-8)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0x43211234)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0x10000)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0x10001)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(qInf())",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(\"NaN\")",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(\"ciao\")",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, true)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, false)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, int(122))",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, uint(124))",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, 0)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, 0.0)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, 123.0)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, -6.37e-8)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, true)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, false)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, int(122))",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, 0)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, \"-Infinity\") <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"Error.prototype\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"Object\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"Array\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"Number\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"Function\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"/foo/\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"new Error()\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"Null\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"True\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"False\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"null\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"true\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"false\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"122\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"124\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"0\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"0.0\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"-6.37e-8\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->nullValue()",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->newObject()",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->newVariant(QVariant(false))",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->newQObject(0)",
+ "QScriptValue(engine, \"-Infinity\") <=> engine->newQObject(engine)",
+ "QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"Object\")",
+ "QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"Array\")",
+ "QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"Number\")",
+ "QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"Function\")",
+ "QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(engine, \"ciao\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Object\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Array\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Number\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"Function\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(true)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(int(122))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(uint(124))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(123.0)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0x43211234)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0x10000)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0x10001)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(qInf())",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(\"NaN\")",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(\"-Infinity\")",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(\"ciao\")",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, true)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, int(122))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, true)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"\")) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Error.prototype\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Object\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Array\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Number\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Function\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"/foo/\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"new Error()\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Null\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"True\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"False\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"true\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"122\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"124\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(engine, QString(\"\")) <=> engine->newObject()",
+ "QScriptValue(engine, QString(\"\")) <=> engine->newArray(10)",
+ "QScriptValue(engine, QString(\"\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(engine, QString(\"\")) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(engine, QString(\"\")) <=> engine->newQObject(engine)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(true)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(int(122))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(uint(124))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(123.0)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0x43211234)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0x10000)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0x10001)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(qInf())",
+ "QScriptValue(engine, QString()) <=> QScriptValue(\"NaN\")",
+ "QScriptValue(engine, QString()) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, QString()) <=> QScriptValue(\"-Infinity\")",
+ "QScriptValue(engine, QString()) <=> QScriptValue(\"ciao\")",
+ "QScriptValue(engine, QString()) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(QString(\"0\"))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, true)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, int(122))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, true)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString()) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"Error.prototype\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"Object\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"Array\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"Number\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"Function\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"/foo/\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"new Error()\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"Null\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"True\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"False\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"true\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"122\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"124\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"'0'\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(engine, QString()) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(engine, QString()) <=> engine->newObject()",
+ "QScriptValue(engine, QString()) <=> engine->newArray(10)",
+ "QScriptValue(engine, QString()) <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(engine, QString()) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(engine, QString()) <=> engine->newQObject(engine)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(true)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(int(122))",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(uint(124))",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(123.0)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(6.37e-8)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0x43211234)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0x10000)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0x10001)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(qInf())",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(\"NaN\")",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(\"ciao\")",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, true)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, int(122))",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, 6.37e-8)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, true)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"0\")) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"Error.prototype\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"Object\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"Array\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"Number\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"Function\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"new Error()\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"Null\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"True\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"False\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"true\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"122\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"124\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"6.37e-8\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->newObject()",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(engine, QString(\"0\")) <=> engine->newQObject(engine)",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(uint(124))",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0x43211234)",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0x10000)",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0x10001)",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(qInf())",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(\"NaN\")",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(\"ciao\")",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString(\"123\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"Error.prototype\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"Object\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"Array\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"Number\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"Function\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"new Error()\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"Null\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"True\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"False\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"124\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->newObject()",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(engine, QString(\"123\")) <=> engine->newQObject(engine)",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(int(122))",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(uint(124))",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(123.0)",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0x43211234)",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0x10000)",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0x10001)",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(qInf())",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(\"NaN\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(\"Infinity\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(\"ciao\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(QString(\"123\"))",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, int(122))",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, uint(124))",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, 123.0)",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, 0x43211234)",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, 0x10000)",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, 0x10001)",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, qInf())",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, \"NaN\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, \"Infinity\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, \"ciao\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, int(122))",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, qInf())",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"1.23\")) <=> QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"Object.prototype\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"Function.prototype\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"Error.prototype\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"Object\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"Array\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"Number\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"Function\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"(function() { return 1; })\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"new Object()\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"new Error()\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"Undefined\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"Null\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"True\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"False\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"122\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"124\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"123.0\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"0x43211234\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"0x10000\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"0x10001\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"Infinity\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"'ciao'\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"'123'\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->evaluate(\"'12.4'\")",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->newObject()",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->newVariant(QVariant(123))",
+ "QScriptValue(engine, QString(\"1.23\")) <=> engine->newQObject(engine)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(true)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(int(122))",
+ "engine->evaluate(\"[]\") <=> QScriptValue(uint(124))",
+ "engine->evaluate(\"[]\") <=> QScriptValue(123.0)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(6.37e-8)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0x10000)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"[]\") <=> QScriptValue(\"NaN\")",
+ "engine->evaluate(\"[]\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"[]\") <=> QScriptValue(\"-Infinity\")",
+ "engine->evaluate(\"[]\") <=> QScriptValue(\"ciao\")",
+ "engine->evaluate(\"[]\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"[]\") <=> QScriptValue(QString(\"0\"))",
+ "engine->evaluate(\"[]\") <=> QScriptValue(QString(\"123\"))",
+ "engine->evaluate(\"[]\") <=> QScriptValue(QString(\"12.4\"))",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, true)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, int(122))",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, uint(124))",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, 123.0)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, 6.37e-8)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, 0x10000)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, \"NaN\")",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, \"-Infinity\")",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, \"ciao\")",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, QString(\"0\"))",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, QString(\"123\"))",
+ "engine->evaluate(\"[]\") <=> QScriptValue(0, QString(\"12.3\"))",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, true)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, int(122))",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, uint(124))",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, 123.0)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, 6.37e-8)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, 0x10000)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, \"NaN\")",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, \"-Infinity\")",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, \"ciao\")",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, QString(\"0\"))",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->evaluate(\"[]\") <=> QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"Null\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"True\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"False\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"true\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"122\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"124\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"'12.4'\")",
+ "engine->evaluate(\"[]\") <=> engine->newObject()",
+ "engine->evaluate(\"[]\") <=> engine->newArray(10)",
+ "engine->evaluate(\"[]\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->evaluate(\"[]\") <=> engine->newVariant(QVariant(123))",
+ "engine->evaluate(\"[]\") <=> engine->newQObject(engine)",
+ "engine->evaluate(\"Object.prototype\") <=> QScriptValue(\"ciao\")",
+ "engine->evaluate(\"Object.prototype\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"Object.prototype\") <=> QScriptValue(0, \"ciao\")",
+ "engine->evaluate(\"Object.prototype\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"Object.prototype\") <=> QScriptValue(engine, \"ciao\")",
+ "engine->evaluate(\"Object.prototype\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"Object.prototype\") <=> engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"Object.prototype\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(true)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(int(122))",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(uint(124))",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(123.0)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(6.37e-8)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0x10000)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(\"NaN\")",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(\"-Infinity\")",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(\"ciao\")",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(QString(\"0\"))",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(QString(\"123\"))",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(QString(\"12.4\"))",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, true)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, int(122))",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, uint(124))",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, 123.0)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, 6.37e-8)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, 0x10000)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, \"NaN\")",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, \"-Infinity\")",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, \"ciao\")",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, QString(\"0\"))",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, QString(\"123\"))",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(0, QString(\"12.3\"))",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, true)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, int(122))",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, uint(124))",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, 123.0)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, 6.37e-8)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, 0x10000)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, \"NaN\")",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, \"-Infinity\")",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, \"ciao\")",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, QString(\"0\"))",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->evaluate(\"Array.prototype\") <=> QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Null\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"True\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"False\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"true\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"122\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"124\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"'12.4'\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->newObject()",
+ "engine->evaluate(\"Array.prototype\") <=> engine->newArray(10)",
+ "engine->evaluate(\"Array.prototype\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->evaluate(\"Array.prototype\") <=> engine->newVariant(QVariant(123))",
+ "engine->evaluate(\"Array.prototype\") <=> engine->newQObject(engine)",
+ "engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"Error.prototype\") <=> QScriptValue(\"NaN\")",
+ "engine->evaluate(\"Error.prototype\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"Error.prototype\") <=> QScriptValue(\"ciao\")",
+ "engine->evaluate(\"Error.prototype\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"Error.prototype\") <=> QScriptValue(0, \"NaN\")",
+ "engine->evaluate(\"Error.prototype\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"Error.prototype\") <=> QScriptValue(0, \"ciao\")",
+ "engine->evaluate(\"Error.prototype\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"Error.prototype\") <=> QScriptValue(engine, \"NaN\")",
+ "engine->evaluate(\"Error.prototype\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"Error.prototype\") <=> QScriptValue(engine, \"ciao\")",
+ "engine->evaluate(\"Error.prototype\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Null\")",
+ "engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"True\")",
+ "engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"False\")",
+ "engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"Error.prototype\") <=> engine->newObject()",
+ "engine->evaluate(\"Error.prototype\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->evaluate(\"Error.prototype\") <=> engine->newQObject(engine)",
+ "engine->evaluate(\"Array\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Array\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"Number\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Function\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Function\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"(function() { return 1; })\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"(function() { return 1; })\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"(function() { return 1; })\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"(function() { return 1; })\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 1; })\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"/foo/\") <=> QScriptValue(\"NaN\")",
+ "engine->evaluate(\"/foo/\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"/foo/\") <=> QScriptValue(\"ciao\")",
+ "engine->evaluate(\"/foo/\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"/foo/\") <=> QScriptValue(QString(\"0\"))",
+ "engine->evaluate(\"/foo/\") <=> QScriptValue(QString(\"123\"))",
+ "engine->evaluate(\"/foo/\") <=> QScriptValue(QString(\"12.4\"))",
+ "engine->evaluate(\"/foo/\") <=> QScriptValue(0, \"NaN\")",
+ "engine->evaluate(\"/foo/\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"/foo/\") <=> QScriptValue(0, \"ciao\")",
+ "engine->evaluate(\"/foo/\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"/foo/\") <=> QScriptValue(0, QString(\"0\"))",
+ "engine->evaluate(\"/foo/\") <=> QScriptValue(0, QString(\"123\"))",
+ "engine->evaluate(\"/foo/\") <=> QScriptValue(0, QString(\"12.3\"))",
+ "engine->evaluate(\"/foo/\") <=> QScriptValue(engine, \"NaN\")",
+ "engine->evaluate(\"/foo/\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"/foo/\") <=> QScriptValue(engine, \"ciao\")",
+ "engine->evaluate(\"/foo/\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"/foo/\") <=> QScriptValue(engine, QString(\"0\"))",
+ "engine->evaluate(\"/foo/\") <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->evaluate(\"/foo/\") <=> QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"Null\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"True\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"False\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"'12.4'\")",
+ "engine->evaluate(\"/foo/\") <=> engine->newObject()",
+ "engine->evaluate(\"/foo/\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->evaluate(\"/foo/\") <=> engine->newQObject(engine)",
+ "engine->evaluate(\"new Object()\") <=> QScriptValue(\"ciao\")",
+ "engine->evaluate(\"new Object()\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"new Object()\") <=> QScriptValue(0, \"ciao\")",
+ "engine->evaluate(\"new Object()\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"new Object()\") <=> QScriptValue(engine, \"ciao\")",
+ "engine->evaluate(\"new Object()\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"new Object()\") <=> engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"new Object()\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"new Object()\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"new Object()\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"new Object()\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"new Object()\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"new Object()\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"new Object()\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"new Object()\") <=> engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"new Object()\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(true)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(int(122))",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(uint(124))",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(123.0)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(6.37e-8)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0x10000)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(\"NaN\")",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(\"-Infinity\")",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(\"ciao\")",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(QString(\"0\"))",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(QString(\"123\"))",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(QString(\"12.4\"))",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, true)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, int(122))",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, uint(124))",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, 123.0)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, 6.37e-8)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, 0x10000)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, \"NaN\")",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, \"-Infinity\")",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, \"ciao\")",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, QString(\"0\"))",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, QString(\"123\"))",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(0, QString(\"12.3\"))",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, true)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, int(122))",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, uint(124))",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, 123.0)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, 6.37e-8)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, 0x10000)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, \"NaN\")",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, \"-Infinity\")",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, \"ciao\")",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, QString(\"0\"))",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->evaluate(\"new Array()\") <=> QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Null\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"True\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"False\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"true\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"122\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"124\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"'12.4'\")",
+ "engine->evaluate(\"new Array()\") <=> engine->newObject()",
+ "engine->evaluate(\"new Array()\") <=> engine->newArray(10)",
+ "engine->evaluate(\"new Array()\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->evaluate(\"new Array()\") <=> engine->newVariant(QVariant(123))",
+ "engine->evaluate(\"new Array()\") <=> engine->newQObject(engine)",
+ "engine->evaluate(\"new Error()\") <=> QScriptValue(\"NaN\")",
+ "engine->evaluate(\"new Error()\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"new Error()\") <=> QScriptValue(\"ciao\")",
+ "engine->evaluate(\"new Error()\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"new Error()\") <=> QScriptValue(0, \"NaN\")",
+ "engine->evaluate(\"new Error()\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"new Error()\") <=> QScriptValue(0, \"ciao\")",
+ "engine->evaluate(\"new Error()\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"new Error()\") <=> QScriptValue(engine, \"NaN\")",
+ "engine->evaluate(\"new Error()\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"new Error()\") <=> QScriptValue(engine, \"ciao\")",
+ "engine->evaluate(\"new Error()\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"new Error()\") <=> engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"new Error()\") <=> engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"new Error()\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"new Error()\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"new Error()\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"new Error()\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"new Error()\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"new Error()\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"new Error()\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"new Error()\") <=> engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"new Error()\") <=> engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"new Error()\") <=> engine->evaluate(\"Null\")",
+ "engine->evaluate(\"new Error()\") <=> engine->evaluate(\"True\")",
+ "engine->evaluate(\"new Error()\") <=> engine->evaluate(\"False\")",
+ "engine->evaluate(\"new Error()\") <=> engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"new Error()\") <=> engine->newObject()",
+ "engine->evaluate(\"new Error()\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->evaluate(\"new Error()\") <=> engine->newQObject(engine)",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(int(122))",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(uint(124))",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(123.0)",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0x10000)",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(QString(\"123\"))",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0, int(122))",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0, uint(124))",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0, 123.0)",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0, 0x10000)",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(0, QString(\"123\"))",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(engine, int(122))",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(engine, uint(124))",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(engine, 123.0)",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(engine, 0x10000)",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"122\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"124\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\") <=> engine->newVariant(QVariant(123))",
+ "engine->evaluate(\"Undefined\") <=> QScriptValue(\"ciao\")",
+ "engine->evaluate(\"Undefined\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"Undefined\") <=> QScriptValue(0, \"ciao\")",
+ "engine->evaluate(\"Undefined\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"Undefined\") <=> QScriptValue(engine, \"ciao\")",
+ "engine->evaluate(\"Undefined\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"Undefined\") <=> engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Undefined\") <=> engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Undefined\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Undefined\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Undefined\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Undefined\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"Undefined\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"Undefined\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"Undefined\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"Undefined\") <=> engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"Undefined\") <=> engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"Undefined\") <=> engine->newObject()",
+ "engine->evaluate(\"Undefined\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->evaluate(\"Null\") <=> QScriptValue(\"ciao\")",
+ "engine->evaluate(\"Null\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"Null\") <=> QScriptValue(0, \"ciao\")",
+ "engine->evaluate(\"Null\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"Null\") <=> QScriptValue(engine, \"ciao\")",
+ "engine->evaluate(\"Null\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"Null\") <=> engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Null\") <=> engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Null\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Null\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Null\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Null\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"Null\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"Null\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"Null\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"Null\") <=> engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"Null\") <=> engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Null\") <=> engine->evaluate(\"True\")",
+ "engine->evaluate(\"Null\") <=> engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"Null\") <=> engine->newObject()",
+ "engine->evaluate(\"Null\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->evaluate(\"True\") <=> QScriptValue(\"ciao\")",
+ "engine->evaluate(\"True\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"True\") <=> QScriptValue(0, \"ciao\")",
+ "engine->evaluate(\"True\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"True\") <=> QScriptValue(engine, \"ciao\")",
+ "engine->evaluate(\"True\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"True\") <=> engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"True\") <=> engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"True\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"True\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"True\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"True\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"True\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"True\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"True\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"True\") <=> engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"True\") <=> engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"True\") <=> engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"True\") <=> engine->newObject()",
+ "engine->evaluate(\"True\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->evaluate(\"False\") <=> QScriptValue(\"ciao\")",
+ "engine->evaluate(\"False\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"False\") <=> QScriptValue(0, \"ciao\")",
+ "engine->evaluate(\"False\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"False\") <=> QScriptValue(engine, \"ciao\")",
+ "engine->evaluate(\"False\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"False\") <=> engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"False\") <=> engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"False\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"False\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"False\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"False\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"False\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"False\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"False\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"False\") <=> engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"False\") <=> engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"False\") <=> engine->evaluate(\"Null\")",
+ "engine->evaluate(\"False\") <=> engine->evaluate(\"True\")",
+ "engine->evaluate(\"False\") <=> engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"False\") <=> engine->newObject()",
+ "engine->evaluate(\"False\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->evaluate(\"null\") <=> QScriptValue(true)",
+ "engine->evaluate(\"null\") <=> QScriptValue(int(122))",
+ "engine->evaluate(\"null\") <=> QScriptValue(uint(124))",
+ "engine->evaluate(\"null\") <=> QScriptValue(123.0)",
+ "engine->evaluate(\"null\") <=> QScriptValue(6.37e-8)",
+ "engine->evaluate(\"null\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"null\") <=> QScriptValue(0x10000)",
+ "engine->evaluate(\"null\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"null\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"null\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"null\") <=> QScriptValue(QString(\"123\"))",
+ "engine->evaluate(\"null\") <=> QScriptValue(QString(\"12.4\"))",
+ "engine->evaluate(\"null\") <=> QScriptValue(0, true)",
+ "engine->evaluate(\"null\") <=> QScriptValue(0, int(122))",
+ "engine->evaluate(\"null\") <=> QScriptValue(0, uint(124))",
+ "engine->evaluate(\"null\") <=> QScriptValue(0, 123.0)",
+ "engine->evaluate(\"null\") <=> QScriptValue(0, 6.37e-8)",
+ "engine->evaluate(\"null\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"null\") <=> QScriptValue(0, 0x10000)",
+ "engine->evaluate(\"null\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"null\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"null\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"null\") <=> QScriptValue(0, QString(\"123\"))",
+ "engine->evaluate(\"null\") <=> QScriptValue(0, QString(\"12.3\"))",
+ "engine->evaluate(\"null\") <=> QScriptValue(engine, true)",
+ "engine->evaluate(\"null\") <=> QScriptValue(engine, int(122))",
+ "engine->evaluate(\"null\") <=> QScriptValue(engine, uint(124))",
+ "engine->evaluate(\"null\") <=> QScriptValue(engine, 123.0)",
+ "engine->evaluate(\"null\") <=> QScriptValue(engine, 6.37e-8)",
+ "engine->evaluate(\"null\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"null\") <=> QScriptValue(engine, 0x10000)",
+ "engine->evaluate(\"null\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"null\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"null\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"null\") <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->evaluate(\"null\") <=> QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"null\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"null\") <=> engine->evaluate(\"true\")",
+ "engine->evaluate(\"null\") <=> engine->evaluate(\"122\")",
+ "engine->evaluate(\"null\") <=> engine->evaluate(\"124\")",
+ "engine->evaluate(\"null\") <=> engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"null\") <=> engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"null\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"null\") <=> engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"null\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"null\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"null\") <=> engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"null\") <=> engine->evaluate(\"'12.4'\")",
+ "engine->evaluate(\"null\") <=> engine->newVariant(QVariant(123))",
+ "engine->evaluate(\"true\") <=> QScriptValue(int(122))",
+ "engine->evaluate(\"true\") <=> QScriptValue(uint(124))",
+ "engine->evaluate(\"true\") <=> QScriptValue(123.0)",
+ "engine->evaluate(\"true\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"true\") <=> QScriptValue(0x10000)",
+ "engine->evaluate(\"true\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"true\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"true\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"true\") <=> QScriptValue(QString(\"123\"))",
+ "engine->evaluate(\"true\") <=> QScriptValue(QString(\"12.4\"))",
+ "engine->evaluate(\"true\") <=> QScriptValue(0, int(122))",
+ "engine->evaluate(\"true\") <=> QScriptValue(0, uint(124))",
+ "engine->evaluate(\"true\") <=> QScriptValue(0, 123.0)",
+ "engine->evaluate(\"true\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"true\") <=> QScriptValue(0, 0x10000)",
+ "engine->evaluate(\"true\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"true\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"true\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"true\") <=> QScriptValue(0, QString(\"123\"))",
+ "engine->evaluate(\"true\") <=> QScriptValue(0, QString(\"12.3\"))",
+ "engine->evaluate(\"true\") <=> QScriptValue(engine, int(122))",
+ "engine->evaluate(\"true\") <=> QScriptValue(engine, uint(124))",
+ "engine->evaluate(\"true\") <=> QScriptValue(engine, 123.0)",
+ "engine->evaluate(\"true\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"true\") <=> QScriptValue(engine, 0x10000)",
+ "engine->evaluate(\"true\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"true\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"true\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"true\") <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->evaluate(\"true\") <=> QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"true\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"true\") <=> engine->evaluate(\"122\")",
+ "engine->evaluate(\"true\") <=> engine->evaluate(\"124\")",
+ "engine->evaluate(\"true\") <=> engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"true\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"true\") <=> engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"true\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"true\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"true\") <=> engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"true\") <=> engine->evaluate(\"'12.4'\")",
+ "engine->evaluate(\"true\") <=> engine->newVariant(QVariant(123))",
+ "engine->evaluate(\"false\") <=> QScriptValue(true)",
+ "engine->evaluate(\"false\") <=> QScriptValue(int(122))",
+ "engine->evaluate(\"false\") <=> QScriptValue(uint(124))",
+ "engine->evaluate(\"false\") <=> QScriptValue(123.0)",
+ "engine->evaluate(\"false\") <=> QScriptValue(6.37e-8)",
+ "engine->evaluate(\"false\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"false\") <=> QScriptValue(0x10000)",
+ "engine->evaluate(\"false\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"false\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"false\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"false\") <=> QScriptValue(QString(\"123\"))",
+ "engine->evaluate(\"false\") <=> QScriptValue(QString(\"12.4\"))",
+ "engine->evaluate(\"false\") <=> QScriptValue(0, true)",
+ "engine->evaluate(\"false\") <=> QScriptValue(0, int(122))",
+ "engine->evaluate(\"false\") <=> QScriptValue(0, uint(124))",
+ "engine->evaluate(\"false\") <=> QScriptValue(0, 123.0)",
+ "engine->evaluate(\"false\") <=> QScriptValue(0, 6.37e-8)",
+ "engine->evaluate(\"false\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"false\") <=> QScriptValue(0, 0x10000)",
+ "engine->evaluate(\"false\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"false\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"false\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"false\") <=> QScriptValue(0, QString(\"123\"))",
+ "engine->evaluate(\"false\") <=> QScriptValue(0, QString(\"12.3\"))",
+ "engine->evaluate(\"false\") <=> QScriptValue(engine, true)",
+ "engine->evaluate(\"false\") <=> QScriptValue(engine, int(122))",
+ "engine->evaluate(\"false\") <=> QScriptValue(engine, uint(124))",
+ "engine->evaluate(\"false\") <=> QScriptValue(engine, 123.0)",
+ "engine->evaluate(\"false\") <=> QScriptValue(engine, 6.37e-8)",
+ "engine->evaluate(\"false\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"false\") <=> QScriptValue(engine, 0x10000)",
+ "engine->evaluate(\"false\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"false\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"false\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"false\") <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->evaluate(\"false\") <=> QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"false\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"false\") <=> engine->evaluate(\"true\")",
+ "engine->evaluate(\"false\") <=> engine->evaluate(\"122\")",
+ "engine->evaluate(\"false\") <=> engine->evaluate(\"124\")",
+ "engine->evaluate(\"false\") <=> engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"false\") <=> engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"false\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"false\") <=> engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"false\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"false\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"false\") <=> engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"false\") <=> engine->evaluate(\"'12.4'\")",
+ "engine->evaluate(\"false\") <=> engine->newVariant(QVariant(123))",
+ "engine->evaluate(\"122\") <=> QScriptValue(uint(124))",
+ "engine->evaluate(\"122\") <=> QScriptValue(123.0)",
+ "engine->evaluate(\"122\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"122\") <=> QScriptValue(0x10000)",
+ "engine->evaluate(\"122\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"122\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"122\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"122\") <=> QScriptValue(QString(\"123\"))",
+ "engine->evaluate(\"122\") <=> QScriptValue(0, uint(124))",
+ "engine->evaluate(\"122\") <=> QScriptValue(0, 123.0)",
+ "engine->evaluate(\"122\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"122\") <=> QScriptValue(0, 0x10000)",
+ "engine->evaluate(\"122\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"122\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"122\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"122\") <=> QScriptValue(0, QString(\"123\"))",
+ "engine->evaluate(\"122\") <=> QScriptValue(engine, uint(124))",
+ "engine->evaluate(\"122\") <=> QScriptValue(engine, 123.0)",
+ "engine->evaluate(\"122\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"122\") <=> QScriptValue(engine, 0x10000)",
+ "engine->evaluate(\"122\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"122\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"122\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"122\") <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->evaluate(\"122\") <=> engine->evaluate(\"124\")",
+ "engine->evaluate(\"122\") <=> engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"122\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"122\") <=> engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"122\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"122\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"122\") <=> engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"122\") <=> engine->newVariant(QVariant(123))",
+ "engine->evaluate(\"124\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"124\") <=> QScriptValue(0x10000)",
+ "engine->evaluate(\"124\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"124\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"124\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"124\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"124\") <=> QScriptValue(0, 0x10000)",
+ "engine->evaluate(\"124\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"124\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"124\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"124\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"124\") <=> QScriptValue(engine, 0x10000)",
+ "engine->evaluate(\"124\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"124\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"124\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"124\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"124\") <=> engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"124\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"124\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"0\") <=> QScriptValue(true)",
+ "engine->evaluate(\"0\") <=> QScriptValue(int(122))",
+ "engine->evaluate(\"0\") <=> QScriptValue(uint(124))",
+ "engine->evaluate(\"0\") <=> QScriptValue(123.0)",
+ "engine->evaluate(\"0\") <=> QScriptValue(6.37e-8)",
+ "engine->evaluate(\"0\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"0\") <=> QScriptValue(0x10000)",
+ "engine->evaluate(\"0\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"0\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"0\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"0\") <=> QScriptValue(QString(\"123\"))",
+ "engine->evaluate(\"0\") <=> QScriptValue(QString(\"12.4\"))",
+ "engine->evaluate(\"0\") <=> QScriptValue(0, true)",
+ "engine->evaluate(\"0\") <=> QScriptValue(0, int(122))",
+ "engine->evaluate(\"0\") <=> QScriptValue(0, uint(124))",
+ "engine->evaluate(\"0\") <=> QScriptValue(0, 123.0)",
+ "engine->evaluate(\"0\") <=> QScriptValue(0, 6.37e-8)",
+ "engine->evaluate(\"0\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"0\") <=> QScriptValue(0, 0x10000)",
+ "engine->evaluate(\"0\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"0\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"0\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"0\") <=> QScriptValue(0, QString(\"123\"))",
+ "engine->evaluate(\"0\") <=> QScriptValue(0, QString(\"12.3\"))",
+ "engine->evaluate(\"0\") <=> QScriptValue(engine, true)",
+ "engine->evaluate(\"0\") <=> QScriptValue(engine, int(122))",
+ "engine->evaluate(\"0\") <=> QScriptValue(engine, uint(124))",
+ "engine->evaluate(\"0\") <=> QScriptValue(engine, 123.0)",
+ "engine->evaluate(\"0\") <=> QScriptValue(engine, 6.37e-8)",
+ "engine->evaluate(\"0\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"0\") <=> QScriptValue(engine, 0x10000)",
+ "engine->evaluate(\"0\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"0\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"0\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"0\") <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->evaluate(\"0\") <=> QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"true\")",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"122\")",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"124\")",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"0\") <=> engine->evaluate(\"'12.4'\")",
+ "engine->evaluate(\"0\") <=> engine->newVariant(QVariant(123))",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(true)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(int(122))",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(uint(124))",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(123.0)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(6.37e-8)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0x10000)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(QString(\"123\"))",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(QString(\"12.4\"))",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0, true)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0, int(122))",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0, uint(124))",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0, 123.0)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0, 6.37e-8)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0, 0x10000)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0, QString(\"123\"))",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(0, QString(\"12.3\"))",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(engine, true)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(engine, int(122))",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(engine, uint(124))",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(engine, 123.0)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(engine, 6.37e-8)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(engine, 0x10000)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->evaluate(\"0.0\") <=> QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"true\")",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"122\")",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"124\")",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"0.0\") <=> engine->evaluate(\"'12.4'\")",
+ "engine->evaluate(\"0.0\") <=> engine->newVariant(QVariant(123))",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(uint(124))",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(0x10000)",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(0, uint(124))",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(0, 0x10000)",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(engine, uint(124))",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(engine, 0x10000)",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"123.0\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"123.0\") <=> engine->evaluate(\"124\")",
+ "engine->evaluate(\"123.0\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"123.0\") <=> engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"123.0\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"123.0\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(true)",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(int(122))",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(uint(124))",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(123.0)",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(0x10000)",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(QString(\"123\"))",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(QString(\"12.4\"))",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, true)",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, int(122))",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, uint(124))",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, 123.0)",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, 0x10000)",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, QString(\"123\"))",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(0, QString(\"12.3\"))",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, true)",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, int(122))",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, uint(124))",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, 123.0)",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, 0x10000)",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->evaluate(\"6.37e-8\") <=> QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"true\")",
+ "engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"122\")",
+ "engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"124\")",
+ "engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"6.37e-8\") <=> engine->evaluate(\"'12.4'\")",
+ "engine->evaluate(\"6.37e-8\") <=> engine->newVariant(QVariant(123))",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(QScriptValue::NullValue)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(true)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(false)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(int(122))",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(uint(124))",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0.0)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(123.0)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(6.37e-8)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0x10000)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(QString(\"\"))",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(QString())",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(QString(\"0\"))",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(QString(\"123\"))",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(QString(\"12.4\"))",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, QScriptValue::NullValue)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, true)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, false)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, int(122))",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, uint(124))",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, 0)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, 0.0)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, 123.0)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, 6.37e-8)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, 0x10000)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, QString(\"\"))",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, QString())",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, QString(\"0\"))",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, QString(\"123\"))",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(0, QString(\"12.3\"))",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, true)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, false)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, int(122))",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, uint(124))",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, 0)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, 0.0)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, 123.0)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, 6.37e-8)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, 0x10000)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, QString(\"\"))",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, QString())",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, QString(\"0\"))",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->evaluate(\"-6.37e-8\") <=> QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"[]\")",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"null\")",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"true\")",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"false\")",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"122\")",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"124\")",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"0\")",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"''\")",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->evaluate(\"'12.4'\")",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->nullValue()",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->newArray()",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->newVariant(QVariant(123))",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->newVariant(QVariant(false))",
+ "engine->evaluate(\"-6.37e-8\") <=> engine->newQObject(0)",
+ "engine->evaluate(\"0x43211234\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"0x43211234\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"0x43211234\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"0x43211234\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"0x43211234\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"0x43211234\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"0x43211234\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"0x10000\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"0x10000\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"0x10000\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"0x10000\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"0x10000\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"0x10000\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"0x10000\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"0x10000\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"0x10000\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"0x10000\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"0x10000\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"0x10000\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"0x10000\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0x10000\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"0x10000\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"0x10001\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"0x10001\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"0x10001\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"0x10001\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"0x10001\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"0x10001\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"0x10001\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"0x10001\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"0x10001\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"0x10001\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0x10001\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(QScriptValue::NullValue)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(true)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(false)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(int(122))",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(uint(124))",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0.0)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(123.0)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(6.37e-8)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(-6.37e-8)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0x10000)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(QString(\"\"))",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(QString())",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(QString(\"0\"))",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(QString(\"123\"))",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(QString(\"12.4\"))",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, QScriptValue::NullValue)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, true)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, false)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, int(122))",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, uint(124))",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, 0)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, 0.0)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, 123.0)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, 6.37e-8)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, -6.37e-8)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, 0x10000)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, QString(\"\"))",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, QString())",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, QString(\"0\"))",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, QString(\"123\"))",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(0, QString(\"12.3\"))",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, QScriptValue::NullValue)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, true)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, false)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, int(122))",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, uint(124))",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, 0)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, 0.0)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, 123.0)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, 6.37e-8)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, -6.37e-8)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, 0x10000)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, QString(\"\"))",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, QString())",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, QString(\"0\"))",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->evaluate(\"-Infinity\") <=> QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"[]\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"null\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"true\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"false\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"122\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"124\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"0\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"-6.37e-8\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"''\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->evaluate(\"'12.4'\")",
+ "engine->evaluate(\"-Infinity\") <=> engine->nullValue()",
+ "engine->evaluate(\"-Infinity\") <=> engine->newArray()",
+ "engine->evaluate(\"-Infinity\") <=> engine->newVariant(QVariant(123))",
+ "engine->evaluate(\"-Infinity\") <=> engine->newVariant(QVariant(false))",
+ "engine->evaluate(\"-Infinity\") <=> engine->newQObject(0)",
+ "engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"'ciao'\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"''\") <=> QScriptValue(true)",
+ "engine->evaluate(\"''\") <=> QScriptValue(int(122))",
+ "engine->evaluate(\"''\") <=> QScriptValue(uint(124))",
+ "engine->evaluate(\"''\") <=> QScriptValue(123.0)",
+ "engine->evaluate(\"''\") <=> QScriptValue(6.37e-8)",
+ "engine->evaluate(\"''\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"''\") <=> QScriptValue(0x10000)",
+ "engine->evaluate(\"''\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"''\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"''\") <=> QScriptValue(\"NaN\")",
+ "engine->evaluate(\"''\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"''\") <=> QScriptValue(\"-Infinity\")",
+ "engine->evaluate(\"''\") <=> QScriptValue(\"ciao\")",
+ "engine->evaluate(\"''\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"''\") <=> QScriptValue(QString(\"0\"))",
+ "engine->evaluate(\"''\") <=> QScriptValue(QString(\"123\"))",
+ "engine->evaluate(\"''\") <=> QScriptValue(QString(\"12.4\"))",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, true)",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, int(122))",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, uint(124))",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, 123.0)",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, 6.37e-8)",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, 0x10000)",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, \"NaN\")",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, \"-Infinity\")",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, \"ciao\")",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, QString(\"0\"))",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, QString(\"123\"))",
+ "engine->evaluate(\"''\") <=> QScriptValue(0, QString(\"12.3\"))",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, true)",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, int(122))",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, uint(124))",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, 123.0)",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, 6.37e-8)",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, 0x10000)",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, \"NaN\")",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, \"-Infinity\")",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, \"ciao\")",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, QString(\"0\"))",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->evaluate(\"''\") <=> QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"Null\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"True\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"False\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"true\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"122\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"124\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"''\") <=> engine->evaluate(\"'12.4'\")",
+ "engine->evaluate(\"''\") <=> engine->newObject()",
+ "engine->evaluate(\"''\") <=> engine->newArray(10)",
+ "engine->evaluate(\"''\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->evaluate(\"''\") <=> engine->newVariant(QVariant(123))",
+ "engine->evaluate(\"''\") <=> engine->newQObject(engine)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(true)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(int(122))",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(uint(124))",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(123.0)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(6.37e-8)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0x10000)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(\"NaN\")",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(\"ciao\")",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(QString(\"123\"))",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(QString(\"12.4\"))",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0, true)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0, int(122))",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0, uint(124))",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0, 123.0)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0, 6.37e-8)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0, 0x10000)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0, \"NaN\")",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0, \"ciao\")",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0, QString(\"123\"))",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(0, QString(\"12.3\"))",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(engine, true)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(engine, int(122))",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(engine, uint(124))",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(engine, 123.0)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(engine, 6.37e-8)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(engine, 0x10000)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(engine, \"NaN\")",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(engine, \"ciao\")",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->evaluate(\"'0'\") <=> QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"Null\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"True\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"False\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"true\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"122\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"124\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"'0'\") <=> engine->evaluate(\"'12.4'\")",
+ "engine->evaluate(\"'0'\") <=> engine->newObject()",
+ "engine->evaluate(\"'0'\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->evaluate(\"'0'\") <=> engine->newVariant(QVariant(123))",
+ "engine->evaluate(\"'0'\") <=> engine->newQObject(engine)",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(uint(124))",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(0x10000)",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(\"NaN\")",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(\"ciao\")",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(0, uint(124))",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(0, 0x10000)",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(0, \"NaN\")",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(0, \"ciao\")",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(engine, uint(124))",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(engine, 0x10000)",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(engine, \"NaN\")",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(engine, \"ciao\")",
+ "engine->evaluate(\"'123'\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"Null\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"True\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"False\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"124\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"'123'\") <=> engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"'123'\") <=> engine->newObject()",
+ "engine->evaluate(\"'123'\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->evaluate(\"'123'\") <=> engine->newQObject(engine)",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(int(122))",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(uint(124))",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(123.0)",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(0x43211234)",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(0x10000)",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(0x10001)",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(qInf())",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(\"NaN\")",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(\"Infinity\")",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(\"ciao\")",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(QString(\"123\"))",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(0, int(122))",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(0, uint(124))",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(0, 123.0)",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(0, 0x43211234)",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(0, 0x10000)",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(0, 0x10001)",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(0, qInf())",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(0, \"NaN\")",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(0, \"Infinity\")",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(0, \"ciao\")",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(0, QString(\"123\"))",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, int(122))",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, uint(124))",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, 123.0)",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, 0x43211234)",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, 0x10000)",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, 0x10001)",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, qInf())",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, \"NaN\")",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, \"Infinity\")",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, \"ciao\")",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->evaluate(\"'12.4'\") <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"Number\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"Null\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"True\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"False\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"122\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"124\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"'12.4'\") <=> engine->newObject()",
+ "engine->evaluate(\"'12.4'\") <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->evaluate(\"'12.4'\") <=> engine->newVariant(QVariant(123))",
+ "engine->evaluate(\"'12.4'\") <=> engine->newQObject(engine)",
+ "engine->nullValue() <=> QScriptValue(true)",
+ "engine->nullValue() <=> QScriptValue(int(122))",
+ "engine->nullValue() <=> QScriptValue(uint(124))",
+ "engine->nullValue() <=> QScriptValue(123.0)",
+ "engine->nullValue() <=> QScriptValue(6.37e-8)",
+ "engine->nullValue() <=> QScriptValue(0x43211234)",
+ "engine->nullValue() <=> QScriptValue(0x10000)",
+ "engine->nullValue() <=> QScriptValue(0x10001)",
+ "engine->nullValue() <=> QScriptValue(qInf())",
+ "engine->nullValue() <=> QScriptValue(\"Infinity\")",
+ "engine->nullValue() <=> QScriptValue(QString(\"123\"))",
+ "engine->nullValue() <=> QScriptValue(QString(\"12.4\"))",
+ "engine->nullValue() <=> QScriptValue(0, true)",
+ "engine->nullValue() <=> QScriptValue(0, int(122))",
+ "engine->nullValue() <=> QScriptValue(0, uint(124))",
+ "engine->nullValue() <=> QScriptValue(0, 123.0)",
+ "engine->nullValue() <=> QScriptValue(0, 6.37e-8)",
+ "engine->nullValue() <=> QScriptValue(0, 0x43211234)",
+ "engine->nullValue() <=> QScriptValue(0, 0x10000)",
+ "engine->nullValue() <=> QScriptValue(0, 0x10001)",
+ "engine->nullValue() <=> QScriptValue(0, qInf())",
+ "engine->nullValue() <=> QScriptValue(0, \"Infinity\")",
+ "engine->nullValue() <=> QScriptValue(0, QString(\"123\"))",
+ "engine->nullValue() <=> QScriptValue(0, QString(\"12.3\"))",
+ "engine->nullValue() <=> QScriptValue(engine, true)",
+ "engine->nullValue() <=> QScriptValue(engine, int(122))",
+ "engine->nullValue() <=> QScriptValue(engine, uint(124))",
+ "engine->nullValue() <=> QScriptValue(engine, 123.0)",
+ "engine->nullValue() <=> QScriptValue(engine, 6.37e-8)",
+ "engine->nullValue() <=> QScriptValue(engine, 0x43211234)",
+ "engine->nullValue() <=> QScriptValue(engine, 0x10000)",
+ "engine->nullValue() <=> QScriptValue(engine, 0x10001)",
+ "engine->nullValue() <=> QScriptValue(engine, qInf())",
+ "engine->nullValue() <=> QScriptValue(engine, \"Infinity\")",
+ "engine->nullValue() <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->nullValue() <=> QScriptValue(engine, QString(\"1.23\"))",
+ "engine->nullValue() <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->nullValue() <=> engine->evaluate(\"true\")",
+ "engine->nullValue() <=> engine->evaluate(\"122\")",
+ "engine->nullValue() <=> engine->evaluate(\"124\")",
+ "engine->nullValue() <=> engine->evaluate(\"123.0\")",
+ "engine->nullValue() <=> engine->evaluate(\"6.37e-8\")",
+ "engine->nullValue() <=> engine->evaluate(\"0x43211234\")",
+ "engine->nullValue() <=> engine->evaluate(\"0x10000\")",
+ "engine->nullValue() <=> engine->evaluate(\"0x10001\")",
+ "engine->nullValue() <=> engine->evaluate(\"Infinity\")",
+ "engine->nullValue() <=> engine->evaluate(\"'123'\")",
+ "engine->nullValue() <=> engine->evaluate(\"'12.4'\")",
+ "engine->nullValue() <=> engine->newVariant(QVariant(123))",
+ "engine->newObject() <=> QScriptValue(\"ciao\")",
+ "engine->newObject() <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->newObject() <=> QScriptValue(0, \"ciao\")",
+ "engine->newObject() <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->newObject() <=> QScriptValue(engine, \"ciao\")",
+ "engine->newObject() <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->newObject() <=> engine->evaluate(\"Function.prototype\")",
+ "engine->newObject() <=> engine->evaluate(\"Object\")",
+ "engine->newObject() <=> engine->evaluate(\"Array\")",
+ "engine->newObject() <=> engine->evaluate(\"Number\")",
+ "engine->newObject() <=> engine->evaluate(\"Function\")",
+ "engine->newObject() <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->newObject() <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->newObject() <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->newObject() <=> engine->evaluate(\"'ciao'\")",
+ "engine->newObject() <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->newArray() <=> QScriptValue(true)",
+ "engine->newArray() <=> QScriptValue(int(122))",
+ "engine->newArray() <=> QScriptValue(uint(124))",
+ "engine->newArray() <=> QScriptValue(123.0)",
+ "engine->newArray() <=> QScriptValue(6.37e-8)",
+ "engine->newArray() <=> QScriptValue(0x43211234)",
+ "engine->newArray() <=> QScriptValue(0x10000)",
+ "engine->newArray() <=> QScriptValue(0x10001)",
+ "engine->newArray() <=> QScriptValue(qInf())",
+ "engine->newArray() <=> QScriptValue(\"NaN\")",
+ "engine->newArray() <=> QScriptValue(\"Infinity\")",
+ "engine->newArray() <=> QScriptValue(\"-Infinity\")",
+ "engine->newArray() <=> QScriptValue(\"ciao\")",
+ "engine->newArray() <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->newArray() <=> QScriptValue(QString(\"0\"))",
+ "engine->newArray() <=> QScriptValue(QString(\"123\"))",
+ "engine->newArray() <=> QScriptValue(QString(\"12.4\"))",
+ "engine->newArray() <=> QScriptValue(0, true)",
+ "engine->newArray() <=> QScriptValue(0, int(122))",
+ "engine->newArray() <=> QScriptValue(0, uint(124))",
+ "engine->newArray() <=> QScriptValue(0, 123.0)",
+ "engine->newArray() <=> QScriptValue(0, 6.37e-8)",
+ "engine->newArray() <=> QScriptValue(0, 0x43211234)",
+ "engine->newArray() <=> QScriptValue(0, 0x10000)",
+ "engine->newArray() <=> QScriptValue(0, 0x10001)",
+ "engine->newArray() <=> QScriptValue(0, qInf())",
+ "engine->newArray() <=> QScriptValue(0, \"NaN\")",
+ "engine->newArray() <=> QScriptValue(0, \"Infinity\")",
+ "engine->newArray() <=> QScriptValue(0, \"-Infinity\")",
+ "engine->newArray() <=> QScriptValue(0, \"ciao\")",
+ "engine->newArray() <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->newArray() <=> QScriptValue(0, QString(\"0\"))",
+ "engine->newArray() <=> QScriptValue(0, QString(\"123\"))",
+ "engine->newArray() <=> QScriptValue(0, QString(\"12.3\"))",
+ "engine->newArray() <=> QScriptValue(engine, true)",
+ "engine->newArray() <=> QScriptValue(engine, int(122))",
+ "engine->newArray() <=> QScriptValue(engine, uint(124))",
+ "engine->newArray() <=> QScriptValue(engine, 123.0)",
+ "engine->newArray() <=> QScriptValue(engine, 6.37e-8)",
+ "engine->newArray() <=> QScriptValue(engine, 0x43211234)",
+ "engine->newArray() <=> QScriptValue(engine, 0x10000)",
+ "engine->newArray() <=> QScriptValue(engine, 0x10001)",
+ "engine->newArray() <=> QScriptValue(engine, qInf())",
+ "engine->newArray() <=> QScriptValue(engine, \"NaN\")",
+ "engine->newArray() <=> QScriptValue(engine, \"Infinity\")",
+ "engine->newArray() <=> QScriptValue(engine, \"-Infinity\")",
+ "engine->newArray() <=> QScriptValue(engine, \"ciao\")",
+ "engine->newArray() <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->newArray() <=> QScriptValue(engine, QString(\"0\"))",
+ "engine->newArray() <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->newArray() <=> QScriptValue(engine, QString(\"1.23\"))",
+ "engine->newArray() <=> engine->evaluate(\"Object.prototype\")",
+ "engine->newArray() <=> engine->evaluate(\"Function.prototype\")",
+ "engine->newArray() <=> engine->evaluate(\"Error.prototype\")",
+ "engine->newArray() <=> engine->evaluate(\"Object\")",
+ "engine->newArray() <=> engine->evaluate(\"Array\")",
+ "engine->newArray() <=> engine->evaluate(\"Number\")",
+ "engine->newArray() <=> engine->evaluate(\"Function\")",
+ "engine->newArray() <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->newArray() <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->newArray() <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->newArray() <=> engine->evaluate(\"/foo/\")",
+ "engine->newArray() <=> engine->evaluate(\"new Object()\")",
+ "engine->newArray() <=> engine->evaluate(\"new Error()\")",
+ "engine->newArray() <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->newArray() <=> engine->evaluate(\"Undefined\")",
+ "engine->newArray() <=> engine->evaluate(\"Null\")",
+ "engine->newArray() <=> engine->evaluate(\"True\")",
+ "engine->newArray() <=> engine->evaluate(\"False\")",
+ "engine->newArray() <=> engine->evaluate(\"true\")",
+ "engine->newArray() <=> engine->evaluate(\"122\")",
+ "engine->newArray() <=> engine->evaluate(\"124\")",
+ "engine->newArray() <=> engine->evaluate(\"123.0\")",
+ "engine->newArray() <=> engine->evaluate(\"6.37e-8\")",
+ "engine->newArray() <=> engine->evaluate(\"0x43211234\")",
+ "engine->newArray() <=> engine->evaluate(\"0x10000\")",
+ "engine->newArray() <=> engine->evaluate(\"0x10001\")",
+ "engine->newArray() <=> engine->evaluate(\"Infinity\")",
+ "engine->newArray() <=> engine->evaluate(\"'ciao'\")",
+ "engine->newArray() <=> engine->evaluate(\"'0'\")",
+ "engine->newArray() <=> engine->evaluate(\"'123'\")",
+ "engine->newArray() <=> engine->evaluate(\"'12.4'\")",
+ "engine->newArray() <=> engine->newObject()",
+ "engine->newArray() <=> engine->newArray(10)",
+ "engine->newArray() <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->newArray() <=> engine->newVariant(QVariant(123))",
+ "engine->newArray() <=> engine->newQObject(engine)",
+ "engine->newArray(10) <=> QScriptValue(\"NaN\")",
+ "engine->newArray(10) <=> QScriptValue(\"Infinity\")",
+ "engine->newArray(10) <=> QScriptValue(\"-Infinity\")",
+ "engine->newArray(10) <=> QScriptValue(\"ciao\")",
+ "engine->newArray(10) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->newArray(10) <=> QScriptValue(QString(\"0\"))",
+ "engine->newArray(10) <=> QScriptValue(QString(\"123\"))",
+ "engine->newArray(10) <=> QScriptValue(QString(\"12.4\"))",
+ "engine->newArray(10) <=> QScriptValue(0, \"NaN\")",
+ "engine->newArray(10) <=> QScriptValue(0, \"Infinity\")",
+ "engine->newArray(10) <=> QScriptValue(0, \"-Infinity\")",
+ "engine->newArray(10) <=> QScriptValue(0, \"ciao\")",
+ "engine->newArray(10) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->newArray(10) <=> QScriptValue(0, QString(\"0\"))",
+ "engine->newArray(10) <=> QScriptValue(0, QString(\"123\"))",
+ "engine->newArray(10) <=> QScriptValue(0, QString(\"12.3\"))",
+ "engine->newArray(10) <=> QScriptValue(engine, \"NaN\")",
+ "engine->newArray(10) <=> QScriptValue(engine, \"Infinity\")",
+ "engine->newArray(10) <=> QScriptValue(engine, \"-Infinity\")",
+ "engine->newArray(10) <=> QScriptValue(engine, \"ciao\")",
+ "engine->newArray(10) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->newArray(10) <=> QScriptValue(engine, QString(\"0\"))",
+ "engine->newArray(10) <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->newArray(10) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "engine->newArray(10) <=> engine->evaluate(\"Object.prototype\")",
+ "engine->newArray(10) <=> engine->evaluate(\"Function.prototype\")",
+ "engine->newArray(10) <=> engine->evaluate(\"Error.prototype\")",
+ "engine->newArray(10) <=> engine->evaluate(\"Object\")",
+ "engine->newArray(10) <=> engine->evaluate(\"Array\")",
+ "engine->newArray(10) <=> engine->evaluate(\"Number\")",
+ "engine->newArray(10) <=> engine->evaluate(\"Function\")",
+ "engine->newArray(10) <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->newArray(10) <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->newArray(10) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->newArray(10) <=> engine->evaluate(\"/foo/\")",
+ "engine->newArray(10) <=> engine->evaluate(\"new Object()\")",
+ "engine->newArray(10) <=> engine->evaluate(\"new Error()\")",
+ "engine->newArray(10) <=> engine->evaluate(\"Undefined\")",
+ "engine->newArray(10) <=> engine->evaluate(\"Null\")",
+ "engine->newArray(10) <=> engine->evaluate(\"True\")",
+ "engine->newArray(10) <=> engine->evaluate(\"False\")",
+ "engine->newArray(10) <=> engine->evaluate(\"'ciao'\")",
+ "engine->newArray(10) <=> engine->evaluate(\"'0'\")",
+ "engine->newArray(10) <=> engine->evaluate(\"'123'\")",
+ "engine->newArray(10) <=> engine->evaluate(\"'12.4'\")",
+ "engine->newArray(10) <=> engine->newObject()",
+ "engine->newArray(10) <=> engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->newArray(10) <=> engine->newQObject(engine)",
+ "engine->newQMetaObject(&QObject::staticMetaObject) <=> QScriptValue(\"ciao\")",
+ "engine->newQMetaObject(&QObject::staticMetaObject) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->newQMetaObject(&QObject::staticMetaObject) <=> QScriptValue(0, \"ciao\")",
+ "engine->newQMetaObject(&QObject::staticMetaObject) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->newQMetaObject(&QObject::staticMetaObject) <=> QScriptValue(engine, \"ciao\")",
+ "engine->newQMetaObject(&QObject::staticMetaObject) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->evaluate(\"Function.prototype\")",
+ "engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->evaluate(\"Object\")",
+ "engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->evaluate(\"Array\")",
+ "engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->evaluate(\"Number\")",
+ "engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->evaluate(\"Function\")",
+ "engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->evaluate(\"'ciao'\")",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(uint(124))",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(0x43211234)",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(0x10000)",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(0x10001)",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(qInf())",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(\"Infinity\")",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(0, uint(124))",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(0, 0x43211234)",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(0, 0x10000)",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(0, 0x10001)",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(0, qInf())",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(0, \"Infinity\")",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(engine, uint(124))",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(engine, 0x43211234)",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(engine, 0x10000)",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(engine, 0x10001)",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(engine, qInf())",
+ "engine->newVariant(QVariant(123)) <=> QScriptValue(engine, \"Infinity\")",
+ "engine->newVariant(QVariant(123)) <=> engine->evaluate(\"124\")",
+ "engine->newVariant(QVariant(123)) <=> engine->evaluate(\"0x43211234\")",
+ "engine->newVariant(QVariant(123)) <=> engine->evaluate(\"0x10000\")",
+ "engine->newVariant(QVariant(123)) <=> engine->evaluate(\"0x10001\")",
+ "engine->newVariant(QVariant(123)) <=> engine->evaluate(\"Infinity\")",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(true)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(int(122))",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(uint(124))",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(123.0)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(6.37e-8)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0x43211234)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0x10000)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0x10001)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(qInf())",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(\"Infinity\")",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(QString(\"123\"))",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(QString(\"12.4\"))",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0, true)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0, int(122))",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0, uint(124))",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0, 123.0)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0, 6.37e-8)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0, 0x43211234)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0, 0x10000)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0, 0x10001)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0, qInf())",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0, \"Infinity\")",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0, QString(\"123\"))",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(0, QString(\"12.3\"))",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(engine, true)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(engine, int(122))",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(engine, uint(124))",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(engine, 123.0)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(engine, 6.37e-8)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(engine, 0x43211234)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(engine, 0x10000)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(engine, 0x10001)",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(engine, qInf())",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(engine, \"Infinity\")",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->newVariant(QVariant(false)) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "engine->newVariant(QVariant(false)) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->newVariant(QVariant(false)) <=> engine->evaluate(\"true\")",
+ "engine->newVariant(QVariant(false)) <=> engine->evaluate(\"122\")",
+ "engine->newVariant(QVariant(false)) <=> engine->evaluate(\"124\")",
+ "engine->newVariant(QVariant(false)) <=> engine->evaluate(\"123.0\")",
+ "engine->newVariant(QVariant(false)) <=> engine->evaluate(\"6.37e-8\")",
+ "engine->newVariant(QVariant(false)) <=> engine->evaluate(\"0x43211234\")",
+ "engine->newVariant(QVariant(false)) <=> engine->evaluate(\"0x10000\")",
+ "engine->newVariant(QVariant(false)) <=> engine->evaluate(\"0x10001\")",
+ "engine->newVariant(QVariant(false)) <=> engine->evaluate(\"Infinity\")",
+ "engine->newVariant(QVariant(false)) <=> engine->evaluate(\"'123'\")",
+ "engine->newVariant(QVariant(false)) <=> engine->evaluate(\"'12.4'\")",
+ "engine->newVariant(QVariant(false)) <=> engine->newVariant(QVariant(123))",
+ "engine->newQObject(0) <=> QScriptValue(true)",
+ "engine->newQObject(0) <=> QScriptValue(int(122))",
+ "engine->newQObject(0) <=> QScriptValue(uint(124))",
+ "engine->newQObject(0) <=> QScriptValue(123.0)",
+ "engine->newQObject(0) <=> QScriptValue(6.37e-8)",
+ "engine->newQObject(0) <=> QScriptValue(0x43211234)",
+ "engine->newQObject(0) <=> QScriptValue(0x10000)",
+ "engine->newQObject(0) <=> QScriptValue(0x10001)",
+ "engine->newQObject(0) <=> QScriptValue(qInf())",
+ "engine->newQObject(0) <=> QScriptValue(\"Infinity\")",
+ "engine->newQObject(0) <=> QScriptValue(QString(\"123\"))",
+ "engine->newQObject(0) <=> QScriptValue(QString(\"12.4\"))",
+ "engine->newQObject(0) <=> QScriptValue(0, true)",
+ "engine->newQObject(0) <=> QScriptValue(0, int(122))",
+ "engine->newQObject(0) <=> QScriptValue(0, uint(124))",
+ "engine->newQObject(0) <=> QScriptValue(0, 123.0)",
+ "engine->newQObject(0) <=> QScriptValue(0, 6.37e-8)",
+ "engine->newQObject(0) <=> QScriptValue(0, 0x43211234)",
+ "engine->newQObject(0) <=> QScriptValue(0, 0x10000)",
+ "engine->newQObject(0) <=> QScriptValue(0, 0x10001)",
+ "engine->newQObject(0) <=> QScriptValue(0, qInf())",
+ "engine->newQObject(0) <=> QScriptValue(0, \"Infinity\")",
+ "engine->newQObject(0) <=> QScriptValue(0, QString(\"123\"))",
+ "engine->newQObject(0) <=> QScriptValue(0, QString(\"12.3\"))",
+ "engine->newQObject(0) <=> QScriptValue(engine, true)",
+ "engine->newQObject(0) <=> QScriptValue(engine, int(122))",
+ "engine->newQObject(0) <=> QScriptValue(engine, uint(124))",
+ "engine->newQObject(0) <=> QScriptValue(engine, 123.0)",
+ "engine->newQObject(0) <=> QScriptValue(engine, 6.37e-8)",
+ "engine->newQObject(0) <=> QScriptValue(engine, 0x43211234)",
+ "engine->newQObject(0) <=> QScriptValue(engine, 0x10000)",
+ "engine->newQObject(0) <=> QScriptValue(engine, 0x10001)",
+ "engine->newQObject(0) <=> QScriptValue(engine, qInf())",
+ "engine->newQObject(0) <=> QScriptValue(engine, \"Infinity\")",
+ "engine->newQObject(0) <=> QScriptValue(engine, QString(\"123\"))",
+ "engine->newQObject(0) <=> QScriptValue(engine, QString(\"1.23\"))",
+ "engine->newQObject(0) <=> engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->newQObject(0) <=> engine->evaluate(\"true\")",
+ "engine->newQObject(0) <=> engine->evaluate(\"122\")",
+ "engine->newQObject(0) <=> engine->evaluate(\"124\")",
+ "engine->newQObject(0) <=> engine->evaluate(\"123.0\")",
+ "engine->newQObject(0) <=> engine->evaluate(\"6.37e-8\")",
+ "engine->newQObject(0) <=> engine->evaluate(\"0x43211234\")",
+ "engine->newQObject(0) <=> engine->evaluate(\"0x10000\")",
+ "engine->newQObject(0) <=> engine->evaluate(\"0x10001\")",
+ "engine->newQObject(0) <=> engine->evaluate(\"Infinity\")",
+ "engine->newQObject(0) <=> engine->evaluate(\"'123'\")",
+ "engine->newQObject(0) <=> engine->evaluate(\"'12.4'\")",
+ "engine->newQObject(0) <=> engine->newVariant(QVariant(123))",
+ "engine->newQObject(engine) <=> QScriptValue(\"ciao\")",
+ "engine->newQObject(engine) <=> QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "engine->newQObject(engine) <=> QScriptValue(0, \"ciao\")",
+ "engine->newQObject(engine) <=> QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "engine->newQObject(engine) <=> QScriptValue(engine, \"ciao\")",
+ "engine->newQObject(engine) <=> QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "engine->newQObject(engine) <=> engine->evaluate(\"Object.prototype\")",
+ "engine->newQObject(engine) <=> engine->evaluate(\"Function.prototype\")",
+ "engine->newQObject(engine) <=> engine->evaluate(\"Object\")",
+ "engine->newQObject(engine) <=> engine->evaluate(\"Array\")",
+ "engine->newQObject(engine) <=> engine->evaluate(\"Number\")",
+ "engine->newQObject(engine) <=> engine->evaluate(\"Function\")",
+ "engine->newQObject(engine) <=> engine->evaluate(\"(function() { return 1; })\")",
+ "engine->newQObject(engine) <=> engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->newQObject(engine) <=> engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->newQObject(engine) <=> engine->evaluate(\"new Object()\")",
+ "engine->newQObject(engine) <=> engine->evaluate(\"Undefined\")",
+ "engine->newQObject(engine) <=> engine->evaluate(\"Null\")",
+ "engine->newQObject(engine) <=> engine->evaluate(\"True\")",
+ "engine->newQObject(engine) <=> engine->evaluate(\"False\")",
+ "engine->newQObject(engine) <=> engine->evaluate(\"'ciao'\")",
+ "engine->newQObject(engine) <=> engine->newObject()",
+ "engine->newQObject(engine) <=> engine->newQMetaObject(&QObject::staticMetaObject)",};
+
+void tst_QScriptValue::lessThan_makeData(const char *expr)
+{
+ static QSet<QString> equals;
+ if (equals.isEmpty()) {
+ equals.reserve(5063);
+ for (unsigned i = 0; i < 5063; ++i)
+ equals.insert(lessThan_array[i]);
+ }
+ QHash<QString, QScriptValue>::const_iterator it;
+ for (it = m_values.constBegin(); it != m_values.constEnd(); ++it) {
+ QString tag = QString::fromLatin1("%20 <=> %21").arg(expr).arg(it.key());
+ newRow(tag.toLatin1()) << it.value() << equals.contains(tag);
+ }
+}
+
+void tst_QScriptValue::lessThan_test(const char *, const QScriptValue& value)
+{
+ QFETCH(QScriptValue, other);
+ QFETCH(bool, expected);
+ QCOMPARE(value.lessThan(other), expected);
+}
+
+DEFINE_TEST_FUNCTION(lessThan)
+
+
+void tst_QScriptValue::instanceOf_initData()
+{
+ QTest::addColumn<QScriptValue>("other");
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString instanceOf_array [] = {
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"[]\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Date.prototype\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array.prototype\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Function.prototype\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Error.prototype\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Object\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Object\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"Array\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"Number\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Number\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"Function\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Function\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 1; })\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"(function() { return 1; })\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\") <=> engine->evaluate(\"Function\")",
+ "engine->evaluate(\"/foo/\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"new Object()\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"new Array()\") <=> engine->evaluate(\"Array\")",
+ "engine->evaluate(\"new Error()\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Undefined\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Null\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"True\") <=> engine->evaluate(\"Object\")",
+ "engine->evaluate(\"False\") <=> engine->evaluate(\"Object\")",
+ "engine->newObject() <=> engine->evaluate(\"Object\")",
+ "engine->newArray() <=> engine->evaluate(\"Object\")",
+ "engine->newArray() <=> engine->evaluate(\"Array\")",
+ "engine->newArray(10) <=> engine->evaluate(\"Object\")",
+ "engine->newArray(10) <=> engine->evaluate(\"Array\")",
+ "engine->newDate(QDateTime()) <=> engine->evaluate(\"Object\")",
+ "engine->newQMetaObject(&QObject::staticMetaObject) <=> engine->evaluate(\"Object\")",
+ "engine->newVariant(QVariant()) <=> engine->evaluate(\"Object\")",
+ "engine->newVariant(QVariant(123)) <=> engine->evaluate(\"Object\")",
+ "engine->newVariant(QVariant(false)) <=> engine->evaluate(\"Object\")",
+ "engine->newQObject(engine) <=> engine->evaluate(\"Object\")",};
+
+void tst_QScriptValue::instanceOf_makeData(const char *expr)
+{
+ static QSet<QString> equals;
+ if (equals.isEmpty()) {
+ equals.reserve(40);
+ for (unsigned i = 0; i < 40; ++i)
+ equals.insert(instanceOf_array[i]);
+ }
+ QHash<QString, QScriptValue>::const_iterator it;
+ for (it = m_values.constBegin(); it != m_values.constEnd(); ++it) {
+ QString tag = QString::fromLatin1("%20 <=> %21").arg(expr).arg(it.key());
+ newRow(tag.toLatin1()) << it.value() << equals.contains(tag);
+ }
+}
+
+void tst_QScriptValue::instanceOf_test(const char *, const QScriptValue& value)
+{
+ QFETCH(QScriptValue, other);
+ QFETCH(bool, expected);
+ QCOMPARE(value.instanceOf(other), expected);
+}
+
+DEFINE_TEST_FUNCTION(instanceOf)
diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue_generated_init.cpp b/tests/auto/qscriptvalue/tst_qscriptvalue_generated_init.cpp
new file mode 100644
index 0000000..a9eb2ca
--- /dev/null
+++ b/tests/auto/qscriptvalue/tst_qscriptvalue_generated_init.cpp
@@ -0,0 +1,198 @@
+/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the test suite of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the Technology Preview License Agreement accompanying
+** this package.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** If you have questions regarding the use of this file, please contact
+** Nokia at qt-info@nokia.com.
+**
+**
+**
+**
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/****************************************************************************
+*************** This file has been generated. DO NOT MODIFY! ****************
+****************************************************************************/
+
+#include "tst_qscriptvalue.h"
+
+
+void tst_QScriptValue::initScriptValues()
+{
+ m_values.clear();
+ if (engine)
+ delete engine;
+ engine = new QScriptEngine;
+ DEFINE_TEST_VALUE(QScriptValue());
+ DEFINE_TEST_VALUE(QScriptValue(QScriptValue::UndefinedValue));
+ DEFINE_TEST_VALUE(QScriptValue(QScriptValue::NullValue));
+ DEFINE_TEST_VALUE(QScriptValue(true));
+ DEFINE_TEST_VALUE(QScriptValue(false));
+ DEFINE_TEST_VALUE(QScriptValue(int(122)));
+ DEFINE_TEST_VALUE(QScriptValue(uint(124)));
+ DEFINE_TEST_VALUE(QScriptValue(0));
+ DEFINE_TEST_VALUE(QScriptValue(0.0));
+ DEFINE_TEST_VALUE(QScriptValue(123.0));
+ DEFINE_TEST_VALUE(QScriptValue(6.37e-8));
+ DEFINE_TEST_VALUE(QScriptValue(-6.37e-8));
+ DEFINE_TEST_VALUE(QScriptValue(0x43211234));
+ DEFINE_TEST_VALUE(QScriptValue(0x10000));
+ DEFINE_TEST_VALUE(QScriptValue(0x10001));
+ DEFINE_TEST_VALUE(QScriptValue(qSNaN()));
+ DEFINE_TEST_VALUE(QScriptValue(qQNaN()));
+ DEFINE_TEST_VALUE(QScriptValue(qInf()));
+ DEFINE_TEST_VALUE(QScriptValue(-qInf()));
+ DEFINE_TEST_VALUE(QScriptValue("NaN"));
+ DEFINE_TEST_VALUE(QScriptValue("Infinity"));
+ DEFINE_TEST_VALUE(QScriptValue("-Infinity"));
+ DEFINE_TEST_VALUE(QScriptValue("ciao"));
+ DEFINE_TEST_VALUE(QScriptValue(QString::fromLatin1("ciao")));
+ DEFINE_TEST_VALUE(QScriptValue(QString("")));
+ DEFINE_TEST_VALUE(QScriptValue(QString()));
+ DEFINE_TEST_VALUE(QScriptValue(QString("0")));
+ DEFINE_TEST_VALUE(QScriptValue(QString("123")));
+ DEFINE_TEST_VALUE(QScriptValue(QString("12.4")));
+ DEFINE_TEST_VALUE(QScriptValue(0, QScriptValue::UndefinedValue));
+ DEFINE_TEST_VALUE(QScriptValue(0, QScriptValue::NullValue));
+ DEFINE_TEST_VALUE(QScriptValue(0, true));
+ DEFINE_TEST_VALUE(QScriptValue(0, false));
+ DEFINE_TEST_VALUE(QScriptValue(0, int(122)));
+ DEFINE_TEST_VALUE(QScriptValue(0, uint(124)));
+ DEFINE_TEST_VALUE(QScriptValue(0, 0));
+ DEFINE_TEST_VALUE(QScriptValue(0, 0.0));
+ DEFINE_TEST_VALUE(QScriptValue(0, 123.0));
+ DEFINE_TEST_VALUE(QScriptValue(0, 6.37e-8));
+ DEFINE_TEST_VALUE(QScriptValue(0, -6.37e-8));
+ DEFINE_TEST_VALUE(QScriptValue(0, 0x43211234));
+ DEFINE_TEST_VALUE(QScriptValue(0, 0x10000));
+ DEFINE_TEST_VALUE(QScriptValue(0, 0x10001));
+ DEFINE_TEST_VALUE(QScriptValue(0, qSNaN()));
+ DEFINE_TEST_VALUE(QScriptValue(0, qQNaN()));
+ DEFINE_TEST_VALUE(QScriptValue(0, qInf()));
+ DEFINE_TEST_VALUE(QScriptValue(0, -qInf()));
+ DEFINE_TEST_VALUE(QScriptValue(0, "NaN"));
+ DEFINE_TEST_VALUE(QScriptValue(0, "Infinity"));
+ DEFINE_TEST_VALUE(QScriptValue(0, "-Infinity"));
+ DEFINE_TEST_VALUE(QScriptValue(0, "ciao"));
+ DEFINE_TEST_VALUE(QScriptValue(0, QString::fromLatin1("ciao")));
+ DEFINE_TEST_VALUE(QScriptValue(0, QString("")));
+ DEFINE_TEST_VALUE(QScriptValue(0, QString()));
+ DEFINE_TEST_VALUE(QScriptValue(0, QString("0")));
+ DEFINE_TEST_VALUE(QScriptValue(0, QString("123")));
+ DEFINE_TEST_VALUE(QScriptValue(0, QString("12.3")));
+ DEFINE_TEST_VALUE(QScriptValue(engine, QScriptValue::UndefinedValue));
+ DEFINE_TEST_VALUE(QScriptValue(engine, QScriptValue::NullValue));
+ DEFINE_TEST_VALUE(QScriptValue(engine, true));
+ DEFINE_TEST_VALUE(QScriptValue(engine, false));
+ DEFINE_TEST_VALUE(QScriptValue(engine, int(122)));
+ DEFINE_TEST_VALUE(QScriptValue(engine, uint(124)));
+ DEFINE_TEST_VALUE(QScriptValue(engine, 0));
+ DEFINE_TEST_VALUE(QScriptValue(engine, 0.0));
+ DEFINE_TEST_VALUE(QScriptValue(engine, 123.0));
+ DEFINE_TEST_VALUE(QScriptValue(engine, 6.37e-8));
+ DEFINE_TEST_VALUE(QScriptValue(engine, -6.37e-8));
+ DEFINE_TEST_VALUE(QScriptValue(engine, 0x43211234));
+ DEFINE_TEST_VALUE(QScriptValue(engine, 0x10000));
+ DEFINE_TEST_VALUE(QScriptValue(engine, 0x10001));
+ DEFINE_TEST_VALUE(QScriptValue(engine, qSNaN()));
+ DEFINE_TEST_VALUE(QScriptValue(engine, qQNaN()));
+ DEFINE_TEST_VALUE(QScriptValue(engine, qInf()));
+ DEFINE_TEST_VALUE(QScriptValue(engine, -qInf()));
+ DEFINE_TEST_VALUE(QScriptValue(engine, "NaN"));
+ DEFINE_TEST_VALUE(QScriptValue(engine, "Infinity"));
+ DEFINE_TEST_VALUE(QScriptValue(engine, "-Infinity"));
+ DEFINE_TEST_VALUE(QScriptValue(engine, "ciao"));
+ DEFINE_TEST_VALUE(QScriptValue(engine, QString::fromLatin1("ciao")));
+ DEFINE_TEST_VALUE(QScriptValue(engine, QString("")));
+ DEFINE_TEST_VALUE(QScriptValue(engine, QString()));
+ DEFINE_TEST_VALUE(QScriptValue(engine, QString("0")));
+ DEFINE_TEST_VALUE(QScriptValue(engine, QString("123")));
+ DEFINE_TEST_VALUE(QScriptValue(engine, QString("1.23")));
+ DEFINE_TEST_VALUE(engine->evaluate("[]"));
+ DEFINE_TEST_VALUE(engine->evaluate("{}"));
+ DEFINE_TEST_VALUE(engine->evaluate("Object.prototype"));
+ DEFINE_TEST_VALUE(engine->evaluate("Date.prototype"));
+ DEFINE_TEST_VALUE(engine->evaluate("Array.prototype"));
+ DEFINE_TEST_VALUE(engine->evaluate("Function.prototype"));
+ DEFINE_TEST_VALUE(engine->evaluate("Error.prototype"));
+ DEFINE_TEST_VALUE(engine->evaluate("Object"));
+ DEFINE_TEST_VALUE(engine->evaluate("Array"));
+ DEFINE_TEST_VALUE(engine->evaluate("Number"));
+ DEFINE_TEST_VALUE(engine->evaluate("Function"));
+ DEFINE_TEST_VALUE(engine->evaluate("(function() { return 1; })"));
+ DEFINE_TEST_VALUE(engine->evaluate("(function() { return 'ciao'; })"));
+ DEFINE_TEST_VALUE(engine->evaluate("(function() { throw new Error('foo'); })"));
+ DEFINE_TEST_VALUE(engine->evaluate("/foo/"));
+ DEFINE_TEST_VALUE(engine->evaluate("new Object()"));
+ DEFINE_TEST_VALUE(engine->evaluate("new Array()"));
+ DEFINE_TEST_VALUE(engine->evaluate("new Error()"));
+ DEFINE_TEST_VALUE(engine->evaluate("a = new Object(); a.foo = 22; a.foo"));
+ DEFINE_TEST_VALUE(engine->evaluate("Undefined"));
+ DEFINE_TEST_VALUE(engine->evaluate("Null"));
+ DEFINE_TEST_VALUE(engine->evaluate("True"));
+ DEFINE_TEST_VALUE(engine->evaluate("False"));
+ DEFINE_TEST_VALUE(engine->evaluate("undefined"));
+ DEFINE_TEST_VALUE(engine->evaluate("null"));
+ DEFINE_TEST_VALUE(engine->evaluate("true"));
+ DEFINE_TEST_VALUE(engine->evaluate("false"));
+ DEFINE_TEST_VALUE(engine->evaluate("122"));
+ DEFINE_TEST_VALUE(engine->evaluate("124"));
+ DEFINE_TEST_VALUE(engine->evaluate("0"));
+ DEFINE_TEST_VALUE(engine->evaluate("0.0"));
+ DEFINE_TEST_VALUE(engine->evaluate("123.0"));
+ DEFINE_TEST_VALUE(engine->evaluate("6.37e-8"));
+ DEFINE_TEST_VALUE(engine->evaluate("-6.37e-8"));
+ DEFINE_TEST_VALUE(engine->evaluate("0x43211234"));
+ DEFINE_TEST_VALUE(engine->evaluate("0x10000"));
+ DEFINE_TEST_VALUE(engine->evaluate("0x10001"));
+ DEFINE_TEST_VALUE(engine->evaluate("NaN"));
+ DEFINE_TEST_VALUE(engine->evaluate("Infinity"));
+ DEFINE_TEST_VALUE(engine->evaluate("-Infinity"));
+ DEFINE_TEST_VALUE(engine->evaluate("'ciao'"));
+ DEFINE_TEST_VALUE(engine->evaluate("''"));
+ DEFINE_TEST_VALUE(engine->evaluate("'0'"));
+ DEFINE_TEST_VALUE(engine->evaluate("'123'"));
+ DEFINE_TEST_VALUE(engine->evaluate("'12.4'"));
+ DEFINE_TEST_VALUE(engine->nullValue());
+ DEFINE_TEST_VALUE(engine->undefinedValue());
+ DEFINE_TEST_VALUE(engine->newObject());
+ DEFINE_TEST_VALUE(engine->newArray());
+ DEFINE_TEST_VALUE(engine->newArray(10));
+ DEFINE_TEST_VALUE(engine->newDate(QDateTime()));
+ DEFINE_TEST_VALUE(engine->newQMetaObject(&QObject::staticMetaObject));
+ DEFINE_TEST_VALUE(engine->newVariant(QVariant()));
+ DEFINE_TEST_VALUE(engine->newVariant(QVariant(123)));
+ DEFINE_TEST_VALUE(engine->newVariant(QVariant(false)));
+ DEFINE_TEST_VALUE(engine->newQObject(0));
+ DEFINE_TEST_VALUE(engine->newQObject(engine));
+}
+
diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue_generated_isXXX.cpp b/tests/auto/qscriptvalue/tst_qscriptvalue_generated_isXXX.cpp
new file mode 100644
index 0000000..106043b
--- /dev/null
+++ b/tests/auto/qscriptvalue/tst_qscriptvalue_generated_isXXX.cpp
@@ -0,0 +1,830 @@
+/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the test suite of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the Technology Preview License Agreement accompanying
+** this package.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** If you have questions regarding the use of this file, please contact
+** Nokia at qt-info@nokia.com.
+**
+**
+**
+**
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/****************************************************************************
+*************** This file has been generated. DO NOT MODIFY! ****************
+****************************************************************************/
+
+#include "tst_qscriptvalue.h"
+
+
+void tst_QScriptValue::isValid_initData()
+{
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString isValid_array [] = {
+ "QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(true)",
+ "QScriptValue(false)",
+ "QScriptValue(int(122))",
+ "QScriptValue(uint(124))",
+ "QScriptValue(0)",
+ "QScriptValue(0.0)",
+ "QScriptValue(123.0)",
+ "QScriptValue(6.37e-8)",
+ "QScriptValue(-6.37e-8)",
+ "QScriptValue(0x43211234)",
+ "QScriptValue(0x10000)",
+ "QScriptValue(0x10001)",
+ "QScriptValue(qSNaN())",
+ "QScriptValue(qQNaN())",
+ "QScriptValue(qInf())",
+ "QScriptValue(-qInf())",
+ "QScriptValue(\"NaN\")",
+ "QScriptValue(\"Infinity\")",
+ "QScriptValue(\"-Infinity\")",
+ "QScriptValue(\"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"\"))",
+ "QScriptValue(QString())",
+ "QScriptValue(QString(\"0\"))",
+ "QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(0, true)",
+ "QScriptValue(0, false)",
+ "QScriptValue(0, int(122))",
+ "QScriptValue(0, uint(124))",
+ "QScriptValue(0, 0)",
+ "QScriptValue(0, 0.0)",
+ "QScriptValue(0, 123.0)",
+ "QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, -6.37e-8)",
+ "QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 0x10001)",
+ "QScriptValue(0, qSNaN())",
+ "QScriptValue(0, qQNaN())",
+ "QScriptValue(0, qInf())",
+ "QScriptValue(0, -qInf())",
+ "QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, QString())",
+ "QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(engine, true)",
+ "QScriptValue(engine, false)",
+ "QScriptValue(engine, int(122))",
+ "QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, 0)",
+ "QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, qSNaN())",
+ "QScriptValue(engine, qQNaN())",
+ "QScriptValue(engine, qInf())",
+ "QScriptValue(engine, -qInf())",
+ "QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, QString())",
+ "QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"[]\")",
+ "engine->evaluate(\"{}\")",
+ "engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Date.prototype\")",
+ "engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Null\")",
+ "engine->evaluate(\"True\")",
+ "engine->evaluate(\"False\")",
+ "engine->evaluate(\"undefined\")",
+ "engine->evaluate(\"null\")",
+ "engine->evaluate(\"true\")",
+ "engine->evaluate(\"false\")",
+ "engine->evaluate(\"122\")",
+ "engine->evaluate(\"124\")",
+ "engine->evaluate(\"0\")",
+ "engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"-6.37e-8\")",
+ "engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"NaN\")",
+ "engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"-Infinity\")",
+ "engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"''\")",
+ "engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"'12.4'\")",
+ "engine->nullValue()",
+ "engine->undefinedValue()",
+ "engine->newObject()",
+ "engine->newArray()",
+ "engine->newArray(10)",
+ "engine->newDate(QDateTime())",
+ "engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->newVariant(QVariant())",
+ "engine->newVariant(QVariant(123))",
+ "engine->newVariant(QVariant(false))",
+ "engine->newQObject(0)",
+ "engine->newQObject(engine)",};
+
+void tst_QScriptValue::isValid_makeData(const char* expr)
+{
+ static QSet<QString> isValid;
+ if (isValid.isEmpty()) {
+ isValid.reserve(141);
+ for (unsigned i = 0; i < 141; ++i)
+ isValid.insert(isValid_array[i]);
+ }
+ newRow(expr) << isValid.contains(expr);
+}
+
+void tst_QScriptValue::isValid_test(const char*, const QScriptValue& value)
+{
+ QFETCH(bool, expected);
+ QCOMPARE(value.isValid(), expected);
+ QCOMPARE(value.isValid(), expected);
+}
+
+DEFINE_TEST_FUNCTION(isValid)
+
+
+void tst_QScriptValue::isBool_initData()
+{
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString isBool_array [] = {
+ "QScriptValue(true)",
+ "QScriptValue(false)",
+ "QScriptValue(0, true)",
+ "QScriptValue(0, false)",
+ "QScriptValue(engine, true)",
+ "QScriptValue(engine, false)",
+ "engine->evaluate(\"true\")",
+ "engine->evaluate(\"false\")",};
+
+void tst_QScriptValue::isBool_makeData(const char* expr)
+{
+ static QSet<QString> isBool;
+ if (isBool.isEmpty()) {
+ isBool.reserve(8);
+ for (unsigned i = 0; i < 8; ++i)
+ isBool.insert(isBool_array[i]);
+ }
+ newRow(expr) << isBool.contains(expr);
+}
+
+void tst_QScriptValue::isBool_test(const char*, const QScriptValue& value)
+{
+ QFETCH(bool, expected);
+ QCOMPARE(value.isBool(), expected);
+ QCOMPARE(value.isBool(), expected);
+}
+
+DEFINE_TEST_FUNCTION(isBool)
+
+
+void tst_QScriptValue::isBoolean_initData()
+{
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString isBoolean_array [] = {
+ "QScriptValue(true)",
+ "QScriptValue(false)",
+ "QScriptValue(0, true)",
+ "QScriptValue(0, false)",
+ "QScriptValue(engine, true)",
+ "QScriptValue(engine, false)",
+ "engine->evaluate(\"true\")",
+ "engine->evaluate(\"false\")",};
+
+void tst_QScriptValue::isBoolean_makeData(const char* expr)
+{
+ static QSet<QString> isBoolean;
+ if (isBoolean.isEmpty()) {
+ isBoolean.reserve(8);
+ for (unsigned i = 0; i < 8; ++i)
+ isBoolean.insert(isBoolean_array[i]);
+ }
+ newRow(expr) << isBoolean.contains(expr);
+}
+
+void tst_QScriptValue::isBoolean_test(const char*, const QScriptValue& value)
+{
+ QFETCH(bool, expected);
+ QCOMPARE(value.isBoolean(), expected);
+ QCOMPARE(value.isBoolean(), expected);
+}
+
+DEFINE_TEST_FUNCTION(isBoolean)
+
+
+void tst_QScriptValue::isNumber_initData()
+{
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString isNumber_array [] = {
+ "QScriptValue(int(122))",
+ "QScriptValue(uint(124))",
+ "QScriptValue(0)",
+ "QScriptValue(0.0)",
+ "QScriptValue(123.0)",
+ "QScriptValue(6.37e-8)",
+ "QScriptValue(-6.37e-8)",
+ "QScriptValue(0x43211234)",
+ "QScriptValue(0x10000)",
+ "QScriptValue(0x10001)",
+ "QScriptValue(qSNaN())",
+ "QScriptValue(qQNaN())",
+ "QScriptValue(qInf())",
+ "QScriptValue(-qInf())",
+ "QScriptValue(0, int(122))",
+ "QScriptValue(0, uint(124))",
+ "QScriptValue(0, 0)",
+ "QScriptValue(0, 0.0)",
+ "QScriptValue(0, 123.0)",
+ "QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, -6.37e-8)",
+ "QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 0x10001)",
+ "QScriptValue(0, qSNaN())",
+ "QScriptValue(0, qQNaN())",
+ "QScriptValue(0, qInf())",
+ "QScriptValue(0, -qInf())",
+ "QScriptValue(engine, int(122))",
+ "QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, 0)",
+ "QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, qSNaN())",
+ "QScriptValue(engine, qQNaN())",
+ "QScriptValue(engine, qInf())",
+ "QScriptValue(engine, -qInf())",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"122\")",
+ "engine->evaluate(\"124\")",
+ "engine->evaluate(\"0\")",
+ "engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"-6.37e-8\")",
+ "engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"NaN\")",
+ "engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"-Infinity\")",};
+
+void tst_QScriptValue::isNumber_makeData(const char* expr)
+{
+ static QSet<QString> isNumber;
+ if (isNumber.isEmpty()) {
+ isNumber.reserve(56);
+ for (unsigned i = 0; i < 56; ++i)
+ isNumber.insert(isNumber_array[i]);
+ }
+ newRow(expr) << isNumber.contains(expr);
+}
+
+void tst_QScriptValue::isNumber_test(const char*, const QScriptValue& value)
+{
+ QFETCH(bool, expected);
+ QCOMPARE(value.isNumber(), expected);
+ QCOMPARE(value.isNumber(), expected);
+}
+
+DEFINE_TEST_FUNCTION(isNumber)
+
+
+void tst_QScriptValue::isFunction_initData()
+{
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString isFunction_array [] = {
+ "engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"/foo/\")",
+ "engine->newQMetaObject(&QObject::staticMetaObject)",};
+
+void tst_QScriptValue::isFunction_makeData(const char* expr)
+{
+ static QSet<QString> isFunction;
+ if (isFunction.isEmpty()) {
+ isFunction.reserve(10);
+ for (unsigned i = 0; i < 10; ++i)
+ isFunction.insert(isFunction_array[i]);
+ }
+ newRow(expr) << isFunction.contains(expr);
+}
+
+void tst_QScriptValue::isFunction_test(const char*, const QScriptValue& value)
+{
+ QFETCH(bool, expected);
+ QCOMPARE(value.isFunction(), expected);
+ QCOMPARE(value.isFunction(), expected);
+}
+
+DEFINE_TEST_FUNCTION(isFunction)
+
+
+void tst_QScriptValue::isNull_initData()
+{
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString isNull_array [] = {
+ "QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(engine, QScriptValue::NullValue)",
+ "engine->evaluate(\"null\")",
+ "engine->nullValue()",
+ "engine->newQObject(0)",};
+
+void tst_QScriptValue::isNull_makeData(const char* expr)
+{
+ static QSet<QString> isNull;
+ if (isNull.isEmpty()) {
+ isNull.reserve(6);
+ for (unsigned i = 0; i < 6; ++i)
+ isNull.insert(isNull_array[i]);
+ }
+ newRow(expr) << isNull.contains(expr);
+}
+
+void tst_QScriptValue::isNull_test(const char*, const QScriptValue& value)
+{
+ QFETCH(bool, expected);
+ QCOMPARE(value.isNull(), expected);
+ QCOMPARE(value.isNull(), expected);
+}
+
+DEFINE_TEST_FUNCTION(isNull)
+
+
+void tst_QScriptValue::isString_initData()
+{
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString isString_array [] = {
+ "QScriptValue(\"NaN\")",
+ "QScriptValue(\"Infinity\")",
+ "QScriptValue(\"-Infinity\")",
+ "QScriptValue(\"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"\"))",
+ "QScriptValue(QString())",
+ "QScriptValue(QString(\"0\"))",
+ "QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, QString())",
+ "QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, QString())",
+ "QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"''\")",
+ "engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"'12.4'\")",};
+
+void tst_QScriptValue::isString_makeData(const char* expr)
+{
+ static QSet<QString> isString;
+ if (isString.isEmpty()) {
+ isString.reserve(35);
+ for (unsigned i = 0; i < 35; ++i)
+ isString.insert(isString_array[i]);
+ }
+ newRow(expr) << isString.contains(expr);
+}
+
+void tst_QScriptValue::isString_test(const char*, const QScriptValue& value)
+{
+ QFETCH(bool, expected);
+ QCOMPARE(value.isString(), expected);
+ QCOMPARE(value.isString(), expected);
+}
+
+DEFINE_TEST_FUNCTION(isString)
+
+
+void tst_QScriptValue::isUndefined_initData()
+{
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString isUndefined_array [] = {
+ "QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "engine->evaluate(\"{}\")",
+ "engine->evaluate(\"undefined\")",
+ "engine->undefinedValue()",};
+
+void tst_QScriptValue::isUndefined_makeData(const char* expr)
+{
+ static QSet<QString> isUndefined;
+ if (isUndefined.isEmpty()) {
+ isUndefined.reserve(6);
+ for (unsigned i = 0; i < 6; ++i)
+ isUndefined.insert(isUndefined_array[i]);
+ }
+ newRow(expr) << isUndefined.contains(expr);
+}
+
+void tst_QScriptValue::isUndefined_test(const char*, const QScriptValue& value)
+{
+ QFETCH(bool, expected);
+ QCOMPARE(value.isUndefined(), expected);
+ QCOMPARE(value.isUndefined(), expected);
+}
+
+DEFINE_TEST_FUNCTION(isUndefined)
+
+
+void tst_QScriptValue::isVariant_initData()
+{
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString isVariant_array [] = {
+ "engine->newVariant(QVariant())",
+ "engine->newVariant(QVariant(123))",
+ "engine->newVariant(QVariant(false))",};
+
+void tst_QScriptValue::isVariant_makeData(const char* expr)
+{
+ static QSet<QString> isVariant;
+ if (isVariant.isEmpty()) {
+ isVariant.reserve(3);
+ for (unsigned i = 0; i < 3; ++i)
+ isVariant.insert(isVariant_array[i]);
+ }
+ newRow(expr) << isVariant.contains(expr);
+}
+
+void tst_QScriptValue::isVariant_test(const char*, const QScriptValue& value)
+{
+ QFETCH(bool, expected);
+ QCOMPARE(value.isVariant(), expected);
+ QCOMPARE(value.isVariant(), expected);
+}
+
+DEFINE_TEST_FUNCTION(isVariant)
+
+
+void tst_QScriptValue::isQObject_initData()
+{
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString isQObject_array [] = {
+ "engine->newQObject(engine)",};
+
+void tst_QScriptValue::isQObject_makeData(const char* expr)
+{
+ static QSet<QString> isQObject;
+ if (isQObject.isEmpty()) {
+ isQObject.reserve(1);
+ for (unsigned i = 0; i < 1; ++i)
+ isQObject.insert(isQObject_array[i]);
+ }
+ newRow(expr) << isQObject.contains(expr);
+}
+
+void tst_QScriptValue::isQObject_test(const char*, const QScriptValue& value)
+{
+ QFETCH(bool, expected);
+ QCOMPARE(value.isQObject(), expected);
+ QCOMPARE(value.isQObject(), expected);
+}
+
+DEFINE_TEST_FUNCTION(isQObject)
+
+
+void tst_QScriptValue::isQMetaObject_initData()
+{
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString isQMetaObject_array [] = {
+ "engine->newQMetaObject(&QObject::staticMetaObject)",};
+
+void tst_QScriptValue::isQMetaObject_makeData(const char* expr)
+{
+ static QSet<QString> isQMetaObject;
+ if (isQMetaObject.isEmpty()) {
+ isQMetaObject.reserve(1);
+ for (unsigned i = 0; i < 1; ++i)
+ isQMetaObject.insert(isQMetaObject_array[i]);
+ }
+ newRow(expr) << isQMetaObject.contains(expr);
+}
+
+void tst_QScriptValue::isQMetaObject_test(const char*, const QScriptValue& value)
+{
+ QFETCH(bool, expected);
+ QCOMPARE(value.isQMetaObject(), expected);
+ QCOMPARE(value.isQMetaObject(), expected);
+}
+
+DEFINE_TEST_FUNCTION(isQMetaObject)
+
+
+void tst_QScriptValue::isObject_initData()
+{
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString isObject_array [] = {
+ "engine->evaluate(\"[]\")",
+ "engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Date.prototype\")",
+ "engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Null\")",
+ "engine->evaluate(\"True\")",
+ "engine->evaluate(\"False\")",
+ "engine->newObject()",
+ "engine->newArray()",
+ "engine->newArray(10)",
+ "engine->newDate(QDateTime())",
+ "engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->newVariant(QVariant())",
+ "engine->newVariant(QVariant(123))",
+ "engine->newVariant(QVariant(false))",
+ "engine->newQObject(engine)",};
+
+void tst_QScriptValue::isObject_makeData(const char* expr)
+{
+ static QSet<QString> isObject;
+ if (isObject.isEmpty()) {
+ isObject.reserve(30);
+ for (unsigned i = 0; i < 30; ++i)
+ isObject.insert(isObject_array[i]);
+ }
+ newRow(expr) << isObject.contains(expr);
+}
+
+void tst_QScriptValue::isObject_test(const char*, const QScriptValue& value)
+{
+ QFETCH(bool, expected);
+ QCOMPARE(value.isObject(), expected);
+ QCOMPARE(value.isObject(), expected);
+}
+
+DEFINE_TEST_FUNCTION(isObject)
+
+
+void tst_QScriptValue::isDate_initData()
+{
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString isDate_array [] = {
+ "engine->evaluate(\"Date.prototype\")",
+ "engine->newDate(QDateTime())",};
+
+void tst_QScriptValue::isDate_makeData(const char* expr)
+{
+ static QSet<QString> isDate;
+ if (isDate.isEmpty()) {
+ isDate.reserve(2);
+ for (unsigned i = 0; i < 2; ++i)
+ isDate.insert(isDate_array[i]);
+ }
+ newRow(expr) << isDate.contains(expr);
+}
+
+void tst_QScriptValue::isDate_test(const char*, const QScriptValue& value)
+{
+ QFETCH(bool, expected);
+ QCOMPARE(value.isDate(), expected);
+ QCOMPARE(value.isDate(), expected);
+}
+
+DEFINE_TEST_FUNCTION(isDate)
+
+
+void tst_QScriptValue::isRegExp_initData()
+{
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString isRegExp_array [] = {
+ "engine->evaluate(\"/foo/\")",};
+
+void tst_QScriptValue::isRegExp_makeData(const char* expr)
+{
+ static QSet<QString> isRegExp;
+ if (isRegExp.isEmpty()) {
+ isRegExp.reserve(1);
+ for (unsigned i = 0; i < 1; ++i)
+ isRegExp.insert(isRegExp_array[i]);
+ }
+ newRow(expr) << isRegExp.contains(expr);
+}
+
+void tst_QScriptValue::isRegExp_test(const char*, const QScriptValue& value)
+{
+ QFETCH(bool, expected);
+ QCOMPARE(value.isRegExp(), expected);
+ QCOMPARE(value.isRegExp(), expected);
+}
+
+DEFINE_TEST_FUNCTION(isRegExp)
+
+
+void tst_QScriptValue::isArray_initData()
+{
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString isArray_array [] = {
+ "engine->evaluate(\"[]\")",
+ "engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"new Array()\")",
+ "engine->newArray()",
+ "engine->newArray(10)",};
+
+void tst_QScriptValue::isArray_makeData(const char* expr)
+{
+ static QSet<QString> isArray;
+ if (isArray.isEmpty()) {
+ isArray.reserve(5);
+ for (unsigned i = 0; i < 5; ++i)
+ isArray.insert(isArray_array[i]);
+ }
+ newRow(expr) << isArray.contains(expr);
+}
+
+void tst_QScriptValue::isArray_test(const char*, const QScriptValue& value)
+{
+ QFETCH(bool, expected);
+ QCOMPARE(value.isArray(), expected);
+ QCOMPARE(value.isArray(), expected);
+}
+
+DEFINE_TEST_FUNCTION(isArray)
+
+
+void tst_QScriptValue::isError_initData()
+{
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString isError_array [] = {
+ "engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Null\")",
+ "engine->evaluate(\"True\")",
+ "engine->evaluate(\"False\")",};
+
+void tst_QScriptValue::isError_makeData(const char* expr)
+{
+ static QSet<QString> isError;
+ if (isError.isEmpty()) {
+ isError.reserve(6);
+ for (unsigned i = 0; i < 6; ++i)
+ isError.insert(isError_array[i]);
+ }
+ newRow(expr) << isError.contains(expr);
+}
+
+void tst_QScriptValue::isError_test(const char*, const QScriptValue& value)
+{
+ QFETCH(bool, expected);
+ QCOMPARE(value.isError(), expected);
+ QCOMPARE(value.isError(), expected);
+}
+
+DEFINE_TEST_FUNCTION(isError)
+
diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue_generated_toXXX.cpp b/tests/auto/qscriptvalue/tst_qscriptvalue_generated_toXXX.cpp
new file mode 100644
index 0000000..754f4e0
--- /dev/null
+++ b/tests/auto/qscriptvalue/tst_qscriptvalue_generated_toXXX.cpp
@@ -0,0 +1,1897 @@
+/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the test suite of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the Technology Preview License Agreement accompanying
+** this package.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** If you have questions regarding the use of this file, please contact
+** Nokia at qt-info@nokia.com.
+**
+**
+**
+**
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/****************************************************************************
+*************** This file has been generated. DO NOT MODIFY! ****************
+****************************************************************************/
+
+#include "tst_qscriptvalue.h"
+
+
+
+void tst_QScriptValue::toString_initData()
+{
+ QTest::addColumn<QString>("expected");
+ initScriptValues();
+}
+
+static QString toString_tagArray [] = {
+ "QScriptValue()",
+ "QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(true)",
+ "QScriptValue(false)",
+ "QScriptValue(int(122))",
+ "QScriptValue(uint(124))",
+ "QScriptValue(0)",
+ "QScriptValue(0.0)",
+ "QScriptValue(123.0)",
+ "QScriptValue(6.37e-8)",
+ "QScriptValue(-6.37e-8)",
+ "QScriptValue(0x43211234)",
+ "QScriptValue(0x10000)",
+ "QScriptValue(0x10001)",
+ "QScriptValue(qSNaN())",
+ "QScriptValue(qQNaN())",
+ "QScriptValue(qInf())",
+ "QScriptValue(-qInf())",
+ "QScriptValue(\"NaN\")",
+ "QScriptValue(\"Infinity\")",
+ "QScriptValue(\"-Infinity\")",
+ "QScriptValue(\"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"\"))",
+ "QScriptValue(QString())",
+ "QScriptValue(QString(\"0\"))",
+ "QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(0, true)",
+ "QScriptValue(0, false)",
+ "QScriptValue(0, int(122))",
+ "QScriptValue(0, uint(124))",
+ "QScriptValue(0, 0)",
+ "QScriptValue(0, 0.0)",
+ "QScriptValue(0, 123.0)",
+ "QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, -6.37e-8)",
+ "QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 0x10001)",
+ "QScriptValue(0, qSNaN())",
+ "QScriptValue(0, qQNaN())",
+ "QScriptValue(0, qInf())",
+ "QScriptValue(0, -qInf())",
+ "QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, QString())",
+ "QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(engine, true)",
+ "QScriptValue(engine, false)",
+ "QScriptValue(engine, int(122))",
+ "QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, 0)",
+ "QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, qSNaN())",
+ "QScriptValue(engine, qQNaN())",
+ "QScriptValue(engine, qInf())",
+ "QScriptValue(engine, -qInf())",
+ "QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, QString())",
+ "QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"[]\")",
+ "engine->evaluate(\"{}\")",
+ "engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Date.prototype\")",
+ "engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Null\")",
+ "engine->evaluate(\"True\")",
+ "engine->evaluate(\"False\")",
+ "engine->evaluate(\"undefined\")",
+ "engine->evaluate(\"null\")",
+ "engine->evaluate(\"true\")",
+ "engine->evaluate(\"false\")",
+ "engine->evaluate(\"122\")",
+ "engine->evaluate(\"124\")",
+ "engine->evaluate(\"0\")",
+ "engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"-6.37e-8\")",
+ "engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"NaN\")",
+ "engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"-Infinity\")",
+ "engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"''\")",
+ "engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"'12.4'\")",
+ "engine->nullValue()",
+ "engine->undefinedValue()",
+ "engine->newObject()",
+ "engine->newArray()",
+ "engine->newArray(10)",
+ "engine->newDate(QDateTime())",
+ "engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->newVariant(QVariant())",
+ "engine->newVariant(QVariant(123))",
+ "engine->newVariant(QVariant(false))",
+ "engine->newQObject(0)",
+ "engine->newQObject(engine)",};
+
+static QString toString_valueArray [] = {
+ "", "undefined",
+ "null", "true",
+ "false", "122",
+ "124", "0",
+ "0", "123",
+ "6.37e-8", "-6.37e-8",
+ "1126240820", "65536",
+ "65537", "NaN",
+ "NaN", "Infinity",
+ "-Infinity", "NaN",
+ "Infinity", "-Infinity",
+ "ciao", "ciao",
+ "", "",
+ "0", "123",
+ "12.4", "undefined",
+ "null", "true",
+ "false", "122",
+ "124", "0",
+ "0", "123",
+ "6.37e-8", "-6.37e-8",
+ "1126240820", "65536",
+ "65537", "NaN",
+ "NaN", "Infinity",
+ "-Infinity", "NaN",
+ "Infinity", "-Infinity",
+ "ciao", "ciao",
+ "", "",
+ "0", "123",
+ "12.3", "undefined",
+ "null", "true",
+ "false", "122",
+ "124", "0",
+ "0", "123",
+ "6.37e-8", "-6.37e-8",
+ "1126240820", "65536",
+ "65537", "NaN",
+ "NaN", "Infinity",
+ "-Infinity", "NaN",
+ "Infinity", "-Infinity",
+ "ciao", "ciao",
+ "", "",
+ "0", "123",
+ "1.23", "",
+ "undefined", "[object Object]",
+ "Invalid Date", "",
+ "function () {\n [native code]\n}", "Error: Unknown error",
+ "function Object() {\n [native code]\n}", "function Array() {\n [native code]\n}",
+ "function Number() {\n [native code]\n}", "function Function() {\n [native code]\n}",
+ "function () { return 1; }", "function () { return 'ciao'; }",
+ "function () { throw new Error('foo'); }", "/foo/",
+ "[object Object]", "",
+ "Error: Unknown error", "22",
+ "ReferenceError: Can't find variable: Undefined", "ReferenceError: Can't find variable: Null",
+ "ReferenceError: Can't find variable: True", "ReferenceError: Can't find variable: False",
+ "undefined", "null",
+ "true", "false",
+ "122", "124",
+ "0", "0",
+ "123", "6.37e-8",
+ "-6.37e-8", "1126240820",
+ "65536", "65537",
+ "NaN", "Infinity",
+ "-Infinity", "ciao",
+ "", "0",
+ "123", "12.4",
+ "null", "undefined",
+ "[object Object]", "",
+ ",,,,,,,,,", "Invalid Date",
+ "[object QMetaObject]", "undefined",
+ "123", "false",
+ "null", "QScriptEngine(name = \"\")", };
+
+void tst_QScriptValue::toString_makeData(const char* expr)
+{
+ static QHash<QString, QString> toString;
+ if (toString.isEmpty()) {
+ toString.reserve(142);
+ for (unsigned i = 0; i < 142; ++i)
+ toString.insert(toString_tagArray[i], toString_valueArray[i]);
+ }
+ newRow(expr) << toString.value(expr);
+}
+
+void tst_QScriptValue::toString_test(const char*, const QScriptValue& value)
+{
+ QFETCH(QString, expected);
+ QCOMPARE(value.toString(), expected);
+ QCOMPARE(value.toString(), expected);
+}
+
+DEFINE_TEST_FUNCTION(toString)
+
+
+void tst_QScriptValue::toNumber_initData()
+{
+ QTest::addColumn<qsreal>("expected");
+ initScriptValues();
+}
+
+static QString toNumber_tagArray [] = {
+ "QScriptValue()",
+ "QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(true)",
+ "QScriptValue(false)",
+ "QScriptValue(int(122))",
+ "QScriptValue(uint(124))",
+ "QScriptValue(0)",
+ "QScriptValue(0.0)",
+ "QScriptValue(123.0)",
+ "QScriptValue(6.37e-8)",
+ "QScriptValue(-6.37e-8)",
+ "QScriptValue(0x43211234)",
+ "QScriptValue(0x10000)",
+ "QScriptValue(0x10001)",
+ "QScriptValue(qSNaN())",
+ "QScriptValue(qQNaN())",
+ "QScriptValue(qInf())",
+ "QScriptValue(-qInf())",
+ "QScriptValue(\"NaN\")",
+ "QScriptValue(\"Infinity\")",
+ "QScriptValue(\"-Infinity\")",
+ "QScriptValue(\"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"\"))",
+ "QScriptValue(QString())",
+ "QScriptValue(QString(\"0\"))",
+ "QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(0, true)",
+ "QScriptValue(0, false)",
+ "QScriptValue(0, int(122))",
+ "QScriptValue(0, uint(124))",
+ "QScriptValue(0, 0)",
+ "QScriptValue(0, 0.0)",
+ "QScriptValue(0, 123.0)",
+ "QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, -6.37e-8)",
+ "QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 0x10001)",
+ "QScriptValue(0, qSNaN())",
+ "QScriptValue(0, qQNaN())",
+ "QScriptValue(0, qInf())",
+ "QScriptValue(0, -qInf())",
+ "QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, QString())",
+ "QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(engine, true)",
+ "QScriptValue(engine, false)",
+ "QScriptValue(engine, int(122))",
+ "QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, 0)",
+ "QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, qSNaN())",
+ "QScriptValue(engine, qQNaN())",
+ "QScriptValue(engine, qInf())",
+ "QScriptValue(engine, -qInf())",
+ "QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, QString())",
+ "QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"[]\")",
+ "engine->evaluate(\"{}\")",
+ "engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Date.prototype\")",
+ "engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Null\")",
+ "engine->evaluate(\"True\")",
+ "engine->evaluate(\"False\")",
+ "engine->evaluate(\"undefined\")",
+ "engine->evaluate(\"null\")",
+ "engine->evaluate(\"true\")",
+ "engine->evaluate(\"false\")",
+ "engine->evaluate(\"122\")",
+ "engine->evaluate(\"124\")",
+ "engine->evaluate(\"0\")",
+ "engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"-6.37e-8\")",
+ "engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"NaN\")",
+ "engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"-Infinity\")",
+ "engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"''\")",
+ "engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"'12.4'\")",
+ "engine->nullValue()",
+ "engine->undefinedValue()",
+ "engine->newObject()",
+ "engine->newArray()",
+ "engine->newArray(10)",
+ "engine->newDate(QDateTime())",
+ "engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->newVariant(QVariant())",
+ "engine->newVariant(QVariant(123))",
+ "engine->newVariant(QVariant(false))",
+ "engine->newQObject(0)",
+ "engine->newQObject(engine)",};
+static qsreal toNumber_valueArray [] = {
+ 0, qQNaN(), 0, 1, 0, 122, 124, 0, 0, 123,
+ 6.369999999999999e-08, -6.369999999999999e-08, 1126240820, 65536, 65537, qQNaN(), qQNaN(), qInf(), qInf(), qQNaN(),
+ qInf(), qInf(), qQNaN(), qQNaN(), 0, 0, 0, 123, 12.4, qQNaN(),
+ 0, 1, 0, 122, 124, 0, 0, 123, 6.369999999999999e-08, -6.369999999999999e-08,
+ 1126240820, 65536, 65537, qQNaN(), qQNaN(), qInf(), qInf(), qQNaN(), qInf(), qInf(),
+ qQNaN(), qQNaN(), 0, 0, 0, 123, 12.3, qQNaN(), 0, 1,
+ 0, 122, 124, 0, 0, 123, 6.369999999999999e-08, -6.369999999999999e-08, 1126240820, 65536,
+ 65537, qQNaN(), qQNaN(), qInf(), qInf(), qQNaN(), qInf(), qInf(), qQNaN(), qQNaN(),
+ 0, 0, 0, 123, 1.23, 0, qQNaN(), qQNaN(), qQNaN(), 0,
+ qQNaN(), qQNaN(), qQNaN(), qQNaN(), qQNaN(), qQNaN(), qQNaN(), qQNaN(), qQNaN(), qQNaN(),
+ qQNaN(), 0, qQNaN(), 22, qQNaN(), qQNaN(), qQNaN(), qQNaN(), qQNaN(), 0,
+ 1, 0, 122, 124, 0, 0, 123, 6.369999999999999e-08, -6.369999999999999e-08, 1126240820,
+ 65536, 65537, qQNaN(), qInf(), qInf(), qQNaN(), 0, 0, 123, 12.4,
+ 0, qQNaN(), qQNaN(), 0, qQNaN(), qQNaN(), qQNaN(), qQNaN(), 123, 0,
+ 0, qQNaN(), };
+void tst_QScriptValue::toNumber_makeData(const char* expr)
+{
+ static QHash<QString, qsreal> toNumber;
+ if (toNumber.isEmpty()) {
+ toNumber.reserve(142);
+ for (unsigned i = 0; i < 142; ++i)
+ toNumber.insert(toNumber_tagArray[i], toNumber_valueArray[i]);
+ }
+ newRow(expr) << toNumber.value(expr);
+}
+
+void tst_QScriptValue::toNumber_test(const char*, const QScriptValue& value)
+{
+ QFETCH(qsreal, expected);
+ if (qIsNaN(expected)) {
+ QVERIFY(qIsNaN(value.toNumber()));
+ return;
+ }
+ if (qIsInf(expected)) {
+ QVERIFY(qIsInf(value.toNumber()));
+ QVERIFY(qIsInf(value.toNumber()));
+ return;
+ }
+ QCOMPARE(value.toNumber(), expected);
+ QCOMPARE(value.toNumber(), expected);
+}
+
+DEFINE_TEST_FUNCTION(toNumber)
+
+
+void tst_QScriptValue::toBool_initData()
+{
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString toBool_tagArray [] = {
+ "QScriptValue()",
+ "QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(true)",
+ "QScriptValue(false)",
+ "QScriptValue(int(122))",
+ "QScriptValue(uint(124))",
+ "QScriptValue(0)",
+ "QScriptValue(0.0)",
+ "QScriptValue(123.0)",
+ "QScriptValue(6.37e-8)",
+ "QScriptValue(-6.37e-8)",
+ "QScriptValue(0x43211234)",
+ "QScriptValue(0x10000)",
+ "QScriptValue(0x10001)",
+ "QScriptValue(qSNaN())",
+ "QScriptValue(qQNaN())",
+ "QScriptValue(qInf())",
+ "QScriptValue(-qInf())",
+ "QScriptValue(\"NaN\")",
+ "QScriptValue(\"Infinity\")",
+ "QScriptValue(\"-Infinity\")",
+ "QScriptValue(\"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"\"))",
+ "QScriptValue(QString())",
+ "QScriptValue(QString(\"0\"))",
+ "QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(0, true)",
+ "QScriptValue(0, false)",
+ "QScriptValue(0, int(122))",
+ "QScriptValue(0, uint(124))",
+ "QScriptValue(0, 0)",
+ "QScriptValue(0, 0.0)",
+ "QScriptValue(0, 123.0)",
+ "QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, -6.37e-8)",
+ "QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 0x10001)",
+ "QScriptValue(0, qSNaN())",
+ "QScriptValue(0, qQNaN())",
+ "QScriptValue(0, qInf())",
+ "QScriptValue(0, -qInf())",
+ "QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, QString())",
+ "QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(engine, true)",
+ "QScriptValue(engine, false)",
+ "QScriptValue(engine, int(122))",
+ "QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, 0)",
+ "QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, qSNaN())",
+ "QScriptValue(engine, qQNaN())",
+ "QScriptValue(engine, qInf())",
+ "QScriptValue(engine, -qInf())",
+ "QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, QString())",
+ "QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"[]\")",
+ "engine->evaluate(\"{}\")",
+ "engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Date.prototype\")",
+ "engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Null\")",
+ "engine->evaluate(\"True\")",
+ "engine->evaluate(\"False\")",
+ "engine->evaluate(\"undefined\")",
+ "engine->evaluate(\"null\")",
+ "engine->evaluate(\"true\")",
+ "engine->evaluate(\"false\")",
+ "engine->evaluate(\"122\")",
+ "engine->evaluate(\"124\")",
+ "engine->evaluate(\"0\")",
+ "engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"-6.37e-8\")",
+ "engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"NaN\")",
+ "engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"-Infinity\")",
+ "engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"''\")",
+ "engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"'12.4'\")",
+ "engine->nullValue()",
+ "engine->undefinedValue()",
+ "engine->newObject()",
+ "engine->newArray()",
+ "engine->newArray(10)",
+ "engine->newDate(QDateTime())",
+ "engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->newVariant(QVariant())",
+ "engine->newVariant(QVariant(123))",
+ "engine->newVariant(QVariant(false))",
+ "engine->newQObject(0)",
+ "engine->newQObject(engine)",};
+
+static bool toBool_valueArray [] = {
+ false, false,
+ false, true,
+ false, true,
+ true, false,
+ false, true,
+ true, true,
+ true, true,
+ true, false,
+ false, true,
+ true, true,
+ true, true,
+ true, true,
+ false, false,
+ true, true,
+ true, false,
+ false, true,
+ false, true,
+ true, false,
+ false, true,
+ true, true,
+ true, true,
+ true, false,
+ false, true,
+ true, true,
+ true, true,
+ true, true,
+ false, false,
+ true, true,
+ true, false,
+ false, true,
+ false, true,
+ true, false,
+ false, true,
+ true, true,
+ true, true,
+ true, false,
+ false, true,
+ true, true,
+ true, true,
+ true, true,
+ false, false,
+ true, true,
+ true, true,
+ false, true,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ false, false,
+ true, false,
+ true, true,
+ false, false,
+ true, true,
+ true, true,
+ true, true,
+ false, true,
+ true, true,
+ false, true,
+ true, true,
+ false, false,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ false, true, };
+
+void tst_QScriptValue::toBool_makeData(const char* expr)
+{
+ static QHash<QString, bool> toBool;
+ if (toBool.isEmpty()) {
+ toBool.reserve(142);
+ for (unsigned i = 0; i < 142; ++i)
+ toBool.insert(toBool_tagArray[i], toBool_valueArray[i]);
+ }
+ newRow(expr) << toBool.value(expr);
+}
+
+void tst_QScriptValue::toBool_test(const char*, const QScriptValue& value)
+{
+ QFETCH(bool, expected);
+ QCOMPARE(value.toBool(), expected);
+ QCOMPARE(value.toBool(), expected);
+}
+
+DEFINE_TEST_FUNCTION(toBool)
+
+
+void tst_QScriptValue::toBoolean_initData()
+{
+ QTest::addColumn<bool>("expected");
+ initScriptValues();
+}
+
+static QString toBoolean_tagArray [] = {
+ "QScriptValue()",
+ "QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(true)",
+ "QScriptValue(false)",
+ "QScriptValue(int(122))",
+ "QScriptValue(uint(124))",
+ "QScriptValue(0)",
+ "QScriptValue(0.0)",
+ "QScriptValue(123.0)",
+ "QScriptValue(6.37e-8)",
+ "QScriptValue(-6.37e-8)",
+ "QScriptValue(0x43211234)",
+ "QScriptValue(0x10000)",
+ "QScriptValue(0x10001)",
+ "QScriptValue(qSNaN())",
+ "QScriptValue(qQNaN())",
+ "QScriptValue(qInf())",
+ "QScriptValue(-qInf())",
+ "QScriptValue(\"NaN\")",
+ "QScriptValue(\"Infinity\")",
+ "QScriptValue(\"-Infinity\")",
+ "QScriptValue(\"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"\"))",
+ "QScriptValue(QString())",
+ "QScriptValue(QString(\"0\"))",
+ "QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(0, true)",
+ "QScriptValue(0, false)",
+ "QScriptValue(0, int(122))",
+ "QScriptValue(0, uint(124))",
+ "QScriptValue(0, 0)",
+ "QScriptValue(0, 0.0)",
+ "QScriptValue(0, 123.0)",
+ "QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, -6.37e-8)",
+ "QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 0x10001)",
+ "QScriptValue(0, qSNaN())",
+ "QScriptValue(0, qQNaN())",
+ "QScriptValue(0, qInf())",
+ "QScriptValue(0, -qInf())",
+ "QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, QString())",
+ "QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(engine, true)",
+ "QScriptValue(engine, false)",
+ "QScriptValue(engine, int(122))",
+ "QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, 0)",
+ "QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, qSNaN())",
+ "QScriptValue(engine, qQNaN())",
+ "QScriptValue(engine, qInf())",
+ "QScriptValue(engine, -qInf())",
+ "QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, QString())",
+ "QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"[]\")",
+ "engine->evaluate(\"{}\")",
+ "engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Date.prototype\")",
+ "engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Null\")",
+ "engine->evaluate(\"True\")",
+ "engine->evaluate(\"False\")",
+ "engine->evaluate(\"undefined\")",
+ "engine->evaluate(\"null\")",
+ "engine->evaluate(\"true\")",
+ "engine->evaluate(\"false\")",
+ "engine->evaluate(\"122\")",
+ "engine->evaluate(\"124\")",
+ "engine->evaluate(\"0\")",
+ "engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"-6.37e-8\")",
+ "engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"NaN\")",
+ "engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"-Infinity\")",
+ "engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"''\")",
+ "engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"'12.4'\")",
+ "engine->nullValue()",
+ "engine->undefinedValue()",
+ "engine->newObject()",
+ "engine->newArray()",
+ "engine->newArray(10)",
+ "engine->newDate(QDateTime())",
+ "engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->newVariant(QVariant())",
+ "engine->newVariant(QVariant(123))",
+ "engine->newVariant(QVariant(false))",
+ "engine->newQObject(0)",
+ "engine->newQObject(engine)",};
+
+static bool toBoolean_valueArray [] = {
+ false, false,
+ false, true,
+ false, true,
+ true, false,
+ false, true,
+ true, true,
+ true, true,
+ true, false,
+ false, true,
+ true, true,
+ true, true,
+ true, true,
+ false, false,
+ true, true,
+ true, false,
+ false, true,
+ false, true,
+ true, false,
+ false, true,
+ true, true,
+ true, true,
+ true, false,
+ false, true,
+ true, true,
+ true, true,
+ true, true,
+ false, false,
+ true, true,
+ true, false,
+ false, true,
+ false, true,
+ true, false,
+ false, true,
+ true, true,
+ true, true,
+ true, false,
+ false, true,
+ true, true,
+ true, true,
+ true, true,
+ false, false,
+ true, true,
+ true, true,
+ false, true,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ false, false,
+ true, false,
+ true, true,
+ false, false,
+ true, true,
+ true, true,
+ true, true,
+ false, true,
+ true, true,
+ false, true,
+ true, true,
+ false, false,
+ true, true,
+ true, true,
+ true, true,
+ true, true,
+ false, true, };
+
+void tst_QScriptValue::toBoolean_makeData(const char* expr)
+{
+ static QHash<QString, bool> toBoolean;
+ if (toBoolean.isEmpty()) {
+ toBoolean.reserve(142);
+ for (unsigned i = 0; i < 142; ++i)
+ toBoolean.insert(toBoolean_tagArray[i], toBoolean_valueArray[i]);
+ }
+ newRow(expr) << toBoolean.value(expr);
+}
+
+void tst_QScriptValue::toBoolean_test(const char*, const QScriptValue& value)
+{
+ QFETCH(bool, expected);
+ QCOMPARE(value.toBoolean(), expected);
+ QCOMPARE(value.toBoolean(), expected);
+}
+
+DEFINE_TEST_FUNCTION(toBoolean)
+
+
+void tst_QScriptValue::toInteger_initData()
+{
+ QTest::addColumn<qsreal>("expected");
+ initScriptValues();
+}
+
+static QString toInteger_tagArray [] = {
+ "QScriptValue()",
+ "QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(true)",
+ "QScriptValue(false)",
+ "QScriptValue(int(122))",
+ "QScriptValue(uint(124))",
+ "QScriptValue(0)",
+ "QScriptValue(0.0)",
+ "QScriptValue(123.0)",
+ "QScriptValue(6.37e-8)",
+ "QScriptValue(-6.37e-8)",
+ "QScriptValue(0x43211234)",
+ "QScriptValue(0x10000)",
+ "QScriptValue(0x10001)",
+ "QScriptValue(qSNaN())",
+ "QScriptValue(qQNaN())",
+ "QScriptValue(qInf())",
+ "QScriptValue(-qInf())",
+ "QScriptValue(\"NaN\")",
+ "QScriptValue(\"Infinity\")",
+ "QScriptValue(\"-Infinity\")",
+ "QScriptValue(\"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"\"))",
+ "QScriptValue(QString())",
+ "QScriptValue(QString(\"0\"))",
+ "QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(0, true)",
+ "QScriptValue(0, false)",
+ "QScriptValue(0, int(122))",
+ "QScriptValue(0, uint(124))",
+ "QScriptValue(0, 0)",
+ "QScriptValue(0, 0.0)",
+ "QScriptValue(0, 123.0)",
+ "QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, -6.37e-8)",
+ "QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 0x10001)",
+ "QScriptValue(0, qSNaN())",
+ "QScriptValue(0, qQNaN())",
+ "QScriptValue(0, qInf())",
+ "QScriptValue(0, -qInf())",
+ "QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, QString())",
+ "QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(engine, true)",
+ "QScriptValue(engine, false)",
+ "QScriptValue(engine, int(122))",
+ "QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, 0)",
+ "QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, qSNaN())",
+ "QScriptValue(engine, qQNaN())",
+ "QScriptValue(engine, qInf())",
+ "QScriptValue(engine, -qInf())",
+ "QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, QString())",
+ "QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"[]\")",
+ "engine->evaluate(\"{}\")",
+ "engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Date.prototype\")",
+ "engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Null\")",
+ "engine->evaluate(\"True\")",
+ "engine->evaluate(\"False\")",
+ "engine->evaluate(\"undefined\")",
+ "engine->evaluate(\"null\")",
+ "engine->evaluate(\"true\")",
+ "engine->evaluate(\"false\")",
+ "engine->evaluate(\"122\")",
+ "engine->evaluate(\"124\")",
+ "engine->evaluate(\"0\")",
+ "engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"-6.37e-8\")",
+ "engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"NaN\")",
+ "engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"-Infinity\")",
+ "engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"''\")",
+ "engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"'12.4'\")",
+ "engine->nullValue()",
+ "engine->undefinedValue()",
+ "engine->newObject()",
+ "engine->newArray()",
+ "engine->newArray(10)",
+ "engine->newDate(QDateTime())",
+ "engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->newVariant(QVariant())",
+ "engine->newVariant(QVariant(123))",
+ "engine->newVariant(QVariant(false))",
+ "engine->newQObject(0)",
+ "engine->newQObject(engine)",};
+static qsreal toInteger_valueArray [] = {
+ 0, 0, 0, 1, 0, 122, 124, 0, 0, 123,
+ 0, 0, 1126240820, 65536, 65537, 0, 0, qInf(), qInf(), 0,
+ qInf(), qInf(), 0, 0, 0, 0, 0, 123, 12, 0,
+ 0, 1, 0, 122, 124, 0, 0, 123, 0, 0,
+ 1126240820, 65536, 65537, 0, 0, qInf(), qInf(), 0, qInf(), qInf(),
+ 0, 0, 0, 0, 0, 123, 12, 0, 0, 1,
+ 0, 122, 124, 0, 0, 123, 0, 0, 1126240820, 65536,
+ 65537, 0, 0, qInf(), qInf(), 0, qInf(), qInf(), 0, 0,
+ 0, 0, 0, 123, 1, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 22, 0, 0, 0, 0, 0, 0,
+ 1, 0, 122, 124, 0, 0, 123, 0, 0, 1126240820,
+ 65536, 65537, 0, qInf(), qInf(), 0, 0, 0, 123, 12,
+ 0, 0, 0, 0, 0, 0, 0, 0, 123, 0,
+ 0, 0, };
+void tst_QScriptValue::toInteger_makeData(const char* expr)
+{
+ static QHash<QString, qsreal> toInteger;
+ if (toInteger.isEmpty()) {
+ toInteger.reserve(142);
+ for (unsigned i = 0; i < 142; ++i)
+ toInteger.insert(toInteger_tagArray[i], toInteger_valueArray[i]);
+ }
+ newRow(expr) << toInteger.value(expr);
+}
+
+void tst_QScriptValue::toInteger_test(const char*, const QScriptValue& value)
+{
+ QFETCH(qsreal, expected);
+ if (qIsInf(expected)) {
+ QVERIFY(qIsInf(value.toInteger()));
+ QVERIFY(qIsInf(value.toInteger()));
+ return;
+ }
+ QCOMPARE(value.toInteger(), expected);
+ QCOMPARE(value.toInteger(), expected);
+}
+
+DEFINE_TEST_FUNCTION(toInteger)
+
+
+void tst_QScriptValue::toInt32_initData()
+{
+ QTest::addColumn<qint32>("expected");
+ initScriptValues();
+}
+
+static QString toInt32_tagArray [] = {
+ "QScriptValue()",
+ "QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(true)",
+ "QScriptValue(false)",
+ "QScriptValue(int(122))",
+ "QScriptValue(uint(124))",
+ "QScriptValue(0)",
+ "QScriptValue(0.0)",
+ "QScriptValue(123.0)",
+ "QScriptValue(6.37e-8)",
+ "QScriptValue(-6.37e-8)",
+ "QScriptValue(0x43211234)",
+ "QScriptValue(0x10000)",
+ "QScriptValue(0x10001)",
+ "QScriptValue(qSNaN())",
+ "QScriptValue(qQNaN())",
+ "QScriptValue(qInf())",
+ "QScriptValue(-qInf())",
+ "QScriptValue(\"NaN\")",
+ "QScriptValue(\"Infinity\")",
+ "QScriptValue(\"-Infinity\")",
+ "QScriptValue(\"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"\"))",
+ "QScriptValue(QString())",
+ "QScriptValue(QString(\"0\"))",
+ "QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(0, true)",
+ "QScriptValue(0, false)",
+ "QScriptValue(0, int(122))",
+ "QScriptValue(0, uint(124))",
+ "QScriptValue(0, 0)",
+ "QScriptValue(0, 0.0)",
+ "QScriptValue(0, 123.0)",
+ "QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, -6.37e-8)",
+ "QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 0x10001)",
+ "QScriptValue(0, qSNaN())",
+ "QScriptValue(0, qQNaN())",
+ "QScriptValue(0, qInf())",
+ "QScriptValue(0, -qInf())",
+ "QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, QString())",
+ "QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(engine, true)",
+ "QScriptValue(engine, false)",
+ "QScriptValue(engine, int(122))",
+ "QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, 0)",
+ "QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, qSNaN())",
+ "QScriptValue(engine, qQNaN())",
+ "QScriptValue(engine, qInf())",
+ "QScriptValue(engine, -qInf())",
+ "QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, QString())",
+ "QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"[]\")",
+ "engine->evaluate(\"{}\")",
+ "engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Date.prototype\")",
+ "engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Null\")",
+ "engine->evaluate(\"True\")",
+ "engine->evaluate(\"False\")",
+ "engine->evaluate(\"undefined\")",
+ "engine->evaluate(\"null\")",
+ "engine->evaluate(\"true\")",
+ "engine->evaluate(\"false\")",
+ "engine->evaluate(\"122\")",
+ "engine->evaluate(\"124\")",
+ "engine->evaluate(\"0\")",
+ "engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"-6.37e-8\")",
+ "engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"NaN\")",
+ "engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"-Infinity\")",
+ "engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"''\")",
+ "engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"'12.4'\")",
+ "engine->nullValue()",
+ "engine->undefinedValue()",
+ "engine->newObject()",
+ "engine->newArray()",
+ "engine->newArray(10)",
+ "engine->newDate(QDateTime())",
+ "engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->newVariant(QVariant())",
+ "engine->newVariant(QVariant(123))",
+ "engine->newVariant(QVariant(false))",
+ "engine->newQObject(0)",
+ "engine->newQObject(engine)",};
+
+static qint32 toInt32_valueArray [] = {
+ 0, 0,
+ 0, 1,
+ 0, 122,
+ 124, 0,
+ 0, 123,
+ 0, 0,
+ 1126240820, 65536,
+ 65537, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 123,
+ 12, 0,
+ 0, 1,
+ 0, 122,
+ 124, 0,
+ 0, 123,
+ 0, 0,
+ 1126240820, 65536,
+ 65537, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 123,
+ 12, 0,
+ 0, 1,
+ 0, 122,
+ 124, 0,
+ 0, 123,
+ 0, 0,
+ 1126240820, 65536,
+ 65537, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 123,
+ 1, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 22,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 1, 0,
+ 122, 124,
+ 0, 0,
+ 123, 0,
+ 0, 1126240820,
+ 65536, 65537,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 123, 12,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 123, 0,
+ 0, 0, };
+
+void tst_QScriptValue::toInt32_makeData(const char* expr)
+{
+ static QHash<QString, qint32> toInt32;
+ if (toInt32.isEmpty()) {
+ toInt32.reserve(142);
+ for (unsigned i = 0; i < 142; ++i)
+ toInt32.insert(toInt32_tagArray[i], toInt32_valueArray[i]);
+ }
+ newRow(expr) << toInt32.value(expr);
+}
+
+void tst_QScriptValue::toInt32_test(const char*, const QScriptValue& value)
+{
+ QFETCH(qint32, expected);
+ QCOMPARE(value.toInt32(), expected);
+ QCOMPARE(value.toInt32(), expected);
+}
+
+DEFINE_TEST_FUNCTION(toInt32)
+
+
+void tst_QScriptValue::toUInt32_initData()
+{
+ QTest::addColumn<quint32>("expected");
+ initScriptValues();
+}
+
+static QString toUInt32_tagArray [] = {
+ "QScriptValue()",
+ "QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(true)",
+ "QScriptValue(false)",
+ "QScriptValue(int(122))",
+ "QScriptValue(uint(124))",
+ "QScriptValue(0)",
+ "QScriptValue(0.0)",
+ "QScriptValue(123.0)",
+ "QScriptValue(6.37e-8)",
+ "QScriptValue(-6.37e-8)",
+ "QScriptValue(0x43211234)",
+ "QScriptValue(0x10000)",
+ "QScriptValue(0x10001)",
+ "QScriptValue(qSNaN())",
+ "QScriptValue(qQNaN())",
+ "QScriptValue(qInf())",
+ "QScriptValue(-qInf())",
+ "QScriptValue(\"NaN\")",
+ "QScriptValue(\"Infinity\")",
+ "QScriptValue(\"-Infinity\")",
+ "QScriptValue(\"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"\"))",
+ "QScriptValue(QString())",
+ "QScriptValue(QString(\"0\"))",
+ "QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(0, true)",
+ "QScriptValue(0, false)",
+ "QScriptValue(0, int(122))",
+ "QScriptValue(0, uint(124))",
+ "QScriptValue(0, 0)",
+ "QScriptValue(0, 0.0)",
+ "QScriptValue(0, 123.0)",
+ "QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, -6.37e-8)",
+ "QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 0x10001)",
+ "QScriptValue(0, qSNaN())",
+ "QScriptValue(0, qQNaN())",
+ "QScriptValue(0, qInf())",
+ "QScriptValue(0, -qInf())",
+ "QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, QString())",
+ "QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(engine, true)",
+ "QScriptValue(engine, false)",
+ "QScriptValue(engine, int(122))",
+ "QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, 0)",
+ "QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, qSNaN())",
+ "QScriptValue(engine, qQNaN())",
+ "QScriptValue(engine, qInf())",
+ "QScriptValue(engine, -qInf())",
+ "QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, QString())",
+ "QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"[]\")",
+ "engine->evaluate(\"{}\")",
+ "engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Date.prototype\")",
+ "engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Null\")",
+ "engine->evaluate(\"True\")",
+ "engine->evaluate(\"False\")",
+ "engine->evaluate(\"undefined\")",
+ "engine->evaluate(\"null\")",
+ "engine->evaluate(\"true\")",
+ "engine->evaluate(\"false\")",
+ "engine->evaluate(\"122\")",
+ "engine->evaluate(\"124\")",
+ "engine->evaluate(\"0\")",
+ "engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"-6.37e-8\")",
+ "engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"NaN\")",
+ "engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"-Infinity\")",
+ "engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"''\")",
+ "engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"'12.4'\")",
+ "engine->nullValue()",
+ "engine->undefinedValue()",
+ "engine->newObject()",
+ "engine->newArray()",
+ "engine->newArray(10)",
+ "engine->newDate(QDateTime())",
+ "engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->newVariant(QVariant())",
+ "engine->newVariant(QVariant(123))",
+ "engine->newVariant(QVariant(false))",
+ "engine->newQObject(0)",
+ "engine->newQObject(engine)",};
+
+static quint32 toUInt32_valueArray [] = {
+ 0, 0,
+ 0, 1,
+ 0, 122,
+ 124, 0,
+ 0, 123,
+ 0, 0,
+ 1126240820, 65536,
+ 65537, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 123,
+ 12, 0,
+ 0, 1,
+ 0, 122,
+ 124, 0,
+ 0, 123,
+ 0, 0,
+ 1126240820, 65536,
+ 65537, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 123,
+ 12, 0,
+ 0, 1,
+ 0, 122,
+ 124, 0,
+ 0, 123,
+ 0, 0,
+ 1126240820, 65536,
+ 65537, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 123,
+ 1, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 22,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 1, 0,
+ 122, 124,
+ 0, 0,
+ 123, 0,
+ 0, 1126240820,
+ 65536, 65537,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 123, 12,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 123, 0,
+ 0, 0, };
+
+void tst_QScriptValue::toUInt32_makeData(const char* expr)
+{
+ static QHash<QString, quint32> toUInt32;
+ if (toUInt32.isEmpty()) {
+ toUInt32.reserve(142);
+ for (unsigned i = 0; i < 142; ++i)
+ toUInt32.insert(toUInt32_tagArray[i], toUInt32_valueArray[i]);
+ }
+ newRow(expr) << toUInt32.value(expr);
+}
+
+void tst_QScriptValue::toUInt32_test(const char*, const QScriptValue& value)
+{
+ QFETCH(quint32, expected);
+ QCOMPARE(value.toUInt32(), expected);
+ QCOMPARE(value.toUInt32(), expected);
+}
+
+DEFINE_TEST_FUNCTION(toUInt32)
+
+
+void tst_QScriptValue::toUInt16_initData()
+{
+ QTest::addColumn<quint16>("expected");
+ initScriptValues();
+}
+
+static QString toUInt16_tagArray [] = {
+ "QScriptValue()",
+ "QScriptValue(QScriptValue::UndefinedValue)",
+ "QScriptValue(QScriptValue::NullValue)",
+ "QScriptValue(true)",
+ "QScriptValue(false)",
+ "QScriptValue(int(122))",
+ "QScriptValue(uint(124))",
+ "QScriptValue(0)",
+ "QScriptValue(0.0)",
+ "QScriptValue(123.0)",
+ "QScriptValue(6.37e-8)",
+ "QScriptValue(-6.37e-8)",
+ "QScriptValue(0x43211234)",
+ "QScriptValue(0x10000)",
+ "QScriptValue(0x10001)",
+ "QScriptValue(qSNaN())",
+ "QScriptValue(qQNaN())",
+ "QScriptValue(qInf())",
+ "QScriptValue(-qInf())",
+ "QScriptValue(\"NaN\")",
+ "QScriptValue(\"Infinity\")",
+ "QScriptValue(\"-Infinity\")",
+ "QScriptValue(\"ciao\")",
+ "QScriptValue(QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(QString(\"\"))",
+ "QScriptValue(QString())",
+ "QScriptValue(QString(\"0\"))",
+ "QScriptValue(QString(\"123\"))",
+ "QScriptValue(QString(\"12.4\"))",
+ "QScriptValue(0, QScriptValue::UndefinedValue)",
+ "QScriptValue(0, QScriptValue::NullValue)",
+ "QScriptValue(0, true)",
+ "QScriptValue(0, false)",
+ "QScriptValue(0, int(122))",
+ "QScriptValue(0, uint(124))",
+ "QScriptValue(0, 0)",
+ "QScriptValue(0, 0.0)",
+ "QScriptValue(0, 123.0)",
+ "QScriptValue(0, 6.37e-8)",
+ "QScriptValue(0, -6.37e-8)",
+ "QScriptValue(0, 0x43211234)",
+ "QScriptValue(0, 0x10000)",
+ "QScriptValue(0, 0x10001)",
+ "QScriptValue(0, qSNaN())",
+ "QScriptValue(0, qQNaN())",
+ "QScriptValue(0, qInf())",
+ "QScriptValue(0, -qInf())",
+ "QScriptValue(0, \"NaN\")",
+ "QScriptValue(0, \"Infinity\")",
+ "QScriptValue(0, \"-Infinity\")",
+ "QScriptValue(0, \"ciao\")",
+ "QScriptValue(0, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(0, QString(\"\"))",
+ "QScriptValue(0, QString())",
+ "QScriptValue(0, QString(\"0\"))",
+ "QScriptValue(0, QString(\"123\"))",
+ "QScriptValue(0, QString(\"12.3\"))",
+ "QScriptValue(engine, QScriptValue::UndefinedValue)",
+ "QScriptValue(engine, QScriptValue::NullValue)",
+ "QScriptValue(engine, true)",
+ "QScriptValue(engine, false)",
+ "QScriptValue(engine, int(122))",
+ "QScriptValue(engine, uint(124))",
+ "QScriptValue(engine, 0)",
+ "QScriptValue(engine, 0.0)",
+ "QScriptValue(engine, 123.0)",
+ "QScriptValue(engine, 6.37e-8)",
+ "QScriptValue(engine, -6.37e-8)",
+ "QScriptValue(engine, 0x43211234)",
+ "QScriptValue(engine, 0x10000)",
+ "QScriptValue(engine, 0x10001)",
+ "QScriptValue(engine, qSNaN())",
+ "QScriptValue(engine, qQNaN())",
+ "QScriptValue(engine, qInf())",
+ "QScriptValue(engine, -qInf())",
+ "QScriptValue(engine, \"NaN\")",
+ "QScriptValue(engine, \"Infinity\")",
+ "QScriptValue(engine, \"-Infinity\")",
+ "QScriptValue(engine, \"ciao\")",
+ "QScriptValue(engine, QString::fromLatin1(\"ciao\"))",
+ "QScriptValue(engine, QString(\"\"))",
+ "QScriptValue(engine, QString())",
+ "QScriptValue(engine, QString(\"0\"))",
+ "QScriptValue(engine, QString(\"123\"))",
+ "QScriptValue(engine, QString(\"1.23\"))",
+ "engine->evaluate(\"[]\")",
+ "engine->evaluate(\"{}\")",
+ "engine->evaluate(\"Object.prototype\")",
+ "engine->evaluate(\"Date.prototype\")",
+ "engine->evaluate(\"Array.prototype\")",
+ "engine->evaluate(\"Function.prototype\")",
+ "engine->evaluate(\"Error.prototype\")",
+ "engine->evaluate(\"Object\")",
+ "engine->evaluate(\"Array\")",
+ "engine->evaluate(\"Number\")",
+ "engine->evaluate(\"Function\")",
+ "engine->evaluate(\"(function() { return 1; })\")",
+ "engine->evaluate(\"(function() { return 'ciao'; })\")",
+ "engine->evaluate(\"(function() { throw new Error('foo'); })\")",
+ "engine->evaluate(\"/foo/\")",
+ "engine->evaluate(\"new Object()\")",
+ "engine->evaluate(\"new Array()\")",
+ "engine->evaluate(\"new Error()\")",
+ "engine->evaluate(\"a = new Object(); a.foo = 22; a.foo\")",
+ "engine->evaluate(\"Undefined\")",
+ "engine->evaluate(\"Null\")",
+ "engine->evaluate(\"True\")",
+ "engine->evaluate(\"False\")",
+ "engine->evaluate(\"undefined\")",
+ "engine->evaluate(\"null\")",
+ "engine->evaluate(\"true\")",
+ "engine->evaluate(\"false\")",
+ "engine->evaluate(\"122\")",
+ "engine->evaluate(\"124\")",
+ "engine->evaluate(\"0\")",
+ "engine->evaluate(\"0.0\")",
+ "engine->evaluate(\"123.0\")",
+ "engine->evaluate(\"6.37e-8\")",
+ "engine->evaluate(\"-6.37e-8\")",
+ "engine->evaluate(\"0x43211234\")",
+ "engine->evaluate(\"0x10000\")",
+ "engine->evaluate(\"0x10001\")",
+ "engine->evaluate(\"NaN\")",
+ "engine->evaluate(\"Infinity\")",
+ "engine->evaluate(\"-Infinity\")",
+ "engine->evaluate(\"'ciao'\")",
+ "engine->evaluate(\"''\")",
+ "engine->evaluate(\"'0'\")",
+ "engine->evaluate(\"'123'\")",
+ "engine->evaluate(\"'12.4'\")",
+ "engine->nullValue()",
+ "engine->undefinedValue()",
+ "engine->newObject()",
+ "engine->newArray()",
+ "engine->newArray(10)",
+ "engine->newDate(QDateTime())",
+ "engine->newQMetaObject(&QObject::staticMetaObject)",
+ "engine->newVariant(QVariant())",
+ "engine->newVariant(QVariant(123))",
+ "engine->newVariant(QVariant(false))",
+ "engine->newQObject(0)",
+ "engine->newQObject(engine)",};
+
+static quint16 toUInt16_valueArray [] = {
+ 0, 0,
+ 0, 1,
+ 0, 122,
+ 124, 0,
+ 0, 123,
+ 0, 0,
+ 4660, 0,
+ 1, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 123,
+ 12, 0,
+ 0, 1,
+ 0, 122,
+ 124, 0,
+ 0, 123,
+ 0, 0,
+ 4660, 0,
+ 1, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 123,
+ 12, 0,
+ 0, 1,
+ 0, 122,
+ 124, 0,
+ 0, 123,
+ 0, 0,
+ 4660, 0,
+ 1, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 123,
+ 1, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 22,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 1, 0,
+ 122, 124,
+ 0, 0,
+ 123, 0,
+ 0, 4660,
+ 0, 1,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 123, 12,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ 123, 0,
+ 0, 0, };
+
+void tst_QScriptValue::toUInt16_makeData(const char* expr)
+{
+ static QHash<QString, quint16> toUInt16;
+ if (toUInt16.isEmpty()) {
+ toUInt16.reserve(142);
+ for (unsigned i = 0; i < 142; ++i)
+ toUInt16.insert(toUInt16_tagArray[i], toUInt16_valueArray[i]);
+ }
+ newRow(expr) << toUInt16.value(expr);
+}
+
+void tst_QScriptValue::toUInt16_test(const char*, const QScriptValue& value)
+{
+ QFETCH(quint16, expected);
+ QCOMPARE(value.toUInt16(), expected);
+ QCOMPARE(value.toUInt16(), expected);
+}
+
+DEFINE_TEST_FUNCTION(toUInt16)
diff --git a/tests/auto/qvariant/tst_qvariant.cpp b/tests/auto/qvariant/tst_qvariant.cpp
index a316dda..1a4182f 100644
--- a/tests/auto/qvariant/tst_qvariant.cpp
+++ b/tests/auto/qvariant/tst_qvariant.cpp
@@ -2518,15 +2518,23 @@ void tst_QVariant::variant_to()
QCOMPARE(qVariantFromValue(0.25f).toDouble(), 0.25);
}
+struct Blah { int i; };
+
+QDataStream& operator>>(QDataStream& s, Blah& c)
+{ return (s >> c.i); }
+
+QDataStream& operator<<(QDataStream& s, const Blah& c)
+{ return (s << c.i); }
+
void tst_QVariant::saveLoadCustomTypes()
{
QByteArray data;
- int i = 42;
- int tp = qRegisterMetaType<int>("Blah");
+ Blah i = { 42 };
+ int tp = qRegisterMetaType<Blah>("Blah");
QVariant v = QVariant(tp, &i);
- qRegisterMetaTypeStreamOperators<int>("Blah");
+ qRegisterMetaTypeStreamOperators<Blah>("Blah");
QCOMPARE(v.userType(), tp);
QVERIFY(v.type() == QVariant::UserType);
diff --git a/tests/benchmarks/declarative/binding/binding.pro b/tests/benchmarks/declarative/binding/binding.pro
index aa4cc41..5ceaf34 100644
--- a/tests/benchmarks/declarative/binding/binding.pro
+++ b/tests/benchmarks/declarative/binding/binding.pro
@@ -7,6 +7,9 @@ macx:CONFIG -= app_bundle
SOURCES += tst_binding.cpp testtypes.cpp
HEADERS += testtypes.h
+# Define SRCDIR equal to test's source directory
+DEFINES += SRCDIR=\\\"$$PWD\\\"
+
symbian* {
data.sources = data/*
data.path = data
diff --git a/tests/benchmarks/declarative/binding/data/idproperty.txt b/tests/benchmarks/declarative/binding/data/idproperty.txt
index 71e3c4e..4e474ba 100644
--- a/tests/benchmarks/declarative/binding/data/idproperty.txt
+++ b/tests/benchmarks/declarative/binding/data/idproperty.txt
@@ -1,7 +1,7 @@
import Test 1.0
MyQmlObject {
- id: MyObject
+ id: myObject
MyQmlObject {
result: ###
diff --git a/tests/benchmarks/declarative/binding/data/objectproperty.txt b/tests/benchmarks/declarative/binding/data/objectproperty.txt
index 63fa74d..6133dd6 100644
--- a/tests/benchmarks/declarative/binding/data/objectproperty.txt
+++ b/tests/benchmarks/declarative/binding/data/objectproperty.txt
@@ -1,7 +1,7 @@
import Test 1.0
MyQmlObject {
- id: MyObject
+ id: myObject
result: ###
}
diff --git a/tests/benchmarks/declarative/binding/testtypes.h b/tests/benchmarks/declarative/binding/testtypes.h
index 4b103ce..523f94d 100644
--- a/tests/benchmarks/declarative/binding/testtypes.h
+++ b/tests/benchmarks/declarative/binding/testtypes.h
@@ -50,7 +50,7 @@ class MyQmlObject : public QObject
Q_PROPERTY(int result READ result WRITE setResult);
Q_PROPERTY(int value READ value WRITE setValue NOTIFY valueChanged);
Q_PROPERTY(MyQmlObject *object READ object WRITE setObject NOTIFY objectChanged);
- Q_PROPERTY(QDeclarativeList<QObject *> *data READ data);
+ Q_PROPERTY(QDeclarativeListProperty<QObject> data READ data);
Q_CLASSINFO("DefaultProperty", "data");
public:
MyQmlObject() : m_result(0), m_value(0), m_object(0) {}
@@ -61,7 +61,7 @@ public:
int value() const { return m_value; }
void setValue(int v) { m_value = v; emit valueChanged(); }
- QDeclarativeList<QObject *> *data() { return &m_data; }
+ QDeclarativeListProperty<QObject> data() { return QDeclarativeListProperty<QObject>(this, m_data); }
MyQmlObject *object() const { return m_object; }
void setObject(MyQmlObject *o) { m_object = o; emit objectChanged(); }
@@ -71,7 +71,7 @@ signals:
void objectChanged();
private:
- QDeclarativeConcreteList<QObject *> m_data;
+ QList<QObject *> m_data;
int m_result;
int m_value;
MyQmlObject *m_object;
diff --git a/tests/benchmarks/declarative/binding/tst_binding.cpp b/tests/benchmarks/declarative/binding/tst_binding.cpp
index ee529a7..dbddac3 100644
--- a/tests/benchmarks/declarative/binding/tst_binding.cpp
+++ b/tests/benchmarks/declarative/binding/tst_binding.cpp
@@ -103,8 +103,8 @@ void tst_binding::objectproperty_data()
QTest::addColumn<QString>("file");
QTest::addColumn<QString>("binding");
- QTest::newRow("object.value") << "data/objectproperty.txt" << "object.value";
- QTest::newRow("object.value + 10") << "data/objectproperty.txt" << "object.value + 10";
+ QTest::newRow("object.value") << SRCDIR "/data/objectproperty.txt" << "object.value";
+ QTest::newRow("object.value + 10") << SRCDIR "/data/objectproperty.txt" << "object.value + 10";
}
void tst_binding::objectproperty()
@@ -132,13 +132,13 @@ void tst_binding::basicproperty_data()
QTest::addColumn<QString>("file");
QTest::addColumn<QString>("binding");
- QTest::newRow("value") << "data/localproperty.txt" << "value";
- QTest::newRow("value + 10") << "data/localproperty.txt" << "value + 10";
- QTest::newRow("value + value + 10") << "data/localproperty.txt" << "value + value + 10";
+ QTest::newRow("value") << SRCDIR "/data/localproperty.txt" << "value";
+ QTest::newRow("value + 10") << SRCDIR "/data/localproperty.txt" << "value + 10";
+ QTest::newRow("value + value + 10") << SRCDIR "/data/localproperty.txt" << "value + value + 10";
- QTest::newRow("MyObject.value") << "data/idproperty.txt" << "MyObject.value";
- QTest::newRow("MyObject.value + 10") << "data/idproperty.txt" << "MyObject.value + 10";
- QTest::newRow("MyObject.value + MyObject.value + 10") << "data/idproperty.txt" << "MyObject.value + MyObject.value + 10";
+ QTest::newRow("myObject.value") << SRCDIR "/data/idproperty.txt" << "myObject.value";
+ QTest::newRow("myObject.value + 10") << SRCDIR "/data/idproperty.txt" << "myObject.value + 10";
+ QTest::newRow("myObject.value + myObject.value + 10") << SRCDIR "/data/idproperty.txt" << "myObject.value + myObject.value + 10";
}
void tst_binding::basicproperty()
diff --git a/tests/benchmarks/declarative/creation/tst_creation.cpp b/tests/benchmarks/declarative/creation/tst_creation.cpp
index 9c0fd27..4319208 100644
--- a/tests/benchmarks/declarative/creation/tst_creation.cpp
+++ b/tests/benchmarks/declarative/creation/tst_creation.cpp
@@ -42,7 +42,7 @@
#include <qtest.h>
#include <QDeclarativeEngine>
#include <QDeclarativeComponent>
-#include <QDeclarativeMetaType>
+#include <private/qdeclarativemetatype_p.h>
#include <QDebug>
#include <QGraphicsScene>
#include <QGraphicsItem>
@@ -339,7 +339,8 @@ void tst_creation::itemtree_data_cpp()
for (int i = 0; i < 30; ++i) {
QDeclarativeItem *child = new QDeclarativeItem;
QDeclarativeGraphics_setParent_noEvent(child,item);
- item->data()->append(child);
+ QDeclarativeListReference ref(item, "data");
+ ref.append(child);
}
delete item;
}
diff --git a/tests/benchmarks/declarative/qdeclarativecomponent/data/object_id.qml b/tests/benchmarks/declarative/qdeclarativecomponent/data/object_id.qml
index 69114af..dc29f15 100644
--- a/tests/benchmarks/declarative/qdeclarativecomponent/data/object_id.qml
+++ b/tests/benchmarks/declarative/qdeclarativecomponent/data/object_id.qml
@@ -1,6 +1,6 @@
import Qt 4.6
QtObject {
- id: Blah
+ id: blah
}
diff --git a/tests/benchmarks/declarative/qdeclarativecomponent/data/samegame/BoomBlock.qml b/tests/benchmarks/declarative/qdeclarativecomponent/data/samegame/BoomBlock.qml
index 723e62a..e48194a 100644
--- a/tests/benchmarks/declarative/qdeclarativecomponent/data/samegame/BoomBlock.qml
+++ b/tests/benchmarks/declarative/qdeclarativecomponent/data/samegame/BoomBlock.qml
@@ -7,8 +7,8 @@ Item { id:block
property int targetX: 0
property int targetY: 0
- x: SpringFollow { enabled: spawned; source: targetX; spring: 2; damping: 0.2 }
- y: SpringFollow { source: targetY; spring: 2; damping: 0.2 }
+ SpringFollow on x { enabled: spawned; source: targetX; spring: 2; damping: 0.2 }
+ SpringFollow on y { source: targetY; spring: 2; damping: 0.2 }
Image { id: img
source: {
@@ -21,7 +21,7 @@ Item { id:block
}
}
opacity: 0
- opacity: Behavior { NumberAnimation { duration: 200 } }
+ Behavior on opacity { NumberAnimation { duration: 200 } }
anchors.fill: parent
}
diff --git a/tests/benchmarks/declarative/qdeclarativecomponent/qdeclarativecomponent.pro b/tests/benchmarks/declarative/qdeclarativecomponent/qdeclarativecomponent.pro
index 12fa9f4..30ef235 100644
--- a/tests/benchmarks/declarative/qdeclarativecomponent/qdeclarativecomponent.pro
+++ b/tests/benchmarks/declarative/qdeclarativecomponent/qdeclarativecomponent.pro
@@ -7,6 +7,9 @@ macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativecomponent.cpp testtypes.cpp
HEADERS += testtypes.h
+# Define SRCDIR equal to test's source directory
+DEFINES += SRCDIR=\\\"$$PWD\\\"
+
symbian* {
data.sources = data/*
data.path = data
diff --git a/tests/benchmarks/declarative/qdeclarativecomponent/testtypes.h b/tests/benchmarks/declarative/qdeclarativecomponent/testtypes.h
index 4b103ce..523f94d 100644
--- a/tests/benchmarks/declarative/qdeclarativecomponent/testtypes.h
+++ b/tests/benchmarks/declarative/qdeclarativecomponent/testtypes.h
@@ -50,7 +50,7 @@ class MyQmlObject : public QObject
Q_PROPERTY(int result READ result WRITE setResult);
Q_PROPERTY(int value READ value WRITE setValue NOTIFY valueChanged);
Q_PROPERTY(MyQmlObject *object READ object WRITE setObject NOTIFY objectChanged);
- Q_PROPERTY(QDeclarativeList<QObject *> *data READ data);
+ Q_PROPERTY(QDeclarativeListProperty<QObject> data READ data);
Q_CLASSINFO("DefaultProperty", "data");
public:
MyQmlObject() : m_result(0), m_value(0), m_object(0) {}
@@ -61,7 +61,7 @@ public:
int value() const { return m_value; }
void setValue(int v) { m_value = v; emit valueChanged(); }
- QDeclarativeList<QObject *> *data() { return &m_data; }
+ QDeclarativeListProperty<QObject> data() { return QDeclarativeListProperty<QObject>(this, m_data); }
MyQmlObject *object() const { return m_object; }
void setObject(MyQmlObject *o) { m_object = o; emit objectChanged(); }
@@ -71,7 +71,7 @@ signals:
void objectChanged();
private:
- QDeclarativeConcreteList<QObject *> m_data;
+ QList<QObject *> m_data;
int m_result;
int m_value;
MyQmlObject *m_object;
diff --git a/tests/benchmarks/declarative/qdeclarativecomponent/tst_qdeclarativecomponent.cpp b/tests/benchmarks/declarative/qdeclarativecomponent/tst_qdeclarativecomponent.cpp
index 7065303..4b1456e 100644
--- a/tests/benchmarks/declarative/qdeclarativecomponent/tst_qdeclarativecomponent.cpp
+++ b/tests/benchmarks/declarative/qdeclarativecomponent/tst_qdeclarativecomponent.cpp
@@ -90,13 +90,13 @@ void tst_qmlcomponent::creation_data()
{
QTest::addColumn<QString>("file");
- QTest::newRow("Object") << "data/object.qml";
- QTest::newRow("Object - Id") << "data/object_id.qml";
- QTest::newRow("MyQmlObject") << "data/myqmlobject.qml";
- QTest::newRow("MyQmlObject: basic binding") << "data/myqmlobject_binding.qml";
- QTest::newRow("Synthesized properties") << "data/synthesized_properties.qml";
- QTest::newRow("Synthesized properties.2") << "data/synthesized_properties.2.qml";
- QTest::newRow("SameGame - BoomBlock") << "data/samegame/BoomBlock.qml";
+ QTest::newRow("Object") << SRCDIR "/data/object.qml";
+ QTest::newRow("Object - Id") << SRCDIR "/data/object_id.qml";
+ QTest::newRow("MyQmlObject") << SRCDIR "/data/myqmlobject.qml";
+ QTest::newRow("MyQmlObject: basic binding") << SRCDIR "/data/myqmlobject_binding.qml";
+ QTest::newRow("Synthesized properties") << SRCDIR "/data/synthesized_properties.qml";
+ QTest::newRow("Synthesized properties.2") << SRCDIR "/data/synthesized_properties.2.qml";
+ QTest::newRow("SameGame - BoomBlock") << SRCDIR "/data/samegame/BoomBlock.qml";
}
void tst_qmlcomponent::creation()
diff --git a/tests/benchmarks/declarative/qdeclarativemetaproperty/qdeclarativemetaproperty.pro b/tests/benchmarks/declarative/qdeclarativemetaproperty/qdeclarativemetaproperty.pro
index 8070768..79fdd26 100644
--- a/tests/benchmarks/declarative/qdeclarativemetaproperty/qdeclarativemetaproperty.pro
+++ b/tests/benchmarks/declarative/qdeclarativemetaproperty/qdeclarativemetaproperty.pro
@@ -6,3 +6,5 @@ macx:CONFIG -= app_bundle
SOURCES += tst_qdeclarativemetaproperty.cpp
+# Define SRCDIR equal to test's source directory
+DEFINES += SRCDIR=\\\"$$PWD\\\"
diff --git a/tests/benchmarks/declarative/qdeclarativemetaproperty/tst_qdeclarativemetaproperty.cpp b/tests/benchmarks/declarative/qdeclarativemetaproperty/tst_qdeclarativemetaproperty.cpp
index dae1751..8a5f4ae 100644
--- a/tests/benchmarks/declarative/qdeclarativemetaproperty/tst_qdeclarativemetaproperty.cpp
+++ b/tests/benchmarks/declarative/qdeclarativemetaproperty/tst_qdeclarativemetaproperty.cpp
@@ -42,7 +42,7 @@
#include <qtest.h>
#include <QDeclarativeEngine>
#include <QDeclarativeComponent>
-#include <QDeclarativeMetaProperty>
+#include <QDeclarativeProperty>
#include <QFile>
#include <QDebug>
@@ -89,8 +89,8 @@ void tst_qmlmetaproperty::lookup_data()
{
QTest::addColumn<QString>("file");
- QTest::newRow("Simple Object") << "data/object.qml";
- QTest::newRow("Synthesized Object") << "data/synthesized_object.qml";
+ QTest::newRow("Simple Object") << SRCDIR "/data/object.qml";
+ QTest::newRow("Synthesized Object") << SRCDIR "/data/synthesized_object.qml";
}
void tst_qmlmetaproperty::lookup()
@@ -103,7 +103,7 @@ void tst_qmlmetaproperty::lookup()
QObject *obj = c.create();
QBENCHMARK {
- QDeclarativeMetaProperty p(obj, "x");
+ QDeclarativeProperty p(obj, "x");
}
delete obj;
diff --git a/tests/benchmarks/declarative/script/tst_script.cpp b/tests/benchmarks/declarative/script/tst_script.cpp
index 61f5fc8..9dd4076 100644
--- a/tests/benchmarks/declarative/script/tst_script.cpp
+++ b/tests/benchmarks/declarative/script/tst_script.cpp
@@ -96,11 +96,6 @@ private slots:
private:
};
-void tst_script::initTestCase()
-{
- QML_REGISTER_TYPE(Qt.test, 1, 0, TestObject, TestObject);
-}
-
inline QUrl TEST_FILE(const QString &filename)
{
return QUrl::fromLocalFile(QLatin1String(SRCDIR) + QLatin1String("/data/") + filename);
@@ -147,6 +142,12 @@ int TestObject::x()
return m_x++;
}
+void tst_script::initTestCase()
+{
+ QML_REGISTER_TYPE(Qt.test, 1, 0, TestObject, TestObject);
+}
+
+
#define PROPERTY_PROGRAM \
"(function(testObject) { return (function() { " \
" var test = 0; " \