rt/launcher/src/main/resources/org/apidesign/bck2brwsr/launcher/harness.xhtml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 18 Apr 2013 23:09:30 +0200
branchfx
changeset 1016 6dc2c6c752df
parent 1006 691c5cd3fb93
permissions -rw-r--r--
Can execute 'dual' tests: bck2brwsr can use regular launcher, javaquery.api can use FX Web View one
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     3 
     4     Back 2 Browser Bytecode Translator
     5     Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
     6 
     7     This program is free software: you can redistribute it and/or modify
     8     it under the terms of the GNU General Public License as published by
     9     the Free Software Foundation, version 2 of the License.
    10 
    11     This program is distributed in the hope that it will be useful,
    12     but WITHOUT ANY WARRANTY; without even the implied warranty of
    13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    14     GNU General Public License for more details.
    15 
    16     You should have received a copy of the GNU General Public License
    17     along with this program. Look for COPYING file in the top folder.
    18     If not, see http://opensource.org/licenses/GPL-2.0.
    19 
    20 -->
    21 <!DOCTYPE html>
    22 <html xmlns="http://www.w3.org/1999/xhtml">
    23     <head>
    24         <title>Bck2Brwsr Harness</title>
    25     </head>
    26     <body>
    27         <script src="/bck2brwsr.js"></script>
    28         <script>
    29             var vm = bck2brwsr();
    30         </script>
    31         
    32         <h1>Bck2Brwsr Execution Harness</h1>
    33         
    34         <ul id="bck2brwsr.result" style="width: 100%;" >
    35         </ul>
    36 
    37         <div id="bck2brwsr.fragment"/>
    38         
    39         <script type="text/javascript">
    40             try {
    41                 (function() {
    42                     var cls = vm.loadClass('org.apidesign.bck2brwsr.launcher.impl.Console');
    43                     try {
    44                         // bck2brwsr mangling
    45                         cls.runHarness__VLjava_lang_String_2('$U/../data');
    46                     } catch (err) {
    47                         // fxbrwsr mangling
    48                         var inst = cls.newInstance();
    49                         inst.harness('$U/../data');
    50                     }
    51                 })();
    52             } catch (err) { 
    53                 alert('Error executing harness: ' + err); 
    54             }
    55         </script>
    56     </body>
    57 </html>