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