Permalink
Browse files

Updated surface-test.js to remove unsupported API.

  • Loading branch information...
1 parent 9675e18 commit 873835cb5043efea8b248cb360c6dcbe25ecee2c @jbeard4 committed Jul 9, 2012
Showing with 3 additions and 12 deletions.
  1. +3 −12 test/surface-test.js
View
@@ -29,25 +29,16 @@ var tests = [
});
},
function(){
- go(scion.documentStringToModel(s));
- },
- function(){
- go(scion.documentToModel(scion.parseDocumentString(s)));
+ scion.documentStringToModel(s,function(err,model){
+ go(model);
+ });
}
];
-
-
-
function go(model){
var scxml = new scion.SCXML(model);
var conf = scxml.start();
if(!( conf && conf[0] === 'a' )) throw new Error('assertion failed');
}
tests.forEach(function(fn){fn();});
-
-//for rhino to finish:
-if(typeof quit !== 'undefined'){
- quit(0);
-}

0 comments on commit 873835c

Please sign in to comment.