+suite('meta attributes', function() {
+ test('get list of node\'s meta attributes', function() {
+ var node = canvasNode.create({tag: 'tag', klass: 'klass', meta: {a:1, b:2}});
+ var attrs = node.getMetaAttrs();
+ var expected = [{name: 'a', value: '1'}, {name:'b', value: '2'}];
+
+ assert.deepEqual(attrs.sort(), expected.sort());
+ });
+
+ test('set meta attribute', function() {
+ var node = canvasNode.create({tag: 'tag', meta: {a:'1'}});
+ node.setMetaAttr('a', '2');
+ assert.equal(node.dom.attr('wlxml-meta-a'), '2');
+ })
+})