Browse Source

Pull request #1595: 无JIRA任务 修复单测

Merge in VISUAL/fineui from ~WINDY/fui:master to master

* commit '44cb6b6deb0f5aaf7fa1d73062ede442d6b15d35':
  BI-77248 fix: 无透明和自动时设置透明的问题
  update
  无JIRA任务 修复单测
master
windy 4 years ago
parent
commit
edf9fcf3f5
  1. 2
      src/case/colorchooser/colorpicker/editor.colorpicker.hex.simple.js
  2. 5
      src/core/__test__/base.test.js

2
src/case/colorchooser/colorpicker/editor.colorpicker.hex.simple.js

@ -181,7 +181,7 @@ BI.SimpleHexColorPickerEditor = BI.inherit(BI.Widget, {
this.R.setValue(BI.isNull(json.r) ? "" : json.r);
this.G.setValue(BI.isNull(json.g) ? "" : json.g);
this.B.setValue(BI.isNull(json.b) ? "" : json.b);
this.hexEditor.setValue(color.slice(this.constants.HEX_PREFIX_POSITION));
this.hexEditor.setValue(BI.isEmptyObject(json) ? "" : color.slice(this.constants.HEX_PREFIX_POSITION));
},
getValue: function () {

5
src/core/__test__/base.test.js

@ -437,7 +437,8 @@ describe("baseFunctionTest", function () {
* test_author_teller
* 只传一个时分秒format的时间进去后,在某些情况下,返回的是当前时间,然而想要的是返回正确的时分秒
*/
it("parseDateTime", function () {
expect(BI.parseDateTime("14:13:16", "%H:%M:%S").getTime()).to.eql(1602655996000);
it("parseDateTime2", function () {
var date = BI.getDate();
expect(BI.parseDateTime("14:13:16", "%H:%M:%S").getTime()).to.eql(BI.getDate(date.getFullYear(), date.getMonth(), 14, 14, 13, 16).getTime());
});
});

Loading…
Cancel
Save