Package com.googlecode.gwt.test

Source Code of com.googlecode.gwt.test.HtmlBuilderTest

package com.googlecode.gwt.test;

import static org.fest.assertions.api.Assertions.assertThat;

import org.junit.Test;

import com.google.gwt.dom.builder.shared.HtmlBuilderFactory;
import com.google.gwt.dom.builder.shared.HtmlDivBuilder;

public class HtmlBuilderTest extends GwtTestTest {

   @Test
   public void divWithCamelCaseStyle() throws Exception {
      // Arrange
      HtmlDivBuilder divBuilder = HtmlBuilderFactory.get().createDivBuilder();

      // Act
      divBuilder.style().trustedProperty("propertyName", "my value");

      // assert
      assertThat(divBuilder.asSafeHtml().asString()).isEqualTo(
               "<div style=\"property-name:my value;\"></div>");
   }
}
TOP

Related Classes of com.googlecode.gwt.test.HtmlBuilderTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.