Sha256: ab7bcb6b11828841abbb37a67c38a77391d0932793759089204ffeab1a266d61
Contents?: true
Size: 1.45 KB
Versions: 2
Compression:
Stored size: 1.45 KB
Contents
require('/jquery.js'); stylesheet('/styles.css') describe('templates', function() { describe('with template', function() { template('one_template.html') it("should append the template to the test div", function() { expect($('#test h1#from-template').length).toEqual(1); }); it("should change stuff in one test...", function() { expect($('#test h1#from-template').length).toEqual(1); $('#test h1#from-template').attr('id', 'changed'); expect($('#test h1#changed').length).toEqual(1); expect($('#test h1#from-template').length).toEqual(0); }); it("... should have been removed before the next starts", function() { expect($('#test h1#changed').length).toEqual(0); expect($('#test h1#from-template').length).toEqual(1); }); }); describe('with another template', function() { template('another_template.html') it("should append the template to the test div", function() { expect($('#test h1#another-template').length).toEqual(1); }); }); describe('with template with script tags', function() { template('script_tags.html') it("should append the template to the test div", function() { expect($('#test h1#script-tags').length).toEqual(1); }); }); }); describe('stylesheet', function() { template('one_template.html') it("should style the template", function() { expect(document.getElementById('from-template').offsetWidth).toEqual(300) }); });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
evergreen-1.0.0 | spec/suite1/spec/javascripts/templates_spec.js |
evergreen-1.0.0.rc | spec/suite1/spec/javascripts/templates_spec.js |