forked from fanruan/fineui
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.
25 lines
575 B
25 lines
575 B
6 years ago
|
/**
|
||
|
* Created by windy on 2018/01/23.
|
||
|
*/
|
||
|
describe("ButtonTest", function () {
|
||
|
|
||
|
/**
|
||
|
* test_author_windy
|
||
|
*/
|
||
|
it("EventClickTest", function (done) {
|
||
|
var button = BI.Test.createWidget({
|
||
|
type: "bi.button",
|
||
|
text: "CCC",
|
||
|
handler: function () {
|
||
|
this.setText("click");
|
||
|
}
|
||
|
});
|
||
|
BI.nextTick(function () {
|
||
|
button.element.click();
|
||
|
expect(button.element[0].querySelector(".bi-text").textContent).to.equal("click");
|
||
|
done();
|
||
|
});
|
||
|
|
||
|
});
|
||
|
});
|