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