launcher/fx/src/main/resources/org/apidesign/bck2brwsr/launcher/fximpl/harness.xhtml
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/launcher/fx/src/main/resources/org/apidesign/bck2brwsr/launcher/fximpl/harness.xhtml Sun Apr 28 17:42:49 2013 +0200
1.3 @@ -0,0 +1,52 @@
1.4 +<?xml version="1.0" encoding="UTF-8"?>
1.5 +<!--
1.6 +
1.7 + Back 2 Browser Bytecode Translator
1.8 + Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
1.9 +
1.10 + This program is free software: you can redistribute it and/or modify
1.11 + it under the terms of the GNU General Public License as published by
1.12 + the Free Software Foundation, version 2 of the License.
1.13 +
1.14 + This program is distributed in the hope that it will be useful,
1.15 + but WITHOUT ANY WARRANTY; without even the implied warranty of
1.16 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.17 + GNU General Public License for more details.
1.18 +
1.19 + You should have received a copy of the GNU General Public License
1.20 + along with this program. Look for COPYING file in the top folder.
1.21 + If not, see http://opensource.org/licenses/GPL-2.0.
1.22 +
1.23 +-->
1.24 +<!DOCTYPE html>
1.25 +<html xmlns="http://www.w3.org/1999/xhtml">
1.26 + <head>
1.27 + <title>Bck2Brwsr Harness</title>
1.28 + </head>
1.29 + <body>
1.30 + <script src="/bck2brwsr.js"></script>
1.31 + <script>
1.32 + var vm = bck2brwsr();
1.33 + </script>
1.34 +
1.35 + <h1>Bck2Brwsr Execution Harness</h1>
1.36 +
1.37 + <ul id="bck2brwsr.result" style="width: 100%;" >
1.38 + </ul>
1.39 +
1.40 + <div id="bck2brwsr.fragment"/>
1.41 +
1.42 + <script type="text/javascript">
1.43 + try {
1.44 + (function() {
1.45 + var cls = vm.loadClass('org.apidesign.bck2brwsr.launcher.fximpl.Console');
1.46 + // fxbrwsr mangling
1.47 + var inst = cls.newInstance();
1.48 + inst.harness('$U/../data');
1.49 + })();
1.50 + } catch (err) {
1.51 + alert('Error executing harness: ' + err);
1.52 + }
1.53 + </script>
1.54 + </body>
1.55 +</html>