From 01c52e92b120eea498e0352a42a489d55e7d9979 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Sat, 23 Oct 2010 21:40:27 -0700 Subject: Adding e2e tests for the PersonalLog app - added scenario runner - added scenario specs - cookie cleaning DSL - making rmLog independent on ordering in the view --- example/personalLog/personalLog.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'example/personalLog/personalLog.js') diff --git a/example/personalLog/personalLog.js b/example/personalLog/personalLog.js index da946a6f..acaf371e 100644 --- a/example/personalLog/personalLog.js +++ b/example/personalLog/personalLog.js @@ -51,10 +51,10 @@ function LogCtrl($cookieStore) { /** * Persistently removes a log from logs. - * @param {number} msgIdx Index of the log to remove. + * @param {object} log The log to remove. */ - this.rmLog = function(msgIdx) { - logs.splice(msgIdx,1); + this.rmLog = function(log) { + angular.Array.remove(logs, log); $cookieStore.put(LOGS, logs); }; -- cgit v1.2.3