Package limelight.util

Examples of limelight.util.FakeKeyword


  public void stringifyingObjects() throws Exception
  {
    assertEquals("foo", StyleCompiler.stringify("foo"));
    assertEquals("42", StyleCompiler.stringify(42));
    assertEquals("foo", StyleCompiler.stringify(":foo"));
    assertEquals("foo", StyleCompiler.stringify(new FakeKeyword("foo")));
  }
View Full Code Here


  }

  @Test
  public void testValidValuesWithClojureStyleKeywords() throws Exception
  {
    assertEquals(SimpleCursorValue.DEFAULT, compiler.compile(new FakeKeyword("default")));
    assertEquals(SimpleCursorValue.TEXT, compiler.compile(new FakeKeyword("text")));
    assertEquals(SimpleCursorValue.HAND, compiler.compile(new FakeKeyword("hand")));
    assertEquals(SimpleCursorValue.CROSSHAIR, compiler.compile(new FakeKeyword("crosshair")));
  }
View Full Code Here

  }

  @Test
  public void usingClojureStyleKeyword() throws Exception
  {
    StyleValue attr = compiler.compile(new FakeKeyword("blue"));

    assertEquals(Color.blue, ((SimpleColorValue)attr).getColor());
  }
View Full Code Here

TOP

Related Classes of limelight.util.FakeKeyword

Copyright © 2018 www.massapicom. 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.