diff --git a/.gitignore b/.gitignore
index de1abdbc..a49db639 100644
--- a/.gitignore
+++ b/.gitignore
@@ -40,3 +40,5 @@ test/test-app/js/jasmine-html.js
#Test-suite
test-runner.json
test/test-suite/data
+test/test-suite/Apps/wwTest
+test/test-suite/Apps/wwTest-automation
diff --git a/build/build/utils.js b/build/build/utils.js
index 1187341c..1d190038 100644
--- a/build/build/utils.js
+++ b/build/build/utils.js
@@ -45,6 +45,11 @@ module.exports = {
},
+ cp: function (srcFile, dstFile) {
+ var fileBuffer = fs.readFileSync(srcFile);
+ fs.writeFileSync(dstFile, fileBuffer);
+ },
+
listFiles: function (directory, filter) {
var files = wrench.readdirSyncRecursive(directory),
filteredFiles = [];
diff --git a/build/test-suite.js b/build/test-suite.js
index 4d0d3589..4e6c558f 100644
--- a/build/test-suite.js
+++ b/build/test-suite.js
@@ -13,6 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
+var utils = require('./build/utils'),
+ CLITest = require('../test/test-suite/helpers/CLITest');
+
module.exports = function (done, custom) {
var jasmine = require('jasmine-node'),
verbose = false,
@@ -60,10 +64,23 @@ module.exports = function (done, custom) {
}
}
- jasmine.executeSpecsInFolder(specs, function (runner, log) {
- var failed = runner.results().failedCount === 0 ? 0 : 1;
- setTimeout(function () {
- (typeof done !== "function" ? process.exit : done)(failed);
- }, 10);
- }, verbose, colored);
+ utils.displayOutput("STARTING TEST SUITE");
+
+ jasmine.executeSpecsInFolder(specs, null, verbose, colored);
+
+ function noop () {}
+
+ jasmine.getEnv().reporter = {
+ log: noop,
+ reportSpecStarting: noop,
+ reportRunnerStarting: noop,
+ reportSuiteResults: noop,
+ reportSpecResults: noop,
+ reportRunnerResults: function (runner) {
+ failed = runner.results().failedCount === 0 ? 0 : 1;
+ CLITest.reportFinalResults();
+ utils.displayOutput("TEST SUITE COMPLETED");
+ process.exit(failed);
+ }
+ };
};
diff --git a/test/test-app/automatic/SpecRunner.htm b/test/test-app/automatic/SpecRunner.htm
index 06d37dfa..0ee538d9 100644
--- a/test/test-app/automatic/SpecRunner.htm
+++ b/test/test-app/automatic/SpecRunner.htm
@@ -22,11 +22,73 @@
diff --git a/test/test-app/automation/SpecRunner.htm b/test/test-app/automation/SpecRunner.htm
index b1f60706..166349a6 100644
--- a/test/test-app/automation/SpecRunner.htm
+++ b/test/test-app/automation/SpecRunner.htm
@@ -26,26 +26,94 @@
+
+
+ function takeScreenshot() {
+ internal.automation.takeScreenshot("/accounts/1000/shared/camera/WebWorksScreenShot.bmp");
+ }
+
diff --git a/test/test-app/config.xml b/test/test-app/config.xml
index 547b33c2..a9480310 100644
--- a/test/test-app/config.xml
+++ b/test/test-app/config.xml
@@ -120,6 +120,8 @@
+
+
Licensed under the Apache License, Version 2.0 (the "License");
#you may not use this file except in compliance with the License.
diff --git a/test/test-suite/Apps/DisableWebSecurity/config.xml b/test/test-suite/Apps/DisableWebSecurity/config.xml
index 5fe06324..c6520037 100644
--- a/test/test-suite/Apps/DisableWebSecurity/config.xml
+++ b/test/test-suite/Apps/DisableWebSecurity/config.xml
@@ -14,9 +14,6 @@
-
-
-
Research In Motion Ltd.
diff --git a/test/test-suite/Apps/DisableWebSecurity/index.html b/test/test-suite/Apps/DisableWebSecurity/index.html
index 1f4f7511..e734633f 100644
--- a/test/test-suite/Apps/DisableWebSecurity/index.html
+++ b/test/test-suite/Apps/DisableWebSecurity/index.html
@@ -1,88 +1,100 @@
-
-
- Jasmine Spec Runner
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+ Jasmine Spec Runner
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/test-suite/Apps/SubfolderStartupPage/a/index.html b/test/test-suite/Apps/SubfolderStartupPage/a/index.html
index 7679ee0e..4874dd5b 100644
--- a/test/test-suite/Apps/SubfolderStartupPage/a/index.html
+++ b/test/test-suite/Apps/SubfolderStartupPage/a/index.html
@@ -12,77 +12,88 @@
-
-
-
-
+
+
+
+