UNPKG

alpaca

Version:

Alpaca provides the easiest and fastest way to generate interactive forms for the web and mobile devices. It runs simply as HTML5 or more elaborately using Bootstrap, jQuery Mobile or jQuery UI. Alpaca uses Handlebars to process JSON schema and provide

16 lines (15 loc) 434 B
feature("Pasting", function() { scenario('When pasting a value',function(){ var completed=false; given("an input with a completed callback", function(){ input.mask("99",{completed:function(){completed=true;}}); }); when("pasting",function(){ input.val("99").trigger("paste").trigger("input"); }); waits(1); then("completed callback should be called",function(){ expect(completed).toBeTruthy(); }); }); });