Add frontend assets and plugin bundles
Add the legacy frontend themes, scripts, and plugin assets required by the main SPOTA interfaces.
This commit is contained in:
57
assets/plugins/jquery.maskedinput/spec/Raw.Spec.js
Normal file
57
assets/plugins/jquery.maskedinput/spec/Raw.Spec.js
Normal file
@@ -0,0 +1,57 @@
|
||||
feature("Getting raw value",function(){
|
||||
scenario("After typing",function(){
|
||||
given("an input with a mask containing a literal", function(){
|
||||
input
|
||||
.mask("9/9");
|
||||
});
|
||||
|
||||
when("typing all numbers",function(){
|
||||
input.mashKeys("12");
|
||||
});
|
||||
|
||||
then("raw value should be correct",function(){
|
||||
expect(input.mask()).toEqual("12");
|
||||
});
|
||||
});
|
||||
|
||||
scenario("While typing",function(){
|
||||
given("an input with a mask containing a literal", function(){
|
||||
input
|
||||
.mask("9/9");
|
||||
});
|
||||
|
||||
when("typing a number",function(){
|
||||
input.mashKeys("1");
|
||||
});
|
||||
|
||||
then("raw value should be correct",function(){
|
||||
expect(input.mask()).toEqual("1");
|
||||
});
|
||||
});
|
||||
|
||||
scenario("Before typing",function(){
|
||||
given("an input with a mask containing a literal", function(){
|
||||
input
|
||||
.mask("9/9");
|
||||
});
|
||||
|
||||
then("raw value should be correct",function(){
|
||||
expect(input.mask()).toEqual("");
|
||||
});
|
||||
});
|
||||
|
||||
scenario("After typing partial input past an optional marker",function(){
|
||||
given("an input with a mask containing a literal", function(){
|
||||
input
|
||||
.mask("9?99");
|
||||
});
|
||||
|
||||
when("typing a partial input",function(){
|
||||
input.mashKeys("12");
|
||||
});
|
||||
|
||||
then("raw value should be correct",function(){
|
||||
expect(input.mask()).toEqual("12");
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user