Permalink
Browse files

adding test

  • Loading branch information...
1 parent 96de9a8 commit b6d161d5e4ffab961409caec44d60f4e5ea7dc56 @moschel moschel committed Feb 24, 2011
Showing with 7 additions and 3 deletions.
  1. +7 −3 todo/test/funcunit/todo_test.js
@@ -4,6 +4,10 @@ module("todo test", {
}
});
-test("Copy Test", function(){
- equals(S("h1").text(), "Welcome to JavaScriptMVC 3.0!","welcome text");
-});
+test("created a todo", function(){
+ S("#todos input.create").click()
+ .type('take out trash\r');
+ S("#list li.todo").visible(function(val){
+ equal(S('#list span:eq(0)').text(), "take out trash", "todo created");
+ });
+})

0 comments on commit b6d161d

Please sign in to comment.