@ -5,7 +5,7 @@
var widget = BI.createWidget(BI.extend(widgetJson, {
root: true
}));
widget._mount();
// widget._mount();
widget.element.appendTo("body");
return widget;
}
@ -17,6 +17,7 @@ describe("ButtonTest", function () {
BI.nextTick(function () {
button.element.click();
expect(button.element.children(".bi-text").text()).to.equal("click");
button.destroy();
done();
});
@ -12,6 +12,7 @@ describe("TextTest", function () {
text.setText("AAA");
expect(text.element.text()).to.equal("AAA");
text.destroy();
/**
@ -23,5 +24,6 @@ describe("TextTest", function () {
text.setStyle({"color": "red"});
expect(text.element.getStyle("color")).to.equal("rgb(255, 0, 0)");