Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fix spelling
Reviewed by Bryan Higgins <bhiggins@blackberry.com>
  • Loading branch information
jsoref authored and bryanhiggins committed Nov 4, 2013
1 parent 43ab50f commit b74247dbdf945de2e8ca74ccb81576d3cda89cfe
Showing 35 changed files with 58 additions and 58 deletions.
@@ -220,11 +220,11 @@ For the template/project/lib/ant-contrib/ant-contrib-1.0b3.jar component:
distribution.

3. The end-user documentation included with the redistribution, if
any, must include the following acknowlegement:
any, must include the following acknowledgment:
"This product includes software developed by the
Ant-Contrib project (http://sourceforge.net/projects/ant-contrib)."
Alternately, this acknowlegement may appear in the software itself,
if and wherever such third-party acknowlegements normally appear.
Alternately, this acknowledgment may appear in the software itself,
if and wherever such third-party acknowledgments normally appear.

4. The name Ant-Contrib must not be used to endorse or promote products
derived from this software without prior written permission. For
@@ -34,7 +34,7 @@ NPM_PACKAGE_JSON="$BIN_DIR"/../package.json
#Run npm install every time (even if node_modules folder is present) to cover platform upgrade
if [ -e "$NPM_PACKAGE_JSON" ]; then
cd "$BIN_DIR"/..
#Removed sudo usage so that node modules are not ownder by root
#Removed sudo usage so that node modules are not owned by root
"$CORDOVA_NODE/npm" install
cd "$CURRENT_DIR"

@@ -82,7 +82,7 @@ function validate() {
process.exit(2);
}
if (!validPackageName(app_id)) {
console.log("[warning] App ID must be sequence of alpha-numeric (optionally seperated by '.') characters, no longer than 50 characters.\n" +
console.log("[warning] App ID must be sequence of alpha-numeric (optionally separated by '.') characters, no longer than 50 characters.\n" +
"special characters in '" + app_id + "' will be replaced by '_'");
}
}
@@ -230,7 +230,7 @@ _self = {
options = {};
}

//insert executable portion at begining of arg array
//insert executable portion at beginning of arg array
args.splice(0, 0, command);

var pkgrUtils = require("./packager-utils"),
@@ -95,7 +95,7 @@ try {
async.waterfall(childTasks, function (error) { allDone(error || err);});
},
function build (done) {
//enable weybinspector in debug mode or if --webinspector was provided
//enable webinspector in debug mode or if --webinspector was provided
if (!command.release || command.webInspector) {
bbwpArgv.push("-d");
}
@@ -21,7 +21,7 @@ var command = require("commander"),
command
.version('1.0.0.0')
.usage('[drive:][path]archive [-s [dir]] [[ -g genpassword] [-buildId num]] [-o dir] [-d] [-p paramsjsonfile]')
.option('-s, --source [dir]', 'Save source. The default behaviour is to not save the source files. If dir is specified then creates dir\\src\\ directory structure. If no dir specified then the path of archive is assumed')
.option('-s, --source [dir]', 'Save source. The default behavior is to not save the source files. If dir is specified then creates dir\\src\\ directory structure. If no dir specified then the path of archive is assumed')
.option('-g, --password <password>', 'Signing key password')
.option('-buildId <num>', '[deprecated] Use --buildId.')
.option('-b, --buildId <num>', 'Specifies the build number for signing (typically incremented from previous signing).')
@@ -115,7 +115,7 @@ function processVersion(widgetConfig) {

function processBuildID(widgetConfig, session) {
if (session.buildId) {
//user specified a build id (--buildId), overide any previously set build id
//user specified a build id (--buildId), override any previously set build id
widgetConfig.buildId = session.buildId;
}
}
@@ -43,23 +43,23 @@ function generateLocalizedMetadataForSplashScreenIcon(config, configKey, xmlObje

if (localeFiles) {
localeFiles.forEach(function (path) {
var splitted = path.replace(/\.\./g, "").split("/"),
var split = path.replace(/\.\./g, "").split("/"),
locale;

splitted = splitted.filter(function (element) {
split = split.filter(function (element) {
return element.length > 0;
});

if (splitted.length > 1) {
locale = splitted[0];
if (split.length > 1) {
locale = split[0];

if (!localeMap[locale]) {
localeMap[locale] = [];
}

// remove locale subfolder from path
splitted.splice(0, 1);
localeMap[locale].push(splitted.join("/"));
split.splice(0, 1);
localeMap[locale].push(split.join("/"));
}
});
}
@@ -193,7 +193,7 @@ var Localize = require("localize"),
"PROGRESS_GENERATING_DEBUG_TOKEN": {
"en": "Generating debug token"
},
"WARN_RUN_DEVICE_OVERIDES_EMULATOR": {
"WARN_RUN_DEVICE_OVERRIDES_EMULATOR": {
"en": "Skipping emulator detection and detecting device. Please provide only 1 of --target, --device, and --emulator"
}

@@ -244,7 +244,7 @@ function generateOptionsFile(session, target, config) {

optionsStr += path.resolve(util.format(session.barPath, target)) + NL;

//to supoprt splash screens/icons for multiple resolutions/devices
//to support splash screens/icons for multiple resolutions/devices
optionsStr += "-barVersion" + NL;
optionsStr += "1.5" + NL;

@@ -37,7 +37,7 @@ function getTargetName(options, done) {
done(null, options, options.target);
} else if (options.device || options.emulator) {
if (options.device && options.emulator) {
localize.translate("WARN_RUN_DEVICE_OVERIDES_EMULATOR");
localize.translate("WARN_RUN_DEVICE_OVERRIDES_EMULATOR");
}

async.series(
@@ -45,7 +45,7 @@ _self = {
getDefaultPath: getDefaultPath,

getKeyStorePath : function () {
// Todo: decide where to put sigtool.p12 which is genereated and used in WebWorks SDK for Tablet OS
// Todo: decide where to put sigtool.p12 which is generated and used in WebWorks SDK for Tablet OS
return getDefaultPathIfExists(AUTHOR_P12);
},

@@ -31,7 +31,7 @@ var app = {
// deviceready Event Handler
//
// The scope of 'this' is the event. In order to call the 'receivedEvent'
// function, we must explicity call 'app.receivedEvent(...);'
// function, we must explicitly call 'app.receivedEvent(...);'
onDeviceReady: function() {
app.receivedEvent('deviceready');
},
@@ -161,7 +161,7 @@ jasmine.isA_ = function(typeName, value) {
};

/**
* Pretty printer for expecations. Takes any object and turns it into a human-readable string.
* Pretty printer for expectations. Takes any object and turns it into a human-readable string.
*
* @param value {Object} an object to be outputted
* @returns {String}
@@ -183,7 +183,7 @@ jasmine.isDomNode = function(obj) {
};

/**
* Returns a matchable 'generic' object of the class type. For use in expecations of type when values don't matter.
* Returns a matchable 'generic' object of the class type. For use in expectations of type when values don't matter.
*
* @example
* // don't care about which function is passed in, as long as it's a function
@@ -212,7 +212,7 @@ jasmine.objectContaining = function (sample) {
};

/**
* Jasmine Spies are test doubles that can act as stubs, spies, fakes or when used in an expecation, mocks.
* Jasmine Spies are test doubles that can act as stubs, spies, fakes or when used in an expectation, mocks.
*
* Spies should be created in test setup, before expectations. They can then be checked, using the standard Jasmine
* expectation syntax. Spies can be checked if they were called or not and what the calling params were.
@@ -293,7 +293,7 @@ jasmine.Spy = function(name) {
};

/**
* Tells a spy to call through to the actual implemenatation.
* Tells a spy to call through to the actual implementation.
*
* @example
* var foo = {
@@ -356,7 +356,7 @@ jasmine.Spy.prototype.andThrow = function(exceptionMsg) {
* // defining a spy from scratch: foo() calls the function baz
* var foo = jasmine.createSpy('spy on foo').andCall(baz);
*
* // defining a spy on an existing property: foo.bar() calls an anonymnous function
* // defining a spy on an existing property: foo.bar() calls an anonymous function
* spyOn(foo, 'bar').andCall(function() { return 'baz';} );
*
* @param {Function} fakeFunc
@@ -515,7 +515,7 @@ var expect = function(actual) {
if (isCommonJS) exports.expect = expect;

/**
* Defines part of a jasmine spec. Used in cominbination with waits or waitsFor in asynchrnous specs.
* Defines part of a jasmine spec. Used in combination with waits or waitsFor in asynchronous specs.
*
* @param {Function} func Function that defines part of a jasmine spec.
*/
@@ -97,7 +97,7 @@ describe("create tests", function () {

it("Invalid appId error", function () {
executeScript(CREATE_COMMAND, [appFolder, "23.21#$"], true);
expect(_output).toContain("App ID must be sequence of alpha-numeric (optionally seperated by '.') characters, no longer than 50 characters");
expect(_output).toContain("App ID must be sequence of alpha-numeric (optionally separated by '.') characters, no longer than 50 characters");
});

});
@@ -114,7 +114,7 @@ describe("cordova/target tests", function () {
expect(_output).toContain("IP is required");
});

it("should warn unregonized command", function () {
it("should warn unrecognized command", function () {
executeScript(TARGET_COMMAND, ["bleh"], true);
expect(_output).toContain("Unrecognized command");
});
@@ -30,7 +30,7 @@
</access>
<rim:invoke-target id="com.domain.subdomain.appname.app1">
<type>APPLICATION</type>
<require-source-permissions>invoke_accross_perimeters,access_shared</require-source-permissions>
<require-source-permissions>invoke_across_perimeters,access_shared</require-source-permissions>
<filter>
<action>bb.action.OPEN</action>
<action>bb.action.SET</action>
@@ -34,7 +34,7 @@
</access>
<rim:invoke-target id="com.domain.subdomain.appname.app1">
<type>APPLICATION</type>
<require-source-permissions>invoke_accross_perimeters,access_shared</require-source-permissions>
<require-source-permissions>invoke_across_perimeters,access_shared</require-source-permissions>
<filter>
<action>bb.action.OPEN</action>
<action>bb.action.SET</action>
@@ -38,7 +38,7 @@
</access>
<rim:invoke-target id="com.domain.subdomain.appname.app1">
<type>APPLICATION</type>
<require-source-permissions>invoke_accross_perimeters,access_shared</require-source-permissions>
<require-source-permissions>invoke_across_perimeters,access_shared</require-source-permissions>
<filter>
<action>bb.action.OPEN</action>
<action>bb.action.SET</action>
@@ -642,7 +642,7 @@ describe("config parser", function () {
});
});

it("overides the build id specified in version with --buildId flag", function () {
it("overrides the build id specified in version with --buildId flag", function () {
var data = testUtilities.cloneObj(testData.xml2jsConfig);
data["@"].version = "1.0.0.50";

@@ -681,7 +681,7 @@ describe("config parser", function () {
expect(invokeTarget.type).toBeDefined();
expect(invokeTarget.type).toEqual("APPLICATION");
expect(invokeTarget["require-source-permissions"]).toBeDefined();
expect(invokeTarget["require-source-permissions"]).toEqual("invoke_accross_perimeters,access_shared");
expect(invokeTarget["require-source-permissions"]).toEqual("invoke_across_perimeters,access_shared");
expect(invokeTarget.filter).toBeDefined();
expect(invokeTarget.filter[0].action).toBeDefined();
expect(invokeTarget.filter[0].action).toContain("bb.action.VIEW");
@@ -1206,7 +1206,7 @@ describe("config parser", function () {
}).toThrow(localize.translate("EXCEPTION_BGCOLOR_INVALID", "$ui*@@$"));
});

it("can properly parse the custom RIM-Wiget:rim/wiget element", function () {
it("can properly parse the custom RIM-Widget:rim/widget element", function () {
var data = testUtilities.cloneObj(testData.xml2jsConfig);

mockParsing(data);
@@ -75,7 +75,7 @@ describe("property wrapper", function () {
expect(obj.prop[0]).toEqual("value");
});

it("does not wrap a property that doesn't esist in the object", function () {
it("does not wrap a property that doesn't exist in the object", function () {
var obj = {
prop: "value"
};
@@ -85,7 +85,7 @@ describe("Session", function () {
});

it("does not set the password when not a string", function () {
//Commander somtimes improperly sets password to a function, when no value provided
//Commander sometimes improperly sets password to a function, when no value provided
var data = {
args: [ 'C:/sampleApp/sample.zip' ],
output: 'C:/sampleApp/bin',
@@ -230,7 +230,7 @@ var define,
dependencies = ['require', 'exports', 'module'];
}

//According to the AMDJS spec we should parse out the require statments
//According to the AMDJS spec we should parse out the require statements
//from factory.toString and add those to the list of dependencies

//Normalize the name. Remove local:// and .js
@@ -129,7 +129,7 @@ function JNEXT_() {

self.processEvent = function(strNativeEvt) {
// Process an event received from native code. The event
// containes the target JavaScript object id and the
// contains the target JavaScript object id and the
// relevant parameters.

var arParams = strNativeEvt.split(" ");
@@ -20,7 +20,7 @@
*/

var _event = require("../../lib/event"),
ONCE_EVENT_ERROR = "Error occured while adding once event listener.",
ONCE_EVENT_ERROR = "Error occurred while adding once event listener.",
ERROR_ID = -1;

module.exports = {
@@ -76,7 +76,7 @@ function initializeDomains() {
});
}

function initializaWebview(webview) {
function initializeWebview(webview) {
//Always allow file access from local and let the OS deal with permissions
addOriginAccessWhitelistEntry(webview, LOCAL_URI, FILE_URI, true);
addOriginAccessWhitelistEntry(webview, FILE_URI, LOCAL_URI, true);
@@ -105,7 +105,7 @@ module.exports = {
addWebView: function (webview) {
if (_webviews.indexOf(webview) === -1) {
_webviews.push(webview);
initializaWebview(webview);
initializeWebview(webview);
if (!_isInitialized) {
initializeDomains();
_isInitialized = true;
@@ -54,7 +54,7 @@ function _isMatch(access, requestURI) {
return false;
}

// 2. Compare host - if subdoman is false, host must match exactly
// 2. Compare host - if subdomain is false, host must match exactly
// (referenceURI MUST HAVE host specified - not null.)
// Special Case: Ignore this condition if we are dealing with file://
if (!requestURI.authority && !util.isFileURI(requestURI)) {
@@ -71,13 +71,13 @@ describe("controllerWebView", function () {

it("tests that the dispatch function is called properly", function () {
controllerWebView.init({debugEnabled: true});
controllerWebView.dispatchEvent('Awesome Event', ['these are agruments', 'another argument']);
expect(mockedController.dispatchEvent).toHaveBeenCalledWith('Awesome Event', ['these are agruments', 'another argument']);
controllerWebView.dispatchEvent('Awesome Event', ['these are arguments', 'another argument']);
expect(mockedController.dispatchEvent).toHaveBeenCalledWith('Awesome Event', ['these are arguments', 'another argument']);
});
});

describe("id", function () {
it("can get the id for the webiew", function () {
it("can get the id for the webview", function () {
controllerWebView.init({debugEnabled: true});
expect(controllerWebView.id).toEqual(mockedController.id);
});
@@ -31,7 +31,7 @@ describe("lib/event", function () {
describe("trigger", function () {


it("will trigger on the content webview when no webview is registered (for backwards compatability)", function () {
it("will trigger on the content webview when no webview is registered (for backwards compatibility)", function () {
event.trigger("foo", {"id": 123});
expect(mockedWebview.executeJavaScript).not.toHaveBeenCalled();
expect(webview.executeJavascript).toHaveBeenCalled();
@@ -135,7 +135,7 @@ describe("Overlay Webview", function () {
expect(webview.windowGroup()).toEqual(mockedWebview.windowGroup);
});

it("can get the id for the webiew", function () {
it("can get the id for the webview", function () {
webview.create();
expect(webview.id).toEqual(mockedWebview.id);
});
@@ -170,7 +170,7 @@ describe("Overlay Webview", function () {
expect(mockedWebview.contextMenu.subscribeTo).toHaveBeenCalledWith(webview);
});

it("It has a zOrder propety ", function () {
it("It has a zOrder property ", function () {
expect(webview.zOrder).toBeDefined();
});

0 comments on commit b74247d

Please sign in to comment.