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