});\r
});\r
\r
+suite('class information', function() {\r
+ test('class of', function() {\r
+ var node = canvasNode.create({tag: 'header', klass: 'a-b-c'});\r
+ assert.ok(node.isOfClass('a'), 'first level');\r
+ assert.ok(node.isOfClass('a-b'), 'second level');\r
+ assert.ok(node.isOfClass('a-b-c'), 'third level');\r
+ assert.notOk(node.isOfClass('b-c'));\r
+ \r
+ var node2 = canvasNode.create({tag: 'header'});\r
+ assert.notOk(node2.isOfClass('b'));\r
+\r
+ });\r
+\r
+});\r
+\r
suite('comparing nodes', function() {\r
test('isSame', function() {\r
var html = '<div wlxml-class="some-class" wlxml-tag="some-tag">';\r