tck/src/main/java/org/hobsoft/microbrowser/tck/ControlTck.java
@Test
	public void setValueWhenHiddenControlThrowsException()
	{
		server().enqueue(new MockResponse().setBody("<html><body>"
			+ "<form name='f'>"
			+ "<input type='hidden' name='c' value='x'/>"
			+ "</form>"
			+ "</body></html>"));
		
		Control control = newBrowser().get(url(server()))
			.getForm("f")
			.getControl("c");
		
		thrown().expect(IllegalArgumentException.class);
		thrown().expectMessage("Cannot set hidden control value: c");
		
		control.setValue("y");
	}
@Test
	public void setValueWhenHiddenControlThrowsException()
	{
		server().enqueue(new MockResponse().setBody("<html><body>"
			+ "<form name='f'>"
			+ "<input type='hidden' name='c' value='x'/>"
			+ "</form>"
			+ "</body></html>"));
		
		Control control = newBrowser().get(url(server()))
			.getForm("f")
			.getControl("c");
		
		thrown().expect(IllegalArgumentException.class);
		thrown().expectMessage("Cannot set hidden control value: c");
		
		control.setValue("y");
	}
@ Test public void setValueWhenHiddenControlThrowsException ( ) { server ( ) . enqueue ( new MockResponse ( ) . setBody ( "<html><body>" + "<form name='f'>" + "<input type='hidden' name='c' value='x'/>" + "</form>" + "</body></html>" ) ) ; Control control = newBrowser ( ) . get ( url ( server ( ) ) ) . getForm ( "f" ) . getControl ( "c" ) ; thrown ( ) . expect ( IllegalArgumentException . class ) ; thrown ( ) . expectMessage ( "Cannot set hidden control value: c" ) ; control . setValue ( "y" ) ; }
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------