You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by jb...@apache.org on 2010/06/22 02:14:23 UTC
svn commit: r956743 -
/commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/test/testBrowserTransform.html
Author: jbeard
Date: Tue Jun 22 00:14:23 2010
New Revision: 956743
URL: http://svn.apache.org/viewvc?rev=956743&view=rev
Log:
Make testBrowserTransform.html use requireJS to load XML resources. This will make generating unit test html easier.
Modified:
commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/test/testBrowserTransform.html
Modified: commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/test/testBrowserTransform.html
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/test/testBrowserTransform.html?rev=956743&r1=956742&r2=956743&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/test/testBrowserTransform.html (original)
+++ commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/test/testBrowserTransform.html Tue Jun 22 00:14:23 2010
@@ -24,33 +24,30 @@
{
"baseUrl":"/"
},
- [ "src/javascript/scxml/cgf/SCXMLCompiler"],
- function(compiler){
+ [ "src/javascript/scxml/cgf/SCXMLCompiler",
+ "xml!test/kitchen_sink/KitchenSink_executableContent.xml"],
+ function(compiler,KitchenSink_executableContent){
var compileLog = true;
var backend = "state";
- doXHR("http://localhost:8081/test/kitchen_sink/KitchenSink_executableContent.xml",
- function(KitchenSink_executableContent){
+ compiler.compile({
+ inFiles:[KitchenSink_executableContent],
+ backend:backend,
+ beautify:true,
+ verbose:false,
+ log:compileLog,
+ ie:false
+ }, function(scArr){
+ var transformedJs = scArr[0];
- compiler.compile({
- inFiles:[KitchenSink_executableContent],
- backend:backend,
- beautify:true,
- verbose:false,
- log:compileLog,
- ie:false
- }, function(scArr){
- var transformedJs = scArr[0];
+ console.log(transformedJs);
- console.log(transformedJs);
-
- //eval
- eval(transformedJs);
- window.StatechartExecutionContext = StatechartExecutionContext;
- dojo.require("doh.runner");
- doh.run();
- });
- });
+ //eval
+ eval(transformedJs);
+ window.StatechartExecutionContext = StatechartExecutionContext;
+ dojo.require("doh.runner");
+ doh.run();
+ });
}
);
@@ -59,3 +56,4 @@
<body>
</body>
</html>
+