Normal
Error: illagal start of expressionMethode (Error in der ersten Zeile):[code]private boolean browserCantRenderFontsConsistently() { // PhantomJS renders font correctly about 50% of the time, so // disable it to have consistent screenshots // https://github.com/ariya/phantomjs/issues/10592 // IE8 also has randomness in its font rendering... return getPage().getWebBrowser().getBrowserApplication() .contains("PhantomJS") || (getPage().getWebBrowser().isIE() && getPage() .getWebBrowser().getBrowserMajorVersion() <= 9); }[/code]
Error: illagal start of expression
Methode (Error in der ersten Zeile):
[code]private boolean browserCantRenderFontsConsistently() {
// PhantomJS renders font correctly about 50% of the time, so
// disable it to have consistent screenshots
// https://github.com/ariya/phantomjs/issues/10592
// IE8 also has randomness in its font rendering...
return getPage().getWebBrowser().getBrowserApplication()
.contains("PhantomJS")
|| (getPage().getWebBrowser().isIE() && getPage()
.getWebBrowser().getBrowserMajorVersion() <= 9);
}[/code]