示例#1
0
 it('should update when content attribute change', function(done) {
   tooltip = new Tooltip().render();
   tooltip.content = 'content';
   async.nextTick(function() {
     assert.strictEqual('content', tooltip.element.innerHTML);
     done();
   });
 });
示例#2
0
	it('should change visibility when close icon is clicked', function(done) {
		var component = new Boilerplate().render();
		dom.triggerEvent(component.element.querySelector('.close'), 'click');
		async.nextTick(function() {
			assert.ok(!component.visible);
			component.dispose();
			done();
		});
	});
示例#3
0
	it('should change visibility when visible attribute changes', function(done) {
		var component = new Boilerplate().render();
		component.visible = false;
		async.nextTick(function() {
			assert.ok(!component.visible);
			component.dispose();
			done();
		});
	});