dd0bc11e8217610721e610152c2c300e0d9bdd7b
[fnpeditor.git] / src / wlxml / wlxml.test.js
1 define([
2     'libs/chai',
3     './wlxml.js'
4 ], function(chai, wlxml) {
5     
6 'use strict';
7
8 var expect = chai.expect;
9
10 var nodeFromXML = function(xml) {
11     return wlxml.WLXMLElementNodeFromXML(xml);
12 };
13
14
15 describe('WLXMLDocument', function() {
16     
17     describe('Basic wlxml element node properties', function() {
18         it('returns its class', function() {
19             var node = nodeFromXML('<header class="class.subclass"></header>');
20             expect(node.getClass()).to.equal('class.subclass');
21         });
22     });
23 });
24
25 });