Return-Path: X-Original-To: apmail-climate-commits-archive@minotaur.apache.org Delivered-To: apmail-climate-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 C9576C131 for ; Mon, 24 Jun 2013 13:31:26 +0000 (UTC) Received: (qmail 87036 invoked by uid 500); 24 Jun 2013 13:31:26 -0000 Delivered-To: apmail-climate-commits-archive@climate.apache.org Received: (qmail 87007 invoked by uid 500); 24 Jun 2013 13:31:26 -0000 Mailing-List: contact commits-help@climate.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@climate.incubator.apache.org Delivered-To: mailing list commits@climate.incubator.apache.org Received: (qmail 87000 invoked by uid 99); 24 Jun 2013 13:31:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jun 2013 13:31:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Jun 2013 13:31:25 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 4A5D62388A6E; Mon, 24 Jun 2013 13:31:06 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1496045 - /incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js Date: Mon, 24 Jun 2013 13:31:06 -0000 To: commits@climate.incubator.apache.org From: joyce@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130624133106.4A5D62388A6E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: joyce Date: Mon Jun 24 13:31:05 2013 New Revision: 1496045 URL: http://svn.apache.org/r1496045 Log: CLIMATE-148 progress - Add removeDataset test Modified: incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js Modified: incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js?rev=1496045&r1=1496044&r2=1496045&view=diff ============================================================================== --- incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js (original) +++ incubator/climate/trunk/rcmet/src/main/ui/test/unit/services/SelectedDatasetInfomationTest.js Mon Jun 24 13:31:05 2013 @@ -63,6 +63,17 @@ describe('OCW Services', function() { expect(selectedDatasetInformation.getDatasets()[0].regrid).toBe(false); }); }); + + it('should provide the removeDataset function', function() { + inject(function(selectedDatasetInformation) { + selectedDatasetInformation.addDataset(1); + selectedDatasetInformation.addDataset(2); + + expect(selectedDatasetInformation.getDatasets()[0]).toEqual(1); + selectedDatasetInformation.removeDataset(0); + expect(selectedDatasetInformation.getDatasets()[0]).toEqual(2); + }); + }); }); });