Support button title change
Change-Id: Ie0f225071edeb2547f841632951715a104477ff7
diff --git a/dev/js/spec/buttongroupSpec.js b/dev/js/spec/buttongroupSpec.js
index 9f20042..189fb24 100644
--- a/dev/js/spec/buttongroupSpec.js
+++ b/dev/js/spec/buttongroupSpec.js
@@ -74,7 +74,7 @@
var count = 0;
- group.add('Meta', undefined, function () {
+ let btn = group.add('Meta', undefined, function () {
count++;
});
@@ -84,6 +84,10 @@
group.element().firstChild.click();
expect(count).toEqual(1);
+
+ expect(btn.textContent).toEqual("Meta");
+ btn.changeTitle("Cool");
+ expect(btn.textContent).toEqual("Cool");
});
it('should respect binds', function () {