8
0

attribute.js 556 B

123456789101112131415161718192021
  1. /**
  2. * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md.
  4. */
  5. /* bender-tags: document */
  6. 'use strict';
  7. var modules = bender.amd.require( 'document/attribute' );
  8. describe( 'constructor', function() {
  9. it( 'should create attribute', function() {
  10. var Attribute = modules[ 'document/attribute' ];
  11. var attr = new Attribute( 'foo', 'bar' );
  12. expect( attr ).to.have.property( 'key' ).that.equals( 'foo' );
  13. expect( attr ).to.have.property( 'value' ).that.equals( 'bar' );
  14. } );
  15. } );