X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/989364fcf105797896a7172a4c9367f6b07848b2..66beb53d8311c422fe21637493136780002d0fc5:/src/wlxml/wlxml.test.js diff --git a/src/wlxml/wlxml.test.js b/src/wlxml/wlxml.test.js index d3aa912..9904154 100644 --- a/src/wlxml/wlxml.test.js +++ b/src/wlxml/wlxml.test.js @@ -1,8 +1,7 @@ define([ - 'libs/jquery', 'libs/chai', './wlxml.js' -], function($, chai, wlxml) { +], function(chai, wlxml) { 'use strict'; @@ -28,6 +27,11 @@ describe('WLXMLDocument', function() { expect(node.getClass()).to.equal('class.subclass'); }); + it('returns its class hierarchy', function() { + var node = nodeFromXML('
'); + expect(node.getClassHierarchy()).to.eql(['', 'a', 'a.b', 'a.b.c']); + }); + it('returns unregistered attributes', function() { var testClasses = { 'testClass': {