We use GoJS to create a diagram by means of a GraphLinksModel.
Now we want to add the possibility to generate the svg information based on the currently shown diagram.
We call the diagram.makeSvg() function to do this, and use the outerHTML attribute of the returned svg object. So far so good.
We now would like to create a system test using phantomjs (and casperjs) to test if the generated svg is correct. But to my surprise the outerHTML attribute of the returned object stays “undefined”, and I do not see a way to get to the svg output. The other attributes of the returned object seems to be ok.
Pseudo Example code:
Is there anything that I’m overlooking? Anyone has a suggestion to do this correctly?