aboutsummaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/declarative/holistic/data/jsImports/mssi.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/declarative/holistic/data/jsImports/mssi.js')
-rw-r--r--tests/benchmarks/declarative/holistic/data/jsImports/mssi.js84
1 files changed, 84 insertions, 0 deletions
diff --git a/tests/benchmarks/declarative/holistic/data/jsImports/mssi.js b/tests/benchmarks/declarative/holistic/data/jsImports/mssi.js
new file mode 100644
index 0000000000..2254c5c585
--- /dev/null
+++ b/tests/benchmarks/declarative/holistic/data/jsImports/mssi.js
@@ -0,0 +1,84 @@
+/****************************************************************************
+**
+** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the test suite of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the Technology Preview License Agreement accompanying
+** this package.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** If you have questions regarding the use of this file, please contact
+** Nokia at qt-info@nokia.com.
+**
+**
+**
+**
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+// This 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;
+}