1 define(function(require) {
4 /* globals describe, it */
7 var ElementsRegister = require('./elementsRegister.js'),
8 documentElement = require('./documentElement.js'),
9 chai = require('libs/chai');
11 var expect = chai.expect;
13 describe('Elements register', function() {
14 it('registers element for a tag', function() {
15 var register = new ElementsRegister(documentElement.DocumentNodeElement),
16 prototype = Object.create({});
22 var Element = register.getElement({tag: 'div'});
23 expect(Element.prototype).to.equal(prototype);
25 it('registers element for a class', function() {
26 var register = new ElementsRegister(documentElement.DocumentNodeElement),
27 prototype = Object.create({});
34 var Element = register.getElement({tag: 'div', klass: 'a.b.c'});
35 expect(Element.prototype).to.equal(prototype);