Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Mask: Adding a unit test for refresh method

  • Loading branch information...
commit d40039507efb910349cc70e37b4bfcc98f71fb46 1 parent d86229d
Corey Frang gnarf authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 tests/unit/mask/mask_methods.js
11 tests/unit/mask/mask_methods.js
View
@@ -2,4 +2,15 @@
module( "mask: methods" );
+test( "refresh", function() {
+ expect( 1 );
+
+ var input = $( "#mask1" ).mask({
+ mask: "99/99/99"
+ });
+
+ input.val( "123456" ).mask( "refresh" );
+ equal( input.val(), "12/34/56", "Refresh re-parsed the value of the input" );
+});
+
}( jQuery ) );
Please sign in to comment.
Something went wrong with that request. Please try again.