jaroslav@526: /** jaroslav@526: * Back 2 Browser Bytecode Translator jaroslav@526: * Copyright (C) 2012 Jaroslav Tulach jaroslav@526: * jaroslav@526: * This program is free software: you can redistribute it and/or modify jaroslav@526: * it under the terms of the GNU General Public License as published by jaroslav@526: * the Free Software Foundation, version 2 of the License. jaroslav@526: * jaroslav@526: * This program is distributed in the hope that it will be useful, jaroslav@526: * but WITHOUT ANY WARRANTY; without even the implied warranty of jaroslav@526: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the jaroslav@526: * GNU General Public License for more details. jaroslav@526: * jaroslav@526: * You should have received a copy of the GNU General Public License jaroslav@526: * along with this program. Look for COPYING file in the top folder. jaroslav@526: * If not, see http://opensource.org/licenses/GPL-2.0. jaroslav@526: */ jaroslav@526: package org.apidesign.bck2brwsr.vmtest; jaroslav@526: jaroslav@526: import java.lang.annotation.ElementType; jaroslav@526: import java.lang.annotation.Retention; jaroslav@526: import java.lang.annotation.RetentionPolicy; jaroslav@526: import java.lang.annotation.Target; jaroslav@526: jaroslav@526: /** Allows to specify an HTML fragment for a given {@link BrwsrTest}. jaroslav@526: * Apply either to the method or to enclosing class. The fragment will be jaroslav@526: * made available in the page that executes given test. Its elements shall jaroslav@526: * be regularly accessible from the test. jaroslav@526: * jaroslav@526: * @author Jaroslav Tulach jaroslav@526: */ jaroslav@526: @Retention(RetentionPolicy.RUNTIME) jaroslav@526: @Target({ ElementType.METHOD, ElementType.TYPE}) jaroslav@526: public @interface HtmlFragment { jaroslav@526: /** HTML code fragment to be exposed on the testing page. jaroslav@526: */ jaroslav@526: String value(); jaroslav@526: }