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.
28 lines
603 B
28 lines
603 B
6 years ago
|
/**
|
||
|
* Created by windy on 2018/01/23.
|
||
|
*/
|
||
|
describe("TextTest", function () {
|
||
|
|
||
|
/**
|
||
|
* test_author_windy
|
||
|
*/
|
||
|
it("setText", function () {
|
||
|
var text = BI.Test.createWidget({
|
||
|
type: "bi.text"
|
||
|
});
|
||
|
text.setText("AAA");
|
||
|
expect(text.element[0].textContent).to.equal("AAA");
|
||
|
});
|
||
|
|
||
|
/**
|
||
|
* test_author_windy
|
||
|
*/
|
||
|
it("setStyle", function () {
|
||
|
var text = BI.Test.createWidget({
|
||
|
type: "bi.text"
|
||
|
});
|
||
|
text.setStyle({"color": "red"});
|
||
|
expect(text.element[0].style.color).to.equal("red");
|
||
|
});
|
||
|
});
|