You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ripple.apache.org by gt...@apache.org on 2013/03/11 16:11:04 UTC
[38/50] [abbrv] git commit: There is trailing whitespace in some
files.
There is trailing whitespace in some files.
This was (newly) shown via jshint's "trailing" option (vs the legacy
"white" option).
Project: http://git-wip-us.apache.org/repos/asf/incubator-ripple/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ripple/commit/e1a47ebf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ripple/tree/e1a47ebf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ripple/diff/e1a47ebf
Branch: refs/heads/master
Commit: e1a47ebfcd5373e5c680c1dec8b708c6c2517e23
Parents: ee0c93d
Author: Brent Lintner <br...@gmail.com>
Authored: Thu Feb 14 14:44:43 2013 -0500
Committer: Brent Lintner <br...@gmail.com>
Committed: Thu Feb 14 14:44:43 2013 -0500
----------------------------------------------------------------------
build/targets/chrome.extension.js | 10 ++++----
build/whitespace.js | 2 +-
lib/client/platform/webworks.bb10/1.0.0/invoke.js | 4 +-
test/unit/client/cordova/contacts.js | 16 ++++++------
test/unit/client/cordova/globalization.js | 20 ++++++++--------
5 files changed, 26 insertions(+), 26 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/e1a47ebf/build/targets/chrome.extension.js
----------------------------------------------------------------------
diff --git a/build/targets/chrome.extension.js b/build/targets/chrome.extension.js
index 4646925..7bd84cd 100644
--- a/build/targets/chrome.extension.js
+++ b/build/targets/chrome.extension.js
@@ -26,9 +26,9 @@ module.exports = function (src, baton) {
'cp -r ' + _c.ASSETS + "client/images " + _c.DEPLOY + "chrome.extension/ &&" +
'cp -r ' + _c.ASSETS + "client/themes " + _c.DEPLOY + "chrome.extension/ &&" +
'cp ' + _c.EXT + "chrome.extension/manifest.json " + _c.DEPLOY + "chrome.extension/manifest.json &&" +
- 'cp ' + _c.EXT + "chrome.extension/controllers/Background.js " + _c.DEPLOY + "chrome.extension/controllers/Background.js &&" +
- 'cp ' + _c.EXT + "chrome.extension/controllers/PopUp.js " + _c.DEPLOY + "chrome.extension/controllers/PopUp.js &&" +
- 'cp ' + _c.EXT + "chrome.extension/views/background.html " + _c.DEPLOY + "chrome.extension/views/background.html &&" +
+ 'cp ' + _c.EXT + "chrome.extension/controllers/Background.js " + _c.DEPLOY + "chrome.extension/controllers/Background.js &&" +
+ 'cp ' + _c.EXT + "chrome.extension/controllers/PopUp.js " + _c.DEPLOY + "chrome.extension/controllers/PopUp.js &&" +
+ 'cp ' + _c.EXT + "chrome.extension/views/background.html " + _c.DEPLOY + "chrome.extension/views/background.html &&" +
'cp ' + _c.EXT + "chrome.extension/views/popup.html " + _c.DEPLOY + "chrome.extension/views/popup.html";
childProcess.exec(copy, function () {
@@ -59,8 +59,8 @@ module.exports = function (src, baton) {
"ripple('bootstrap').bootstrap();"
);
- utils.collect(_c.DEPLOY + "/chrome.extension", resourceList, function () {
- return true;
+ utils.collect(_c.DEPLOY + "/chrome.extension", resourceList, function () {
+ return true;
});
manifestJSON.version = src.info.version;
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/e1a47ebf/build/whitespace.js
----------------------------------------------------------------------
diff --git a/build/whitespace.js b/build/whitespace.js
index 794d0fc..9c5816d 100644
--- a/build/whitespace.js
+++ b/build/whitespace.js
@@ -9,7 +9,7 @@
*
* http://www.apache.org/licenses/LICENSE-2.0
*
- * Unless required by applicable law or agreed to
+ * Unless required by applicable law or agreed to
* software distributed under the License is distr
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
* KIND, either express or implied. See the Licen
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/e1a47ebf/lib/client/platform/webworks.bb10/1.0.0/invoke.js
----------------------------------------------------------------------
diff --git a/lib/client/platform/webworks.bb10/1.0.0/invoke.js b/lib/client/platform/webworks.bb10/1.0.0/invoke.js
index a974af4..912fe5b 100644
--- a/lib/client/platform/webworks.bb10/1.0.0/invoke.js
+++ b/lib/client/platform/webworks.bb10/1.0.0/invoke.js
@@ -49,8 +49,8 @@ _self.invoke = function (request, onSuccess, onError) {
_self.__defineGetter__("ACTION_OPEN", function () {
return "bb.action.OPEN";
});
-_self.__defineGetter__("ACTION_VIEW", function () {
- return "bb.action.VIEW";
+_self.__defineGetter__("ACTION_VIEW", function () {
+ return "bb.action.VIEW";
});
_self.__defineGetter__("ACTION_SHARE", function () {
return "bb.action.SHARE";
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/e1a47ebf/test/unit/client/cordova/contacts.js
----------------------------------------------------------------------
diff --git a/test/unit/client/cordova/contacts.js b/test/unit/client/cordova/contacts.js
index b6d65bc..3f07d08 100644
--- a/test/unit/client/cordova/contacts.js
+++ b/test/unit/client/cordova/contacts.js
@@ -28,7 +28,7 @@ describe("Cordova Contacts Bridge", function () {
"name": { formatted: "Brent Lintner" },
"displayName": "Brent Lintner",
"emails": [{ type: "work", value: "brent@tinyhippos.com", pref: false }]
- }, {
+ }, {
"name": { formatted: "PJ Lowe" },
"displayName": "PJ Lowe",
"emails": [{ type: "work", value: "pj@tinyhippos.com", pref: false }]
@@ -52,7 +52,7 @@ describe("Cordova Contacts Bridge", function () {
s = jasmine.createSpy("success");
e = jasmine.createSpy("error");
global.navigator = {
- contacts: {
+ contacts: {
create: jasmine.createSpy("navigator.contacts.create").andCallFake(function (obj) {
return obj;
})
@@ -105,13 +105,13 @@ describe("Cordova Contacts Bridge", function () {
});
describe("on save", function () {
- beforeEach(function () {
+ beforeEach(function () {
spyOn(db, "saveObject");
spyOn(db, "retrieveObject").andReturn([contact]);
});
it("throws an exception if called with no args", function () {
- expect(function () { contacts.save(); }).toThrow();
+ expect(function () { contacts.save(); }).toThrow();
});
it("can be called without specifying an error callback", function () {
@@ -139,13 +139,13 @@ describe("Cordova Contacts Bridge", function () {
});
describe("on remove", function () {
- beforeEach(function () {
+ beforeEach(function () {
spyOn(db, "saveObject");
spyOn(db, "retrieveObject").andReturn([contact]);
});
it("throws an exception if called with no args", function () {
- expect(contacts.remove).toThrow();
+ expect(contacts.remove).toThrow();
});
it("can be called without specifying an error callback", function () {
@@ -157,8 +157,8 @@ describe("Cordova Contacts Bridge", function () {
it("throw an exception if called with an invalid id", function () {
contacts.remove(s, e, [ 321654 ]);
- expect(db.saveObject).not.toHaveBeenCalled();
- expect(s).not.toHaveBeenCalled();
+ expect(db.saveObject).not.toHaveBeenCalled();
+ expect(s).not.toHaveBeenCalled();
//error callback not implemented
//expect(e).toHaveBeenCalled();
});
http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/e1a47ebf/test/unit/client/cordova/globalization.js
----------------------------------------------------------------------
diff --git a/test/unit/client/cordova/globalization.js b/test/unit/client/cordova/globalization.js
index 7884cc2..ee70f37 100644
--- a/test/unit/client/cordova/globalization.js
+++ b/test/unit/client/cordova/globalization.js
@@ -365,7 +365,7 @@ describe("cordova globalization bridge", function () {
it("returns TIME when length is short", function () {
args[0].options.formatLength = "short";
glob.getDatePattern(success, fail, args);
- expect(success).toHaveBeenCalledWith({
+ expect(success).toHaveBeenCalledWith({
pattern: "TIME",
timezone: "???",
utc_offset: 0,
@@ -387,7 +387,7 @@ describe("cordova globalization bridge", function () {
it("returns TIME when length is long", function () {
args[0].options.formatLength = "long";
glob.getDatePattern(success, fail, args);
- expect(success).toHaveBeenCalledWith({
+ expect(success).toHaveBeenCalledWith({
pattern: "TIME",
timezone: "???",
utc_offset: 0,
@@ -398,7 +398,7 @@ describe("cordova globalization bridge", function () {
it("returns TIME when length is full", function () {
args[0].options.formatLength = "full";
glob.getDatePattern(success, fail, args);
- expect(success).toHaveBeenCalledWith({
+ expect(success).toHaveBeenCalledWith({
pattern: "TIME",
timezone: "???",
utc_offset: 0,
@@ -426,7 +426,7 @@ describe("cordova globalization bridge", function () {
it("returns TIME when length is medium", function () {
args[0].options.formatLength = "medium";
glob.getDatePattern(success, fail, args);
- expect(success).toHaveBeenCalledWith({
+ expect(success).toHaveBeenCalledWith({
pattern: "LL",
timezone: "???",
utc_offset: 0,
@@ -437,7 +437,7 @@ describe("cordova globalization bridge", function () {
it("returns TIME when length is long", function () {
args[0].options.formatLength = "long";
glob.getDatePattern(success, fail, args);
- expect(success).toHaveBeenCalledWith({
+ expect(success).toHaveBeenCalledWith({
pattern: "LLL",
timezone: "???",
utc_offset: 0,
@@ -448,7 +448,7 @@ describe("cordova globalization bridge", function () {
it("returns TIME when length is full", function () {
args[0].options.formatLength = "full";
glob.getDatePattern(success, fail, args);
- expect(success).toHaveBeenCalledWith({
+ expect(success).toHaveBeenCalledWith({
pattern: "LLLL",
timezone: "???",
utc_offset: 0,
@@ -465,7 +465,7 @@ describe("cordova globalization bridge", function () {
it("returns L TIME when length is short", function () {
args[0].options.formatLength = "short";
glob.getDatePattern(success, fail, args);
- expect(success).toHaveBeenCalledWith({
+ expect(success).toHaveBeenCalledWith({
pattern: "L TIME",
timezone: "???",
utc_offset: 0,
@@ -476,7 +476,7 @@ describe("cordova globalization bridge", function () {
it("returns LL TIME when length is medium", function () {
args[0].options.formatLength = "medium";
glob.getDatePattern(success, fail, args);
- expect(success).toHaveBeenCalledWith({
+ expect(success).toHaveBeenCalledWith({
pattern: "LL TIME",
timezone: "???",
utc_offset: 0,
@@ -487,7 +487,7 @@ describe("cordova globalization bridge", function () {
it("returns LLL TIME when length is long", function () {
args[0].options.formatLength = "long";
glob.getDatePattern(success, fail, args);
- expect(success).toHaveBeenCalledWith({
+ expect(success).toHaveBeenCalledWith({
pattern: "LLL TIME",
timezone: "???",
utc_offset: 0,
@@ -498,7 +498,7 @@ describe("cordova globalization bridge", function () {
it("returns LLLL TIME when length is full", function () {
args[0].options.formatLength = "full";
glob.getDatePattern(success, fail, args);
- expect(success).toHaveBeenCalledWith({
+ expect(success).toHaveBeenCalledWith({
pattern: "LLLL TIME",
timezone: "???",
utc_offset: 0,