jaroslav@503: /** jaroslav@503: * Back 2 Browser Bytecode Translator jaroslav@503: * Copyright (C) 2012 Jaroslav Tulach jaroslav@503: * jaroslav@503: * This program is free software: you can redistribute it and/or modify jaroslav@503: * it under the terms of the GNU General Public License as published by jaroslav@503: * the Free Software Foundation, version 2 of the License. jaroslav@503: * jaroslav@503: * This program is distributed in the hope that it will be useful, jaroslav@503: * but WITHOUT ANY WARRANTY; without even the implied warranty of jaroslav@503: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the jaroslav@503: * GNU General Public License for more details. jaroslav@503: * jaroslav@503: * You should have received a copy of the GNU General Public License jaroslav@503: * along with this program. Look for COPYING file in the top folder. jaroslav@503: * If not, see http://opensource.org/licenses/GPL-2.0. jaroslav@503: */ jaroslav@503: package org.apidesign.vm4brwsr; jaroslav@503: jaroslav@503: import org.apidesign.bck2brwsr.core.ExtraJavaScript; jaroslav@503: import org.apidesign.bck2brwsr.core.JavaScriptBody; jaroslav@503: jaroslav@503: /** Test to verify external scripts are processed in lazy mode. jaroslav@503: * jaroslav@503: * @author Jaroslav Tulach jaroslav@503: */ jaroslav@503: @ExtraJavaScript(resource = "/org/apidesign/vm4brwsr/ko.js") jaroslav@503: public class Script { jaroslav@503: @JavaScriptBody(args = { }, body = "return ko !== null;") jaroslav@503: public static native boolean checkNotNull(); jaroslav@503: }