//test loading version -1 and auto-upgrading it to version 0
@Test public void versionN1to0Test() throws Exception {
u.p("running a version upgrade test");
VectorModeHelper helper = new VectorModeHelper(null);
VectorDocContext context = helper.createDocContext(null);
SketchCanvas canvas = new SketchCanvas(context);
OpenAction action = new OpenAction(null);
u.p("Url = " + this.getClass().getResource("oldVersion_-1.xml"));
action.load(this.getClass().getResourceAsStream("oldVersion_-1.xml"),null,"oldVersion_-1.xml",null);
SketchDocument doc = canvas.getDocument();
u.p("canvas doc = " + doc);
for(SNode shape : doc.getCurrentPage().getNodes()) {
u.p("shape = " + shape);
}
}