2016-11-02 16:12:13 -06:00

25 lines
542 B
JavaScript

var expect = require('chai').expect;
function Widget(config) {
this.name = 'app-legacy-button';
var logOutput = this.logOutput = [];
function log(data) {
logOutput.push(data);
}
this.log = log;
this.clicked = false;
}
Widget.prototype = {
handleRootMouseDown: function(event, el) {
this.clicked = true;
expect(el.getAttribute('class')).to.equal('app-legacy-button');
this.log('click');
expect(this.name).to.equal('app-legacy-button');
}
};
exports.Widget = Widget;