Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0E21FFED8 for ; Tue, 7 May 2013 15:16:19 +0000 (UTC) Received: (qmail 84642 invoked by uid 500); 7 May 2013 15:16:18 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 84552 invoked by uid 500); 7 May 2013 15:16:18 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 84375 invoked by uid 99); 7 May 2013 15:16:18 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 15:16:18 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id DACEB888815; Tue, 7 May 2013 15:16:17 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: lorinbeer@apache.org To: commits@cordova.apache.org Date: Tue, 07 May 2013 15:16:25 -0000 Message-Id: <64dfc25f89a0467cbe9d7f57f945b8c3@git.apache.org> In-Reply-To: <341965aeabea49a58177f0d392474f31@git.apache.org> References: <341965aeabea49a58177f0d392474f31@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [09/32] js commit: [BlackBerry10] Remove NetworkStatus plugin [BlackBerry10] Remove NetworkStatus plugin Reviewed by Jeffrey Heifetz Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/86c137f1 Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/86c137f1 Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/86c137f1 Branch: refs/heads/future Commit: 86c137f1c77154ed9d565c73c9aef8a1ff452309 Parents: d5ec1d2 Author: Bryan Higgins Authored: Tue Mar 19 13:41:05 2013 -0400 Committer: Bryan Higgins Committed: Fri May 3 09:49:38 2013 -0400 ---------------------------------------------------------------------- lib/blackberry10/plugin/blackberry10/manager.js | 1 - lib/blackberry10/plugin/blackberry10/network.js | 28 ------------- test/blackberry10/test.network.js | 39 ------------------ 3 files changed, 0 insertions(+), 68 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-js/blob/86c137f1/lib/blackberry10/plugin/blackberry10/manager.js ---------------------------------------------------------------------- diff --git a/lib/blackberry10/plugin/blackberry10/manager.js b/lib/blackberry10/plugin/blackberry10/manager.js index 76476be..b0855b7 100644 --- a/lib/blackberry10/plugin/blackberry10/manager.js +++ b/lib/blackberry10/plugin/blackberry10/manager.js @@ -21,7 +21,6 @@ var cordova = require('cordova'), plugins = { - 'NetworkStatus' : require('cordova/plugin/blackberry10/network'), 'Accelerometer' : require('cordova/plugin/blackberry10/accelerometer'), 'Battery' : require('cordova/plugin/blackberry10/battery'), 'Compass' : require('cordova/plugin/blackberry10/magnetometer'), http://git-wip-us.apache.org/repos/asf/cordova-js/blob/86c137f1/lib/blackberry10/plugin/blackberry10/network.js ---------------------------------------------------------------------- diff --git a/lib/blackberry10/plugin/blackberry10/network.js b/lib/blackberry10/plugin/blackberry10/network.js deleted file mode 100644 index b640f75..0000000 --- a/lib/blackberry10/plugin/blackberry10/network.js +++ /dev/null @@ -1,28 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * -*/ - -var cordova = require('cordova'); - -module.exports = { - getConnectionInfo: function (args, win, fail) { - return { "status": cordova.callbackStatus.OK, "message": blackberry.connection.type}; - } -}; http://git-wip-us.apache.org/repos/asf/cordova-js/blob/86c137f1/test/blackberry10/test.network.js ---------------------------------------------------------------------- diff --git a/test/blackberry10/test.network.js b/test/blackberry10/test.network.js deleted file mode 100644 index 5917269..0000000 --- a/test/blackberry10/test.network.js +++ /dev/null @@ -1,39 +0,0 @@ -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * -*/ - -describe("blackberry10 network", function () { - var cordova = require('cordova'), - network = require('cordova/plugin/blackberry10/network'); - - it("returns the connection info", function () { - global.blackberry = { - connection: { - type: "pigeon" - } - }; - expect(network.getConnectionInfo()).toEqual({ - status: cordova.callbackStatus.OK, - message: "pigeon" - }); - - delete global.blackberry; - }); -});