tests_jitmasking.js 524 B

1234567891011121314
  1. export default function (qunit, $, Inputmask) {
  2. qunit.module("JIT Masking");
  3. qunit.test("'(.999){*}', { jitMasking: true, numericInput: true }", function (assert) {
  4. var $fixture = $("#qunit-fixture");
  5. $fixture.append('<input type="text" id="testmask" />');
  6. var testmask = document.getElementById("testmask");
  7. Inputmask('(.999){*}', { jitMasking: true, numericInput: true }).mask(testmask);
  8. $("#testmask").Type("123456");
  9. assert.equal($(testmask).val(), "123.456", "Result " + $(testmask).val());
  10. });
  11. };