4949 * @author Frank Danek
5050 * @author Carsten Steul
5151 * @author Colin Alworth
52+ * @author Christoph Burgmer
5253 */
5354@ RunWith (BrowserRunner .class )
5455public class Window2Test extends WebDriverTestCase {
@@ -66,7 +67,7 @@ public void thisIsWindow() throws Exception {
6667 + " log(this);\n "
6768 + " try {\n "
6869 + " log(abc);\n "
69- + " } catch(e) {logEx(e)}\n "
70+ + " } catch(e) { logEx(e) }\n "
7071 + " log(this.abc);\n "
7172 + " log(this.def);\n "
7273 + " this.abc = 'hello';\n "
@@ -185,15 +186,15 @@ public void atob() throws Exception {
185186 * @throws Exception if the test fails
186187 */
187188 @ Test
188- @ Alerts ({ "InvalidCharacterError/DOMException" } )
189+ @ Alerts ("InvalidCharacterError/DOMException" )
189190 public void atobMalformedInput () throws Exception {
190191 final String html
191192 = "<html><head></head><body>\n "
192193 + "<script>\n "
193194 + LOG_TITLE_FUNCTION
194195 + " try {\n "
195196 + " window.atob('b');\n "
196- + " } catch(e) {logEx(e)}\n "
197+ + " } catch(e) { logEx(e) }\n "
197198 + "</script>\n "
198199 + "</body></html>" ;
199200 loadPageVerifyTitle2 (html );
@@ -211,10 +212,10 @@ public void atobUnicode() throws Exception {
211212 + LOG_TITLE_FUNCTION
212213 + " try {\n "
213214 + " window.btoa('I \\ u2661 Unicode!');\n "
214- + " } catch(e) {logEx(e)}\n "
215+ + " } catch(e) { logEx(e) }\n "
215216 + " try {\n "
216217 + " window.atob('I \\ u2661 Unicode!');\n "
217- + " } catch(e) {logEx(e)}\n "
218+ + " } catch(e) { logEx(e) }\n "
218219 + "</script>\n "
219220 + "</body></html>" ;
220221 loadPageVerifyTitle2 (html );
@@ -1150,13 +1151,13 @@ public void eval() throws Exception {
11501151 + " x.a = 'Success';\n "
11511152 + " try {\n "
11521153 + " log(window['eval']('x.a'));\n "
1153- + " } catch(e) {logEx(e)}\n "
1154+ + " } catch(e) { logEx(e) }\n "
11541155 + " try {\n "
11551156 + " log(window.eval('x.a'));\n "
1156- + " } catch(e) {logEx(e)}\n "
1157+ + " } catch(e) { logEx(e) }\n "
11571158 + " try {\n "
11581159 + " log(eval('x.a'));\n "
1159- + " } catch(e) {logEx(e)}\n "
1160+ + " } catch(e) { logEx(e) }\n "
11601161 + "}\n "
11611162 + "</script>\n "
11621163 + "</body></html>" ;
@@ -2369,7 +2370,7 @@ public void constructorError() throws Exception {
23692370 + " var divs = document.querySelectorAll('div');\n "
23702371 + " var a = Array.from.call(window, divs);\n "
23712372 + " log(a.length);\n "
2372- + " } catch(e) {logEx(e)}\n "
2373+ + " } catch(e) { logEx(e) }\n "
23732374 + " }\n "
23742375 + "</script>\n "
23752376 + "</head>\n "
@@ -2433,7 +2434,7 @@ public void test__proto__() throws Exception {
24332434 + " for (var p = this.__proto__; p != null; p = p.__proto__) {\n "
24342435 + " log(p);\n "
24352436 + " }\n "
2436- + " } catch(e) {logEx(e)}\n "
2437+ + " } catch(e) { logEx(e) }\n "
24372438 + " }\n "
24382439 + "</script>\n "
24392440 + "</head>\n "
0 commit comments