rt/launcher/src/main/resources/org/apidesign/bck2brwsr/launcher/harness.xhtml
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 18 Apr 2013 05:47:45 +0200
branchfx
changeset 1006 691c5cd3fb93
parent 916 c3c30f25c723
child 1016 6dc2c6c752df
permissions -rw-r--r--
Tests can start inside FX Web View
     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                 var inst = vm.loadClass('org.apidesign.bck2brwsr.launcher.impl.Console').newInstance();
    42                 inst.harness('$U/../data');
    43             } catch (err) { 
    44                 alert('Error executing harness: ' + err); 
    45             }
    46         </script>
    47     </body>
    48 </html>