Return-Path: X-Original-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0C060D024 for ; Wed, 1 Aug 2012 16:39:12 +0000 (UTC) Received: (qmail 51269 invoked by uid 500); 1 Aug 2012 16:39:10 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 51200 invoked by uid 500); 1 Aug 2012 16:39:10 -0000 Mailing-List: contact callback-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-commits@incubator.apache.org Received: (qmail 50343 invoked by uid 99); 1 Aug 2012 16:39:09 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2012 16:39:09 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 188B41B080; Wed, 1 Aug 2012 16:39:09 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mwbrooks@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [38/48] git commit: Add bind initialization call. Message-Id: <20120801163909.188B41B080@tyr.zones.apache.org> Date: Wed, 1 Aug 2012 16:39:09 +0000 (UTC) Add bind initialization call. Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-app-hello-world/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-app-hello-world/commit/5fe4752e Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-app-hello-world/tree/5fe4752e Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-app-hello-world/diff/5fe4752e Branch: refs/heads/master Commit: 5fe4752e3ca098d14bfba3ef1362477e24bd126c Parents: fc2c23c Author: Michael Brooks Authored: Thu Jul 12 21:34:20 2012 -0700 Committer: Michael Brooks Committed: Thu Jul 12 21:34:20 2012 -0700 ---------------------------------------------------------------------- www/js/index.js | 3 +++ www/spec/index.js | 6 ++++++ 2 files changed, 9 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-app-hello-world/blob/5fe4752e/www/js/index.js ---------------------------------------------------------------------- diff --git a/www/js/index.js b/www/js/index.js index 7e4402e..67f3ed4 100644 --- a/www/js/index.js +++ b/www/js/index.js @@ -1,4 +1,7 @@ var app = { initialize: function() { + this.bind(); + }, + bind: function() { } }; http://git-wip-us.apache.org/repos/asf/incubator-cordova-app-hello-world/blob/5fe4752e/www/spec/index.js ---------------------------------------------------------------------- diff --git a/www/spec/index.js b/www/spec/index.js index f6856c8..7d48350 100644 --- a/www/spec/index.js +++ b/www/spec/index.js @@ -7,5 +7,11 @@ describe('app', function() { it('should exist', function() { expect(app.initialize).toBeDefined(); }); + + it('should bind events', function() { + spyOn(app, 'bind'); + app.initialize(); + expect(app.bind).toHaveBeenCalled(); + }); }); });