fix bug comma
This commit is contained in:
19
wwwroot/BackendScript/js/jquery-maskmoney-master/test/selection_test.js
vendored
Normal file
19
wwwroot/BackendScript/js/jquery-maskmoney-master/test/selection_test.js
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
|
||||
module("double click selection");
|
||||
test("when double clicking", function() {
|
||||
var input = $("#input1").maskMoney();
|
||||
input.val("123.45");
|
||||
input.maskMoney("mask");
|
||||
input.trigger("dblclick");
|
||||
equal(input.val(), "123.45", "the content does not change");
|
||||
});
|
||||
|
||||
test("when double clicking and hitting delete", function() {
|
||||
var input = $("#input1").maskMoney();
|
||||
input.val("12345");
|
||||
input.maskMoney("mask");
|
||||
input.trigger("dblclick");
|
||||
keydown(input, "backspace");
|
||||
equal(input.val(), "0.00", "all the content is cleared");
|
||||
});
|
||||
Reference in New Issue
Block a user