Permalink
Browse files

Added more tests for tagger

  • Loading branch information...
1 parent f2671b6 commit 58ea65de1abdcfd009176242872110c8258973d2 @pulkit110 committed Aug 21, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 tests/js/ImageEditorTests.js
@@ -246,6 +246,9 @@ https://github.com/fluid-project/infusion/raw/master/Infusion-LICENSE.txt
jqUnit.isVisible("The tag remove button is visible", ".fl-tagger-annotation-action-remove");
jqUnit.isVisible("The tag text div is visible", ".fl-tagger-annotation");
jqUnit.assertEquals("The tag text is correctly set", tagText, $(".fl-tagger-annotation").get(0).textContent);
+
+ $(".fl-tagger-annotation-action-remove").click();
+ jqUnit.assertEquals("Tag count is zero", 0, imageEditor.tagger.getNbAnnotations());
});

0 comments on commit 58ea65d

Please sign in to comment.