index.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. import "../node_modules/qunitjs/qunit/qunit.css";
  2. import "../css/inputmask.css";
  3. //extensions
  4. import "../js/inputmask.date.extensions";
  5. import "../js/inputmask.extensions";
  6. import "../js/inputmask.numeric.extensions";
  7. import "../js/inputmask.phone.extensions";
  8. import "../js/phone-codes/phone-be";
  9. import "../js/phone-codes/phone-nl";
  10. import "../js/phone-codes/phone-ru";
  11. import "../js/phone-codes/phone-uk";
  12. import "../js/phone-codes/phone";
  13. import "../js/jquery.inputmask";
  14. import Inputmask from "../js/inputmask";
  15. import dependencyLib from "../js/dependencyLibs/inputmask.dependencyLib";
  16. import jQuery from "jquery";
  17. if (dependencyLib === jQuery)
  18. window.jQuery = dependencyLib;
  19. import qunit from "qunitjs";
  20. import "./prototypeExtensions.js";
  21. import simulator from "./simulator.js";
  22. // android testing
  23. // Inputmask.extendDefaults({
  24. // inputEventOnly: true
  25. // });
  26. // window.Inputmask = Inputmask; //inject globally for the simulator to detect inputeventonly
  27. import tests_alternations from "./tests_alternations";
  28. import tests_attributes from "./tests_attributes";
  29. import tests_base from "./tests_base";
  30. import tests_date from "./tests_date";
  31. import tests_dynamic from "./tests_dynamic";
  32. import tests_escape from "./tests_escape";
  33. import tests_formatvalidate from "./tests_formatvalidate";
  34. import tests_initialvalue from "./tests_initialvalue";
  35. import tests_inputeventonly from "./tests_inputeventonly";
  36. import tests_ip from "./tests_ip";
  37. import tests_jitmasking from "./tests_jitmasking";
  38. import tests_jquery_inputmask from "./tests_jquery_inputmask";
  39. import tests_keepStatic from "./tests_keepStatic";
  40. import tests_multi from "./tests_multi";
  41. import tests_numeric from "./tests_numeric";
  42. import tests_numericinput from "./tests_numericinput";
  43. import tests_option from "./tests_option";
  44. import tests_optional from "./tests_optional";
  45. import tests_paste from "./tests_paste";
  46. import tests_phone from "./tests_phone";
  47. import tests_regex from "./tests_regex";
  48. import tests_setvalue from "./tests_setvalue";
  49. import tests_phone_world from "./tests_phone_world";
  50. import tests_phonebe from "./tests_phonebe";
  51. import tests_phonenl from "./tests_phonenl";
  52. import tests_phoneru from "./tests_phoneru";
  53. //inject simulater code
  54. simulator(dependencyLib, Inputmask);
  55. simulator(jQuery, Inputmask);
  56. //load tests
  57. tests_alternations(qunit, dependencyLib, Inputmask);
  58. tests_attributes(qunit, dependencyLib, Inputmask);
  59. tests_base(qunit, dependencyLib, Inputmask);
  60. tests_date(qunit, dependencyLib, Inputmask);
  61. tests_dynamic(qunit, dependencyLib, Inputmask);
  62. tests_escape(qunit, dependencyLib, Inputmask);
  63. tests_formatvalidate(qunit, dependencyLib, Inputmask);
  64. tests_initialvalue(qunit, dependencyLib, Inputmask);
  65. tests_inputeventonly(qunit, dependencyLib, Inputmask);
  66. tests_ip(qunit, dependencyLib, Inputmask);
  67. tests_jitmasking(qunit, dependencyLib, Inputmask);
  68. tests_jquery_inputmask(qunit, jQuery, Inputmask);
  69. tests_keepStatic(qunit, dependencyLib, Inputmask);
  70. tests_multi(qunit, dependencyLib, Inputmask);
  71. tests_numeric(qunit, dependencyLib, Inputmask);
  72. tests_numericinput(qunit, dependencyLib, Inputmask);
  73. tests_option(qunit, dependencyLib, Inputmask);
  74. tests_optional(qunit, dependencyLib, Inputmask);
  75. tests_paste(qunit, dependencyLib, Inputmask);
  76. tests_phone(qunit, dependencyLib, Inputmask);
  77. tests_regex(qunit, dependencyLib, Inputmask);
  78. tests_setvalue(qunit, dependencyLib, Inputmask);
  79. //phone
  80. // tests_phone_world(qunit, dependencyLib, Inputmask);
  81. // tests_phonebe(qunit, dependencyLib, Inputmask);
  82. // tests_phonenl(qunit, dependencyLib, Inputmask);
  83. // tests_phoneru(qunit, dependencyLib, Inputmask);
  84. qunit.load();
  85. // qunit.start();