tck/src/main/java/org/hobsoft/microbrowser/tck/FormTck.java
@Test
	public void getControlValueReturnsInitialValue()
	{
		server().enqueue(new MockResponse().setBody("<html><body>"
			+ "<form name='f'>"
			+ "<input type='text' name='x' value='y'/>"
			+ "</form>"
			+ "</body></html>"));
		
		String actual = newBrowser().get(url(server()))
			.getForm("f")
			.getControlValue("x");
		
		assertThat("form control value", actual, is("y"));
	}
@Test
	public void getControlValueReturnsInitialValue()
	{
		server().enqueue(new MockResponse().setBody("<html><body>"
			+ "<form name='f'>"
			+ "<input type='text' name='x' value='y'/>"
			+ "</form>"
			+ "</body></html>"));
		
		String actual = newBrowser().get(url(server()))
			.getForm("f")
			.getControlValue("x");
		
		assertThat("form control value", actual, is("y"));
	}
@ Test public void getControlValueReturnsInitialValue ( ) { server ( ) . enqueue ( new MockResponse ( ) . setBody ( "<html><body>" + "<form name='f'>" + "<input type='text' name='x' value='y'/>" + "</form>" + "</body></html>" ) ) ; String actual = newBrowser ( ) . get ( url ( server ( ) ) ) . getForm ( "f" ) . getControlValue ( "x" ) ; assertThat ( "form control value" , actual , is ( "y" ) ) ; }
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------