<commit_before>var Element 		= require( '../../lib/element' )

Element.prototype.inject(
  require( '../../lib/property/css' ),
  require( '../../lib/property/backgroundcolor' ),
  require( '../../lib/property/text' ),
  require( 'vjs/lib/methods/lookUp' )
)

var a = new Element({
	$backgroundcolor: 'red',
	$test: 'simple text', 
	$css: 'test'
	
})


describe( 'Properties' ,function () {
	it( 'Should be able to set background-color on a element', function (done) {
		expect(a.$node.style.backgroundColor).to.be.equal("red")
		done()
	})

	it( 'Should be able to set a css class on a element', function (done) {
		expect(a.$node.className).to.be.equal("test")
		done()
	})

	it( 'Should be able to set a custom text on a element', function (done) {
		expect(a.$node).to.be.equal("simple text")
		done()
	})

})<commit_msg>Added more tests on property<commit_after>var Element 		= require( '../../lib/element' )

Element.prototype.inject(
  require( '../../lib/property/css' ),
  require( '../../lib/property/size' ),
  require( '../../lib/property/attributes' ),
  require( '../../lib/property/backgroundcolor' ),
  require( '../../lib/property/text' ),
  require( 'vjs/lib/methods/lookUp' )
)

var a = new Element({
	$backgroundcolor: 'red',
	$text: 'simple text', 
	$css: 'test',
	$width: 100,
	$height: 100,
	$attributes: {
		draggable:true
	}
})

describe( 'Properties' ,function () {
	it( 'Should be able to set background-color on a element', function (done) {
		expect(a.$node.style.backgroundColor).to.be.equal("red")
		done()
	})

	it( 'Should be able to set a css class on a element', function (done) {
		expect(a.$node.className).to.be.equal("test")
		done()
	})

	it( 'Should be able to set a custom text on a element', function (done) {
		expect(a.$node.textContent).to.be.equal("simple text")
		done()
	})

	it( 'Shold be able to change the width and the heigh of an element', function (done) {
		expect(a.$node.style.width).to.be.equal("100px")	
		expect(a.$node.style.height).to.be.equal("100px")	
		done()
	})
	it( 'Shold be able to any attributes to an element', function (done) {
		expect(a.$node.draggable).to.be.equal(true)	
		done()
	})
})
{'fraction_non_alphanumeric': 0.1954713493530499, 'fraction_numerical': 0.005545286506469501, 'mean_word_length': 3.491701244813278, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4977953', 'n_tokens_mistral': 783, 'n_tokens_neox': 751, 'n_words': 195}