fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
smartxml: Getting rid of nodeMoved event in favor of `move` flag on nodeDetached...
[fnpeditor.git]
/
src
/
wlxml
/
wlxml.test.js
diff --git
a/src/wlxml/wlxml.test.js
b/src/wlxml/wlxml.test.js
index
d3aa912
..
9904154
100644
(file)
--- a/
src/wlxml/wlxml.test.js
+++ b/
src/wlxml/wlxml.test.js
@@
-1,8
+1,7
@@
define([
define([
- 'libs/jquery',
'libs/chai',
'./wlxml.js'
'libs/chai',
'./wlxml.js'
-], function(
$,
chai, wlxml) {
+], function(chai, wlxml) {
'use strict';
'use strict';
@@
-28,6
+27,11
@@
describe('WLXMLDocument', function() {
expect(node.getClass()).to.equal('class.subclass');
});
expect(node.getClass()).to.equal('class.subclass');
});
+ it('returns its class hierarchy', function() {
+ var node = nodeFromXML('<div class="a.b.c"></div>');
+ expect(node.getClassHierarchy()).to.eql(['', 'a', 'a.b', 'a.b.c']);
+ });
+
it('returns unregistered attributes', function() {
var testClasses = {
'testClass': {
it('returns unregistered attributes', function() {
var testClasses = {
'testClass': {