We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0538217 commit 975089dCopy full SHA for 975089d
spec/Focus.Spec.js
@@ -68,6 +68,25 @@ feature("Focusing A Masked Input",function(){
68
expect(input).toHaveValue("1_");
69
});
70
71
+
72
73
+ scenario("Mask containing optional mask ?,function(){
74
+ given("the input has a partial value",function(){
75
+ input.val("99");
76
+ });
77
+ given("a optional mask on input",function(){
78
+ input.mask("9?9");
79
80
+ when("focusing input",function(){
81
+ input.focus();
82
83
+ waits(1);
84
+ then("caret position should be correct",function(){
85
+ var caret=input.caret();
86
+ expect(caret.begin).toEqual(0);
87
+ expect(caret.end).toEqual(2);
88
89
90
91
92
feature("Leaving A Masked Input",function(){
0 commit comments