javaquery/api/src/test/java/org/apidesign/bck2brwsr/htmlpage/ElementGeneratorTest.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Thu, 02 May 2013 10:08:35 +0200
branchelements
changeset 1073 9321b4016d5c
child 1079 24b95d90955a
permissions -rw-r--r--
Hopefully resuscitating the original code from rev. 146ae7b52b64 by manual merge
jan@866
     1
/**
jan@866
     2
 * Back 2 Browser Bytecode Translator
jan@866
     3
 * Copyright (C) 2012 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
jan@866
     4
 *
jan@866
     5
 * This program is free software: you can redistribute it and/or modify
jan@866
     6
 * it under the terms of the GNU General Public License as published by
jan@866
     7
 * the Free Software Foundation, version 2 of the License.
jan@866
     8
 *
jan@866
     9
 * This program is distributed in the hope that it will be useful,
jan@866
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
jan@866
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
jan@866
    12
 * GNU General Public License for more details.
jan@866
    13
 *
jan@866
    14
 * You should have received a copy of the GNU General Public License
jan@866
    15
 * along with this program. Look for COPYING file in the top folder.
jan@866
    16
 * If not, see http://opensource.org/licenses/GPL-2.0.
jan@866
    17
 */
jan@866
    18
package org.apidesign.bck2brwsr.htmlpage;
jan@866
    19
jan@866
    20
import java.util.Map;
jan@866
    21
import static org.testng.Assert.*;
jan@866
    22
import org.testng.annotations.Test;
jan@866
    23
jan@866
    24
/**
jan@866
    25
 *
jan@866
    26
 * @author Jan Horvath <jhorvath@netbeans.org>
jan@866
    27
 */
jan@866
    28
public class ElementGeneratorTest {
jan@866
    29
    
jan@866
    30
    @Test public void testGetAttributes() {
jan@866
    31
        ElementGenerator gen = new ElementGenerator(null);
jan@866
    32
        Map<String, String> attrs = gen.getAttributes("input");
jan@866
    33
        assertEquals(attrs.get("width"), "Integer", "Expected type of width attribute is Integer");
jan@866
    34
    }
jan@866
    35
}