Package limelight.styles.values

Source Code of limelight.styles.values.StaticPixelsValueTest

//- Copyright © 2008-2011 8th Light, Inc. All Rights Reserved.
//- Limelight and all included source files are distributed under terms of the MIT License.

package limelight.styles.values;

import junit.framework.TestCase;

import limelight.util.Box;

public class StaticPixelsValueTest extends TestCase
{
  public void testReturnsPixles() throws Exception
  {
    assertEquals(50, new StaticPixelsValue(50).pixelsFor(100));
    assertEquals(66, new StaticPixelsValue(66).pixelsFor(100));
    assertEquals(50, new StaticPixelsValue(50).pixelsFor(new Box(0, 0, 100, 200)));
    assertEquals(66, new StaticPixelsValue(66).pixelsFor(new Box(0, 0, 100, 200)));
  }
}
TOP

Related Classes of limelight.styles.values.StaticPixelsValueTest

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.