Hi Michael Bielski,

*index.html*

*<!-- More Code Above -->*

*   <label >Username:</label>*

*   <input type = "text" /> <br/>*

*  <label >Password:</label>*

*<input type = "password"> *

*<button class = "btn btn-primary" ng-click = submit()>Submit</button>*

*<button class = "btn btn-default" ng-click = clear()>clear</button> *

* <!-- Some more code below -->*

 

* index.controller.js*

*// contains all the controller code here*

 

*index.test.spec.js *

* describe (" Clear button demo", function (){*

* it('should clear the input boxes when the clear is clicked", function (){*

*//how do I tell jasmine to select the clear button? how do I instruct it 
to capture the click event?*

*//how to write the test spec ? *

 

*}); *

*})*

 
 Thanks,
Varun Krishna. P
 

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to