packagepl.labno.bernard.htmlunified;importcom.gargoylesoftware.htmlunit.BrowserVersion;importcom.gargoylesoftware.htmlunit.CollectingAlertHandler;importcom.gargoylesoftware.htmlunit.WebClient;importorg.junit.Assert;importorg.junit.Test;importjava.io.IOException;publicclassTableCellOffsetTest{@TestpublicvoidtestClickImage()throwsIOException{finalWebClientclient=newWebClient(BrowserVersion.FIREFOX_3_6);CollectingAlertHandlercollectingAlertHandler=newCollectingAlertHandler();client.setAlertHandler(collectingAlertHandler);client.getPage("file:./target/test-classes/tableCellOffset.html");for(Stringmessage:collectingAlertHandler.getCollectedAlerts()){Assert.assertTrue("Comparison of rows offset().left returned false",Boolean.parseBoolean(message));}}}