summaryrefslogtreecommitdiffstats
path: root/tests/auto/qscriptvalue
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qscriptvalue')
-rw-r--r--tests/auto/qscriptvalue/qscriptvalue.pro8
-rw-r--r--tests/auto/qscriptvalue/testgen/data.txt161
-rwxr-xr-xtests/auto/qscriptvalue/testgen/gen.py241
-rw-r--r--tests/auto/qscriptvalue/testgen/main.cpp62
-rw-r--r--tests/auto/qscriptvalue/testgen/testgen.pro18
-rw-r--r--tests/auto/qscriptvalue/testgen/testgenerator.cpp771
-rw-r--r--tests/auto/qscriptvalue/testgen/testgenerator.h74
-rw-r--r--tests/auto/qscriptvalue/tst_qscriptvalue.cpp1520
-rw-r--r--tests/auto/qscriptvalue/tst_qscriptvalue.h402
-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
14 files changed, 997 insertions, 13664 deletions
diff --git a/tests/auto/qscriptvalue/qscriptvalue.pro b/tests/auto/qscriptvalue/qscriptvalue.pro
index c3e9912..0474c32 100644
--- a/tests/auto/qscriptvalue/qscriptvalue.pro
+++ b/tests/auto/qscriptvalue/qscriptvalue.pro
@@ -3,14 +3,6 @@ QT = core gui script
SOURCES += tst_qscriptvalue.cpp
HEADERS += tst_qscriptvalue.h
-# Generated by testgen
-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!
QMAKE_CXXFLAGS_RELEASE -= -O1 -O2
diff --git a/tests/auto/qscriptvalue/testgen/data.txt b/tests/auto/qscriptvalue/testgen/data.txt
deleted file mode 100644
index 73677ec..0000000
--- a/tests/auto/qscriptvalue/testgen/data.txt
+++ /dev/null
@@ -1,161 +0,0 @@
-# Data set for QScriptValue autotest.
-
-# Each line is a c++ code that should return a QScriptValue object.
-# Lines that are empty or start with '#' will be ignored
-
-QScriptValue()
-
-#Unbound values
-QScriptValue(QScriptValue::UndefinedValue)
-QScriptValue(QScriptValue::NullValue)
-QScriptValue(true)
-QScriptValue(false)
-QScriptValue(int(122))
-QScriptValue(uint(124))
-QScriptValue(0)
-QScriptValue(0.0)
-QScriptValue(123.0)
-QScriptValue(6.37e-8)
-QScriptValue(-6.37e-8)
-QScriptValue(0x43211234)
-QScriptValue(0x10000)
-QScriptValue(0x10001)
-QScriptValue(qSNaN())
-QScriptValue(qQNaN())
-QScriptValue(qInf())
-QScriptValue(-qInf())
-QScriptValue("NaN")
-QScriptValue("Infinity")
-QScriptValue("-Infinity")
-QScriptValue("ciao")
-QScriptValue(QString::fromLatin1("ciao"))
-QScriptValue(QString(""))
-QScriptValue(QString())
-QScriptValue(QString("0"))
-QScriptValue(QString("123"))
-QScriptValue(QString("12.4"))
-#QScriptValue(QString::fromUtf8("ąśćżźółńę"))
-
-#Unbound values (bound to a null engine)
-QScriptValue(0, QScriptValue::UndefinedValue)
-QScriptValue(0, QScriptValue::NullValue)
-QScriptValue(0, true)
-QScriptValue(0, false)
-QScriptValue(0, int(122))
-QScriptValue(0, uint(124))
-QScriptValue(0, 0)
-QScriptValue(0, 0.0)
-QScriptValue(0, 123.0)
-QScriptValue(0, 6.37e-8)
-QScriptValue(0, -6.37e-8)
-QScriptValue(0, 0x43211234)
-QScriptValue(0, 0x10000)
-QScriptValue(0, 0x10001)
-QScriptValue(0, qSNaN())
-QScriptValue(0, qQNaN())
-QScriptValue(0, qInf())
-QScriptValue(0, -qInf())
-QScriptValue(0, "NaN")
-QScriptValue(0, "Infinity")
-QScriptValue(0, "-Infinity")
-QScriptValue(0, "ciao")
-QScriptValue(0, QString::fromLatin1("ciao"))
-QScriptValue(0, QString(""))
-QScriptValue(0, QString())
-QScriptValue(0, QString("0"))
-QScriptValue(0, QString("123"))
-QScriptValue(0, QString("12.3"))
-#QScriptValue(0, QString::fromUtf8("ąśćżźółńę"))
-
-#Bound values
-QScriptValue(engine, QScriptValue::UndefinedValue)
-QScriptValue(engine, QScriptValue::NullValue)
-QScriptValue(engine, true)
-QScriptValue(engine, false)
-QScriptValue(engine, int(122))
-QScriptValue(engine, uint(124))
-QScriptValue(engine, 0)
-QScriptValue(engine, 0.0)
-QScriptValue(engine, 123.0)
-QScriptValue(engine, 6.37e-8)
-QScriptValue(engine, -6.37e-8)
-QScriptValue(engine, 0x43211234)
-QScriptValue(engine, 0x10000)
-QScriptValue(engine, 0x10001)
-QScriptValue(engine, qSNaN())
-QScriptValue(engine, qQNaN())
-QScriptValue(engine, qInf())
-QScriptValue(engine, -qInf())
-QScriptValue(engine, "NaN")
-QScriptValue(engine, "Infinity")
-QScriptValue(engine, "-Infinity")
-QScriptValue(engine, "ciao")
-QScriptValue(engine, QString::fromLatin1("ciao"))
-QScriptValue(engine, QString(""))
-QScriptValue(engine, QString())
-QScriptValue(engine, QString("0"))
-QScriptValue(engine, QString("123"))
-QScriptValue(engine, QString("1.23"))
-
-# evaluate
-engine->evaluate("[]")
-engine->evaluate("{}")
-engine->evaluate("Object.prototype")
-engine->evaluate("Date.prototype")
-engine->evaluate("Array.prototype")
-engine->evaluate("Function.prototype")
-engine->evaluate("Error.prototype")
-engine->evaluate("Object")
-engine->evaluate("Array")
-engine->evaluate("Number")
-engine->evaluate("Function")
-engine->evaluate("(function() { return 1; })")
-engine->evaluate("(function() { return 'ciao'; })")
-engine->evaluate("(function() { throw new Error('foo'); })")
-engine->evaluate("/foo/")
-engine->evaluate("new Object()")
-engine->evaluate("new Array()")
-engine->evaluate("new Error()")
-engine->evaluate("a = new Object(); a.foo = 22; a.foo")
-engine->evaluate("Undefined")
-engine->evaluate("Null")
-engine->evaluate("True")
-engine->evaluate("False")
-
-engine->evaluate("undefined")
-engine->evaluate("null")
-engine->evaluate("true")
-engine->evaluate("false")
-engine->evaluate("122")
-engine->evaluate("124")
-engine->evaluate("0")
-engine->evaluate("0.0")
-engine->evaluate("123.0")
-engine->evaluate("6.37e-8")
-engine->evaluate("-6.37e-8")
-engine->evaluate("0x43211234")
-engine->evaluate("0x10000")
-engine->evaluate("0x10001")
-engine->evaluate("NaN")
-engine->evaluate("Infinity")
-engine->evaluate("-Infinity")
-engine->evaluate("'ciao'")
-engine->evaluate("''")
-engine->evaluate("'0'")
-engine->evaluate("'123'")
-engine->evaluate("'12.4'")
-#engine->evaluate(QString::fromUtf8("'ąśćżźółńę'"))
-
-#other
-engine->nullValue()
-engine->undefinedValue()
-engine->newObject()
-engine->newArray()
-engine->newArray(10)
-engine->newDate(QDateTime())
-engine->newQMetaObject(&QObject::staticMetaObject)
-engine->newVariant(QVariant())
-engine->newVariant(QVariant(123))
-engine->newVariant(QVariant(false))
-engine->newQObject(0)
-engine->newQObject(engine) \ No newline at end of file
diff --git a/tests/auto/qscriptvalue/testgen/gen.py b/tests/auto/qscriptvalue/testgen/gen.py
deleted file mode 100755
index 6e48f46..0000000
--- a/tests/auto/qscriptvalue/testgen/gen.py
+++ /dev/null
@@ -1,241 +0,0 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-
-#Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
-
-## $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$
-
-from __future__ import with_statement
-from string import Template
-
-class Options():
- """Option manager. It parse and check all paramteres, set internal variables."""
- def __init__(self, args):
- import logging as log
- log.basicConfig()
- #comand line options parser
- from optparse import OptionParser
- #load some directory searching stuff
- import os.path, sys
-
- opt = OptionParser("%prog [options] path_to_input_file path_to_output_file.")
-
- self._o, self._a = opt.parse_args(args)
-
- try:
- if not (os.path.exists(self._a[0])):
- raise Exception("Path doesn't exist")
- if len(self._a) != 2:
- raise IndexError("Only two files!")
- self._o.ipath = self._a[0]
- self._o.opath = self._a[1]
- except IndexError:
- log.error("Bad usage. Please try -h or --help")
- sys.exit(1)
- except Exception:
- log.error("Path '" + self._a[0] + " or " + self._a[1] + "' don't exist")
- sys.exit(2)
-
- def __getattr__(self, attr):
- """map all options properties into this object (remove one level of indirection)"""
- return getattr(self._o, attr)
-
-
-mainTempl = Template("""/****************************************************************************
-**
-** 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 IS AUTOGENERATED, ALL MODIFICATIONS WILL BE LAST //
-////////////////////////////////////////////////////////////////
-
-#include "testgenerator.h"
-
-#include <QtCore/qdatastream.h>
-#include <QtCore/qdatetime.h>
-#include <QtCore/qdebug.h>
-#include <QtCore/qfile.h>
-#include <QtCore/qnumeric.h>
-#include <QtCore/qvariant.h>
-#include <QtCore/qvector.h>
-#include <QtScript/qscriptvalue.h>
-#include <QtScript/qscriptengine.h>
-
-
-
-typedef bool (QScriptValue::*ComparisionType) (const QScriptValue&) const;
-static QVector<bool> compare(ComparisionType compare, QScriptValue value, const QScriptValueList& values) {
- QVector<bool> result;
- result.reserve(${count});
-
- QScriptValueList::const_iterator i = values.constBegin();
- for (; i != values.constEnd(); ++i) {
- result << (value.*compare)(*i);
- }
- return result;
-}
-
-static void dump(QDataStream& out, QScriptValue& value, const QString& expression, const QScriptValueList& allValues)
-{
- out << QString(expression);
-
- out << value.isValid();
- out << value.isBool();
- out << value.isBoolean();
- out << value.isNumber();
- out << value.isFunction();
- out << value.isNull();
- out << value.isString();
- out << value.isUndefined();
- out << value.isVariant();
- out << value.isQObject();
- out << value.isQMetaObject();
- out << value.isObject();
- out << value.isDate();
- out << value.isRegExp();
- out << value.isArray();
- out << value.isError();
-
- out << value.toString();
- out << value.toNumber();
- out << value.toBool();
- out << value.toBoolean();
- out << value.toInteger();
- out << value.toInt32();
- out << value.toUInt32();
- out << value.toUInt16();
-
- out << compare(&QScriptValue::equals, value, allValues);
- out << compare(&QScriptValue::strictlyEquals, value, allValues);
- out << compare(&QScriptValue::lessThan, value, allValues);
- out << compare(&QScriptValue::instanceOf, value, allValues);
-
- out << qscriptvalue_cast<QString>(value);
- out << qscriptvalue_cast<qsreal>(value);
- out << qscriptvalue_cast<bool>(value);
- out << qscriptvalue_cast<qint32>(value);
- out << qscriptvalue_cast<quint32>(value);
- out << qscriptvalue_cast<quint16>(value);
-}
-
-void TestGenerator::prepareData()
-{
- QScriptEngine* engine = new QScriptEngine;
-
- QScriptValueList allValues;
- allValues << ${values};
- QVector<QString> allDataTags;
- allDataTags.reserve(${count});
- allDataTags << ${dataTags};
- QDataStream out(&m_tempFile);
- out << allDataTags;
-
- for(unsigned i = 0; i < ${count}; ++i)
- dump(out, allValues[i], allDataTags[i], allValues);
-
- delete engine;
-}
-""")
-qsvTempl = Template("""
- {
- QScriptValue value = ${expr};
- dump(out, value, "${expr_esc}", allValues);
- }""")
-
-
-
-if __name__ == '__main__':
- import sys
- o = Options(sys.argv[1:])
- out = []
- qsv = []
- # load input file
- with open(o.ipath) as f:
- for row in f.readlines():
- qsv.append(row)
-
- #skip comments and empty lines
- qsv = filter(lambda w: len(w.strip()) and not w.startswith('#'), qsv)
-
- escape = lambda w: w.replace('\\','\\\\').replace('"','\\"')
-
- for row in qsv:
- row = row.replace('\n','')
- row_esc = escape(row)
- out.append(qsvTempl.substitute(expr = row, expr_esc = row_esc))
-
- result = mainTempl.safe_substitute(dump= "".join(out) \
- , values = (11 * ' ' + '<< ').join(qsv) \
- , count = len(qsv) \
- , dataTags = (11 * ' ' + '<< ').join(map(lambda w: '"' + escape(w.replace('\n','')) + '"\n', qsv)))
-
- with open(o.opath, 'w') as f:
- f.write(result)
-
-
diff --git a/tests/auto/qscriptvalue/testgen/main.cpp b/tests/auto/qscriptvalue/testgen/main.cpp
deleted file mode 100644
index 0672635..0000000
--- a/tests/auto/qscriptvalue/testgen/main.cpp
+++ /dev/null
@@ -1,62 +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 "testgenerator.h"
-#include <QtCore/qdebug.h>
-#include <QtCore/qfile.h>
-#include <QtCore/qstringlist.h>
-#include <QtCore/QCoreApplication>
-
-int main(int argc, char *argv[])
-{
- QCoreApplication a(argc, argv);
-
- if (argc != 2) {
- qWarning() << "./prog outputdir";
- exit(1);
- }
-
- //Procced
- TestGenerator gen(a.arguments()[1]);
- gen.run();
-
- return 0;
-}
diff --git a/tests/auto/qscriptvalue/testgen/testgen.pro b/tests/auto/qscriptvalue/testgen/testgen.pro
deleted file mode 100644
index 47709a8..0000000
--- a/tests/auto/qscriptvalue/testgen/testgen.pro
+++ /dev/null
@@ -1,18 +0,0 @@
-QT += core script
-TARGET = testgen
-CONFIG += console
-CONFIG -= app_bundle
-TEMPLATE = app
-
-SOURCES += main.cpp \
- testgenerator.cpp
-HEADERS += testgenerator.h
-
-
-INPUT_DATASET = data.txt
-dataset.name = Generating QScraiptValue autotest's dataset
-dataset.output = autogenerated.cpp
-dataset.commands = python gen.py data.txt autogenerated.cpp
-dataset.input = INPUT_DATASET
-dataset.variable_out = SOURCES
-QMAKE_EXTRA_COMPILERS += dataset
diff --git a/tests/auto/qscriptvalue/testgen/testgenerator.cpp b/tests/auto/qscriptvalue/testgen/testgenerator.cpp
deleted file mode 100644
index a291110..0000000
--- a/tests/auto/qscriptvalue/testgen/testgenerator.cpp
+++ /dev/null
@@ -1,771 +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 "testgenerator.h"
-
-#include <QtCore/qdatastream.h>
-#include <QtCore/qdatetime.h>
-#include <QtCore/qdebug.h>
-#include <QtCore/qnumeric.h>
-#include <QtCore/qstringlist.h>
-#include <QtCore/qtextstream.h>
-#include <QtCore/qvariant.h>
-#include <QtScript/qscriptvalue.h>
-
-void TestGenerator::save(const QHash<QString, QString>& 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)
-{
- return txt.replace("\\","\\\\").replace("\"","\\\"").replace("\n","\\n");
-}
-
-template<typename T>
-QString prepareToInsert(T value) {return QString::fromAscii("\"") + escape(value) + "\"";}
-template<>
-QString prepareToInsert<qsreal>(qsreal value)
-{
- if (qIsNaN(value))
- return "qQNaN()";
- if (qIsInf(value))
- return "qInf()";
- return QString::number(value, 'g', 16);
-}
-template<>
-QString prepareToInsert<qint32>(qint32 value) {return QString::number(value);}
-template<>
-QString prepareToInsert<quint32>(quint32 value) {return QString::number(value);}
-template<>
-QString prepareToInsert<quint16>(quint16 value) {return QString::number(value);}
-template<>
-QString prepareToInsert<bool>(bool value) {return value ? "true" : "false";}
-template<>
-QString prepareToInsert<QString>(QString value) {return QString::fromAscii("\"") + escape(value) + "\"";}
-
-template<typename T>
-QString typeName() {return QString();}
-template<>
-QString typeName<qsreal>() {return "qsreal";}
-template<>
-QString typeName<qint32>() {return "qint32";}
-template<>
-QString typeName<quint32>() {return "quint32";}
-template<>
-QString typeName<quint16>() {return "quint16";}
-template<>
-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"\
- "{\n"\
- " QTest::addColumn<bool>(\"expected\");\n"\
- " 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.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"\
- "\n"\
- "void tst_QScriptValue::%1_test(const char*, const QScriptValue& value)\n"\
- "{\n"\
- " QFETCH(bool, expected);\n"\
- " QCOMPARE(value.%1(), expected);\n"\
- " QCOMPARE(value.%1(), expected);\n"\
- "}\n"\
- "\n"\
- "DEFINE_TEST_FUNCTION(%1)\n"\
- "\n");
-
- if (!list.size()) {
- qWarning() << name << ": nothing to add!" ;
- return QString();
- }
-
- QString result = templ;
- QStringList set;
- set.reserve(3 * list.count());
- foreach(const QString& t, list) {
- set.append("\n \"");
- set.append(escape(t));
- set.append("\",");
- }
-
- return result.arg(name, set.join(QString()), QString::number(list.count()));
-}
-
-template<typename T>
-static QString generateToXXXDef(const QString& name, const QList<QPair<QString, T> >& list)
-{
- static const QString templ = "\n"\
- "void tst_QScriptValue::%1_initData()\n"\
- "{\n"\
- " QTest::addColumn<%2>(\"expected\");\n"\
- " 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"\
- " %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"\
- "\n"\
- "void tst_QScriptValue::%1_test(const char*, const QScriptValue& value)\n"\
- "{\n"\
- " QFETCH(%2, expected);\n"\
- " QCOMPARE(value.%1(), expected);\n"\
- " QCOMPARE(value.%1(), expected);\n"\
- "}\n"\
- "\n"\
- "DEFINE_TEST_FUNCTION(%1)\n";
- QString result = templ;
-
- typename QList<QPair<QString, T> >::const_iterator i = list.constBegin();
- 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);
- 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>(),
- QString::number(list.count()),
- tagSet.join(QString()),
- valueSet.join(QString()));
-}
-
-
-template<>
-QString generateToXXXDef<qsreal>(const QString& name, const QList<QPair<QString, qsreal> >& list)
-{
- static const QString templ = "\n"\
- "void tst_QScriptValue::%1_initData()\n"\
- "{\n"\
- " QTest::addColumn<%2>(\"expected\");\n"\
- " 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"\
- " %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"\
- "\n"\
- "void tst_QScriptValue::%1_test(const char*, const QScriptValue& value)\n"\
- "{\n"\
- " QFETCH(%2, expected);\n"\
- "%666"
- " if (qIsInf(expected)) {\n"\
- " QVERIFY(qIsInf(value.%1()));\n"\
- " QVERIFY(qIsInf(value.%1()));\n"\
- " return;\n"\
- " }\n"\
- " QCOMPARE(value.%1(), expected);\n"\
- " QCOMPARE(value.%1(), expected);\n"\
- "}\n"\
- "\n"\
- "DEFINE_TEST_FUNCTION(%1)\n";
- QString result = templ;
-
- QList<QPair<QString, qsreal> >::const_iterator i = list.constBegin();
- 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);
- 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;
- if (name == "toNumber") {
- hook =
- " if (qIsNaN(expected)) {\n"\
- " QVERIFY(qIsNaN(value.toNumber()));\n"\
- " return;\n"\
- " }\n";
- }
- 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%1_initData()\n"\
- "{\n"\
- " QTest::addColumn<%1>(\"expected\");\n"\
- " initScriptValues();\n"\
- "}\n"\
- "\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, %1> value;\n"\
- " if (value.isEmpty()) {\n"\
- " 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%1_test(const char*, const QScriptValue& value)\n"\
- "{\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%1)\n";
- QString result = templ;
-
- typename QList<QPair<QString, T> >::const_iterator i = list.constBegin();
- 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);
- 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>(), 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%1_initData()\n"\
- "{\n"\
- " QTest::addColumn<%1>(\"expected\");\n"\
- " initScriptValues();\n"\
- "}\n"\
- "\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, %1> value;\n"\
- " if (value.isEmpty()) {\n"\
- " 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%1_test(const char*, const QScriptValue& value)\n"\
- "{\n"\
- " QFETCH(%1, expected);\n"\
- " if (qIsNaN(expected)) {\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<%1>(value)));\n"
- " QVERIFY(qIsInf(qscriptvalue_cast<%1>(value)));\n"
- " return;\n"
- " }\n"
- " QCOMPARE(qscriptvalue_cast<%1>(value), expected);\n"\
- " QCOMPARE(qscriptvalue_cast<%1>(value), expected);\n"\
- "}\n"\
- "\n"\
- "DEFINE_TEST_FUNCTION(qscriptvalue_cast%1)\n";
- QString result = templ;
-
- QList<QPair<QString, qsreal> >::const_iterator i = list.constBegin();
- 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);
- 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>(),
- tagSet.join(QString()),
- valueSet.join(QString()),
- QString::number(list.count()));
-}
-
-static QString generateCompareDef(const QString& comparisionType, const QList<QString> tags)
-{
- static const QString templ = "\n"\
- "void tst_QScriptValue::%1_initData()\n"\
- "{\n"\
- " QTest::addColumn<QScriptValue>(\"other\");\n"\
- " QTest::addColumn<bool>(\"expected\");\n"\
- " 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"\
- " 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"\
- " QString tag = QString::fromLatin1(\"%20 <=> %21\").arg(expr).arg(it.key());\n"\
- " newRow(tag.toLatin1()) << it.value() << equals.contains(tag);\n"\
- " }\n"\
- "}\n"\
- "\n"\
- "void tst_QScriptValue::%1_test(const char *, const QScriptValue& value)\n"\
- "{\n"\
- " QFETCH(QScriptValue, other);\n"\
- " QFETCH(bool, expected);\n"\
- " QCOMPARE(value.%1(other), expected);\n"\
- "}\n"\
- "\n"\
- "DEFINE_TEST_FUNCTION(%1)\n";
- Q_ASSERT(comparisionType == "strictlyEquals"
- || comparisionType == "equals"
- || comparisionType == "lessThan"
- || comparisionType == "instanceOf");
- QString result = templ;
-
- QStringList set;
- set.reserve(tags.count());
- foreach(const QString& tmp, tags) {
- set.append("\n \"" + escape(tmp) + "\",");
- }
- return result.arg(comparisionType, set.join(""), QString::number(tags.count()));
-}
-
-static QString generateInitDef(const QVector<QString>& allDataTags)
-{
- static const QString templ = "void tst_QScriptValue::initScriptValues()\n"\
- "{\n"\
- " m_values.clear();\n"\
- " if (engine) \n"\
- " delete engine;\n"\
- " engine = new QScriptEngine;\n"\
- "%1\n}\n\n";
- QString result = templ;
- QStringList set;
- foreach(const QString tag, allDataTags) {
- set.append(" DEFINE_TEST_VALUE(" + tag + ");");
- }
-
- return result.arg(set.join("\n"));
-}
-
-static void squashTags(QString dataTag, const QVector<bool>& results, QList<QString>& tags, QVector<QString> dataTags)
-{
- for(int i = 0; i < results.count(); ++i) {
- if (results.at(i))
- tags.append(dataTag + " <=> " + dataTags[i]);
- }
-}
-
-
-QHash<QString, QString> TestGenerator::generateTest()
-{
- // All data tags keept in one place.
- QVector<QString> dataTags;
-
- // Data tags for values that return true in isXXX call
- QList<QString> isValidList;
- QList<QString> isBoolList;
- QList<QString> isBooleanList;
- QList<QString> isNumberList;
- QList<QString> isFunctionList;
- QList<QString> isNullList;
- QList<QString> isStringList;
- QList<QString> isUndefinedList;
- QList<QString> isVariantList;
- QList<QString> isQObjectList;
- QList<QString> isQMetaObjectList;
- QList<QString> isObjectList;
- QList<QString> isDateList;
- QList<QString> isRegExpList;
- QList<QString> isArrayList;
- QList<QString> isErrorList;
-
- // List of pairs data tag and value returned from toXXX call
- QList<QPair<QString, QString> > toStringList;
- QList<QPair<QString, qsreal> > toNumberList;
- QList<QPair<QString, bool> > toBoolList;
- QList<QPair<QString, bool> > toBooleanList;
- QList<QPair<QString, qsreal> > toIntegerList;
- QList<QPair<QString, qint32> > toInt32List;
- QList<QPair<QString, quint32> > toUInt32List;
- QList<QPair<QString, quint16> > toUInt16List;
-
- // List of complex tags returning true
- QList<QString> equalsList;
- QList<QString> strictlyEqualsList;
- QList<QString> lessThanList;
- QList<QString> instanceOfList;
-
- QList<QPair<QString, QString> > castStringList;
- QList<QPair<QString, qsreal> > castSRealList;
- QList<QPair<QString, bool> > castBoolList;
- QList<QPair<QString, qint32> > castInt32List;
- QList<QPair<QString, quint32> > castUInt32List;
- QList<QPair<QString, quint16> > castUInt16List;
-
- // Load.
- m_tempFile.seek(0);
- QDataStream in(&m_tempFile);
- in >> dataTags;
- Q_ASSERT(in.status() == in.Ok);
-
- while(!in.atEnd())
- {
- bool isValidRes;
- bool isBoolRes;
- bool isBooleanRes;
- bool isNumberRes;
- bool isFunctionRes;
- bool isNullRes;
- bool isStringRes;
- bool isUndefinedRes;
- bool isVariantRes;
- bool isQObjectRes;
- bool isQMetaObjectRes;
- bool isObjectRes;
- bool isDateRes;
- bool isRegExpRes;
- bool isArrayRes;
- bool isErrorRes;
-
- QString toStringRes;
- qsreal toNumberRes;
- bool toBoolRes;
- bool toBooleanRes;
- qsreal toIntegerRes;
- qint32 toInt32Res;
- quint32 toUInt32Res;
- quint16 toUInt16Res;
- //toVariantRes;
- //toDateTimeRes;
-
- QVector<bool> equalsRes;
- QVector<bool> strictlyEqualsRes;
- QVector<bool> lessThanRes;
- QVector<bool> instanceOfRes;
-
- QString castStringRes;
- qsreal castSRealRes;
- bool castBoolRes;
- qint32 castInt32Res;
- quint32 castUInt32Res;
- quint16 castUInt16Res;
-
- QString dataTag;
- in >> dataTag;
- in >> isValidRes;
- in >> isBoolRes;
- in >> isBooleanRes;
- in >> isNumberRes;
- in >> isFunctionRes;
- in >> isNullRes;
- in >> isStringRes;
- in >> isUndefinedRes;
- in >> isVariantRes;
- in >> isQObjectRes;
- in >> isQMetaObjectRes;
- in >> isObjectRes;
- in >> isDateRes;
- in >> isRegExpRes;
- in >> isArrayRes;
- in >> isErrorRes;
-
- if (isValidRes) isValidList.append(dataTag);
- if (isBoolRes) isBoolList.append(dataTag);
- if (isBooleanRes) isBooleanList.append(dataTag);
- if (isNumberRes) isNumberList.append(dataTag);
- if (isFunctionRes) isFunctionList.append(dataTag);
- if (isNullRes) isNullList.append(dataTag);
- if (isStringRes) isStringList.append(dataTag);
- if (isUndefinedRes) isUndefinedList.append(dataTag);
- if (isVariantRes) isVariantList.append(dataTag);
- if (isQObjectRes) isQObjectList.append(dataTag);
- if (isQMetaObjectRes) isQMetaObjectList.append(dataTag);
- if (isObjectRes) isObjectList.append(dataTag);
- if (isDateRes) isDateList.append(dataTag);
- if (isRegExpRes) isRegExpList.append(dataTag);
- if (isArrayRes) isArrayList.append(dataTag);
- if (isErrorRes) isErrorList.append(dataTag);
-
- in >> toStringRes;
- in >> toNumberRes;
- in >> toBoolRes;
- in >> toBooleanRes;
- in >> toIntegerRes;
- in >> toInt32Res;
- in >> toUInt32Res;
- in >> toUInt16Res;
- //in >> toVariantRes;
- //in >> toDateTimeRes;
-
- toStringList.append(QPair<QString, QString>(dataTag, toStringRes));
- toNumberList.append(QPair<QString, qsreal>(dataTag, toNumberRes));
- toBoolList.append(QPair<QString, bool>(dataTag, toBoolRes));
- toBooleanList.append(QPair<QString, bool>(dataTag, toBooleanRes));
- toIntegerList.append(QPair<QString, qsreal>(dataTag, toIntegerRes));
- toInt32List.append(QPair<QString, qint32>(dataTag, toInt32Res));
- toUInt32List.append(QPair<QString, quint32>(dataTag, toUInt32Res));
- toUInt16List.append(QPair<QString, quint16>(dataTag, toUInt16Res));
-
- in >> equalsRes;
- in >> strictlyEqualsRes;
- in >> lessThanRes;
- in >> instanceOfRes;
-
- squashTags(dataTag, equalsRes, equalsList, dataTags);
- squashTags(dataTag, strictlyEqualsRes, strictlyEqualsList, dataTags);
- squashTags(dataTag, lessThanRes, lessThanList, dataTags);
- squashTags(dataTag, instanceOfRes, instanceOfList, dataTags);
-
- in >> castStringRes;
- in >> castSRealRes;
- in >> castBoolRes;
- in >> castInt32Res;
- in >> castUInt32Res;
- in >> castUInt16Res;
-
- castStringList.append(QPair<QString, QString>(dataTag, castStringRes));
- castSRealList.append(QPair<QString, qsreal>(dataTag, castSRealRes));
- castBoolList.append(QPair<QString, bool>(dataTag, castBoolRes));
- castInt32List.append(QPair<QString, qint32>(dataTag, castInt32Res));
- castUInt32List.append(QPair<QString, quint32>(dataTag, castUInt32Res));
- castUInt16List.append(QPair<QString, quint16>(dataTag, castUInt16Res));
-
- Q_ASSERT(in.status() == in.Ok);
- }
-
- Q_ASSERT(in.atEnd());
-
- // Generate.
- 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
deleted file mode 100644
index 1c61fc5..0000000
--- a/tests/auto/qscriptvalue/testgen/testgenerator.h
+++ /dev/null
@@ -1,74 +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$
-**
-****************************************************************************/
-
-#ifndef TESTGENERATOR_H
-#define TESTGENERATOR_H
-
-#include <QtCore/qdebug.h>
-#include <QtCore/qfile.h>
-#include <QtCore/qtemporaryfile.h>
-
-class TestGenerator {
-public:
- TestGenerator(QString& outputpath)
- : m_opath(outputpath)
- {
- if (!m_opath.endsWith('/'))
- m_opath.append('/');
- m_tempFile.open();
- }
-
- void run()
- {
- prepareData();
- Q_ASSERT(m_tempFile.size());
- save(generateTest());
- }
-
- void prepareData();
- QHash<QString, QString> generateTest();
- void save(const QHash<QString, QString>& data);
-private:
- QString m_opath;
- QTemporaryFile m_tempFile;
-};
-
-#endif // TESTGENERATOR_H
diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp
index 53e2699..de753d2 100644
--- a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp
+++ b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp
@@ -56,64 +56,11 @@ tst_QScriptValue::tst_QScriptValue()
tst_QScriptValue::~tst_QScriptValue()
{
- delete engine;
+ if (engine)
+ delete engine;
}
-void tst_QScriptValue::dataHelper(InitDataFunction init, DefineDataFunction define)
-{
- QTest::addColumn<QString>("__expression__");
- (this->*init)();
- QHash<QString,QScriptValue>::const_iterator it;
- for (it = m_values.constBegin(); it != m_values.constEnd(); ++it) {
- m_currentExpression = it.key();
- (this->*define)(it.key().toLatin1());
- }
- m_currentExpression = QString();
-}
-
-QTestData &tst_QScriptValue::newRow(const char *tag)
-{
- return QTest::newRow(tag) << m_currentExpression;
-}
-
-void tst_QScriptValue::testHelper(TestFunction fun)
-{
- QFETCH(QString, __expression__);
- QScriptValue value = m_values.value(__expression__);
- (this->*fun)(__expression__.toLatin1(), value);
-}
-
-void tst_QScriptValue::assignAndCopyConstruct_initData()
-{
- QTest::addColumn<int>("dummy");
- initScriptValues();
-}
-
-void tst_QScriptValue::assignAndCopyConstruct_makeData(const char *expr)
-{
- newRow(expr) << 0;
-}
-
-void tst_QScriptValue::assignAndCopyConstruct_test(const char *, const QScriptValue &value)
-{
- QScriptValue copy(value);
- QCOMPARE(copy.strictlyEquals(value), !value.isNumber() || !qIsNaN(value.toNumber()));
- QCOMPARE(copy.engine(), value.engine());
-
- QScriptValue assigned = copy;
- QCOMPARE(assigned.strictlyEquals(value), !copy.isNumber() || !qIsNaN(copy.toNumber()));
- QCOMPARE(assigned.engine(), assigned.engine());
-
- QScriptValue other(!value.toBool());
- assigned = other;
- QVERIFY(!assigned.strictlyEquals(copy));
- QVERIFY(assigned.strictlyEquals(other));
- QCOMPARE(assigned.engine(), other.engine());
-}
-
-DEFINE_TEST_FUNCTION(assignAndCopyConstruct)
-
-void tst_QScriptValue::ctor()
+void tst_QScriptValue::ctor_invalid()
{
QScriptEngine eng;
{
@@ -121,6 +68,11 @@ void tst_QScriptValue::ctor()
QCOMPARE(v.isValid(), false);
QCOMPARE(v.engine(), (QScriptEngine *)0);
}
+}
+
+void tst_QScriptValue::ctor_undefinedWithEngine()
+{
+ QScriptEngine eng;
{
QScriptValue v(&eng, QScriptValue::UndefinedValue);
QCOMPARE(v.isValid(), true);
@@ -128,6 +80,11 @@ void tst_QScriptValue::ctor()
QCOMPARE(v.isObject(), false);
QCOMPARE(v.engine(), &eng);
}
+}
+
+void tst_QScriptValue::ctor_nullWithEngine()
+{
+ QScriptEngine eng;
{
QScriptValue v(&eng, QScriptValue::NullValue);
QCOMPARE(v.isValid(), true);
@@ -135,6 +92,11 @@ void tst_QScriptValue::ctor()
QCOMPARE(v.isObject(), false);
QCOMPARE(v.engine(), &eng);
}
+}
+
+void tst_QScriptValue::ctor_boolWithEngine()
+{
+ QScriptEngine eng;
{
QScriptValue v(&eng, false);
QCOMPARE(v.isValid(), true);
@@ -144,6 +106,11 @@ void tst_QScriptValue::ctor()
QCOMPARE(v.toBoolean(), false);
QCOMPARE(v.engine(), &eng);
}
+}
+
+void tst_QScriptValue::ctor_intWithEngine()
+{
+ QScriptEngine eng;
{
QScriptValue v(&eng, int(1));
QCOMPARE(v.isValid(), true);
@@ -152,132 +119,102 @@ void tst_QScriptValue::ctor()
QCOMPARE(v.toNumber(), 1.0);
QCOMPARE(v.engine(), &eng);
}
+}
+
+void tst_QScriptValue::ctor_int()
+{
{
QScriptValue v(int(0x43211234));
QVERIFY(v.isNumber());
QCOMPARE(v.toInt32(), 0x43211234);
}
{
- QScriptValue v(&eng, uint(1));
+ QScriptValue v(int(1));
QCOMPARE(v.isValid(), true);
QCOMPARE(v.isNumber(), true);
QCOMPARE(v.isObject(), false);
QCOMPARE(v.toNumber(), 1.0);
- QCOMPARE(v.engine(), &eng);
- }
- {
- QScriptValue v(uint(0x43211234));
- QVERIFY(v.isNumber());
- QCOMPARE(v.toUInt32(), uint(0x43211234));
+ QCOMPARE(v.engine(), (QScriptEngine *)0);
}
+}
+
+void tst_QScriptValue::ctor_uintWithEngine()
+{
+ QScriptEngine eng;
{
- QScriptValue v(&eng, 1.0);
+ QScriptValue v(&eng, uint(1));
QCOMPARE(v.isValid(), true);
QCOMPARE(v.isNumber(), true);
QCOMPARE(v.isObject(), false);
QCOMPARE(v.toNumber(), 1.0);
QCOMPARE(v.engine(), &eng);
}
+}
+
+void tst_QScriptValue::ctor_uint()
+{
{
- QScriptValue v(12345678910.5);
+ QScriptValue v(uint(0x43211234));
QVERIFY(v.isNumber());
- QCOMPARE(v.toNumber(), 12345678910.5);
- }
- {
- QScriptValue v(&eng, "ciao");
- QCOMPARE(v.isValid(), true);
- QCOMPARE(v.isString(), true);
- QCOMPARE(v.isObject(), false);
- QCOMPARE(v.toString(), QLatin1String("ciao"));
- QCOMPARE(v.engine(), &eng);
+ QCOMPARE(v.toUInt32(), uint(0x43211234));
}
{
- QScriptValue v(&eng, QString("ciao"));
+ QScriptValue v(uint(1));
QCOMPARE(v.isValid(), true);
- QCOMPARE(v.isString(), true);
+ QCOMPARE(v.isNumber(), true);
QCOMPARE(v.isObject(), false);
- QCOMPARE(v.toString(), QLatin1String("ciao"));
- QCOMPARE(v.engine(), &eng);
- }
- // copy constructor, operator=
- {
- QScriptValue v(&eng, 1.0);
- QScriptValue v2(v);
- QCOMPARE(v2.strictlyEquals(v), true);
- QCOMPARE(v2.engine(), &eng);
-
- QScriptValue v3(v);
- QCOMPARE(v3.strictlyEquals(v), true);
- QCOMPARE(v3.strictlyEquals(v2), true);
- QCOMPARE(v3.engine(), &eng);
-
- QScriptValue v4(&eng, 2.0);
- QCOMPARE(v4.strictlyEquals(v), false);
- v3 = v4;
- QCOMPARE(v3.strictlyEquals(v), false);
- QCOMPARE(v3.strictlyEquals(v4), true);
-
- v2 = QScriptValue();
- QCOMPARE(v2.strictlyEquals(v), false);
QCOMPARE(v.toNumber(), 1.0);
-
- QScriptValue v5(v);
- QCOMPARE(v5.strictlyEquals(v), true);
- v = QScriptValue();
- QCOMPARE(v5.strictlyEquals(v), false);
- QCOMPARE(v5.toNumber(), 1.0);
- }
-
- // constructors that take no engine argument
- {
- QScriptValue v(QScriptValue::UndefinedValue);
- QCOMPARE(v.isValid(), true);
- QCOMPARE(v.isUndefined(), true);
- QCOMPARE(v.isObject(), false);
- QCOMPARE(v.engine(), (QScriptEngine *)0);
- }
- {
- QScriptValue v(QScriptValue::NullValue);
- QCOMPARE(v.isValid(), true);
- QCOMPARE(v.isNull(), true);
- QCOMPARE(v.isObject(), false);
- QCOMPARE(v.engine(), (QScriptEngine *)0);
- }
- {
- QScriptValue v(false);
- QCOMPARE(v.isValid(), true);
- QCOMPARE(v.isBoolean(), true);
- QCOMPARE(v.isBool(), true);
- QCOMPARE(v.isObject(), false);
- QCOMPARE(v.toBoolean(), false);
QCOMPARE(v.engine(), (QScriptEngine *)0);
}
+}
+
+void tst_QScriptValue::ctor_floatWithEngine()
+{
+ QScriptEngine eng;
{
- QScriptValue v(int(1));
+ QScriptValue v(&eng, 1.0);
QCOMPARE(v.isValid(), true);
QCOMPARE(v.isNumber(), true);
QCOMPARE(v.isObject(), false);
QCOMPARE(v.toNumber(), 1.0);
- QCOMPARE(v.engine(), (QScriptEngine *)0);
+ QCOMPARE(v.engine(), &eng);
}
+}
+
+void tst_QScriptValue::ctor_float()
+{
{
- QScriptValue v(uint(1));
+ QScriptValue v(12345678910.5);
+ QVERIFY(v.isNumber());
+ QCOMPARE(v.toNumber(), 12345678910.5);
+ }
+ {
+ QScriptValue v(1.0);
QCOMPARE(v.isValid(), true);
QCOMPARE(v.isNumber(), true);
QCOMPARE(v.isObject(), false);
QCOMPARE(v.toNumber(), 1.0);
QCOMPARE(v.engine(), (QScriptEngine *)0);
}
+}
+
+void tst_QScriptValue::ctor_stringWithEngine()
+{
+ QScriptEngine eng;
{
- QScriptValue v(1.0);
+ QScriptValue v(&eng, "ciao");
QCOMPARE(v.isValid(), true);
- QCOMPARE(v.isNumber(), true);
+ QCOMPARE(v.isString(), true);
QCOMPARE(v.isObject(), false);
- QCOMPARE(v.toNumber(), 1.0);
- QCOMPARE(v.engine(), (QScriptEngine *)0);
+ QCOMPARE(v.toString(), QLatin1String("ciao"));
+ QCOMPARE(v.engine(), &eng);
}
+}
+
+void tst_QScriptValue::ctor_string()
+{
{
- QScriptValue v("ciao");
+ QScriptValue v(QString("ciao"));
QCOMPARE(v.isValid(), true);
QCOMPARE(v.isString(), true);
QCOMPARE(v.isObject(), false);
@@ -285,26 +222,31 @@ void tst_QScriptValue::ctor()
QCOMPARE(v.engine(), (QScriptEngine *)0);
}
{
- QScriptValue v(QString("ciao"));
+ QScriptValue v("ciao");
QCOMPARE(v.isValid(), true);
QCOMPARE(v.isString(), true);
QCOMPARE(v.isObject(), false);
QCOMPARE(v.toString(), QLatin1String("ciao"));
QCOMPARE(v.engine(), (QScriptEngine *)0);
}
+}
+
+void tst_QScriptValue::ctor_copyAndAssignWithEngine()
+{
+ QScriptEngine eng;
// copy constructor, operator=
{
- QScriptValue v(1.0);
+ QScriptValue v(&eng, 1.0);
QScriptValue v2(v);
QCOMPARE(v2.strictlyEquals(v), true);
- QCOMPARE(v2.engine(), (QScriptEngine *)0);
+ QCOMPARE(v2.engine(), &eng);
QScriptValue v3(v);
QCOMPARE(v3.strictlyEquals(v), true);
QCOMPARE(v3.strictlyEquals(v2), true);
- QCOMPARE(v3.engine(), (QScriptEngine *)0);
+ QCOMPARE(v3.engine(), &eng);
- QScriptValue v4(2.0);
+ QScriptValue v4(&eng, 2.0);
QCOMPARE(v4.strictlyEquals(v), false);
v3 = v4;
QCOMPARE(v3.strictlyEquals(v), false);
@@ -320,7 +262,68 @@ void tst_QScriptValue::ctor()
QCOMPARE(v5.strictlyEquals(v), false);
QCOMPARE(v5.toNumber(), 1.0);
}
+}
+void tst_QScriptValue::ctor_undefined()
+{
+ QScriptValue v(QScriptValue::UndefinedValue);
+ QCOMPARE(v.isValid(), true);
+ QCOMPARE(v.isUndefined(), true);
+ QCOMPARE(v.isObject(), false);
+ QCOMPARE(v.engine(), (QScriptEngine *)0);
+}
+
+void tst_QScriptValue::ctor_null()
+{
+ QScriptValue v(QScriptValue::NullValue);
+ QCOMPARE(v.isValid(), true);
+ QCOMPARE(v.isNull(), true);
+ QCOMPARE(v.isObject(), false);
+ QCOMPARE(v.engine(), (QScriptEngine *)0);
+}
+
+void tst_QScriptValue::ctor_bool()
+{
+ QScriptValue v(false);
+ QCOMPARE(v.isValid(), true);
+ QCOMPARE(v.isBoolean(), true);
+ QCOMPARE(v.isBool(), true);
+ QCOMPARE(v.isObject(), false);
+ QCOMPARE(v.toBoolean(), false);
+ QCOMPARE(v.engine(), (QScriptEngine *)0);
+}
+
+void tst_QScriptValue::ctor_copyAndAssign()
+{
+ QScriptValue v(1.0);
+ QScriptValue v2(v);
+ QCOMPARE(v2.strictlyEquals(v), true);
+ QCOMPARE(v2.engine(), (QScriptEngine *)0);
+
+ QScriptValue v3(v);
+ QCOMPARE(v3.strictlyEquals(v), true);
+ QCOMPARE(v3.strictlyEquals(v2), true);
+ QCOMPARE(v3.engine(), (QScriptEngine *)0);
+
+ QScriptValue v4(2.0);
+ QCOMPARE(v4.strictlyEquals(v), false);
+ v3 = v4;
+ QCOMPARE(v3.strictlyEquals(v), false);
+ QCOMPARE(v3.strictlyEquals(v4), true);
+
+ v2 = QScriptValue();
+ QCOMPARE(v2.strictlyEquals(v), false);
+ QCOMPARE(v.toNumber(), 1.0);
+
+ QScriptValue v5(v);
+ QCOMPARE(v5.strictlyEquals(v), true);
+ v = QScriptValue();
+ QCOMPARE(v5.strictlyEquals(v), false);
+ QCOMPARE(v5.toNumber(), 1.0);
+}
+
+void tst_QScriptValue::ctor_nullEngine()
+{
// 0 engine
QVERIFY(QScriptValue(0, QScriptValue::UndefinedValue).isUndefined());
QVERIFY(QScriptValue(0, QScriptValue::NullValue).isNull());
@@ -337,7 +340,7 @@ static QScriptValue myFunction(QScriptContext *, QScriptEngine *eng)
return eng->undefinedValue();
}
-void tst_QScriptValue::toString_old()
+void tst_QScriptValue::toString()
{
QScriptEngine eng;
@@ -451,7 +454,7 @@ void tst_QScriptValue::toString_old()
QVERIFY(variant.toString().isEmpty());
}
-void tst_QScriptValue::toNumber_old()
+void tst_QScriptValue::toNumber()
{
QScriptEngine eng;
@@ -524,7 +527,7 @@ void tst_QScriptValue::toNumber_old()
}
}
-void tst_QScriptValue::toBoolean_old() // deprecated
+void tst_QScriptValue::toBoolean() // deprecated
{
QScriptEngine eng;
@@ -621,7 +624,7 @@ void tst_QScriptValue::toBoolean_old() // deprecated
}
}
-void tst_QScriptValue::toBool_old()
+void tst_QScriptValue::toBool()
{
QScriptEngine eng;
@@ -718,7 +721,7 @@ void tst_QScriptValue::toBool_old()
}
}
-void tst_QScriptValue::toInteger_old()
+void tst_QScriptValue::toInteger()
{
QScriptEngine eng;
@@ -805,7 +808,7 @@ void tst_QScriptValue::toInteger_old()
QCOMPARE(inv.toInteger(), 0.0);
}
-void tst_QScriptValue::toInt32_old()
+void tst_QScriptValue::toInt32()
{
QScriptEngine eng;
@@ -941,7 +944,7 @@ void tst_QScriptValue::toInt32_old()
QCOMPARE(qscriptvalue_cast<qint32>(inv), 0);
}
-void tst_QScriptValue::toUInt32_old()
+void tst_QScriptValue::toUInt32()
{
QScriptEngine eng;
@@ -1073,7 +1076,7 @@ void tst_QScriptValue::toUInt32_old()
QCOMPARE(qscriptvalue_cast<quint32>(inv), quint32(0));
}
-void tst_QScriptValue::toUInt16_old()
+void tst_QScriptValue::toUInt16()
{
QScriptEngine eng;
@@ -1234,7 +1237,7 @@ void tst_QScriptValue::toUInt16_old()
Q_DECLARE_METATYPE(QVariant)
#endif
-void tst_QScriptValue::toVariant_old()
+void tst_QScriptValue::toVariant()
{
QScriptEngine eng;
@@ -1341,7 +1344,7 @@ void tst_QScriptValue::toVariant_old()
// unfortunately, this is necessary in order to do qscriptvalue_cast<QPushButton*>(...)
Q_DECLARE_METATYPE(QPushButton*)
-void tst_QScriptValue::toQObject_old()
+void tst_QScriptValue::toQObject()
{
QScriptEngine eng;
@@ -1548,7 +1551,7 @@ void tst_QScriptValue::toObject()
}
}
-void tst_QScriptValue::toDateTime_old()
+void tst_QScriptValue::toDateTime()
{
QScriptEngine eng;
QDateTime dt = eng.evaluate("new Date(0)").toDateTime();
@@ -1566,7 +1569,7 @@ void tst_QScriptValue::toDateTime_old()
QVERIFY(!eng.undefinedValue().toDateTime().isValid());
}
-void tst_QScriptValue::toRegExp_old()
+void tst_QScriptValue::toRegExp()
{
QScriptEngine eng;
{
@@ -1596,7 +1599,16 @@ void tst_QScriptValue::toRegExp_old()
QVERIFY(eng.undefinedValue().toRegExp().isEmpty());
}
-void tst_QScriptValue::instanceOf_old()
+void tst_QScriptValue::instanceOf_twoEngines()
+{
+ QScriptEngine eng;
+ QScriptValue obj = eng.newObject();
+ QScriptEngine otherEngine;
+ QTest::ignoreMessage(QtWarningMsg, "QScriptValue::instanceof: cannot perform operation on a value created in a different engine");
+ QCOMPARE(obj.instanceOf(otherEngine.globalObject().property("Object")), false);
+}
+
+void tst_QScriptValue::instanceOf()
{
QScriptEngine eng;
QScriptValue obj = eng.newObject();
@@ -1626,40 +1638,60 @@ void tst_QScriptValue::instanceOf_old()
QCOMPARE(arr.instanceOf(eng.evaluate("QObject")), false);
QCOMPARE(QScriptValue().instanceOf(arr), false);
+}
- QScriptEngine otherEngine;
- QTest::ignoreMessage(QtWarningMsg, "QScriptValue::instanceof: cannot perform operation on a value created in a different engine");
- QCOMPARE(obj.instanceOf(otherEngine.globalObject().property("Object")), false);
+void tst_QScriptValue::isArray_data()
+{
+ newEngine();
+
+ QTest::addColumn<QScriptValue>("value");
+ QTest::addColumn<bool>("array");
+
+ QTest::newRow("[]") << engine->evaluate("[]") << true;
+ QTest::newRow("{}") << engine->evaluate("{}") << false;
+ QTest::newRow("globalObject") << engine->globalObject() << false;
+ QTest::newRow("invalid") << QScriptValue() << false;
+ QTest::newRow("number") << QScriptValue(123) << false;
+ QTest::newRow("bool") << QScriptValue(false) << false;
+ QTest::newRow("null") << engine->nullValue() << false;
+ QTest::newRow("undefined") << engine->undefinedValue() << false;
}
-void tst_QScriptValue::isArray_old()
+void tst_QScriptValue::isArray()
{
- QScriptEngine eng;
- QVERIFY(eng.evaluate("[]").isArray());
- QVERIFY(!eng.evaluate("{}").isArray());
- QVERIFY(!eng.globalObject().isArray());
- QVERIFY(!QScriptValue().isArray());
- QVERIFY(!QScriptValue(123).isArray());
- QVERIFY(!QScriptValue(false).isArray());
- QVERIFY(!eng.nullValue().isArray());
- QVERIFY(!eng.undefinedValue().isArray());
+ QFETCH(QScriptValue, value);
+ QFETCH(bool, array);
+
+ QCOMPARE(value.isArray(), array);
}
-void tst_QScriptValue::isDate_old()
+void tst_QScriptValue::isDate_data()
{
- QScriptEngine eng;
- QVERIFY(eng.evaluate("new Date()").isDate());
- QVERIFY(!eng.evaluate("[]").isDate());
- QVERIFY(!eng.evaluate("{}").isDate());
- QVERIFY(!eng.globalObject().isDate());
- QVERIFY(!QScriptValue().isDate());
- QVERIFY(!QScriptValue(123).isDate());
- QVERIFY(!QScriptValue(false).isDate());
- QVERIFY(!eng.nullValue().isDate());
- QVERIFY(!eng.undefinedValue().isDate());
+ newEngine();
+
+ QTest::addColumn<QScriptValue>("value");
+ QTest::addColumn<bool>("date");
+
+ QTest::newRow("date") << engine->evaluate("new Date()") << true;
+ QTest::newRow("[]") << engine->evaluate("[]") << false;
+ QTest::newRow("{}") << engine->evaluate("{}") << false;
+ QTest::newRow("globalObject") << engine->globalObject() << false;
+ QTest::newRow("invalid") << QScriptValue() << false;
+ QTest::newRow("number") << QScriptValue(123) << false;
+ QTest::newRow("bool") << QScriptValue(false) << false;
+ QTest::newRow("null") << engine->nullValue() << false;
+ QTest::newRow("undefined") << engine->undefinedValue() << false;
}
-void tst_QScriptValue::isError_old()
+void tst_QScriptValue::isDate()
+{
+ QFETCH(QScriptValue, value);
+ QFETCH(bool, date);
+
+ QCOMPARE(value.isDate(), date);
+}
+
+void tst_QScriptValue::isError_propertiesOfGlobalObject()
{
QStringList errors;
errors << "Error"
@@ -1675,27 +1707,60 @@ void tst_QScriptValue::isError_old()
QVERIFY(ctor.isFunction());
QVERIFY(ctor.property("prototype").isError());
}
- QVERIFY(!eng.globalObject().isError());
- QVERIFY(!QScriptValue().isError());
- QVERIFY(!QScriptValue(123).isError());
- QVERIFY(!QScriptValue(false).isError());
- QVERIFY(!eng.nullValue().isError());
- QVERIFY(!eng.undefinedValue().isError());
- QVERIFY(!eng.evaluate("new Object()").isError());
}
-void tst_QScriptValue::isRegExp_old()
+void tst_QScriptValue::isError_data()
{
- QScriptEngine eng;
- QVERIFY(eng.evaluate("/foo/").isRegExp());
- QVERIFY(!eng.evaluate("[]").isRegExp());
- QVERIFY(!eng.evaluate("{}").isRegExp());
- QVERIFY(!eng.globalObject().isRegExp());
- QVERIFY(!QScriptValue().isRegExp());
- QVERIFY(!QScriptValue(123).isRegExp());
- QVERIFY(!QScriptValue(false).isRegExp());
- QVERIFY(!eng.nullValue().isRegExp());
- QVERIFY(!eng.undefinedValue().isRegExp());
+ newEngine();
+
+ QTest::addColumn<QScriptValue>("value");
+ QTest::addColumn<bool>("error");
+
+ QTest::newRow("syntax error") << engine->evaluate("%fsdg's") << true;
+ QTest::newRow("[]") << engine->evaluate("[]") << false;
+ QTest::newRow("{}") << engine->evaluate("{}") << false;
+ QTest::newRow("globalObject") << engine->globalObject() << false;
+ QTest::newRow("invalid") << QScriptValue() << false;
+ QTest::newRow("number") << QScriptValue(123) << false;
+ QTest::newRow("bool") << QScriptValue(false) << false;
+ QTest::newRow("null") << engine->nullValue() << false;
+ QTest::newRow("undefined") << engine->undefinedValue() << false;
+ QTest::newRow("newObject") << engine->newObject() << false;
+ QTest::newRow("new Object") << engine->evaluate("new Object()") << false;
+}
+
+void tst_QScriptValue::isError()
+{
+ QFETCH(QScriptValue, value);
+ QFETCH(bool, error);
+
+ QCOMPARE(value.isError(), error);
+}
+
+void tst_QScriptValue::isRegExp_data()
+{
+ newEngine();
+
+ QTest::addColumn<QScriptValue>("value");
+ QTest::addColumn<bool>("regexp");
+
+ QTest::newRow("/foo/") << engine->evaluate("/foo/") << true;
+ QTest::newRow("[]") << engine->evaluate("[]") << false;
+ QTest::newRow("{}") << engine->evaluate("{}") << false;
+ QTest::newRow("globalObject") << engine->globalObject() << false;
+ QTest::newRow("invalid") << QScriptValue() << false;
+ QTest::newRow("number") << QScriptValue(123) << false;
+ QTest::newRow("bool") << QScriptValue(false) << false;
+ QTest::newRow("null") << engine->nullValue() << false;
+ QTest::newRow("undefined") << engine->undefinedValue() << false;
+}
+
+void tst_QScriptValue::isRegExp()
+{
+ QFETCH(QScriptValue, value);
+ QFETCH(bool, regexp);
+
+ QCOMPARE(value.isRegExp(), regexp);
}
static QScriptValue getter(QScriptContext *ctx, QScriptEngine *)
@@ -1731,48 +1796,9 @@ static QScriptValue getSet__proto__(QScriptContext *ctx, QScriptEngine *)
return ctx->callee().property("value");
}
-void tst_QScriptValue::getSetProperty()
+void tst_QScriptValue::getSetProperty_HooliganTask162051()
{
QScriptEngine eng;
-
- QScriptValue object = eng.newObject();
-
- QScriptValue str = QScriptValue(&eng, "bar");
- object.setProperty("foo", str);
- QCOMPARE(object.property("foo").toString(), str.toString());
-
- QScriptValue num = QScriptValue(&eng, 123.0);
- object.setProperty("baz", num);
- QCOMPARE(object.property("baz").toNumber(), num.toNumber());
-
- QScriptValue strstr = QScriptValue("bar");
- QCOMPARE(strstr.engine(), (QScriptEngine *)0);
- object.setProperty("foo", strstr);
- QCOMPARE(object.property("foo").toString(), strstr.toString());
- QCOMPARE(strstr.engine(), &eng); // the value has been bound to the engine
-
- QScriptValue numnum = QScriptValue(123.0);
- object.setProperty("baz", numnum);
- QCOMPARE(object.property("baz").toNumber(), numnum.toNumber());
-
- QScriptValue inv;
- inv.setProperty("foo", num);
- QCOMPARE(inv.property("foo").isValid(), false);
-
- QScriptValue array = eng.newArray();
- QVERIFY(array.isArray());
- array.setProperty(0, num);
- QCOMPARE(array.property(0).toNumber(), num.toNumber());
- QCOMPARE(array.property("0").toNumber(), num.toNumber());
- QCOMPARE(array.property("length").toUInt32(), quint32(1));
- array.setProperty(1, str);
- QCOMPARE(array.property(1).toString(), str.toString());
- QCOMPARE(array.property("1").toString(), str.toString());
- QCOMPARE(array.property("length").toUInt32(), quint32(2));
- array.setProperty("length", QScriptValue(&eng, 1));
- QCOMPARE(array.property("length").toUInt32(), quint32(1));
- QCOMPARE(array.property(1).isValid(), false);
-
// task 162051 -- detecting whether the property is an array index or not
QVERIFY(eng.evaluate("a = []; a['00'] = 123; a['00']").strictlyEquals(QScriptValue(&eng, 123)));
QVERIFY(eng.evaluate("a.length").strictlyEquals(QScriptValue(&eng, 0)));
@@ -1785,24 +1811,62 @@ void tst_QScriptValue::getSetProperty()
QVERIFY(eng.evaluate("a[0]").isUndefined());
QVERIFY(eng.evaluate("a[0] = 789; a[0]").strictlyEquals(QScriptValue(&eng, 789)));
QVERIFY(eng.evaluate("a.length").strictlyEquals(QScriptValue(&eng, 1)));
+}
+void tst_QScriptValue::getSetProperty_HooliganTask183072()
+{
+ QScriptEngine eng;
// task 183072 -- 0x800000000 is not an array index
eng.evaluate("a = []; a[0x800000000] = 123");
QVERIFY(eng.evaluate("a.length").strictlyEquals(QScriptValue(&eng, 0)));
QVERIFY(eng.evaluate("a[0]").isUndefined());
QVERIFY(eng.evaluate("a[0x800000000]").strictlyEquals(QScriptValue(&eng, 123)));
+}
- QScriptEngine otherEngine;
- QScriptValue otherNum = QScriptValue(&otherEngine, 123);
- QTest::ignoreMessage(QtWarningMsg, "QScriptValue::setProperty(oof) failed: cannot set value created in a different engine");
- object.setProperty("oof", otherNum);
- QCOMPARE(object.property("oof").isValid(), false);
+void tst_QScriptValue::getSetProperty_propertyRemoval()
+{
+ // test property removal (setProperty(QScriptValue()))
+ QScriptEngine eng;
+ QScriptValue object = eng.newObject();
+ QScriptValue str = QScriptValue(&eng, "bar");
+ QScriptValue num = QScriptValue(&eng, 123.0);
+ object.setProperty("foo", num);
+ QCOMPARE(object.property("foo").strictlyEquals(num), true);
+ object.setProperty("bar", str);
+ QCOMPARE(object.property("bar").strictlyEquals(str), true);
+ object.setProperty("foo", QScriptValue());
+ QCOMPARE(object.property("foo").isValid(), false);
+ QCOMPARE(object.property("bar").strictlyEquals(str), true);
+ object.setProperty("foo", num);
+ QCOMPARE(object.property("foo").strictlyEquals(num), true);
+ QCOMPARE(object.property("bar").strictlyEquals(str), true);
+ object.setProperty("bar", QScriptValue());
+ QCOMPARE(object.property("bar").isValid(), false);
+ QCOMPARE(object.property("foo").strictlyEquals(num), true);
+ object.setProperty("foo", QScriptValue());
+ object.setProperty("foo", QScriptValue());
+
+ eng.globalObject().setProperty("object3", object);
+ QCOMPARE(eng.evaluate("object3.hasOwnProperty('foo')")
+ .strictlyEquals(QScriptValue(&eng, false)), true);
+ object.setProperty("foo", num);
+ QCOMPARE(eng.evaluate("object3.hasOwnProperty('foo')")
+ .strictlyEquals(QScriptValue(&eng, true)), true);
+ eng.globalObject().setProperty("object3", QScriptValue());
+ QCOMPARE(eng.evaluate("this.hasOwnProperty('object3')")
+ .strictlyEquals(QScriptValue(&eng, false)), true);
+}
+
+void tst_QScriptValue::getSetProperty_resolveMode()
+{
// test ResolveMode
- QScriptValue object2 = eng.newObject();
- object.setPrototype(object2);
+ QScriptEngine eng;
+ QScriptValue object = eng.newObject();
+ QScriptValue prototype = eng.newObject();
+ object.setPrototype(prototype);
QScriptValue num2 = QScriptValue(&eng, 456.0);
- object2.setProperty("propertyInPrototype", num2);
+ prototype.setProperty("propertyInPrototype", num2);
// default is ResolvePrototype
QCOMPARE(object.property("propertyInPrototype")
.strictlyEquals(num2), true);
@@ -1814,199 +1878,247 @@ void tst_QScriptValue::getSetProperty()
.strictlyEquals(num2), false);
QCOMPARE(object.property("propertyInPrototype", QScriptValue::ResolveFull)
.strictlyEquals(num2), true);
+}
- // test property removal (setProperty(QScriptValue()))
- QScriptValue object3 = eng.newObject();
- object3.setProperty("foo", num);
- QCOMPARE(object3.property("foo").strictlyEquals(num), true);
- object3.setProperty("bar", str);
- QCOMPARE(object3.property("bar").strictlyEquals(str), true);
- object3.setProperty("foo", QScriptValue());
- QCOMPARE(object3.property("foo").isValid(), false);
- QCOMPARE(object3.property("bar").strictlyEquals(str), true);
- object3.setProperty("foo", num);
- QCOMPARE(object3.property("foo").strictlyEquals(num), true);
- QCOMPARE(object3.property("bar").strictlyEquals(str), true);
- object3.setProperty("bar", QScriptValue());
- QCOMPARE(object3.property("bar").isValid(), false);
- QCOMPARE(object3.property("foo").strictlyEquals(num), true);
- object3.setProperty("foo", QScriptValue());
- object3.setProperty("foo", QScriptValue());
-
- eng.globalObject().setProperty("object3", object3);
- QCOMPARE(eng.evaluate("object3.hasOwnProperty('foo')")
- .strictlyEquals(QScriptValue(&eng, false)), true);
- object3.setProperty("foo", num);
- QCOMPARE(eng.evaluate("object3.hasOwnProperty('foo')")
- .strictlyEquals(QScriptValue(&eng, true)), true);
- eng.globalObject().setProperty("object3", QScriptValue());
- QCOMPARE(eng.evaluate("this.hasOwnProperty('object3')")
- .strictlyEquals(QScriptValue(&eng, false)), true);
+void tst_QScriptValue::getSetProperty_twoEngines()
+{
+ QScriptEngine engine;
+ QScriptValue object = engine.newObject();
- // getters and setters
- {
- QScriptValue object4 = eng.newObject();
- for (int x = 0; x < 2; ++x) {
- object4.setProperty("foo", QScriptValue());
- // getter() returns this.x
- object4.setProperty("foo", eng.newFunction(getter),
- QScriptValue::PropertyGetter | QScriptValue::UserRange);
- QCOMPARE(object4.propertyFlags("foo") & ~QScriptValue::UserRange,
- QScriptValue::PropertyGetter );
-
- QEXPECT_FAIL("", "User-range flags are not retained for getter/setter properties", Continue);
- QCOMPARE(object4.propertyFlags("foo"),
- QScriptValue::PropertyGetter | QScriptValue::UserRange);
- object4.setProperty("x", num);
- QCOMPARE(object4.property("foo").strictlyEquals(num), true);
-
- // setter() sets this.x
- object4.setProperty("foo", eng.newFunction(setter),
- QScriptValue::PropertySetter);
- QCOMPARE(object4.propertyFlags("foo") & ~QScriptValue::UserRange,
- QScriptValue::PropertySetter | QScriptValue::PropertyGetter);
-
- QCOMPARE(object4.propertyFlags("foo"),
- QScriptValue::PropertySetter | QScriptValue::PropertyGetter);
- object4.setProperty("foo", str);
- QCOMPARE(object4.property("x").strictlyEquals(str), true);
- QCOMPARE(object4.property("foo").strictlyEquals(str), true);
-
- // kill the getter
- object4.setProperty("foo", QScriptValue(), QScriptValue::PropertyGetter);
- QVERIFY(!(object4.propertyFlags("foo") & QScriptValue::PropertyGetter));
- QVERIFY(object4.propertyFlags("foo") & QScriptValue::PropertySetter);
- QCOMPARE(object4.property("foo").isUndefined(), true);
-
- // setter should still work
- object4.setProperty("foo", num);
- QCOMPARE(object4.property("x").strictlyEquals(num), true);
-
- // kill the setter too
- object4.setProperty("foo", QScriptValue(), QScriptValue::PropertySetter);
- QVERIFY(!(object4.propertyFlags("foo") & QScriptValue::PropertySetter));
- // now foo is just a regular property
- object4.setProperty("foo", str);
- QCOMPARE(object4.property("x").strictlyEquals(num), true);
- QCOMPARE(object4.property("foo").strictlyEquals(str), true);
- }
+ QScriptEngine otherEngine;
+ QScriptValue otherNum = QScriptValue(&otherEngine, 123);
+ QTest::ignoreMessage(QtWarningMsg, "QScriptValue::setProperty(oof) failed: cannot set value created in a different engine");
+ object.setProperty("oof", otherNum);
+ QCOMPARE(object.property("oof").isValid(), false);
+}
- for (int x = 0; x < 2; ++x) {
- object4.setProperty("foo", QScriptValue());
- // setter() sets this.x
- object4.setProperty("foo", eng.newFunction(setter), QScriptValue::PropertySetter);
- object4.setProperty("foo", str);
- QCOMPARE(object4.property("x").strictlyEquals(str), true);
- QCOMPARE(object4.property("foo").isUndefined(), true);
-
- // getter() returns this.x
- object4.setProperty("foo", eng.newFunction(getter), QScriptValue::PropertyGetter);
- object4.setProperty("x", num);
- QCOMPARE(object4.property("foo").strictlyEquals(num), true);
-
- // kill the setter
- object4.setProperty("foo", QScriptValue(), QScriptValue::PropertySetter);
- QTest::ignoreMessage(QtWarningMsg, "QScriptValue::setProperty() failed: property 'foo' has a getter but no setter");
- object4.setProperty("foo", str);
-
- // getter should still work
- QCOMPARE(object4.property("foo").strictlyEquals(num), true);
-
- // kill the getter too
- object4.setProperty("foo", QScriptValue(), QScriptValue::PropertyGetter);
- // now foo is just a regular property
- object4.setProperty("foo", str);
- QCOMPARE(object4.property("x").strictlyEquals(num), true);
- QCOMPARE(object4.property("foo").strictlyEquals(str), true);
- }
- // use a single function as both getter and setter
- object4.setProperty("foo", QScriptValue());
- object4.setProperty("foo", eng.newFunction(getterSetter),
- QScriptValue::PropertyGetter | QScriptValue::PropertySetter);
- QCOMPARE(object4.propertyFlags("foo"),
- QScriptValue::PropertyGetter | QScriptValue::PropertySetter);
- object4.setProperty("x", num);
- QCOMPARE(object4.property("foo").strictlyEquals(num), true);
-
- // killing the getter will preserve the setter, even though they are the same function
- object4.setProperty("foo", QScriptValue(), QScriptValue::PropertyGetter);
- QVERIFY(object4.propertyFlags("foo") & QScriptValue::PropertySetter);
- QCOMPARE(object4.property("foo").isUndefined(), true);
-
- // getter/setter that throws an error
- {
- QScriptValue object5 = eng.newObject();
- object5.setProperty("foo", eng.newFunction(getterSetterThrowingError),
- QScriptValue::PropertyGetter | QScriptValue::PropertySetter);
- QVERIFY(!eng.hasUncaughtException());
- QScriptValue ret = object5.property("foo");
- QVERIFY(ret.isError());
- QVERIFY(eng.hasUncaughtException());
- QVERIFY(ret.strictlyEquals(eng.uncaughtException()));
- eng.evaluate("Object"); // clear exception state...
- QVERIFY(!eng.hasUncaughtException());
- object5.setProperty("foo", str);
- QVERIFY(eng.hasUncaughtException());
- QCOMPARE(eng.uncaughtException().toString(), QLatin1String("Error: set foo"));
- }
+void tst_QScriptValue::getSetProperty_gettersAndSetters()
+{
+ QScriptEngine eng;
+ QScriptValue str = QScriptValue(&eng, "bar");
+ QScriptValue num = QScriptValue(&eng, 123.0);
+ QScriptValue object = eng.newObject();
+ for (int x = 0; x < 2; ++x) {
+ object.setProperty("foo", QScriptValue());
+ // getter() returns this.x
+ object.setProperty("foo", eng.newFunction(getter),
+ QScriptValue::PropertyGetter | QScriptValue::UserRange);
+ QCOMPARE(object.propertyFlags("foo") & ~QScriptValue::UserRange,
+ QScriptValue::PropertyGetter );
+
+ QEXPECT_FAIL("", "User-range flags are not retained for getter/setter properties", Continue);
+ QCOMPARE(object.propertyFlags("foo"),
+ QScriptValue::PropertyGetter | QScriptValue::UserRange);
+ object.setProperty("x", num);
+ QCOMPARE(object.property("foo").strictlyEquals(num), true);
+
+ // setter() sets this.x
+ object.setProperty("foo", eng.newFunction(setter),
+ QScriptValue::PropertySetter);
+ QCOMPARE(object.propertyFlags("foo") & ~QScriptValue::UserRange,
+ QScriptValue::PropertySetter | QScriptValue::PropertyGetter);
+
+ QCOMPARE(object.propertyFlags("foo"),
+ QScriptValue::PropertySetter | QScriptValue::PropertyGetter);
+ object.setProperty("foo", str);
+ QCOMPARE(object.property("x").strictlyEquals(str), true);
+ QCOMPARE(object.property("foo").strictlyEquals(str), true);
+
+ // kill the getter
+ object.setProperty("foo", QScriptValue(), QScriptValue::PropertyGetter);
+ QVERIFY(!(object.propertyFlags("foo") & QScriptValue::PropertyGetter));
+ QVERIFY(object.propertyFlags("foo") & QScriptValue::PropertySetter);
+ QCOMPARE(object.property("foo").isUndefined(), true);
+
+ // setter should still work
+ object.setProperty("foo", num);
+ QCOMPARE(object.property("x").strictlyEquals(num), true);
+
+ // kill the setter too
+ object.setProperty("foo", QScriptValue(), QScriptValue::PropertySetter);
+ QVERIFY(!(object.propertyFlags("foo") & QScriptValue::PropertySetter));
+ // now foo is just a regular property
+ object.setProperty("foo", str);
+ QCOMPARE(object.property("x").strictlyEquals(num), true);
+ QCOMPARE(object.property("foo").strictlyEquals(str), true);
+ }
+
+ for (int x = 0; x < 2; ++x) {
+ object.setProperty("foo", QScriptValue());
+ // setter() sets this.x
+ object.setProperty("foo", eng.newFunction(setter), QScriptValue::PropertySetter);
+ object.setProperty("foo", str);
+ QCOMPARE(object.property("x").strictlyEquals(str), true);
+ QCOMPARE(object.property("foo").isUndefined(), true);
+
+ // getter() returns this.x
+ object.setProperty("foo", eng.newFunction(getter), QScriptValue::PropertyGetter);
+ object.setProperty("x", num);
+ QCOMPARE(object.property("foo").strictlyEquals(num), true);
+
+ // kill the setter
+ object.setProperty("foo", QScriptValue(), QScriptValue::PropertySetter);
+ QTest::ignoreMessage(QtWarningMsg, "QScriptValue::setProperty() failed: property 'foo' has a getter but no setter");
+ object.setProperty("foo", str);
+
+ // getter should still work
+ QCOMPARE(object.property("foo").strictlyEquals(num), true);
+
+ // kill the getter too
+ object.setProperty("foo", QScriptValue(), QScriptValue::PropertyGetter);
+ // now foo is just a regular property
+ object.setProperty("foo", str);
+ QCOMPARE(object.property("x").strictlyEquals(num), true);
+ QCOMPARE(object.property("foo").strictlyEquals(str), true);
+ }
+
+ // use a single function as both getter and setter
+ object.setProperty("foo", QScriptValue());
+ object.setProperty("foo", eng.newFunction(getterSetter),
+ QScriptValue::PropertyGetter | QScriptValue::PropertySetter);
+ QCOMPARE(object.propertyFlags("foo"),
+ QScriptValue::PropertyGetter | QScriptValue::PropertySetter);
+ object.setProperty("x", num);
+ QCOMPARE(object.property("foo").strictlyEquals(num), true);
+
+ // killing the getter will preserve the setter, even though they are the same function
+ object.setProperty("foo", QScriptValue(), QScriptValue::PropertyGetter);
+ QVERIFY(object.propertyFlags("foo") & QScriptValue::PropertySetter);
+ QCOMPARE(object.property("foo").isUndefined(), true);
+}
- // attempt to install getter+setter on built-in (native) property
- {
- QScriptValue object6 = eng.newObject();
- QVERIFY(object6.property("__proto__").strictlyEquals(object6.prototype()));
-
- QScriptValue fun = eng.newFunction(getSet__proto__);
- fun.setProperty("value", QScriptValue(&eng, "boo"));
- QTest::ignoreMessage(QtWarningMsg, "QScriptValue::setProperty() failed: "
- "cannot set getter or setter of native property "
- "`__proto__'");
- object6.setProperty("__proto__", fun,
- QScriptValue::PropertyGetter | QScriptValue::PropertySetter
- | QScriptValue::UserRange);
- QVERIFY(object6.property("__proto__").strictlyEquals(object6.prototype()));
-
- object6.setProperty("__proto__", QScriptValue(),
- QScriptValue::PropertyGetter | QScriptValue::PropertySetter);
- QVERIFY(object6.property("__proto__").strictlyEquals(object6.prototype()));
- }
+void tst_QScriptValue::getSetProperty_gettersAndSettersThrowError()
+{
+ // getter/setter that throws an error
+ QScriptEngine eng;
+ QScriptValue str = QScriptValue(&eng, "bar");
+ QScriptValue object = eng.newObject();
- // global property that's a getter+setter
- {
- eng.globalObject().setProperty("globalGetterSetterProperty", eng.newFunction(getterSetter),
- QScriptValue::PropertyGetter | QScriptValue::PropertySetter);
- eng.evaluate("globalGetterSetterProperty = 123");
- {
- QScriptValue ret = eng.evaluate("globalGetterSetterProperty");
- QVERIFY(ret.isNumber());
- QVERIFY(ret.strictlyEquals(QScriptValue(&eng, 123)));
- }
- QCOMPARE(eng.evaluate("typeof globalGetterSetterProperty").toString(),
- QString::fromLatin1("number"));
- {
- QScriptValue ret = eng.evaluate("this.globalGetterSetterProperty()");
- QVERIFY(ret.isError());
- QCOMPARE(ret.toString(), QString::fromLatin1("TypeError: Result of expression 'this.globalGetterSetterProperty' [123] is not a function."));
- }
- {
- QScriptValue ret = eng.evaluate("new this.globalGetterSetterProperty()");
- QVERIFY(ret.isError());
- QCOMPARE(ret.toString(), QString::fromLatin1("TypeError: Result of expression 'this.globalGetterSetterProperty' [123] is not a constructor."));
- }
- }
+ object.setProperty("foo", eng.newFunction(getterSetterThrowingError),
+ QScriptValue::PropertyGetter | QScriptValue::PropertySetter);
+ QVERIFY(!eng.hasUncaughtException());
+ QScriptValue ret = object.property("foo");
+ QVERIFY(ret.isError());
+ QVERIFY(eng.hasUncaughtException());
+ QVERIFY(ret.strictlyEquals(eng.uncaughtException()));
+ eng.evaluate("Object"); // clear exception state...
+ QVERIFY(!eng.hasUncaughtException());
+ object.setProperty("foo", str);
+ QVERIFY(eng.hasUncaughtException());
+ QCOMPARE(eng.uncaughtException().toString(), QLatin1String("Error: set foo"));
+}
- // "upgrading" an existing property to become a getter+setter
- {
- QScriptValue object7 = eng.newObject();
- QScriptValue num(&eng, 123);
- object7.setProperty("foo", num);
- object7.setProperty("foo", eng.newFunction(getterSetter),
- QScriptValue::PropertyGetter | QScriptValue::PropertySetter);
- QVERIFY(!object7.property("x").isValid());
- object7.setProperty("foo", num);
- QVERIFY(object7.property("x").equals(num));
- }
+void tst_QScriptValue::getSetProperty_gettersAndSettersOnNative()
+{
+ // attempt to install getter+setter on built-in (native) property
+ QScriptEngine eng;
+ QScriptValue object = eng.newObject();
+ QVERIFY(object.property("__proto__").strictlyEquals(object.prototype()));
+
+ QScriptValue fun = eng.newFunction(getSet__proto__);
+ fun.setProperty("value", QScriptValue(&eng, "boo"));
+ QTest::ignoreMessage(QtWarningMsg, "QScriptValue::setProperty() failed: "
+ "cannot set getter or setter of native property "
+ "`__proto__'");
+ object.setProperty("__proto__", fun,
+ QScriptValue::PropertyGetter | QScriptValue::PropertySetter
+ | QScriptValue::UserRange);
+ QVERIFY(object.property("__proto__").strictlyEquals(object.prototype()));
+
+ object.setProperty("__proto__", QScriptValue(),
+ QScriptValue::PropertyGetter | QScriptValue::PropertySetter);
+ QVERIFY(object.property("__proto__").strictlyEquals(object.prototype()));
+}
+
+void tst_QScriptValue::getSetProperty_gettersAndSettersOnGlobalObject()
+{
+ // global property that's a getter+setter
+ QScriptEngine eng;
+ eng.globalObject().setProperty("globalGetterSetterProperty", eng.newFunction(getterSetter),
+ QScriptValue::PropertyGetter | QScriptValue::PropertySetter);
+ eng.evaluate("globalGetterSetterProperty = 123");
+ {
+ QScriptValue ret = eng.evaluate("globalGetterSetterProperty");
+ QVERIFY(ret.isNumber());
+ QVERIFY(ret.strictlyEquals(QScriptValue(&eng, 123)));
+ }
+ QCOMPARE(eng.evaluate("typeof globalGetterSetterProperty").toString(),
+ QString::fromLatin1("number"));
+ {
+ QScriptValue ret = eng.evaluate("this.globalGetterSetterProperty()");
+ QVERIFY(ret.isError());
+ QCOMPARE(ret.toString(), QString::fromLatin1("TypeError: Result of expression 'this.globalGetterSetterProperty' [123] is not a function."));
}
+ {
+ QScriptValue ret = eng.evaluate("new this.globalGetterSetterProperty()");
+ QVERIFY(ret.isError());
+ QCOMPARE(ret.toString(), QString::fromLatin1("TypeError: Result of expression 'this.globalGetterSetterProperty' [123] is not a constructor."));
+ }
+}
+
+void tst_QScriptValue::getSetProperty_gettersAndSettersChange()
+{
+ // "upgrading" an existing property to become a getter+setter
+ QScriptEngine eng;
+ QScriptValue object = eng.newObject();
+ QScriptValue num(&eng, 123);
+ object.setProperty("foo", num);
+ object.setProperty("foo", eng.newFunction(getterSetter),
+ QScriptValue::PropertyGetter | QScriptValue::PropertySetter);
+ QVERIFY(!object.property("x").isValid());
+ object.setProperty("foo", num);
+ QVERIFY(object.property("x").equals(num));
+}
+
+void tst_QScriptValue::getSetProperty_array()
+{
+ QScriptEngine eng;
+ QScriptValue str = QScriptValue(&eng, "bar");
+ QScriptValue num = QScriptValue(&eng, 123.0);
+ QScriptValue array = eng.newArray();
+
+ QVERIFY(array.isArray());
+ array.setProperty(0, num);
+ QCOMPARE(array.property(0).toNumber(), num.toNumber());
+ QCOMPARE(array.property("0").toNumber(), num.toNumber());
+ QCOMPARE(array.property("length").toUInt32(), quint32(1));
+ array.setProperty(1, str);
+ QCOMPARE(array.property(1).toString(), str.toString());
+ QCOMPARE(array.property("1").toString(), str.toString());
+ QCOMPARE(array.property("length").toUInt32(), quint32(2));
+ array.setProperty("length", QScriptValue(&eng, 1));
+ QCOMPARE(array.property("length").toUInt32(), quint32(1));
+ QCOMPARE(array.property(1).isValid(), false);
+}
+
+void tst_QScriptValue::getSetProperty()
+{
+ QScriptEngine eng;
+
+ QScriptValue object = eng.newObject();
+
+ QScriptValue str = QScriptValue(&eng, "bar");
+ object.setProperty("foo", str);
+ QCOMPARE(object.property("foo").toString(), str.toString());
+
+ QScriptValue num = QScriptValue(&eng, 123.0);
+ object.setProperty("baz", num);
+ QCOMPARE(object.property("baz").toNumber(), num.toNumber());
+
+ QScriptValue strstr = QScriptValue("bar");
+ QCOMPARE(strstr.engine(), (QScriptEngine *)0);
+ object.setProperty("foo", strstr);
+ QCOMPARE(object.property("foo").toString(), strstr.toString());
+ QCOMPARE(strstr.engine(), &eng); // the value has been bound to the engine
+
+ QScriptValue numnum = QScriptValue(123.0);
+ object.setProperty("baz", numnum);
+ QCOMPARE(object.property("baz").toNumber(), numnum.toNumber());
+
+ QScriptValue inv;
+ inv.setProperty("foo", num);
+ QCOMPARE(inv.property("foo").isValid(), false);
eng.globalObject().setProperty("object", object);
@@ -2155,50 +2267,126 @@ void tst_QScriptValue::arrayElementGetterSetter()
QVERIFY(obj.propertyFlags("1") == 0);
}
-void tst_QScriptValue::getSetPrototype()
+void tst_QScriptValue::getSetPrototype_cyclicPrototype()
{
QScriptEngine eng;
-
+ QScriptValue prototype = eng.newObject();
QScriptValue object = eng.newObject();
+ object.setPrototype(prototype);
- QScriptValue object2 = eng.newObject();
- object2.setPrototype(object);
+ QScriptValue previousPrototype = prototype.prototype();
+ QTest::ignoreMessage(QtWarningMsg, "QScriptValue::setPrototype() failed: cyclic prototype value");
+ prototype.setPrototype(prototype);
+ QCOMPARE(prototype.prototype().strictlyEquals(previousPrototype), true);
+
+ object.setPrototype(prototype);
+ QTest::ignoreMessage(QtWarningMsg, "QScriptValue::setPrototype() failed: cyclic prototype value");
+ prototype.setPrototype(object);
+ QCOMPARE(prototype.prototype().strictlyEquals(previousPrototype), true);
+
+}
+
+void tst_QScriptValue::getSetPrototype_evalCyclicPrototype()
+{
+ QScriptEngine eng;
+ QScriptValue ret = eng.evaluate("o = { }; p = { }; o.__proto__ = p; p.__proto__ = o");
+ QCOMPARE(eng.hasUncaughtException(), true);
+ QVERIFY(ret.strictlyEquals(eng.uncaughtException()));
+ QCOMPARE(ret.isError(), true);
+ QCOMPARE(ret.toString(), QLatin1String("Error: cyclic __proto__ value"));
+}
- QCOMPARE(object2.prototype().strictlyEquals(object), true);
+void tst_QScriptValue::getSetPrototype_eval()
+{
+ QScriptEngine eng;
+ QScriptValue ret = eng.evaluate("p = { }; p.__proto__ = { }");
+ QCOMPARE(eng.hasUncaughtException(), false);
+ QCOMPARE(ret.isError(), false);
+}
+void tst_QScriptValue::getSetPrototype_invalidPrototype()
+{
+ QScriptEngine eng;
QScriptValue inv;
+ QScriptValue object = eng.newObject();
+ QScriptValue proto = object.prototype();
+ QVERIFY(object.prototype().strictlyEquals(proto));
inv.setPrototype(object);
QCOMPARE(inv.prototype().isValid(), false);
+ object.setPrototype(inv);
+ // FIXME should it be invalid or proto?
+ QVERIFY(object.prototype().strictlyEquals(inv));
+}
+void tst_QScriptValue::getSetPrototype_twoEngines()
+{
+ QScriptEngine eng;
+ QScriptValue prototype = eng.newObject();
+ QScriptValue object = eng.newObject();
+ object.setPrototype(prototype);
QScriptEngine otherEngine;
- QScriptValue object3 = otherEngine.newObject();
+ QScriptValue newPrototype = otherEngine.newObject();
QTest::ignoreMessage(QtWarningMsg, "QScriptValue::setPrototype() failed: cannot set a prototype created in a different engine");
- object2.setPrototype(object3);
- QCOMPARE(object2.prototype().strictlyEquals(object), true);
+ object.setPrototype(newPrototype);
+ QCOMPARE(object.prototype().strictlyEquals(prototype), true);
- // cyclic prototypes
- QScriptValue old = object.prototype();
- QTest::ignoreMessage(QtWarningMsg, "QScriptValue::setPrototype() failed: cyclic prototype value");
- object.setPrototype(object);
- QCOMPARE(object.prototype().strictlyEquals(old), true);
+}
- object2.setPrototype(object);
- QTest::ignoreMessage(QtWarningMsg, "QScriptValue::setPrototype() failed: cyclic prototype value");
- object.setPrototype(object2);
- QCOMPARE(object.prototype().strictlyEquals(old), true);
+void tst_QScriptValue::getSetPrototype_null()
+{
+ QScriptEngine eng;
+ QScriptValue object = eng.newObject();
+ object.setPrototype(QScriptValue(QScriptValue::NullValue));
+ QVERIFY(object.prototype().isNull());
- {
- QScriptValue ret = eng.evaluate("o = { }; p = { }; o.__proto__ = p; p.__proto__ = o");
- QCOMPARE(eng.hasUncaughtException(), true);
- QVERIFY(ret.strictlyEquals(eng.uncaughtException()));
- QCOMPARE(ret.isError(), true);
- QCOMPARE(ret.toString(), QLatin1String("Error: cyclic __proto__ value"));
- }
- {
- QScriptValue ret = eng.evaluate("p.__proto__ = { }");
- QCOMPARE(eng.hasUncaughtException(), false);
- QCOMPARE(ret.isError(), false);
- }
+ QScriptValue newProto = eng.newObject();
+ object.setPrototype(newProto);
+ QVERIFY(object.prototype().equals(newProto));
+
+ object.setPrototype(QScriptValue(&eng, QScriptValue::NullValue));
+ QVERIFY(object.prototype().isNull());
+}
+
+void tst_QScriptValue::getSetPrototype_notObjectOrNull()
+{
+ QScriptEngine eng;
+ QScriptValue object = eng.newObject();
+ QScriptValue originalProto = object.prototype();
+
+ QEXPECT_FAIL("", "QTBUG-15154: QScriptValue::setPrototype() allows a non-Object value to be set as prototype", Abort);
+
+ // bool
+ object.setPrototype(true);
+ QVERIFY(object.prototype().equals(originalProto));
+ object.setPrototype(QScriptValue(&eng, true));
+ QVERIFY(object.prototype().equals(originalProto));
+
+ // number
+ object.setPrototype(123);
+ QVERIFY(object.prototype().equals(originalProto));
+ object.setPrototype(QScriptValue(&eng, 123));
+ QVERIFY(object.prototype().equals(originalProto));
+
+ // string
+ object.setPrototype("foo");
+ QVERIFY(object.prototype().equals(originalProto));
+ object.setPrototype(QScriptValue(&eng, "foo"));
+ QVERIFY(object.prototype().equals(originalProto));
+
+ // undefined
+ object.setPrototype(QScriptValue(QScriptValue::UndefinedValue));
+ QVERIFY(object.prototype().equals(originalProto));
+ object.setPrototype(QScriptValue(&eng, QScriptValue::UndefinedValue));
+ QVERIFY(object.prototype().equals(originalProto));
+}
+
+void tst_QScriptValue::getSetPrototype()
+{
+ QScriptEngine eng;
+ QScriptValue prototype = eng.newObject();
+ QScriptValue object = eng.newObject();
+ object.setPrototype(prototype);
+ QCOMPARE(object.prototype().strictlyEquals(prototype), true);
}
void tst_QScriptValue::getSetScope()
@@ -2235,10 +2423,24 @@ void tst_QScriptValue::getSetScope()
QVERIFY(!object2.scope().isValid());
}
-void tst_QScriptValue::getSetData()
+void tst_QScriptValue::getSetData_objects_data()
{
- QScriptEngine eng;
- QScriptValue object = eng.newObject();
+ newEngine();
+
+ QTest::addColumn<QScriptValue>("object");
+
+ QTest::newRow("object from evaluate") << engine->evaluate("new Object()");
+ QTest::newRow("object from engine") << engine->newObject();
+ QTest::newRow("Array") << engine->newArray();
+ QTest::newRow("Date") << engine->newDate(12324);
+ QTest::newRow("QObject") << engine->newQObject(this);
+ QTest::newRow("RegExp") << engine->newRegExp(QRegExp());
+}
+
+void tst_QScriptValue::getSetData_objects()
+{
+ QFETCH(QScriptValue, object);
+
QVERIFY(!object.data().isValid());
QScriptValue v1(true);
object.setData(v1);
@@ -2246,13 +2448,48 @@ void tst_QScriptValue::getSetData()
QScriptValue v2(123);
object.setData(v2);
QVERIFY(object.data().strictlyEquals(v2));
- QScriptValue v3 = eng.newObject();
+ QScriptValue v3 = engine->newObject();
object.setData(v3);
QVERIFY(object.data().strictlyEquals(v3));
object.setData(QScriptValue());
QVERIFY(!object.data().isValid());
}
+void tst_QScriptValue::getSetData_nonObjects_data()
+{
+ newEngine();
+
+ QTest::addColumn<QScriptValue>("value");
+
+ QTest::newRow("undefined (bound)") << engine->undefinedValue();
+ QTest::newRow("null (bound)") << engine->nullValue();
+ QTest::newRow("string (bound)") << QScriptValue(engine, "Pong");
+ QTest::newRow("bool (bound)") << QScriptValue(engine, false);
+
+ QTest::newRow("undefined") << QScriptValue(QScriptValue::UndefinedValue);
+ QTest::newRow("null") << QScriptValue(QScriptValue::NullValue);
+ QTest::newRow("string") << QScriptValue("Pong");
+ QTest::newRow("bool") << QScriptValue(true);
+}
+
+void tst_QScriptValue::getSetData_nonObjects()
+{
+ QFETCH(QScriptValue, value);
+
+ QVERIFY(!value.data().isValid());
+ QScriptValue v1(true);
+ value.setData(v1);
+ QVERIFY(!value.data().isValid());
+ QScriptValue v2(123);
+ value.setData(v2);
+ QVERIFY(!value.data().isValid());
+ QScriptValue v3 = engine->newObject();
+ value.setData(v3);
+ QVERIFY(!value.data().isValid());
+ value.setData(QScriptValue());
+ QVERIFY(!value.data().isValid());
+}
+
void tst_QScriptValue::setData_QTBUG15144()
{
QScriptEngine eng;
@@ -2266,30 +2503,59 @@ void tst_QScriptValue::setData_QTBUG15144()
obj.setData("foodfight");
}
}
+
class TestScriptClass : public QScriptClass
{
public:
TestScriptClass(QScriptEngine *engine) : QScriptClass(engine) {}
};
-void tst_QScriptValue::getSetScriptClass()
+void tst_QScriptValue::getSetScriptClass_emptyClass_data()
{
- QScriptEngine eng;
- QScriptValue inv;
- QCOMPARE(inv.scriptClass(), (QScriptClass*)0);
- QScriptValue num(123);
- QCOMPARE(num.scriptClass(), (QScriptClass*)0);
+ newEngine();
+ QTest::addColumn<QScriptValue>("value");
+
+ QTest::newRow("invalid") << QScriptValue();
+ QTest::newRow("number") << QScriptValue(123);
+ QTest::newRow("string") << QScriptValue("pong");
+ QTest::newRow("bool") << QScriptValue(false);
+ QTest::newRow("null") << QScriptValue(QScriptValue::NullValue);
+ QTest::newRow("undefined") << QScriptValue(QScriptValue::UndefinedValue);
+
+ QTest::newRow("number") << QScriptValue(engine, 123);
+ QTest::newRow("string") << QScriptValue(engine, "pong");
+ QTest::newRow("bool") << QScriptValue(engine, true);
+ QTest::newRow("null") << QScriptValue(engine->nullValue());
+ QTest::newRow("undefined") << QScriptValue(engine->undefinedValue());
+ QTest::newRow("object") << QScriptValue(engine->newObject());
+ QTest::newRow("date") << QScriptValue(engine->evaluate("new Date()"));
+ QTest::newRow("qobject") << QScriptValue(engine->newQObject(this));
+}
+void tst_QScriptValue::getSetScriptClass_emptyClass()
+{
+ QFETCH(QScriptValue, value);
+ QCOMPARE(value.scriptClass(), (QScriptClass*)0);
+}
+
+void tst_QScriptValue::getSetScriptClass_JSObjectFromCpp()
+{
+ QScriptEngine eng;
TestScriptClass testClass(&eng);
// object created in C++ (newObject())
{
QScriptValue obj = eng.newObject();
- QCOMPARE(obj.scriptClass(), (QScriptClass*)0);
obj.setScriptClass(&testClass);
QCOMPARE(obj.scriptClass(), (QScriptClass*)&testClass);
obj.setScriptClass(0);
QCOMPARE(obj.scriptClass(), (QScriptClass*)0);
}
+}
+
+void tst_QScriptValue::getSetScriptClass_JSObjectFromJS()
+{
+ QScriptEngine eng;
+ TestScriptClass testClass(&eng);
// object created in JS
{
QScriptValue obj = eng.evaluate("new Object");
@@ -2304,6 +2570,12 @@ void tst_QScriptValue::getSetScriptClass()
obj.setScriptClass(0);
QCOMPARE(obj.scriptClass(), (QScriptClass*)0);
}
+}
+
+void tst_QScriptValue::getSetScriptClass_QVariant()
+{
+ QScriptEngine eng;
+ TestScriptClass testClass(&eng);
// object that already has a(n internal) class
{
QScriptValue obj = eng.newVariant(QUrl("http://example.com"));
@@ -2315,10 +2587,15 @@ void tst_QScriptValue::getSetScriptClass()
QVERIFY(!obj.isVariant());
QCOMPARE(obj.toVariant(), QVariant(QVariantMap()));
}
+}
+
+void tst_QScriptValue::getSetScriptClass_QObject()
+{
+ QScriptEngine eng;
+ TestScriptClass testClass(&eng);
{
QScriptValue obj = eng.newQObject(this);
QVERIFY(obj.isQObject());
- QCOMPARE(obj.scriptClass(), (QScriptClass*)0);
obj.setScriptClass(&testClass);
QCOMPARE(obj.scriptClass(), (QScriptClass*)&testClass);
QVERIFY(obj.isObject());
@@ -2347,83 +2624,89 @@ static QScriptValue returnInvalidValue(QScriptContext *, QScriptEngine *)
return QScriptValue();
}
-void tst_QScriptValue::call()
+void tst_QScriptValue::call_function()
{
QScriptEngine eng;
+ QScriptValue fun = eng.evaluate("(function() { return 1; })");
+ QVERIFY(fun.isFunction());
+ QScriptValue result = fun.call();
+ QVERIFY(result.isNumber());
+ QCOMPARE(result.toInt32(), 1);
+}
- {
- QScriptValue fun = eng.evaluate("(function() { return 1; })");
- QVERIFY(fun.isFunction());
- QScriptValue result = fun.call();
- QVERIFY(result.isNumber());
- QCOMPARE(result.toInt32(), 1);
- }
-
+void tst_QScriptValue::call_object()
+{
+ QScriptEngine eng;
QScriptValue Object = eng.evaluate("Object");
QCOMPARE(Object.isFunction(), true);
- {
- QScriptValue result = Object.call(Object);
- QCOMPARE(result.isObject(), true);
- }
+ QScriptValue result = Object.call(Object);
+ QCOMPARE(result.isObject(), true);
+}
+void tst_QScriptValue::call_newObjects()
+{
+ QScriptEngine eng;
// test that call() doesn't construct new objects
QScriptValue Number = eng.evaluate("Number");
+ QScriptValue Object = eng.evaluate("Object");
QCOMPARE(Object.isFunction(), true);
- {
- QScriptValueList args;
- args << QScriptValue(&eng, 123);
- QScriptValue result = Number.call(Object, args);
- QCOMPARE(result.strictlyEquals(args.at(0)), true);
- }
+ QScriptValueList args;
+ args << QScriptValue(&eng, 123);
+ QScriptValue result = Number.call(Object, args);
+ QCOMPARE(result.strictlyEquals(args.at(0)), true);
+}
+void tst_QScriptValue::call_this()
+{
+ QScriptEngine eng;
// test that correct "this" object is used
- {
- QScriptValue fun = eng.evaluate("(function() { return this; })");
- QCOMPARE(fun.isFunction(), true);
+ QScriptValue fun = eng.evaluate("(function() { return this; })");
+ QCOMPARE(fun.isFunction(), true);
- {
- QScriptValue numberObject = QScriptValue(&eng, 123.0).toObject();
- QScriptValue result = fun.call(numberObject);
- QCOMPARE(result.isObject(), true);
- QCOMPARE(result.toNumber(), 123.0);
- }
- }
+ QScriptValue numberObject = QScriptValue(&eng, 123.0).toObject();
+ QScriptValue result = fun.call(numberObject);
+ QCOMPARE(result.isObject(), true);
+ QCOMPARE(result.toNumber(), 123.0);
+}
+void tst_QScriptValue::call_arguments()
+{
+ QScriptEngine eng;
// test that correct arguments are passed
- {
- QScriptValue fun = eng.evaluate("(function() { return arguments[0]; })");
- QCOMPARE(fun.isFunction(), true);
-
- {
- QScriptValue result = fun.call(eng.undefinedValue());
- QCOMPARE(result.isUndefined(), true);
- }
-
- {
- QScriptValueList args;
- args << QScriptValue(&eng, 123.0);
- QScriptValue result = fun.call(eng.undefinedValue(), args);
- QCOMPARE(result.isNumber(), true);
- QCOMPARE(result.toNumber(), 123.0);
- }
- // V2 constructors
- {
- QScriptValueList args;
- args << QScriptValue(123.0);
- QScriptValue result = fun.call(eng.undefinedValue(), args);
- QCOMPARE(result.isNumber(), true);
- QCOMPARE(result.toNumber(), 123.0);
- }
- {
- QScriptValue args = eng.newArray();
- args.setProperty(0, 123);
- QScriptValue result = fun.call(eng.undefinedValue(), args);
- QVERIFY(result.isNumber());
- QCOMPARE(result.toNumber(), 123.0);
- }
+ QScriptValue fun = eng.evaluate("(function() { return arguments[0]; })");
+ QCOMPARE(fun.isFunction(), true);
+ {
+ QScriptValue result = fun.call(eng.undefinedValue());
+ QCOMPARE(result.isUndefined(), true);
+ }
+ {
+ QScriptValueList args;
+ args << QScriptValue(&eng, 123.0);
+ QScriptValue result = fun.call(eng.undefinedValue(), args);
+ QCOMPARE(result.isNumber(), true);
+ QCOMPARE(result.toNumber(), 123.0);
+ }
+ // V2 constructors
+ {
+ QScriptValueList args;
+ args << QScriptValue(123.0);
+ QScriptValue result = fun.call(eng.undefinedValue(), args);
+ QCOMPARE(result.isNumber(), true);
+ QCOMPARE(result.toNumber(), 123.0);
}
+ {
+ QScriptValue args = eng.newArray();
+ args.setProperty(0, 123);
+ QScriptValue result = fun.call(eng.undefinedValue(), args);
+ QVERIFY(result.isNumber());
+ QCOMPARE(result.toNumber(), 123.0);
+ }
+}
+void tst_QScriptValue::call()
+{
+ QScriptEngine eng;
{
QScriptValue fun = eng.evaluate("(function() { return arguments[1]; })");
QCOMPARE(fun.isFunction(), true);
@@ -2444,7 +2727,6 @@ void tst_QScriptValue::call()
QCOMPARE(result.toNumber(), 456.0);
}
}
-
{
QScriptValue fun = eng.evaluate("(function() { throw new Error('foo'); })");
QCOMPARE(fun.isFunction(), true);
@@ -2457,7 +2739,6 @@ void tst_QScriptValue::call()
QVERIFY(result.strictlyEquals(eng.uncaughtException()));
}
}
-
{
eng.clearExceptions();
QScriptValue fun = eng.newFunction(getArg);
@@ -2485,7 +2766,6 @@ void tst_QScriptValue::call()
QCOMPARE(result.toNumber(), 123.0);
}
}
-
{
QScriptValue fun = eng.newFunction(evaluateArg);
{
@@ -2497,11 +2777,12 @@ void tst_QScriptValue::call()
QCOMPARE(result.toNumber(), 123.0);
}
}
+}
- QScriptValue inv;
- QCOMPARE(inv.call().isValid(), false);
-
+void tst_QScriptValue::call_invalidArguments()
+{
// test that invalid arguments are handled gracefully
+ QScriptEngine eng;
{
QScriptValue fun = eng.newFunction(getArg);
{
@@ -2534,6 +2815,35 @@ void tst_QScriptValue::call()
QCOMPARE(qIsNaN(ret.toNumber()), true);
}
}
+}
+
+void tst_QScriptValue::call_invalidReturn()
+{
+ // test that invalid return value is handled gracefully
+ QScriptEngine eng;
+ QScriptValue fun = eng.newFunction(returnInvalidValue);
+ eng.globalObject().setProperty("returnInvalidValue", fun);
+ QScriptValue ret = eng.evaluate("returnInvalidValue() + returnInvalidValue()");
+ QCOMPARE(ret.isValid(), true);
+ QCOMPARE(ret.isNumber(), true);
+ QCOMPARE(qIsNaN(ret.toNumber()), true);
+}
+
+void tst_QScriptValue::call_twoEngines()
+{
+ QScriptEngine eng;
+ QScriptValue object = eng.evaluate("Object");
+ QScriptEngine otherEngine;
+ QScriptValue fun = otherEngine.evaluate("(function() { return 1; })");
+ QVERIFY(fun.isFunction());
+ QTest::ignoreMessage(QtWarningMsg, "QScriptValue::call() failed: "
+ "cannot call function with thisObject created in "
+ "a different engine");
+ QCOMPARE(fun.call(object).isValid(), false);
+ QTest::ignoreMessage(QtWarningMsg, "QScriptValue::call() failed: "
+ "cannot call function with argument created in "
+ "a different engine");
+ QCOMPARE(fun.call(QScriptValue(), QScriptValueList() << QScriptValue(&eng, 123)).isValid(), false);
{
QScriptValue fun = eng.evaluate("Object");
QVERIFY(fun.isFunction());
@@ -2544,76 +2854,74 @@ void tst_QScriptValue::call()
QTest::ignoreMessage(QtWarningMsg, "QScriptValue::call() failed: cannot call function with argument created in a different engine");
fun.call(QScriptValue(), args);
}
+}
- // test that invalid return value is handled gracefully
- {
- QScriptValue fun = eng.newFunction(returnInvalidValue);
- eng.globalObject().setProperty("returnInvalidValue", fun);
- QScriptValue ret = eng.evaluate("returnInvalidValue() + returnInvalidValue()");
- QCOMPARE(ret.isValid(), true);
- QCOMPARE(ret.isNumber(), true);
- QCOMPARE(qIsNaN(ret.toNumber()), true);
- }
+void tst_QScriptValue::call_array()
+{
+ QScriptEngine eng;
+ QScriptValue fun = eng.evaluate("(function() { return arguments; })");
+ QVERIFY(fun.isFunction());
+ QScriptValue array = eng.newArray(3);
+ array.setProperty(0, QScriptValue(&eng, 123.0));
+ array.setProperty(1, QScriptValue(&eng, 456.0));
+ array.setProperty(2, QScriptValue(&eng, 789.0));
+ // call with single array object as arguments
+ QScriptValue ret = fun.call(QScriptValue(), array);
+ QVERIFY(!eng.hasUncaughtException());
+ QCOMPARE(ret.isError(), false);
+ QCOMPARE(ret.property(0).strictlyEquals(array.property(0)), true);
+ QCOMPARE(ret.property(1).strictlyEquals(array.property(1)), true);
+ QCOMPARE(ret.property(2).strictlyEquals(array.property(2)), true);
+ // call with arguments object as arguments
+ QScriptValue ret2 = fun.call(QScriptValue(), ret);
+ QCOMPARE(ret2.isError(), false);
+ QCOMPARE(ret2.property(0).strictlyEquals(ret.property(0)), true);
+ QCOMPARE(ret2.property(1).strictlyEquals(ret.property(1)), true);
+ QCOMPARE(ret2.property(2).strictlyEquals(ret.property(2)), true);
+ // call with null as arguments
+ QScriptValue ret3 = fun.call(QScriptValue(), eng.nullValue());
+ QCOMPARE(ret3.isError(), false);
+ QCOMPARE(ret3.property("length").isNumber(), true);
+ QCOMPARE(ret3.property("length").toNumber(), 0.0);
+ // call with undefined as arguments
+ QScriptValue ret4 = fun.call(QScriptValue(), eng.undefinedValue());
+ QCOMPARE(ret4.isError(), false);
+ QCOMPARE(ret4.property("length").isNumber(), true);
+ QCOMPARE(ret4.property("length").toNumber(), 0.0);
+ // call with something else as arguments
+ QScriptValue ret5 = fun.call(QScriptValue(), QScriptValue(&eng, 123.0));
+ QCOMPARE(ret5.isError(), true);
+ // call with a non-array object as arguments
+ QScriptValue ret6 = fun.call(QScriptValue(), eng.globalObject());
+ QVERIFY(ret6.isError());
+ QCOMPARE(ret6.toString(), QString::fromLatin1("TypeError: Arguments must be an array"));
+}
- {
- QScriptEngine otherEngine;
- QScriptValue fun = otherEngine.evaluate("(function() { return 1; })");
- QVERIFY(fun.isFunction());
- QTest::ignoreMessage(QtWarningMsg, "QScriptValue::call() failed: "
- "cannot call function with thisObject created in "
- "a different engine");
- QCOMPARE(fun.call(Object).isValid(), false);
- QTest::ignoreMessage(QtWarningMsg, "QScriptValue::call() failed: "
- "cannot call function with argument created in "
- "a different engine");
- QCOMPARE(fun.call(QScriptValue(), QScriptValueList() << QScriptValue(&eng, 123)).isValid(), false);
- }
- {
- QScriptValue fun = eng.evaluate("(function() { return arguments; })");
- QVERIFY(fun.isFunction());
- QScriptValue array = eng.newArray(3);
- array.setProperty(0, QScriptValue(&eng, 123.0));
- array.setProperty(1, QScriptValue(&eng, 456.0));
- array.setProperty(2, QScriptValue(&eng, 789.0));
- // call with single array object as arguments
- QScriptValue ret = fun.call(QScriptValue(), array);
- QVERIFY(!eng.hasUncaughtException());
- QCOMPARE(ret.isError(), false);
- QCOMPARE(ret.property(0).strictlyEquals(array.property(0)), true);
- QCOMPARE(ret.property(1).strictlyEquals(array.property(1)), true);
- QCOMPARE(ret.property(2).strictlyEquals(array.property(2)), true);
- // call with arguments object as arguments
- QScriptValue ret2 = fun.call(QScriptValue(), ret);
- QCOMPARE(ret2.isError(), false);
- QCOMPARE(ret2.property(0).strictlyEquals(ret.property(0)), true);
- QCOMPARE(ret2.property(1).strictlyEquals(ret.property(1)), true);
- QCOMPARE(ret2.property(2).strictlyEquals(ret.property(2)), true);
- // call with null as arguments
- QScriptValue ret3 = fun.call(QScriptValue(), eng.nullValue());
- QCOMPARE(ret3.isError(), false);
- QCOMPARE(ret3.property("length").isNumber(), true);
- QCOMPARE(ret3.property("length").toNumber(), 0.0);
- // call with undefined as arguments
- QScriptValue ret4 = fun.call(QScriptValue(), eng.undefinedValue());
- QCOMPARE(ret4.isError(), false);
- QCOMPARE(ret4.property("length").isNumber(), true);
- QCOMPARE(ret4.property("length").toNumber(), 0.0);
- // call with something else as arguments
- QScriptValue ret5 = fun.call(QScriptValue(), QScriptValue(&eng, 123.0));
- QCOMPARE(ret5.isError(), true);
- // call with a non-array object as arguments
- QScriptValue ret6 = fun.call(QScriptValue(), eng.globalObject());
- QVERIFY(ret6.isError());
- QCOMPARE(ret6.toString(), QString::fromLatin1("TypeError: Arguments must be an array"));
- }
+void tst_QScriptValue::call_nonFunction_data()
+{
+ newEngine();
+ QTest::addColumn<QScriptValue>("value");
+
+ QTest::newRow("invalid") << QScriptValue();
+ QTest::newRow("bool") << QScriptValue(false);
+ QTest::newRow("int") << QScriptValue(123);
+ QTest::newRow("string") << QScriptValue(QString::fromLatin1("ciao"));
+ QTest::newRow("undefined") << QScriptValue(QScriptValue::UndefinedValue);
+ QTest::newRow("null") << QScriptValue(QScriptValue::NullValue);
+
+ QTest::newRow("bool bound") << QScriptValue(engine, false);
+ QTest::newRow("int bound") << QScriptValue(engine, 123);
+ QTest::newRow("string bound") << QScriptValue(engine, QString::fromLatin1("ciao"));
+ QTest::newRow("undefined bound") << engine->undefinedValue();
+ QTest::newRow("null bound") << engine->nullValue();
+}
+void tst_QScriptValue::call_nonFunction()
+{
// calling things that are not functions
- QVERIFY(!QScriptValue(false).call().isValid());
- QVERIFY(!QScriptValue(123).call().isValid());
- QVERIFY(!QScriptValue(QString::fromLatin1("ciao")).call().isValid());
- QVERIFY(!QScriptValue(QScriptValue::UndefinedValue).call().isValid());
- QVERIFY(!QScriptValue(QScriptValue::NullValue).call().isValid());
+ QFETCH(QScriptValue, value);
+ QVERIFY(!value.call().isValid());
}
static QScriptValue ctorReturningUndefined(QScriptContext *ctx, QScriptEngine *)
@@ -2777,7 +3085,7 @@ void tst_QScriptValue::construct_constructorThrowsPrimitive()
}
}
-void tst_QScriptValue::lessThan_old()
+void tst_QScriptValue::lessThan()
{
QScriptEngine eng;
@@ -2871,7 +3179,7 @@ void tst_QScriptValue::lessThan_old()
QCOMPARE(date1.lessThan(QScriptValue(&otherEngine, 123)), false);
}
-void tst_QScriptValue::equals_old()
+void tst_QScriptValue::equals()
{
QScriptEngine eng;
@@ -3064,7 +3372,7 @@ void tst_QScriptValue::equals_old()
QCOMPARE(date1.equals(QScriptValue(&otherEngine, 123)), false);
}
-void tst_QScriptValue::strictlyEquals_old()
+void tst_QScriptValue::strictlyEquals()
{
QScriptEngine eng;
diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue.h b/tests/auto/qscriptvalue/tst_qscriptvalue.h
index aa6bc6c..7bf0b66 100644
--- a/tests/auto/qscriptvalue/tst_qscriptvalue.h
+++ b/tests/auto/qscriptvalue/tst_qscriptvalue.h
@@ -49,8 +49,6 @@
#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)
@@ -63,162 +61,100 @@ public:
virtual ~tst_QScriptValue();
private slots:
- // Generated test functions
- void isArray_data();
- void isArray();
-
- void isBool_data();
- void isBool();
+ void toObject();
- void isBoolean_data();
- void isBoolean();
+ void ctor_invalid();
+ void ctor_undefinedWithEngine();
+ void ctor_undefined();
+ void ctor_nullWithEngine();
+ void ctor_null();
+ void ctor_boolWithEngine();
+ void ctor_bool();
+ void ctor_intWithEngine();
+ void ctor_int();
+ void ctor_uintWithEngine();
+ void ctor_uint();
+ void ctor_floatWithEngine();
+ void ctor_float();
+ void ctor_stringWithEngine();
+ void ctor_string();
+ void ctor_copyAndAssignWithEngine();
+ void ctor_copyAndAssign();
+ void ctor_nullEngine();
- void isDate_data();
+ void toString();
+ void toNumber();
+ void toBoolean();
+ void toBool();
+ void toInteger();
+ void toInt32();
+ void toUInt32();
+ void toUInt16();
+ void toVariant();
+ void toQObject();
+ void toDateTime();
+ void toRegExp();
+ void instanceOf_twoEngines();
+ void instanceOf();
+ void isArray_data();
+ void isArray();
void isDate();
-
+ void isDate_data();
+ void isError_propertiesOfGlobalObject();
void isError_data();
void isError();
-
- void isFunction_data();
- void isFunction();
-
- void isNull_data();
- void isNull();
-
- void isNumber_data();
- void isNumber();
-
- void isObject_data();
- void isObject();
-
- void isQMetaObject_data();
- void isQMetaObject();
-
- void isQObject_data();
- void isQObject();
-
void isRegExp_data();
void isRegExp();
- void isString_data();
- void isString();
-
- void isUndefined_data();
- void isUndefined();
-
- void isValid_data();
- void isValid();
-
- void isVariant_data();
- void isVariant();
-
- void toBool_data();
- void toBool();
-
- void toBoolean_data();
- void toBoolean();
-
-// void toDateTime_data();
-// void toDateTime();
-
- void toInt32_data();
- void toInt32();
-
- void toInteger_data();
- void toInteger();
-
- void toNumber_data();
- void toNumber();
-
-// void toQMetaObject_data();
-// void toQMetaObject();
-
-// void toQObject_data();
-// void toQObject();
-
-// void toRegExp_data();
-// void toRegExp();
-
- void toString_data();
- void toString();
-
- void toUInt16_data();
- void toUInt16();
-
- void toUInt32_data();
- void toUInt32();
-
-// void toVariant_data();
-// void toVariant();
-
- void equals_data();
+ void lessThan();
void equals();
-
- void strictlyEquals_data();
void strictlyEquals();
- void lessThan_data();
- void lessThan();
-
- void instanceOf_data();
- void instanceOf();
-
- void assignAndCopyConstruct_data();
- void assignAndCopyConstruct();
-
- void qscriptvalue_castQString_data();
- void qscriptvalue_castQString();
-
- void qscriptvalue_castqsreal_data();
- void qscriptvalue_castqsreal();
-
- void qscriptvalue_castbool_data();
- void qscriptvalue_castbool();
-
- void qscriptvalue_castqint32_data();
- void qscriptvalue_castqint32();
-
- void qscriptvalue_castquint32_data();
- void qscriptvalue_castquint32();
-
- void qscriptvalue_castquint16_data();
- void qscriptvalue_castquint16();
-
- // Non-generated test functions
-
- void toObject();
- void ctor();
-
- void toString_old();
- void toNumber_old();
- void toBoolean_old();
- void toBool_old();
- void toInteger_old();
- void toInt32_old();
- void toUInt32_old();
- void toUInt16_old();
- void toVariant_old();
- void toQObject_old();
- void toDateTime_old();
- void toRegExp_old();
- void instanceOf_old();
- void isArray_old();
- void isDate_old();
- void isError_old();
- void isRegExp_old();
-
- void lessThan_old();
- void equals_old();
- void strictlyEquals_old();
-
+ void getSetPrototype_cyclicPrototype();
+ void getSetPrototype_evalCyclicPrototype();
+ void getSetPrototype_eval();
+ void getSetPrototype_invalidPrototype();
+ void getSetPrototype_twoEngines();
+ void getSetPrototype_null();
+ void getSetPrototype_notObjectOrNull();
void getSetPrototype();
void getSetScope();
+ void getSetProperty_HooliganTask162051();
+ void getSetProperty_HooliganTask183072();
+ void getSetProperty_propertyRemoval();
+ void getSetProperty_resolveMode();
+ void getSetProperty_twoEngines();
+ void getSetProperty_gettersAndSetters();
+ void getSetProperty_gettersAndSettersThrowError();
+ void getSetProperty_gettersAndSettersOnNative();
+ void getSetProperty_gettersAndSettersOnGlobalObject();
+ void getSetProperty_gettersAndSettersChange();
+ void getSetProperty_array();
void getSetProperty();
void arrayElementGetterSetter();
- void getSetData();
+ void getSetData_objects_data();
+ void getSetData_objects();
+ void getSetData_nonObjects_data();
+ void getSetData_nonObjects();
void setData_QTBUG15144();
- void getSetScriptClass();
+ void getSetScriptClass_emptyClass_data();
+ void getSetScriptClass_emptyClass();
+ void getSetScriptClass_JSObjectFromCpp();
+ void getSetScriptClass_JSObjectFromJS();
+ void getSetScriptClass_QVariant();
+ void getSetScriptClass_QObject();
+ void call_function();
+ void call_object();
+ void call_newObjects();
+ void call_this();
+ void call_arguments();
void call();
+ void call_invalidArguments();
+ void call_invalidReturn();
+ void call_twoEngines();
+ void call_array();
+ void call_nonFunction_data();
+ void call_nonFunction();
void construct();
void construct_constructorThrowsPrimitive();
void castToPointer();
@@ -230,187 +166,15 @@ private slots:
void nestedObjectToVariant_data();
void nestedObjectToVariant();
-private:
- typedef void (tst_QScriptValue::*InitDataFunction)();
- typedef void (tst_QScriptValue::*DefineDataFunction)(const char *);
- void dataHelper(InitDataFunction init, DefineDataFunction define);
- QTestData &newRow(const char *tag);
-
- typedef void (tst_QScriptValue::*TestFunction)(const char *, const QScriptValue &);
- void testHelper(TestFunction fun);
-
- // Generated functions
-
- void initScriptValues();
-
- void isArray_initData();
- void isArray_makeData(const char *expr);
- void isArray_test(const char *expr, const QScriptValue &value);
-
- void isBool_initData();
- void isBool_makeData(const char *expr);
- void isBool_test(const char *expr, const QScriptValue &value);
-
- void isBoolean_initData();
- void isBoolean_makeData(const char *expr);
- void isBoolean_test(const char *expr, const QScriptValue &value);
-
- void isDate_initData();
- void isDate_makeData(const char *expr);
- void isDate_test(const char *expr, const QScriptValue &value);
-
- void isError_initData();
- void isError_makeData(const char *expr);
- void isError_test(const char *expr, const QScriptValue &value);
-
- void isFunction_initData();
- void isFunction_makeData(const char *expr);
- void isFunction_test(const char *expr, const QScriptValue &value);
-
- void isNull_initData();
- void isNull_makeData(const char *expr);
- void isNull_test(const char *expr, const QScriptValue &value);
-
- void isNumber_initData();
- void isNumber_makeData(const char *expr);
- void isNumber_test(const char *expr, const QScriptValue &value);
-
- void isObject_initData();
- void isObject_makeData(const char *expr);
- void isObject_test(const char *expr, const QScriptValue &value);
-
- void isQMetaObject_initData();
- void isQMetaObject_makeData(const char *expr);
- void isQMetaObject_test(const char *expr, const QScriptValue &value);
-
- void isQObject_initData();
- void isQObject_makeData(const char *expr);
- void isQObject_test(const char *expr, const QScriptValue &value);
-
- void isRegExp_initData();
- void isRegExp_makeData(const char *expr);
- void isRegExp_test(const char *expr, const QScriptValue &value);
-
- void isString_initData();
- void isString_makeData(const char *expr);
- void isString_test(const char *expr, const QScriptValue &value);
-
- void isUndefined_initData();
- void isUndefined_makeData(const char *expr);
- void isUndefined_test(const char *expr, const QScriptValue &value);
-
- void isValid_initData();
- void isValid_makeData(const char *expr);
- void isValid_test(const char *expr, const QScriptValue &value);
-
- void isVariant_initData();
- void isVariant_makeData(const char *expr);
- void isVariant_test(const char *expr, const QScriptValue &value);
-
- void toBool_initData();
- void toBool_makeData(const char *);
- void toBool_test(const char *, const QScriptValue &value);
-
- void toBoolean_initData();
- void toBoolean_makeData(const char *);
- void toBoolean_test(const char *, const QScriptValue &value);
-
- void toDateTime_initData();
- void toDateTime_makeData(const char *);
- void toDateTime_test(const char *, const QScriptValue &value);
-
- void toInt32_initData();
- void toInt32_makeData(const char *);
- void toInt32_test(const char *, const QScriptValue &value);
-
- void toInteger_initData();
- void toInteger_makeData(const char *);
- void toInteger_test(const char *, const QScriptValue &value);
-
- void toNumber_initData();
- void toNumber_makeData(const char *);
- void toNumber_test(const char *, const QScriptValue &value);
-
- void toQMetaObject_initData();
- void toQMetaObject_makeData(const char *);
- void toQMetaObject_test(const char *, const QScriptValue &value);
-
- void toQObject_initData();
- void toQObject_makeData(const char *);
- void toQObject_test(const char *, const QScriptValue &value);
-
- void toRegExp_initData();
- void toRegExp_makeData(const char *);
- void toRegExp_test(const char *, const QScriptValue &value);
-
- void toString_initData();
- void toString_makeData(const char *);
- void toString_test(const char *, const QScriptValue &value);
-
- void toUInt16_initData();
- void toUInt16_makeData(const char *);
- void toUInt16_test(const char *, const QScriptValue &value);
-
- void toUInt32_initData();
- void toUInt32_makeData(const char *);
- void toUInt32_test(const char *, const QScriptValue &value);
-
- void toVariant_initData();
- void toVariant_makeData(const char *);
- void toVariant_test(const char *, const QScriptValue &value);
-
- void equals_initData();
- void equals_makeData(const char *);
- void equals_test(const char *, const QScriptValue &value);
-
- void strictlyEquals_initData();
- void strictlyEquals_makeData(const char *);
- void strictlyEquals_test(const char *, const QScriptValue &value);
-
- void lessThan_initData();
- void lessThan_makeData(const char *);
- void lessThan_test(const char *, const QScriptValue &value);
-
- void instanceOf_initData();
- void instanceOf_makeData(const char *);
- void instanceOf_test(const char *, const QScriptValue &value);
-
- void assignAndCopyConstruct_initData();
- void assignAndCopyConstruct_makeData(const char *);
- void assignAndCopyConstruct_test(const char *, const QScriptValue &value);
-
- void qscriptvalue_castQString_initData();
- void qscriptvalue_castQString_makeData(const char *);
- void qscriptvalue_castQString_test(const char *, const QScriptValue &value);
-
- void qscriptvalue_castqsreal_initData();
- void qscriptvalue_castqsreal_makeData(const char *);
- void qscriptvalue_castqsreal_test(const char *, const QScriptValue &value);
-
- void qscriptvalue_castbool_initData();
- void qscriptvalue_castbool_makeData(const char *);
- void qscriptvalue_castbool_test(const char *, const QScriptValue &value);
-
- void qscriptvalue_castqint32_initData();
- void qscriptvalue_castqint32_makeData(const char *);
- void qscriptvalue_castqint32_test(const char *, const QScriptValue &value);
-
- void qscriptvalue_castquint32_initData();
- void qscriptvalue_castquint32_makeData(const char *);
- void qscriptvalue_castquint32_test(const char *, const QScriptValue &value);
-
- void qscriptvalue_castquint16_initData();
- void qscriptvalue_castquint16_makeData(const char *);
- void qscriptvalue_castquint16_test(const char *, const QScriptValue &value);
private:
+ void newEngine()
+ {
+ if (engine)
+ delete engine;
+ engine = new QScriptEngine();
+ }
QScriptEngine *engine;
- QHash<QString, QScriptValue> m_values;
- QString m_currentExpression;
};
-#define DEFINE_TEST_FUNCTION(name) \
-void tst_QScriptValue::name##_data() { dataHelper(&tst_QScriptValue::name##_initData, &tst_QScriptValue::name##_makeData); } \
-void tst_QScriptValue::name() { testHelper(&tst_QScriptValue::name##_test); }
-
#endif
diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue_generated_cast.cpp b/tests/auto/qscriptvalue/tst_qscriptvalue_generated_cast.cpp
deleted file mode 100644
index e651810..0000000
--- a/tests/auto/qscriptvalue/tst_qscriptvalue_generated_cast.cpp
+++ /dev/null
@@ -1,1453 +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$
-**
-****************************************************************************/
-
-/****************************************************************************
-*************** 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
deleted file mode 100644
index 6e1f8ee..0000000
--- a/tests/auto/qscriptvalue/tst_qscriptvalue_generated_comparison.cpp
+++ /dev/null
@@ -1,7026 +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$
-**
-****************************************************************************/
-
-/****************************************************************************
-*************** 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
deleted file mode 100644
index a9eb2ca..0000000
--- a/tests/auto/qscriptvalue/tst_qscriptvalue_generated_init.cpp
+++ /dev/null
@@ -1,198 +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$
-**
-****************************************************************************/
-
-/****************************************************************************
-*************** 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
deleted file mode 100644
index 106043b..0000000
--- a/tests/auto/qscriptvalue/tst_qscriptvalue_generated_isXXX.cpp
+++ /dev/null
@@ -1,830 +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$
-**
-****************************************************************************/
-
-/****************************************************************************
-*************** 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
deleted file mode 100644
index 754f4e0..0000000
--- a/tests/auto/qscriptvalue/tst_qscriptvalue_generated_toXXX.cpp
+++ /dev/null
@@ -1,1897 +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$
-**
-****************************************************************************/
-
-/****************************************************************************
-*************** 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)