diff options
| author | Igor Minar | 2010-10-23 21:40:27 -0700 | 
|---|---|---|
| committer | Igor Minar | 2010-10-26 21:58:00 -0700 | 
| commit | 01c52e92b120eea498e0352a42a489d55e7d9979 (patch) | |
| tree | 07e5e7d83e783a62e5333f1c22415dd3ac397900 /example/personalLog/personalLog.html | |
| parent | 943377a091bd7521d33e680dcd2141f7f9fa10c4 (diff) | |
| download | angular.js-01c52e92b120eea498e0352a42a489d55e7d9979.tar.bz2 | |
Adding e2e tests for the PersonalLog app
- added scenario runner
- added scenario specs
- cookie cleaning DSL
- making rmLog independent on ordering in the view
Diffstat (limited to 'example/personalLog/personalLog.html')
| -rw-r--r-- | example/personalLog/personalLog.html | 8 | 
1 files changed, 5 insertions, 3 deletions
diff --git a/example/personalLog/personalLog.html b/example/personalLog/personalLog.html index 64a6115d..6915b9a0 100644 --- a/example/personalLog/personalLog.html +++ b/example/personalLog/personalLog.html @@ -6,8 +6,10 @@      <script type="text/javascript" src="personalLog.js"></script>    </head> -   -  <body ng:controller="example.personalLog.LogCtrl"> + +  <!-- TODO: we need to expose $root so that we can delete cookies in the scenario runner, there +             must be a better way to do this --> +  <body ng:controller="example.personalLog.LogCtrl" ng:init="$window.$root = $root">      <form action="" ng:submit="addLog(newMsg)">        <input type="text" name="newMsg" /> @@ -20,7 +22,7 @@      <ul>        <li ng:repeat="log in logs.$orderBy('-at')">          {{log.at | date:'yy-MM-dd HH:mm'}} {{log.msg}} -        [<a href="" ng:click="rmLog($index)">x</a>] +        [<a href="" ng:click="rmLog(log)">x</a>]        </li>      </ul>  | 
