rt/vm/src/test/java/org/apidesign/vm4brwsr/Script.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 26 Feb 2013 16:54:16 +0100
changeset 772 d382dacfd73f
parent 503 vm/src/test/java/org/apidesign/vm4brwsr/Script.java@80a388c8c27b
child 1787 ea12a3bb4b33
permissions -rw-r--r--
Moving modules around so the runtime is under one master pom and can be built without building other modules that are in the repository
jaroslav@503
     1
/**
jaroslav@503
     2
 * Back 2 Browser Bytecode Translator
jaroslav@503
     3
 * Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
jaroslav@503
     4
 *
jaroslav@503
     5
 * This program is free software: you can redistribute it and/or modify
jaroslav@503
     6
 * it under the terms of the GNU General Public License as published by
jaroslav@503
     7
 * the Free Software Foundation, version 2 of the License.
jaroslav@503
     8
 *
jaroslav@503
     9
 * This program is distributed in the hope that it will be useful,
jaroslav@503
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jaroslav@503
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
jaroslav@503
    12
 * GNU General Public License for more details.
jaroslav@503
    13
 *
jaroslav@503
    14
 * You should have received a copy of the GNU General Public License
jaroslav@503
    15
 * along with this program. Look for COPYING file in the top folder.
jaroslav@503
    16
 * If not, see http://opensource.org/licenses/GPL-2.0.
jaroslav@503
    17
 */
jaroslav@503
    18
package org.apidesign.vm4brwsr;
jaroslav@503
    19
jaroslav@503
    20
import org.apidesign.bck2brwsr.core.ExtraJavaScript;
jaroslav@503
    21
import org.apidesign.bck2brwsr.core.JavaScriptBody;
jaroslav@503
    22
jaroslav@503
    23
/** Test to verify external scripts are processed in lazy mode.
jaroslav@503
    24
 *
jaroslav@503
    25
 * @author Jaroslav Tulach <jtulach@netbeans.org>
jaroslav@503
    26
 */
jaroslav@503
    27
@ExtraJavaScript(resource = "/org/apidesign/vm4brwsr/ko.js")
jaroslav@503
    28
public class Script {
jaroslav@503
    29
    @JavaScriptBody(args = {  }, body = "return ko !== null;")
jaroslav@503
    30
    public static native boolean checkNotNull();
jaroslav@503
    31
}