diff options
Diffstat (limited to 'tests/benchmarks/declarative/holistic/data')
114 files changed, 0 insertions, 8448 deletions
diff --git a/tests/benchmarks/declarative/holistic/data/dynamicTargets/DynamicFour.qml b/tests/benchmarks/declarative/holistic/data/dynamicTargets/DynamicFour.qml deleted file mode 100644 index ccccc371ac..0000000000 --- a/tests/benchmarks/declarative/holistic/data/dynamicTargets/DynamicFour.qml +++ /dev/null @@ -1,78 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -Item { - id: root - property int dynamicWidth: 100 - property int dynamicHeight: rect1.height + rect2.height - property int widthSignaledProperty: 10 - property int heightSignaledProperty: 10 - - Rectangle { - id: rect1 - width: root.dynamicWidth + 20 - height: width + (5*3) - 8 + (width/9) - color: "red" - border.color: "black" - border.width: 5 - radius: 10 - } - - Rectangle { - id: rect2 - width: rect1.width - 50 - height: width + (5*4) - 6 + (width/3) - color: "red" - border.color: "black" - border.width: 5 - radius: 10 - } - - onDynamicWidthChanged: { - widthSignaledProperty = widthSignaledProperty + (6*5) - 2; - } - - onDynamicHeightChanged: { - heightSignaledProperty = widthSignaledProperty + heightSignaledProperty + (5*3) - 7; - } -} diff --git a/tests/benchmarks/declarative/holistic/data/dynamicTargets/DynamicOne.qml b/tests/benchmarks/declarative/holistic/data/dynamicTargets/DynamicOne.qml deleted file mode 100644 index 154f9db9a3..0000000000 --- a/tests/benchmarks/declarative/holistic/data/dynamicTargets/DynamicOne.qml +++ /dev/null @@ -1,56 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -Item { - id: root - property int dynamicWidth: 10 - - Rectangle { - width: 100 - height: root.dynamicWidth + (5*3) - 8 + (root.dynamicWidth/10) - color: "red" - border.color: "black" - border.width: 5 - radius: 10 - } -} diff --git a/tests/benchmarks/declarative/holistic/data/dynamicTargets/DynamicThree.qml b/tests/benchmarks/declarative/holistic/data/dynamicTargets/DynamicThree.qml deleted file mode 100644 index 064ba57254..0000000000 --- a/tests/benchmarks/declarative/holistic/data/dynamicTargets/DynamicThree.qml +++ /dev/null @@ -1,61 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -Item { - id: root - property int dynamicWidth: 10 - property int widthSignaledProperty: 20 - - Rectangle { - width: 100 - height: root.dynamicWidth + (5*3) - 8 + (root.dynamicWidth/10) - color: "red" - border.color: "black" - border.width: 5 - radius: 10 - } - - onDynamicWidthChanged: { - widthSignaledProperty = dynamicWidth + (20/4) + 7 - 1; - } -} diff --git a/tests/benchmarks/declarative/holistic/data/dynamicTargets/DynamicTwo.qml b/tests/benchmarks/declarative/holistic/data/dynamicTargets/DynamicTwo.qml deleted file mode 100644 index a3aac3ebd6..0000000000 --- a/tests/benchmarks/declarative/holistic/data/dynamicTargets/DynamicTwo.qml +++ /dev/null @@ -1,68 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -Item { - id: root - property int dynamicWidth: 100 - property int dynamicHeight: rect1.height + rect2.height - - Rectangle { - id: rect1 - width: root.dynamicWidth + 20 - height: width + (5*3) - 8 + (width/9) - color: "red" - border.color: "black" - border.width: 5 - radius: 10 - } - - Rectangle { - id: rect2 - width: rect1.width - 50 - height: width + (5*4) - 6 + (width/3) - color: "red" - border.color: "black" - border.width: 5 - radius: 10 - } -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/Mlbsi.qml b/tests/benchmarks/declarative/holistic/data/jsImports/Mlbsi.qml deleted file mode 100644 index 854cc3258d..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/Mlbsi.qml +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -import "mlbsi.js" as MlbsiJs - -Item { - id: testQtObject - property int importedScriptFunctionValue: MlbsiJs.testFunc(20) -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/Mldsi.qml b/tests/benchmarks/declarative/holistic/data/jsImports/Mldsi.qml deleted file mode 100644 index 919fce1c46..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/Mldsi.qml +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -import "mldsi.js" as MldsiJs - -Item { - id: testQtObject - property int importedScriptFunctionValue: MldsiJs.testFunc(20) -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/Mlsi.qml b/tests/benchmarks/declarative/holistic/data/jsImports/Mlsi.qml deleted file mode 100644 index 74451f85fd..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/Mlsi.qml +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -import "mlsi.js" as MlsiJs - -Item { - id: testQtObject - property int importedScriptFunctionValue: MlsiJs.testFunc(20) -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/ModuleBm.qml b/tests/benchmarks/declarative/holistic/data/jsImports/ModuleBm.qml deleted file mode 100644 index 18ef8a2599..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/ModuleBm.qml +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -import "moduleBm.js" as ModuleBmJs - -Item { - id: testQtObject - property int importedScriptFunctionValue: ModuleBmJs.testFunc(20) -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/Msbsi.qml b/tests/benchmarks/declarative/holistic/data/jsImports/Msbsi.qml deleted file mode 100644 index d7a8b74dd1..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/Msbsi.qml +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -import "msbsi.js" as MsbsiJs - -Item { - id: testQtObject - property int importedScriptFunctionValue: MsbsiJs.testFunc(20) -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/Msdsi.qml b/tests/benchmarks/declarative/holistic/data/jsImports/Msdsi.qml deleted file mode 100644 index 266a26ef8e..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/Msdsi.qml +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -import "msdsi.js" as MsdsiJs - -Item { - id: testQtObject - property int importedScriptFunctionValue: MsdsiJs.testFunc(20) -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/Mssi.qml b/tests/benchmarks/declarative/holistic/data/jsImports/Mssi.qml deleted file mode 100644 index e589981252..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/Mssi.qml +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -import "mssi.js" as MssiJs - -Item { - id: testQtObject - property int importedScriptFunctionValue: MssiJs.testFunc(20) -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/PragmaBm.qml b/tests/benchmarks/declarative/holistic/data/jsImports/PragmaBm.qml deleted file mode 100644 index f5753af88b..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/PragmaBm.qml +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -import "pragmaBmOne.js" as PragmaBmOneJs -import "pragmaBmTwo.js" as PragmaBmTwoJs - -Item { - id: testQtObject - - // value = 20 + 2 + 9 + (nbr times shared testFunc has been called previously == 0) - property int importedScriptFunctionValueOne: PragmaBmOneJs.testFuncOne(20) - - // value = 20 + 3 + 9 + (nbr times shared testFunc has been called previously == 1) - property int importedScriptFunctionValueTwo: PragmaBmTwoJs.testFuncTwo(20) -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/PragmaModuleBm.qml b/tests/benchmarks/declarative/holistic/data/jsImports/PragmaModuleBm.qml deleted file mode 100644 index 8e1baa8572..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/PragmaModuleBm.qml +++ /dev/null @@ -1,51 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -import "pragmaModuleBm.js" as PragmaModuleBmJs - -Item { - id: testQtObject - - // value = 20 + (Qt.test.Enum3 == 2) + 9 + (nbr times shared testFunc has been called previously = 0) + 9 + (nbr times shared testFunc has been called previously = 1) - property int importedScriptFunctionValue: PragmaModuleBmJs.testFuncThree(20) -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/Slsi.qml b/tests/benchmarks/declarative/holistic/data/jsImports/Slsi.qml deleted file mode 100644 index aa21358b47..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/Slsi.qml +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -import "slsi.js" as SlsiJs - -Item { - id: testQtObject - property int importedScriptFunctionValue: SlsiJs.testFunc(20) -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/Sssi.qml b/tests/benchmarks/declarative/holistic/data/jsImports/Sssi.qml deleted file mode 100644 index 0ed7a3ee72..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/Sssi.qml +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -import "sssi.js" as SssiJs - -Item { - id: testQtObject - property int importedScriptFunctionValue: SssiJs.testFunc(20) -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi.js b/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi.js deleted file mode 100644 index 36a5fea77f..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi.js +++ /dev/null @@ -1,133 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It imports many other (non-nested) single, small, scripts. - -.import "mlbsi1.js" as Mlbsi1 -.import "mlbsi2.js" as Mlbsi2 -.import "mlbsi3.js" as Mlbsi3 -.import "mlbsi4.js" as Mlbsi4 -.import "mlbsi5.js" as Mlbsi5 -.import "mlbsi6.js" as Mlbsi6 -.import "mlbsi7.js" as Mlbsi7 -.import "mlbsi8.js" as Mlbsi8 -.import "mlbsi9.js" as Mlbsi9 -.import "mlbsi10.js" as Mlbsi10 -.import "mlbsi11.js" as Mlbsi11 -.import "mlbsi12.js" as Mlbsi12 -.import "mlbsi13.js" as Mlbsi13 -.import "mlbsi14.js" as Mlbsi14 -.import "mlbsi15.js" as Mlbsi15 - -function testFunc(seedValue) { - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - var retn = cumulativeTotal * 0.53; - retn += Mlbsi1.testFunc(seedValue); - retn += Mlbsi2.testFunc(seedValue); - retn += Mlbsi3.testFunc(seedValue); - retn += Mlbsi4.testFunc(seedValue); - retn += Mlbsi5.testFunc(seedValue); - retn += Mlbsi6.testFunc(retn); - retn += Mlbsi7.testFunc(seedValue); - retn += Mlbsi8.testFunc(seedValue); - retn += Mlbsi9.testFunc(retn); - retn += Mlbsi10.testFunc(seedValue); - retn += Mlbsi11.testFunc(seedValue); - retn += Mlbsi12.testFunc(seedValue); - retn += Mlbsi13.testFunc(seedValue); - retn += Mlbsi14.testFunc(seedValue); - retn += Mlbsi15.testFunc(seedValue); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.000017 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.000017 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi1.js b/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi1.js deleted file mode 100644 index 459451609b..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi1.js +++ /dev/null @@ -1,108 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.145); - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00001 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00001 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi10.js b/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi10.js deleted file mode 100644 index 69202e63eb..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi10.js +++ /dev/null @@ -1,108 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.1045); - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.000010 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.000010 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi11.js b/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi11.js deleted file mode 100644 index 9f3e28a1f6..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi11.js +++ /dev/null @@ -1,108 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.1145); - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.000011 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.000011 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi12.js b/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi12.js deleted file mode 100644 index 349c7cdd3f..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi12.js +++ /dev/null @@ -1,108 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.1245); - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.000012 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.000012 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi13.js b/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi13.js deleted file mode 100644 index 925178fadb..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi13.js +++ /dev/null @@ -1,108 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.1345); - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.000013 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.000013 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi14.js b/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi14.js deleted file mode 100644 index 25f17ca1b8..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi14.js +++ /dev/null @@ -1,108 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.1445); - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.000014 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.000014 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi15.js b/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi15.js deleted file mode 100644 index 9445222cd9..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi15.js +++ /dev/null @@ -1,108 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.1545); - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.000015 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.000015 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi2.js b/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi2.js deleted file mode 100644 index f375c57663..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi2.js +++ /dev/null @@ -1,108 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.245); - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00002 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00002 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi3.js b/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi3.js deleted file mode 100644 index 0bfe7f021d..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi3.js +++ /dev/null @@ -1,108 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.345); - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00003 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00003 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi4.js b/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi4.js deleted file mode 100644 index 8707e296ec..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi4.js +++ /dev/null @@ -1,108 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.445); - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00004 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00004 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi5.js b/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi5.js deleted file mode 100644 index 0b1e8cf3de..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi5.js +++ /dev/null @@ -1,108 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.545); - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00005 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00005 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi6.js b/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi6.js deleted file mode 100644 index eb839108de..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi6.js +++ /dev/null @@ -1,108 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.645); - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00006 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00006 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi7.js b/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi7.js deleted file mode 100644 index fb22fa8f73..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi7.js +++ /dev/null @@ -1,108 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.745); - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00007 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00007 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi8.js b/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi8.js deleted file mode 100644 index 736703c5bc..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi8.js +++ /dev/null @@ -1,108 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.845); - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00008 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00008 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi9.js b/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi9.js deleted file mode 100644 index a1587a7de9..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mlbsi9.js +++ /dev/null @@ -1,108 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.945); - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00009 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00009 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi.js b/tests/benchmarks/declarative/holistic/data/jsImports/mldsi.js deleted file mode 100644 index c0bad9c5a6..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi.js +++ /dev/null @@ -1,105 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It imports other small scripts which are deeply nested. - -.import "mldsi1.js" as Mldsi1 - -function testFunc(seedValue) { - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - var retn = cumulativeTotal * 0.5; - retn *= Mldsi1.testFunc(seedValue + retn); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.000017 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.000017 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi1.js b/tests/benchmarks/declarative/holistic/data/jsImports/mldsi1.js deleted file mode 100644 index b2a513da3b..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi1.js +++ /dev/null @@ -1,107 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It imports other large scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi2.js" as Msdsi2 - -function testFunc(seedValue) { - var retn = 0.15; - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= Msdsi2.testFunc(seedValue + retn); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00001 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00001 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi10.js b/tests/benchmarks/declarative/holistic/data/jsImports/mldsi10.js deleted file mode 100644 index 864f027a6e..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi10.js +++ /dev/null @@ -1,107 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It imports other large scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi11.js" as Msdsi11 - -function testFunc(seedValue) { - var retn = 0.105; - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= Msdsi11.testFunc(seedValue + retn); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.000010 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.000010 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi11.js b/tests/benchmarks/declarative/holistic/data/jsImports/mldsi11.js deleted file mode 100644 index 2c126ec1c6..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi11.js +++ /dev/null @@ -1,107 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It imports other large scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi12.js" as Msdsi12 - -function testFunc(seedValue) { - var retn = 0.115; - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= Msdsi12.testFunc(seedValue + retn); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.000011 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.000011 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi12.js b/tests/benchmarks/declarative/holistic/data/jsImports/mldsi12.js deleted file mode 100644 index 76c14d8771..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi12.js +++ /dev/null @@ -1,107 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It imports other large scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi13.js" as Msdsi13 - -function testFunc(seedValue) { - var retn = 0.125; - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= Msdsi13.testFunc(seedValue + retn); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.000012 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.000012 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi13.js b/tests/benchmarks/declarative/holistic/data/jsImports/mldsi13.js deleted file mode 100644 index aaa2c6ab14..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi13.js +++ /dev/null @@ -1,107 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It imports other large scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi14.js" as Msdsi14 - -function testFunc(seedValue) { - var retn = 0.135; - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= Msdsi14.testFunc(seedValue + retn); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.000013 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.000013 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi14.js b/tests/benchmarks/declarative/holistic/data/jsImports/mldsi14.js deleted file mode 100644 index 11394a87fb..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi14.js +++ /dev/null @@ -1,107 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It imports other large scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi15.js" as Msdsi15 - -function testFunc(seedValue) { - var retn = 0.145; - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= Msdsi15.testFunc(seedValue + retn); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.000014 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.000014 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi15.js b/tests/benchmarks/declarative/holistic/data/jsImports/mldsi15.js deleted file mode 100644 index 2978dbedf3..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi15.js +++ /dev/null @@ -1,104 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It is imported by another script. - -function testFunc(seedValue) { - var retn = 0.155; - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= (seedValue + retn); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.000015 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.000015 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi2.js b/tests/benchmarks/declarative/holistic/data/jsImports/mldsi2.js deleted file mode 100644 index f9105c07f2..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi2.js +++ /dev/null @@ -1,107 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It imports other large scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi3.js" as Msdsi3 - -function testFunc(seedValue) { - var retn = 0.25; - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= Msdsi3.testFunc(seedValue + retn); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00002 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00002 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi3.js b/tests/benchmarks/declarative/holistic/data/jsImports/mldsi3.js deleted file mode 100644 index 046988b47a..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi3.js +++ /dev/null @@ -1,107 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It imports other large scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi4.js" as Msdsi4 - -function testFunc(seedValue) { - var retn = 0.35; - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= Msdsi4.testFunc(seedValue + retn); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00003 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00003 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi4.js b/tests/benchmarks/declarative/holistic/data/jsImports/mldsi4.js deleted file mode 100644 index 7996c0d3f1..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi4.js +++ /dev/null @@ -1,107 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It imports other large scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi5.js" as Msdsi5 - -function testFunc(seedValue) { - var retn = 0.45; - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= Msdsi5.testFunc(seedValue + retn); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00004 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00004 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi5.js b/tests/benchmarks/declarative/holistic/data/jsImports/mldsi5.js deleted file mode 100644 index 183a09153a..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi5.js +++ /dev/null @@ -1,107 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It imports other large scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi6.js" as Msdsi6 - -function testFunc(seedValue) { - var retn = 0.55; - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= Msdsi6.testFunc(seedValue + retn); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00005 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00005 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi6.js b/tests/benchmarks/declarative/holistic/data/jsImports/mldsi6.js deleted file mode 100644 index ad17faa47d..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi6.js +++ /dev/null @@ -1,107 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It imports other large scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi7.js" as Msdsi7 - -function testFunc(seedValue) { - var retn = 0.65; - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= Msdsi7.testFunc(seedValue + retn); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00006 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00006 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi7.js b/tests/benchmarks/declarative/holistic/data/jsImports/mldsi7.js deleted file mode 100644 index 07e69fe6ee..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi7.js +++ /dev/null @@ -1,107 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It imports other large scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi8.js" as Msdsi8 - -function testFunc(seedValue) { - var retn = 0.75; - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= Msdsi8.testFunc(seedValue + retn); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00007 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00007 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi8.js b/tests/benchmarks/declarative/holistic/data/jsImports/mldsi8.js deleted file mode 100644 index cf245f461c..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi8.js +++ /dev/null @@ -1,107 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It imports other large scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi9.js" as Msdsi9 - -function testFunc(seedValue) { - var retn = 0.85; - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= Msdsi9.testFunc(seedValue + retn); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00008 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00008 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi9.js b/tests/benchmarks/declarative/holistic/data/jsImports/mldsi9.js deleted file mode 100644 index 2286e15d79..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mldsi9.js +++ /dev/null @@ -1,107 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It imports other large scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi10.js" as Msdsi10 - -function testFunc(seedValue) { - var retn = 0.95; - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn *= (1 + (cumulativeTotal * 0.001)); - retn *= Msdsi10.testFunc(seedValue + retn); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00009 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00009 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mlsi.js b/tests/benchmarks/declarative/holistic/data/jsImports/mlsi.js deleted file mode 100644 index 8c05cfb8bd..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mlsi.js +++ /dev/null @@ -1,138 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It imports many other (non-nested) single, large, scripts, -// and also imports many other nested, large scripts. - -.import "mldsi4.js" as Mldsi4 -.import "mldsi9.js" as Mldsi9 -.import "mlbsi1.js" as Mlbsi1 -.import "mlbsi2.js" as Mlbsi2 -.import "mlbsi3.js" as Mlbsi3 -.import "mlbsi4.js" as Mlbsi4 -.import "mlbsi5.js" as Mlbsi5 -.import "mlbsi6.js" as Mlbsi6 -.import "mlbsi7.js" as Mlbsi7 -.import "mlbsi8.js" as Mlbsi8 -.import "mlbsi9.js" as Mlbsi9 -.import "mlbsi10.js" as Mlbsi10 -.import "mlbsi11.js" as Mlbsi11 -.import "mlbsi12.js" as Mlbsi12 -.import "mlbsi13.js" as Mlbsi13 -.import "mlbsi14.js" as Mlbsi14 -.import "mlbsi15.js" as Mlbsi15 - -function testFunc(seedValue) { - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - var retn = cumulativeTotal; - retn += Mlbsi1.testFunc(seedValue); - retn += Mlbsi2.testFunc(seedValue); - retn += Mlbsi3.testFunc(retn); - retn += Mlbsi4.testFunc(seedValue); - retn += Mlbsi5.testFunc(seedValue); - retn += Mlbsi6.testFunc(seedValue); - retn *= Mldsi9.testFunc(retn); - retn += Mlbsi7.testFunc(seedValue); - retn += Mlbsi8.testFunc(retn); - retn += Mlbsi9.testFunc(seedValue); - retn += Mlbsi10.testFunc(seedValue); - retn += Mlbsi11.testFunc(seedValue); - retn *= Mldsi4.testFunc(retn); - retn += Mlbsi12.testFunc(seedValue); - retn += Mlbsi13.testFunc(retn); - retn += Mlbsi14.testFunc(seedValue); - retn += Mlbsi15.testFunc(seedValue); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00001 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00001 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/moduleBm.js b/tests/benchmarks/declarative/holistic/data/jsImports/moduleBm.js deleted file mode 100644 index 29bd1f83af..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/moduleBm.js +++ /dev/null @@ -1,109 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It doesn't import any other scripts. -.import Qt.test 1.0 as QtTest - -function testFunc(seedValue) { - var retn = QtTest.EnumValue3; - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn += (cumulativeTotal * 0.45); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00001 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00001 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} - - diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi.js b/tests/benchmarks/declarative/holistic/data/jsImports/msbsi.js deleted file mode 100644 index 5126faca00..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi.js +++ /dev/null @@ -1,79 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It imports many other (non-nested) single, small, scripts. - -.import "msbsi1.js" as Msbsi1 -.import "msbsi2.js" as Msbsi2 -.import "msbsi3.js" as Msbsi3 -.import "msbsi4.js" as Msbsi4 -.import "msbsi5.js" as Msbsi5 -.import "msbsi6.js" as Msbsi6 -.import "msbsi7.js" as Msbsi7 -.import "msbsi8.js" as Msbsi8 -.import "msbsi9.js" as Msbsi9 -.import "msbsi10.js" as Msbsi10 -.import "msbsi11.js" as Msbsi11 -.import "msbsi12.js" as Msbsi12 -.import "msbsi13.js" as Msbsi13 -.import "msbsi14.js" as Msbsi14 -.import "msbsi15.js" as Msbsi15 - -function testFunc(seedValue) { - var retn = 10 * (seedValue * 0.45); - retn += Msbsi1.testFunc(seedValue); - retn += Msbsi2.testFunc(seedValue); - retn += Msbsi3.testFunc(seedValue); - retn += Msbsi4.testFunc(seedValue); - retn += Msbsi5.testFunc(seedValue); - retn += Msbsi6.testFunc(seedValue); - retn += Msbsi7.testFunc(seedValue); - retn += Msbsi8.testFunc(seedValue); - retn += Msbsi9.testFunc(seedValue); - retn += Msbsi10.testFunc(seedValue); - retn += Msbsi11.testFunc(seedValue); - retn += Msbsi12.testFunc(seedValue); - retn += Msbsi13.testFunc(seedValue); - retn += Msbsi14.testFunc(seedValue); - retn += Msbsi15.testFunc(seedValue); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi1.js b/tests/benchmarks/declarative/holistic/data/jsImports/msbsi1.js deleted file mode 100644 index d5ba35fc97..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi1.js +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.145); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi10.js b/tests/benchmarks/declarative/holistic/data/jsImports/msbsi10.js deleted file mode 100644 index f24ad0f7ee..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi10.js +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.1045); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi11.js b/tests/benchmarks/declarative/holistic/data/jsImports/msbsi11.js deleted file mode 100644 index 30e072ab04..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi11.js +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.1145); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi12.js b/tests/benchmarks/declarative/holistic/data/jsImports/msbsi12.js deleted file mode 100644 index 3bf414a0ec..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi12.js +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.1245); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi13.js b/tests/benchmarks/declarative/holistic/data/jsImports/msbsi13.js deleted file mode 100644 index 7487b7f1a9..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi13.js +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.1345); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi14.js b/tests/benchmarks/declarative/holistic/data/jsImports/msbsi14.js deleted file mode 100644 index 504b365752..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi14.js +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.1445); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi15.js b/tests/benchmarks/declarative/holistic/data/jsImports/msbsi15.js deleted file mode 100644 index 1887f157c1..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi15.js +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.1545); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi2.js b/tests/benchmarks/declarative/holistic/data/jsImports/msbsi2.js deleted file mode 100644 index 56997c1394..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi2.js +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.245); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi3.js b/tests/benchmarks/declarative/holistic/data/jsImports/msbsi3.js deleted file mode 100644 index ce84ab63e4..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi3.js +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.345); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi4.js b/tests/benchmarks/declarative/holistic/data/jsImports/msbsi4.js deleted file mode 100644 index 61d15d11af..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi4.js +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.445); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi5.js b/tests/benchmarks/declarative/holistic/data/jsImports/msbsi5.js deleted file mode 100644 index e5bf0e1527..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi5.js +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.545); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi6.js b/tests/benchmarks/declarative/holistic/data/jsImports/msbsi6.js deleted file mode 100644 index 8f25ad23d8..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi6.js +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.645); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi7.js b/tests/benchmarks/declarative/holistic/data/jsImports/msbsi7.js deleted file mode 100644 index 70d521d3dc..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi7.js +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.745); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi8.js b/tests/benchmarks/declarative/holistic/data/jsImports/msbsi8.js deleted file mode 100644 index ed9f473ff9..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi8.js +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.845); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi9.js b/tests/benchmarks/declarative/holistic/data/jsImports/msbsi9.js deleted file mode 100644 index 73a8eaf37b..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msbsi9.js +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It doesn't import any other scripts. -// It is imported from another script. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.945); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi.js b/tests/benchmarks/declarative/holistic/data/jsImports/msdsi.js deleted file mode 100644 index f88af5b416..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi.js +++ /dev/null @@ -1,51 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It imports other small scripts which are deeply nested. - -.import "msdsi1.js" as Msdsi1 - -function testFunc(seedValue) { - var retn = 0.5; - retn *= Msdsi1.testFunc(seedValue + retn); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi1.js b/tests/benchmarks/declarative/holistic/data/jsImports/msdsi1.js deleted file mode 100644 index 1d60d24b5e..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi1.js +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It imports other small scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi2.js" as Msdsi2 - -function testFunc(seedValue) { - var retn = 0.15; - retn *= Msdsi2.testFunc(seedValue + retn); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi10.js b/tests/benchmarks/declarative/holistic/data/jsImports/msdsi10.js deleted file mode 100644 index 8b1151f3e2..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi10.js +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It imports other small scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi11.js" as Msdsi11 - -function testFunc(seedValue) { - var retn = 0.105; - retn *= Msdsi11.testFunc(seedValue + retn); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi11.js b/tests/benchmarks/declarative/holistic/data/jsImports/msdsi11.js deleted file mode 100644 index b27d0f37af..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi11.js +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It imports other small scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi12.js" as Msdsi12 - -function testFunc(seedValue) { - var retn = 0.115; - retn *= Msdsi12.testFunc(seedValue + retn); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi12.js b/tests/benchmarks/declarative/holistic/data/jsImports/msdsi12.js deleted file mode 100644 index ba62852113..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi12.js +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It imports other small scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi13.js" as Msdsi13 - -function testFunc(seedValue) { - var retn = 0.125; - retn *= Msdsi13.testFunc(seedValue + retn); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi13.js b/tests/benchmarks/declarative/holistic/data/jsImports/msdsi13.js deleted file mode 100644 index f4b17ff627..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi13.js +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It imports other small scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi14.js" as Msdsi14 - -function testFunc(seedValue) { - var retn = 0.135; - retn *= Msdsi14.testFunc(seedValue + retn); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi14.js b/tests/benchmarks/declarative/holistic/data/jsImports/msdsi14.js deleted file mode 100644 index 4f96539faf..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi14.js +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It imports other small scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi15.js" as Msdsi15 - -function testFunc(seedValue) { - var retn = 0.145; - retn *= Msdsi15.testFunc(seedValue + retn); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi15.js b/tests/benchmarks/declarative/holistic/data/jsImports/msdsi15.js deleted file mode 100644 index 113ed1bdc8..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi15.js +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It is imported by another script. - -function testFunc(seedValue) { - var retn = 0.155; - retn *= (seedValue + retn); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi2.js b/tests/benchmarks/declarative/holistic/data/jsImports/msdsi2.js deleted file mode 100644 index 67a35bc3ae..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi2.js +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It imports other small scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi3.js" as Msdsi3 - -function testFunc(seedValue) { - var retn = 0.25; - retn *= Msdsi3.testFunc(seedValue + retn); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi3.js b/tests/benchmarks/declarative/holistic/data/jsImports/msdsi3.js deleted file mode 100644 index 81b4747409..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi3.js +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It imports other small scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi4.js" as Msdsi4 - -function testFunc(seedValue) { - var retn = 0.35; - retn *= Msdsi4.testFunc(seedValue + retn); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi4.js b/tests/benchmarks/declarative/holistic/data/jsImports/msdsi4.js deleted file mode 100644 index 37a4d9d2aa..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi4.js +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It imports other small scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi5.js" as Msdsi5 - -function testFunc(seedValue) { - var retn = 0.45; - retn *= Msdsi5.testFunc(seedValue + retn); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi5.js b/tests/benchmarks/declarative/holistic/data/jsImports/msdsi5.js deleted file mode 100644 index df57e75cea..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi5.js +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It imports other small scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi6.js" as Msdsi6 - -function testFunc(seedValue) { - var retn = 0.55; - retn *= Msdsi6.testFunc(seedValue + retn); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi6.js b/tests/benchmarks/declarative/holistic/data/jsImports/msdsi6.js deleted file mode 100644 index 43e0b43877..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi6.js +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It imports other small scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi7.js" as Msdsi7 - -function testFunc(seedValue) { - var retn = 0.65; - retn *= Msdsi7.testFunc(seedValue + retn); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi7.js b/tests/benchmarks/declarative/holistic/data/jsImports/msdsi7.js deleted file mode 100644 index 569b613e92..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi7.js +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It imports other small scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi8.js" as Msdsi8 - -function testFunc(seedValue) { - var retn = 0.75; - retn *= Msdsi8.testFunc(seedValue + retn); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi8.js b/tests/benchmarks/declarative/holistic/data/jsImports/msdsi8.js deleted file mode 100644 index b1a5bd514b..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi8.js +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It imports other small scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi9.js" as Msdsi9 - -function testFunc(seedValue) { - var retn = 0.85; - retn *= Msdsi9.testFunc(seedValue + retn); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi9.js b/tests/benchmarks/declarative/holistic/data/jsImports/msdsi9.js deleted file mode 100644 index 3a0c4d0354..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/msdsi9.js +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It imports other small scripts which are deeply nested. -// It is imported by another script. - -.import "msdsi10.js" as Msdsi10 - -function testFunc(seedValue) { - var retn = 0.95; - retn *= Msdsi10.testFunc(seedValue + retn); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mssi.js b/tests/benchmarks/declarative/holistic/data/jsImports/mssi.js deleted file mode 100644 index 7a82033d88..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/mssi.js +++ /dev/null @@ -1,84 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It imports many other (non-nested) single, small, scripts, -// and also imports many other nested, small scripts. - -.import "msdsi4.js" as Msdsi4 -.import "msdsi9.js" as Msdsi9 -.import "msbsi1.js" as Msbsi1 -.import "msbsi2.js" as Msbsi2 -.import "msbsi3.js" as Msbsi3 -.import "msbsi4.js" as Msbsi4 -.import "msbsi5.js" as Msbsi5 -.import "msbsi6.js" as Msbsi6 -.import "msbsi7.js" as Msbsi7 -.import "msbsi8.js" as Msbsi8 -.import "msbsi9.js" as Msbsi9 -.import "msbsi10.js" as Msbsi10 -.import "msbsi11.js" as Msbsi11 -.import "msbsi12.js" as Msbsi12 -.import "msbsi13.js" as Msbsi13 -.import "msbsi14.js" as Msbsi14 -.import "msbsi15.js" as Msbsi15 - -function testFunc(seedValue) { - var retn = 10 * (seedValue * 0.85); - retn += Msbsi1.testFunc(seedValue); - retn += Msbsi2.testFunc(seedValue); - retn += Msbsi3.testFunc(retn); - retn += Msbsi4.testFunc(seedValue); - retn += Msbsi5.testFunc(seedValue); - retn += Msbsi6.testFunc(seedValue); - retn *= Msdsi9.testFunc(retn); - retn += Msbsi7.testFunc(seedValue); - retn += Msbsi8.testFunc(retn); - retn += Msbsi9.testFunc(seedValue); - retn += Msbsi10.testFunc(seedValue); - retn += Msbsi11.testFunc(seedValue); - retn *= Msdsi4.testFunc(retn); - retn += Msbsi12.testFunc(seedValue); - retn += Msbsi13.testFunc(retn); - retn += Msbsi14.testFunc(seedValue); - retn += Msbsi15.testFunc(seedValue); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/pragmaBmOne.js b/tests/benchmarks/declarative/holistic/data/jsImports/pragmaBmOne.js deleted file mode 100644 index b92b79afaf..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/pragmaBmOne.js +++ /dev/null @@ -1,50 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It imports a shared library script. -.import "pragmaLib.js" as PragmaLibJs - -function testFuncOne(seedValue) { - var retn = seedValue + 2; - retn += PragmaLibJs.testFunc(); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/pragmaBmTwo.js b/tests/benchmarks/declarative/holistic/data/jsImports/pragmaBmTwo.js deleted file mode 100644 index c086016bef..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/pragmaBmTwo.js +++ /dev/null @@ -1,50 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It imports a shared library script. -.import "pragmaLib.js" as PragmaLibJs - -function testFuncTwo(seedValue) { - var retn = seedValue + 3; - retn += PragmaLibJs.testFunc(); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/pragmaLib.js b/tests/benchmarks/declarative/holistic/data/jsImports/pragmaLib.js deleted file mode 100644 index 8b65a68111..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/pragmaLib.js +++ /dev/null @@ -1,119 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It doesn't import any other scripts. -// It is a shared script, with data which should be shared. -.pragma library - -var sharedValue = 9; - -function testFunc() { - var retn = sharedValue; - sharedValue += 1; // increment the shared value - return retn; -} - -function testFuncBig(seedValue) { - var retn = sharedValue; - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn += (cumulativeTotal * 0.45); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - sharedValue += 1; // increment the shared value - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00001 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00001 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} - - diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/pragmaModuleBm.js b/tests/benchmarks/declarative/holistic/data/jsImports/pragmaModuleBm.js deleted file mode 100644 index df710f1acf..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/pragmaModuleBm.js +++ /dev/null @@ -1,57 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It imports a QML module and two other scripts. -// Each of those two other scripts imports a single script, -// which is a .pragma library script (shared between the two). - -.import Qt.test 1.0 as QtTest -.import "pragmaBmOne.js" as PragmaBmOneJs -.import "pragmaBmTwo.js" as PragmaBmTwoJs - -function testFuncThree(seedValue) { - var retn = seedValue + QtTest.EnumValue3; - retn += PragmaBmOneJs.testFuncOne(seedValue); - retn += PragmaBmTwoJs.testFuncTwo(seedValue); - return retn; -} - diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/slsi.js b/tests/benchmarks/declarative/holistic/data/jsImports/slsi.js deleted file mode 100644 index 98af47885f..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/slsi.js +++ /dev/null @@ -1,108 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, large, imported script. -// It doesn't import any other scripts. - -function testFunc(seedValue) { - var retn = 5; - var firstFactor = calculateFirstFactor(seedValue); - var secondFactor = calculateSecondFactor(seedValue); - var modificationTerm = calculateModificationTerm(seedValue); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (seedValue * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (seedValue * 50)) { - break; - } - } - } - retn += (cumulativeTotal * 0.45); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} - -function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00001 / seedValue)); - return firstFactor; -} - -function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00001 / seedValue)); - return secondFactor; -} - -function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((calculateFirstFactor(seedValue) * seedValue) / 3) + (4*calculateSecondFactor(seedValue) * seedValue * 1.33)) + (calculateSecondFactor(seedValue) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; -} - - diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/sssi.js b/tests/benchmarks/declarative/holistic/data/jsImports/sssi.js deleted file mode 100644 index 88d9fb643b..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsImports/sssi.js +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This JavaScript file is a single, small, imported script. -// It doesn't import any other scripts. - -function testFunc(seedValue) { - var retn = 5; - retn += (seedValue * 0.45); - retn *= (1 + (3.1415962 / seedValue)); - retn /= 2.41497; - retn -= (seedValue * -1); - return retn; -} diff --git a/tests/benchmarks/declarative/holistic/data/jsTargets/JsOne.qml b/tests/benchmarks/declarative/holistic/data/jsTargets/JsOne.qml deleted file mode 100644 index 41d4ff5bbd..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsTargets/JsOne.qml +++ /dev/null @@ -1,61 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -Item { - id: root - property int dynamicWidth: 10 - property int widthSignaledProperty: 20 - - Rectangle { - width: 100 - height: 50 - color: "red" - border.color: "black" - border.width: 5 - radius: 10 - } - - onDynamicWidthChanged: { - widthSignaledProperty = dynamicWidth + (20/4) + 7 - 1; - } -} diff --git a/tests/benchmarks/declarative/holistic/data/jsTargets/JsTwo.qml b/tests/benchmarks/declarative/holistic/data/jsTargets/JsTwo.qml deleted file mode 100644 index cb5da5a22d..0000000000 --- a/tests/benchmarks/declarative/holistic/data/jsTargets/JsTwo.qml +++ /dev/null @@ -1,118 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -Item { - id: root - property int dynamicWidth: 10 - property int widthSignaledProperty: 20 - - Rectangle { - width: 100 - height: 50 - color: "red" - border.color: "black" - border.width: 5 - radius: 10 - } - - function calculateFirstFactor(seedValue) { - var firstFactor = (0.45 * (9.3 / 3.1) - 0.90); - firstFactor *= (1 + (0.00001 / seedValue)); - return firstFactor; - } - - function calculateSecondFactor(seedValue) { - var secondFactor = 0.78 * (6.3 / 2.1) - (0.39 * 4); - secondFactor *= (1 + (0.00001 / seedValue)); - return secondFactor; - } - - function calculateModificationTerm(seedValue) { - var modificationTerm = (12 + (9*7) - 54 + 16 - ((root.calculateFirstFactor(seedValue + 0.3) * seedValue) / 3) + (4*root.calculateSecondFactor(seedValue+2) * seedValue * 1.33)) + (root.calculateSecondFactor(seedValue+1) * seedValue); - modificationTerm = modificationTerm + (33/2) + 19 - (9*2) - (61*3) + 177; - return modificationTerm; - } - - onDynamicWidthChanged: { - // do a bit of maths - var firstFactor = root.calculateFirstFactor(8); - var secondFactor = root.calculateSecondFactor(dynamicWidth / firstFactor); - var modificationTerm = root.calculateModificationTerm(dynamicWidth / secondFactor); - - // do some regexp matching - var someString = "This is a random string which we'll perform regular expression matching on to reduce considerably. This is meant to be part of a complex javascript expression whose evaluation takes considerably longer than the creation cost of QScriptValue."; - var regexpPattern = new RegExp("is", "i"); - var regexpOutputLength = 0; - var temp = regexpPattern.exec(someString); - while (temp == "is") { - regexpOutputLength += 4; - regexpOutputLength *= 2; - temp = regexpPattern.exec(someString); - if (regexpOutputLength > (dynamicWidth * 3)) { - temp = "break"; - } - } - - // spin in a for loop for a while - var i = 0; - var j = 0; - var cumulativeTotal = 3; - for (i = 20; i > 1; i--) { - for (j = 31; j > 5; j--) { - var branchVariable = i + j; - if (branchVariable % 3 == 0) { - cumulativeTotal -= secondFactor; - } else { - cumulativeTotal += firstFactor; - } - - if (cumulativeTotal > (dynamicWidth * 50)) { - break; - } - } - } - - // and update the property - widthSignaledProperty = (dynamicWidth + (20/4) + 7 - 1) * modificationTerm + regexpOutputLength - (cumulativeTotal / 73); - } -} diff --git a/tests/benchmarks/declarative/holistic/data/largeTargets/gridview-example.qml b/tests/benchmarks/declarative/holistic/data/largeTargets/gridview-example.qml deleted file mode 100644 index 373b1b8ced..0000000000 --- a/tests/benchmarks/declarative/holistic/data/largeTargets/gridview-example.qml +++ /dev/null @@ -1,91 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** You may use this file under the terms of the BSD license as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor -** the names of its contributors may be used to endorse or promote -** products derived from this software without specific prior written -** permission. -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -Rectangle { - width: 300; height: 400 - color: "white" - - ListModel { - id: appModel - ListElement { name: "Music"; shade: "blue" } - ListElement { name: "Movies"; shade: "red" } - ListElement { name: "Camera"; shade: "green" } - ListElement { name: "Calendar"; shade: "yellow" } - ListElement { name: "Messaging"; shade: "cyan" } - ListElement { name: "Todo List"; shade: "magenta" } - ListElement { name: "Contacts"; shade: "black" } - } - - Component { - id: appDelegate - - Item { - width: 100; height: 100 - - Rectangle { - id: myColoredIcon - width: 20 - height: 20 - y: 20; anchors.horizontalCenter: parent.horizontalCenter - color: shade - } - Text { - anchors { top: myColoredIcon.bottom; horizontalCenter: parent.horizontalCenter } - text: name - } - } - } - - Component { - id: appHighlight - Rectangle { width: 80; height: 80; color: "lightsteelblue" } - } - - GridView { - anchors.fill: parent - cellWidth: 100; cellHeight: 100 - highlight: appHighlight - focus: true - model: appModel - delegate: appDelegate - } -} diff --git a/tests/benchmarks/declarative/holistic/data/largeTargets/layoutdirection.qml b/tests/benchmarks/declarative/holistic/data/largeTargets/layoutdirection.qml deleted file mode 100644 index 9f039594b3..0000000000 --- a/tests/benchmarks/declarative/holistic/data/largeTargets/layoutdirection.qml +++ /dev/null @@ -1,151 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** You may use this file under the terms of the BSD license as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor -** the names of its contributors may be used to endorse or promote -** products derived from this software without specific prior written -** permission. -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -Rectangle { - - width: column.width + 100 - height: column.height + 100 - property int direction: Qt.application.layoutDirection - - Column { - id: column - spacing: 10 - anchors.centerIn: parent - width: 230 - - Text { - text: "Row" - anchors.horizontalCenter: parent.horizontalCenter - } - Row { - layoutDirection: direction - spacing: 10 - move: Transition { - NumberAnimation { - properties: "x" - } - } - Repeater { - model: 4 - Loader { - property int value: index - sourceComponent: delegate - } - } - } - Text { - text: "Grid" - anchors.horizontalCenter: parent.horizontalCenter - } - Grid { - layoutDirection: direction - spacing: 10; columns: 4 - move: Transition { - NumberAnimation { - properties: "x" - } - } - Repeater { - model: 11 - Loader { - property int value: index - sourceComponent: delegate - } - } - } - Text { - text: "Flow" - anchors.horizontalCenter: parent.horizontalCenter - } - Flow { - layoutDirection: direction - spacing: 10; width: parent.width - move: Transition { - NumberAnimation { - properties: "x" - } - } - Repeater { - model: 10 - Loader { - property int value: index - sourceComponent: delegate - } - } - } - Rectangle { - height: 50; width: parent.width - color: mouseArea.pressed ? "black" : "gray" - Text { - text: direction ? "Right to left" : "Left to right" - color: "white" - font.pixelSize: 16 - anchors.centerIn: parent - } - MouseArea { - id: mouseArea - onClicked: { - if (direction == Qt.LeftToRight) { - direction = Qt.RightToLeft; - } else { - direction = Qt.LeftToRight; - } - } - anchors.fill: parent - } - } - } - - Component { - id: delegate - Rectangle { - width: 50; height: 50 - color: Qt.rgba(0.8/(parent.value+1),0.8/(parent.value+1),0.8/(parent.value+1),1.0) - Text { - text: parent.parent.value+1 - color: "white" - font.pixelSize: 20 - anchors.centerIn: parent - } - } - } -} diff --git a/tests/benchmarks/declarative/holistic/data/largeTargets/mousearea-example.qml b/tests/benchmarks/declarative/holistic/data/largeTargets/mousearea-example.qml deleted file mode 100644 index 4c82b58302..0000000000 --- a/tests/benchmarks/declarative/holistic/data/largeTargets/mousearea-example.qml +++ /dev/null @@ -1,112 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** You may use this file under the terms of the BSD license as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor -** the names of its contributors may be used to endorse or promote -** products derived from this software without specific prior written -** permission. -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -Rectangle { - id: box - width: 350; height: 250 - - Rectangle { - id: redSquare - width: 80; height: 80 - anchors.top: parent.top; anchors.left: parent.left; anchors.margins: 10 - color: "red" - - Text { text: "Click"; font.pixelSize: 16; anchors.centerIn: parent } - - MouseArea { - anchors.fill: parent - hoverEnabled: true - acceptedButtons: Qt.LeftButton | Qt.RightButton - - onEntered: info.text = 'Entered' - onExited: info.text = 'Exited (pressed=' + pressed + ')' - - onPressed: { - info.text = 'Pressed (button=' + (mouse.button == Qt.RightButton ? 'right' : 'left') - + ' shift=' + (mouse.modifiers & Qt.ShiftModifier ? 'true' : 'false') + ')' - var posInBox = redSquare.mapToItem(box, mouse.x, mouse.y) - posInfo.text = + mouse.x + ',' + mouse.y + ' in square' - + ' (' + posInBox.x + ',' + posInBox.y + ' in window)' - } - - onReleased: { - info.text = 'Released (isClick=' + mouse.isClick + ' wasHeld=' + mouse.wasHeld + ')' - posInfo.text = '' - } - - onPressAndHold: info.text = 'Press and hold' - onClicked: info.text = 'Clicked (wasHeld=' + mouse.wasHeld + ')' - onDoubleClicked: info.text = 'Double clicked' - } - } - - Rectangle { - id: blueSquare - width: 80; height: 80 - x: box.width - width - 10; y: 10 // making this item draggable, so don't use anchors - color: "blue" - - Text { text: "Drag"; font.pixelSize: 16; color: "white"; anchors.centerIn: parent } - - MouseArea { - anchors.fill: parent - drag.target: blueSquare - drag.axis: Drag.XandYAxis - drag.minimumX: 0 - drag.maximumX: box.width - parent.width - drag.minimumY: 0 - drag.maximumY: box.height - parent.width - } - } - - Text { - id: info - anchors.bottom: posInfo.top; anchors.horizontalCenter: parent.horizontalCenter; anchors.margins: 30 - - onTextChanged: console.log(text) - } - - Text { - id: posInfo - anchors.bottom: parent.bottom; anchors.horizontalCenter: parent.horizontalCenter; anchors.margins: 30 - } -} diff --git a/tests/benchmarks/declarative/holistic/data/resolutionTargets/ResolveOne.qml b/tests/benchmarks/declarative/holistic/data/resolutionTargets/ResolveOne.qml deleted file mode 100644 index 2673ac36ed..0000000000 --- a/tests/benchmarks/declarative/holistic/data/resolutionTargets/ResolveOne.qml +++ /dev/null @@ -1,111 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This file has some nested items and does a lot of id resolution. -// This will allow us to benchmark the cost of resolving names in -// bindings. - -import QtQuick 2.0 - -Item { - id: root - property int baseWidth: 500 - property int baseHeight: 600 - property string baseColor: "red" - - Item { - id: childOne - property int baseWidth: root.baseWidth - 1 - property int baseHeight: root.baseHeight - 1 - property string baseColor: root.baseColor - - Item { - id: childTwo - property int baseWidth: root.baseWidth - 2 - property int baseHeight: childOne.baseHeight - 1 - property string baseColor: childOne.baseColor - - Item { - id: childThree - property int baseWidth: childOne.baseWidth - 2 - property int baseHeight: root.baseHeight - 3 - property string baseColor: "blue" - - Item { - id: childFour - property int baseWidth: childTwo.baseWidth - 2 - property int baseHeight: childThree.baseHeight - 1 - property string baseColor: "earthy " + root.baseColor - - Item { - id: childFive - property int baseWidth: root.baseWidth - 5 - property int baseHeight: childFour.baseHeight - 1 - property string baseColor: "carnelian " + childTwo.baseColor - } - } - - Item { - id: childSix - property int baseWidth: parent.baseWidth - 3 - property int baseHeight: root.baseHeight - 6 - property string baseColor: "rust " + root.baseColor - - Item { - id: childSeven - property int baseWidth: childOne.baseWidth - 6 - property int baseHeight: childTwo.baseHeight - 5 - property string baseColor: "sky " + childThree.baseColor - } - } - } - } - } - - Rectangle { - width: childOne.baseWidth - height: childOne.baseHeight - color: parent.baseColor - border.color: "black" - border.width: 5 - radius: 10 - } -} diff --git a/tests/benchmarks/declarative/holistic/data/scopeSwitching/CppToJs.qml b/tests/benchmarks/declarative/holistic/data/scopeSwitching/CppToJs.qml deleted file mode 100644 index d319f6e8cb..0000000000 --- a/tests/benchmarks/declarative/holistic/data/scopeSwitching/CppToJs.qml +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 -import "cppToJs.js" as CppToJs - -Item { - id: jsConsumer - property int sideEffect: 10 - - function callJsFunction() { - jsConsumer.sideEffect = jsConsumer.sideEffect + CppToJs.nextValue; - } -} diff --git a/tests/benchmarks/declarative/holistic/data/scopeSwitching/CppToQml.qml b/tests/benchmarks/declarative/holistic/data/scopeSwitching/CppToQml.qml deleted file mode 100644 index a9d064f740..0000000000 --- a/tests/benchmarks/declarative/holistic/data/scopeSwitching/CppToQml.qml +++ /dev/null @@ -1,48 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -Item { - id: root - property int arbitrary: 10 - property int dependent: arbitrary + 5 -} diff --git a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppEight.qml b/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppEight.qml deleted file mode 100644 index 97bb125bfc..0000000000 --- a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppEight.qml +++ /dev/null @@ -1,54 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 -import Qt.test 1.0 - -Item { - id: arbitraryVariantConsumer - property MyArbitraryVariantProvider a: MyArbitraryVariantProvider { id: arbitraryVariantProvider } - property int sideEffect: 10 - - function callCppFunction() { - // in this case, we call a nonconst CPP function with an integer return value and an integer argument. - arbitraryVariantConsumer.sideEffect = arbitraryVariantConsumer.sideEffect + arbitraryVariantProvider.modifyVariantChangeCount(arbitraryVariantConsumer.sideEffect); - } -} diff --git a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppEleven.qml b/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppEleven.qml deleted file mode 100644 index 2258e82500..0000000000 --- a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppEleven.qml +++ /dev/null @@ -1,57 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 -import Qt.test 1.0 - -Item { - id: arbitraryVariantConsumer - property MyArbitraryVariantProvider a: MyArbitraryVariantProvider { id: arbitraryVariantProvider } - property variant someVariant; - property int sideEffect: 10 - - function callCppFunction() { - // in this case, we call a nonconst CPP function with variant return value and variant + integer arguments. - arbitraryVariantConsumer.sideEffect = arbitraryVariantConsumer.sideEffect + 3; - var tempVariant = arbitraryVariantProvider.setVariantToFilledPixmap(sideEffect + 183, sideEffect + 134, sideEffect + 38, sideEffect + 77, sideEffect + 21); - someVariant = arbitraryVariantProvider.setVariantAddCount(sideEffect, tempVariant); - } -} diff --git a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppFive.qml b/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppFive.qml deleted file mode 100644 index f349d0fcbf..0000000000 --- a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppFive.qml +++ /dev/null @@ -1,54 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 -import Qt.test 1.0 - -Item { - id: arbitraryVariantConsumer - property MyArbitraryVariantProvider a: MyArbitraryVariantProvider { id: arbitraryVariantProvider } - property int sideEffect: 10 - - function callCppFunction() { - // in this case, we call a const CPP function with an integer return value and no arguments. - arbitraryVariantConsumer.sideEffect = arbitraryVariantConsumer.sideEffect + arbitraryVariantProvider.variantChangeCount(); - } -} diff --git a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppFour.qml b/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppFour.qml deleted file mode 100644 index 267d36fba2..0000000000 --- a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppFour.qml +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 -import Qt.test 1.0 - -Item { - id: arbitraryVariantConsumer - property MyArbitraryVariantProvider a: MyArbitraryVariantProvider { id: arbitraryVariantProvider } - property int sideEffect: 10 - - function callCppFunction() { - // in this case, we call a nonconst CPP function with no return value and an integer argument. - arbitraryVariantConsumer.sideEffect = arbitraryVariantConsumer.sideEffect + 2; - arbitraryVariantProvider.setVariantChangeCount(arbitraryVariantConsumer.sideEffect); - } -} diff --git a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppNine.qml b/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppNine.qml deleted file mode 100644 index ec3772ea62..0000000000 --- a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppNine.qml +++ /dev/null @@ -1,56 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 -import Qt.test 1.0 - -Item { - id: arbitraryVariantConsumer - property MyArbitraryVariantProvider a: MyArbitraryVariantProvider { id: arbitraryVariantProvider } - property variant someVariant; - property int sideEffect: 10 - - function callCppFunction() { - // in this case, we call a const CPP function with variant return value and integer arguments. - arbitraryVariantConsumer.sideEffect = arbitraryVariantConsumer.sideEffect + 3; - someVariant = arbitraryVariantProvider.possibleVariant(sideEffect, sideEffect * 2, sideEffect * 5); - } -} diff --git a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppOne.qml b/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppOne.qml deleted file mode 100644 index e4a3c1acc2..0000000000 --- a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppOne.qml +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 -import Qt.test 1.0 - -Item { - id: arbitraryVariantConsumer - property MyArbitraryVariantProvider a: MyArbitraryVariantProvider { id: arbitraryVariantProvider } - property int sideEffect: 10 - - function callCppFunction() { - // in this case, we call a const CPP function with no return value and no arguments. - arbitraryVariantConsumer.sideEffect = arbitraryVariantConsumer.sideEffect + 2; - arbitraryVariantProvider.doNothing(); - } -} diff --git a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppSeven.qml b/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppSeven.qml deleted file mode 100644 index 56c18a02db..0000000000 --- a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppSeven.qml +++ /dev/null @@ -1,54 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 -import Qt.test 1.0 - -Item { - id: arbitraryVariantConsumer - property MyArbitraryVariantProvider a: MyArbitraryVariantProvider { id: arbitraryVariantProvider } - property int sideEffect: 10 - - function callCppFunction() { - // in this case, we call a const CPP function with an integer return value and an integer argument. - arbitraryVariantConsumer.sideEffect = arbitraryVariantConsumer.sideEffect + arbitraryVariantProvider.countPlus(arbitraryVariantConsumer.sideEffect); - } -} diff --git a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppSix.qml b/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppSix.qml deleted file mode 100644 index c14c43075b..0000000000 --- a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppSix.qml +++ /dev/null @@ -1,54 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 -import Qt.test 1.0 - -Item { - id: arbitraryVariantConsumer - property MyArbitraryVariantProvider a: MyArbitraryVariantProvider { id: arbitraryVariantProvider } - property int sideEffect: 10 - - function callCppFunction() { - // in this case, we call a nonconst CPP function with an integer return value and no arguments. - arbitraryVariantConsumer.sideEffect = arbitraryVariantConsumer.sideEffect + arbitraryVariantProvider.modifyVariantChangeCount(); - } -} diff --git a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppTen.qml b/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppTen.qml deleted file mode 100644 index 05ededef38..0000000000 --- a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppTen.qml +++ /dev/null @@ -1,56 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 -import Qt.test 1.0 - -Item { - id: arbitraryVariantConsumer - property MyArbitraryVariantProvider a: MyArbitraryVariantProvider { id: arbitraryVariantProvider } - property variant someVariant; - property int sideEffect: 10 - - function callCppFunction() { - // in this case, we call a nonconst CPP function with variant return value and integer arguments. - arbitraryVariantConsumer.sideEffect = arbitraryVariantConsumer.sideEffect + 3; - someVariant = arbitraryVariantProvider.setVariantToFilledPixmap(sideEffect + 183, sideEffect + 134, sideEffect + 38, sideEffect + 77, sideEffect + 21); - } -} diff --git a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppThree.qml b/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppThree.qml deleted file mode 100644 index 2f11f9acb3..0000000000 --- a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppThree.qml +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 -import Qt.test 1.0 - -Item { - id: arbitraryVariantConsumer - property MyArbitraryVariantProvider a: MyArbitraryVariantProvider { id: arbitraryVariantProvider } - property int sideEffect: 10 - - function callCppFunction() { - // in this case, we call a const CPP function with no return value and an integer argument. - arbitraryVariantConsumer.sideEffect = arbitraryVariantConsumer.sideEffect + 2; - arbitraryVariantProvider.doNothing(arbitraryVariantConsumer.sideEffect); - } -} diff --git a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppTwo.qml b/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppTwo.qml deleted file mode 100644 index 0fe6d18507..0000000000 --- a/tests/benchmarks/declarative/holistic/data/scopeSwitching/JsToCppTwo.qml +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 -import Qt.test 1.0 - -Item { - id: arbitraryVariantConsumer - property MyArbitraryVariantProvider a: MyArbitraryVariantProvider { id: arbitraryVariantProvider } - property int sideEffect: 10 - - function callCppFunction() { - // in this case, we call a nonconst CPP function with no return value and no arguments. - arbitraryVariantConsumer.sideEffect = arbitraryVariantConsumer.sideEffect + 2; - arbitraryVariantProvider.incrementVariantChangeCount(); - } -} diff --git a/tests/benchmarks/declarative/holistic/data/scopeSwitching/ScarceOne.qml b/tests/benchmarks/declarative/holistic/data/scopeSwitching/ScarceOne.qml deleted file mode 100644 index d604242a99..0000000000 --- a/tests/benchmarks/declarative/holistic/data/scopeSwitching/ScarceOne.qml +++ /dev/null @@ -1,57 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 -import Qt.test 1.0 - -Item { - id: scarceResourceConsumer - - property MyScarceResourceProvider a: MyScarceResourceProvider { id: scarceResourceProvider } - - property variant ssr; - property variant lsr; - - function copyScarceResources() { - ssr = scarceResourceProvider.smallScarceResource; - lsr = scarceResourceProvider.largeScarceResource; - } -} diff --git a/tests/benchmarks/declarative/holistic/data/scopeSwitching/ScarceTwo.qml b/tests/benchmarks/declarative/holistic/data/scopeSwitching/ScarceTwo.qml deleted file mode 100644 index cd79bb8074..0000000000 --- a/tests/benchmarks/declarative/holistic/data/scopeSwitching/ScarceTwo.qml +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 -import Qt.test 1.0 - -Item { - id: scarceResourceConsumer - - property MyScarceResourceProvider a: MyScarceResourceProvider { id: scarceResourceProvider } - - property variant ssr: scarceResourceProvider.smallScarceResource - property variant lsr: scarceResourceProvider.largeScarceResource -} diff --git a/tests/benchmarks/declarative/holistic/data/scopeSwitching/cppToJs.js b/tests/benchmarks/declarative/holistic/data/scopeSwitching/cppToJs.js deleted file mode 100644 index e62c2f27d6..0000000000 --- a/tests/benchmarks/declarative/holistic/data/scopeSwitching/cppToJs.js +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -.pragma library - -var generatedValue = 5; - -function generateNextValue() { - generatedValue += 1; - return generatedValue; -} diff --git a/tests/benchmarks/declarative/holistic/data/smallTargets/SmallFour.qml b/tests/benchmarks/declarative/holistic/data/smallTargets/SmallFour.qml deleted file mode 100644 index 80af3bfee9..0000000000 --- a/tests/benchmarks/declarative/holistic/data/smallTargets/SmallFour.qml +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -Text { - text: "Hello World!" - font.family: "Helvetica" - font.pointSize: 24 - color: "red" -} diff --git a/tests/benchmarks/declarative/holistic/data/smallTargets/SmallOne.qml b/tests/benchmarks/declarative/holistic/data/smallTargets/SmallOne.qml deleted file mode 100644 index 58d52fe25d..0000000000 --- a/tests/benchmarks/declarative/holistic/data/smallTargets/SmallOne.qml +++ /dev/null @@ -1,51 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -Rectangle { - width: 100 - height: 100 - color: "red" - border.color: "black" - border.width: 5 - radius: 10 -} diff --git a/tests/benchmarks/declarative/holistic/data/smallTargets/SmallThree.qml b/tests/benchmarks/declarative/holistic/data/smallTargets/SmallThree.qml deleted file mode 100644 index a3e27f9ad6..0000000000 --- a/tests/benchmarks/declarative/holistic/data/smallTargets/SmallThree.qml +++ /dev/null @@ -1,51 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -Rectangle { - width: 100; height: 100 - gradient: Gradient { - GradientStop { position: 0.0; color: "red" } - GradientStop { position: 0.33; color: "yellow" } - GradientStop { position: 1.0; color: "green" } - } -} diff --git a/tests/benchmarks/declarative/holistic/data/smallTargets/SmallTwo.qml b/tests/benchmarks/declarative/holistic/data/smallTargets/SmallTwo.qml deleted file mode 100644 index 3ff2c5e8b0..0000000000 --- a/tests/benchmarks/declarative/holistic/data/smallTargets/SmallTwo.qml +++ /dev/null @@ -1,51 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the test suite of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -import QtQuick 2.0 - -Rectangle { - width: 100 - height: 100 - color: "blue" - border.color: "black" - border.width: 5 - radius: 10 -} |