fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/**
|
|
|
|
* @author windy
|
|
|
|
* @version 2.0
|
|
|
|
* Created by windy on 2020/3/17
|
|
|
|
*/
|
|
|
|
|
|
|
|
describe("PopoverTest", function () {
|
|
|
|
/**
|
|
|
|
* test_author_windy
|
|
|
|
*/
|
|
|
|
it("BarPopover", function (done) {
|
|
|
|
var id = BI.UUID();
|
|
|
|
BI.Popovers.remove(id);
|
|
|
|
BI.Popovers.create(id, {
|
|
|
|
type: "bi.bar_popover",
|
|
|
|
size: "normal",
|
|
|
|
header: {
|
|
|
|
type: "bi.label",
|
|
|
|
text: "这个是header",
|
|
|
|
},
|
|
|
|
body: {
|
|
|
|
type: "bi.label",
|
|
|
|
text: "这个是body",
|
|
|
|
},
|
|
|
|
}).open(id);
|
|
|
|
BI.delay(function () {
|
|
|
|
expect(BI.Widget._renderEngine.createElement("body").find(".bi-popup-view .bi-z-index-mask").length).to.equal(1);
|
|
|
|
BI.Popovers.remove(id);
|
|
|
|
done();
|
|
|
|
}, 100);
|
|
|
|
});
|
|
|
|
});
|