integration wip: setting/handling contentSet event (source/canvas)
[fnpeditor.git] / src / editor / modules / documentCanvas / canvas / canvas.test.js
1 define([
2 'libs/chai',
3 'modules/documentCanvas/canvas/canvas',
4 'modules/documentCanvas/canvas/documentElement',
5 'modules/documentCanvas/canvas/utils',
6 'wlxml/wlxml'
7 ], function(chai, canvas, documentElement, utils, wlxml) {
8     
9 'use strict';
10
11 var expect = chai.expect;
12
13
14 var nodeFromXML = function(xml) {
15     return wlxml.WLXMLElementNodeFromXML(xml);
16 };
17
18
19 describe('new Canvas', function() {
20     it('abc', function() {
21         var doc = wlxml.WLXMLDocumentFromXML('<section>Alice <span>has</span> a cat!</div>'),
22             c = canvas.fromXMLDocument(doc);
23
24         expect(c.doc().children()).to.have.length(3)
25     });
26 })
27
28
29 });