Draft parser for gantt diagrams.

This commit is contained in:
knsv
2015-02-08 20:07:15 +01:00
parent 7896a7152e
commit c211434c38
16 changed files with 1593 additions and 41 deletions

View File

@@ -424,7 +424,18 @@ describe('when parsing ',function(){
expect(edges[0].text).toBe('text including graph space');
});
it('should handle keywords',function(){
var res = flow.parser.parse('graph TD;V-->a[v]');
var vert = flow.parser.yy.getVertices();
var edges = flow.parser.yy.getEdges();
expect(vert['a'].text).toBe('v');
});
it('should handle keywords',function(){
var res = flow.parser.parse('graph TD;V-->a[v]');
var vert = flow.parser.yy.getVertices();
var edges = flow.parser.yy.getEdges();
expect(vert['a'].text).toBe('v');
});
});
describe("it should handle new line type notation",function() {