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:
23
assets/plugins/jquery.maskedinput/spec/Escape.Spec.js
Normal file
23
assets/plugins/jquery.maskedinput/spec/Escape.Spec.js
Normal file
@@ -0,0 +1,23 @@
|
||||
feature("Escape Key", function() {
|
||||
story('User presses escape key after typing in some changes',function(){
|
||||
scenario('mask is applied with an existing value',function(){
|
||||
given("an input an existing value '6'", function(){
|
||||
input
|
||||
.val('6');
|
||||
});
|
||||
|
||||
given("a mask definition of '9'", function(){
|
||||
input
|
||||
.mask('9').focus();
|
||||
});
|
||||
waits(1);
|
||||
when("user types something different then hits escape key",function(){
|
||||
input.mashKeys(function(keys){keys.type('1',keys.esc)});
|
||||
});
|
||||
|
||||
then("value is return to previous value",function(){
|
||||
expect(input).toHaveValue('6');
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user