[prev in list] [next in list] [prev in thread] [next in thread] 

List:       htmlunit-develop
Subject:    [HtmlUnit] SVN: [12535] trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit
From:       asashour () users ! sourceforge ! net
Date:       2016-04-29 10:14:41
Message-ID: E1aw5Rd-0003Aq-Nt () sfs-ml-2 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 12535
          http://sourceforge.net/p/htmlunit/code/12535
Author:   asashour
Date:     2016-04-29 10:14:40 +0000 (Fri, 29 Apr 2016)
Log Message:
-----------
space after parentheses.

Modified Paths:
--------------
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/NoHttpResponseTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/TopLevelWindowTest.java
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/WebClientTest.java
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementOuterHtmlTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/DomNode2Test.java
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HTMLParser4Test.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlElement2Test.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlForm2Test.java
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlInlineFrameTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlPage2Test.java
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlPage3Test.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlPageTest.java
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript2Test.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScriptTest.java
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/MalformedHtmlTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/JavaScriptEngineTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/NativeFunctionTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/PostponedActionTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/Navigator2Test.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/NavigatorTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/ScreenTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/Window3Test.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/WindowTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSPrimitiveValueTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSRuleListTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleDeclarationTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleRuleTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleSheetTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSValueTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/AttrTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/Document2Test.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/DocumentTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/MutationObserverTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/Node2Test.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/NodeListTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/NodeTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLBRElementTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLDocument2Test.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLDocumentTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLDocumentWrite2Test.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLElement2Test.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLElementTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLFormElementTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLImageElement2Test.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLImageElementTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLInputElementTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLOptionsCollectionTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLSelectElementTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLTextAreaElementTest.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/xml/XMLHttpRequest2Test.java


Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/NoHttpResponseTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/NoHttpResponseTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/NoHttpResponseTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -48,7 +48,7 @@
 public class NoHttpResponseTest {
     private static final String html
         = "<html><body><script>\n"
-        + "  function fillField(){\n"
+        + "  function fillField() {\n"
         + "    document.forms.loginform.textfield.value = 'new value';\n"
         + "  }\n"
         + "</script>\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/TopLevelWindowTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/TopLevelWindowTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/TopLevelWindowTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -307,7 +307,7 @@
             + "<script>\n"
             + "function f() {\n"
             + "  alert('closing');\n"
-            + "  setTimeout(function(){ alert('started in onunload'); }, 0);\n"
+            + "  setTimeout(function() { alert('started in onunload'); }, 0);\n"
             + "}\n"
             + "window.addEventListener('unload', f, true);\n"
             + "</script></head>\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/WebClientTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/WebClientTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/WebClientTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -2203,7 +2203,7 @@
     public void test() throws Exception {
         final String html = "<html><body>"
                 + "<script type='application/javascript'>"
-                + "  window.onerror = function(){ foo.bar() };"
+                + "  window.onerror = function() { foo.bar() };"
                 + "  doit();"
                 + "</script>"
                 + "</body></html>";

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementOuterHtmlTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementOuterHtmlTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/general/ElementOuterHtmlTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -32,7 +32,7 @@
     private static String test(final String elementName) {
         return "<!DOCTYPE html><html><head>\n"
                 + "  <script>\n"
-                + "    function test(){\n"
+                + "    function test() {\n"
                 + "      var value = document.createElement('" + elementName + \
                "').outerHTML;\n"
                 + "      while (value && (value.charAt(0) == '\\r' || \
value.charAt(0) == '\\n')) {\n"  + "        value = value.substring(1);\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/DomNode2Test.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/DomNode2Test.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/DomNode2Test.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -40,7 +40,7 @@
     public void appendChild_recursive() throws Exception {
         final String html = "<html><head><title>foo</title>\n"
                 + "<script>\n"
-                + "function test(){\n"
+                + "function test() {\n"
                 + "  var e = document.createElement('div');\n"
                 + "  try {\n"
                 + "    alert(e.appendChild(e) === e);\n"
@@ -64,7 +64,7 @@
     public void appendChild_recursive_parent() throws Exception {
         final String html = "<html><head><title>foo</title>\n"
                 + "<script>\n"
-                + "function test(){\n"
+                + "function test() {\n"
                 + "  var e1 = document.createElement('div');\n"
                 + "  var e2 = document.createElement('div');\n"
                 + "  try {\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HTMLParser4Test.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HTMLParser4Test.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HTMLParser4Test.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -68,7 +68,7 @@
         final String html = HtmlPageTest.STANDARDS_MODE_PREFIX_
             + "<html><head><title>first</title>\n"
             + "     <script>\n"
-            + "         function test(){\n"
+            + "         function test() {\n"
             + "             alert(document.getElementById('myInput').form.id);\n"
             + "         }\n"
             + "     </script>\n"
@@ -155,7 +155,7 @@
             + "  <head>\n"
             + "     <title>first</title>\n"
             + "    <script>\n"
-            + "      function test(){\n"
+            + "      function test() {\n"
             + "        var headchilds = \
document.getElementsByTagName('body')[0].childNodes;\n"  + "        \
alert(headchilds.length);\n"  + "        alert(headchilds[0]);\n"
@@ -187,7 +187,7 @@
             + "     <meta http-equiv='Content-Type' content='text/html; \
charset=ISO-8859-1'>\n"  + "     <title>first</title>\n"
             + "     <script>\n"
-            + "         function test(){\n"
+            + "         function test() {\n"
             + "             alert(document.title);\n"
             + "         }\n"
             + "     </script>\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlElement2Test.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlElement2Test.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlElement2Test.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -220,7 +220,7 @@
                 + "<head>\n"
                 + "<title>foo</title>\n"
                 + "<script>\n"
-                + "function test(){\n"
+                + "function test() {\n"
                 + "  var elem = document.getElementById('text1');\n"
                 + "  elem.focus();\n"
                 + "  alert(document.activeElement);\n"
@@ -253,7 +253,7 @@
                 + "<head>\n"
                 + "<title>foo</title>\n"
                 + "<script>\n"
-                + "function test(){\n"
+                + "function test() {\n"
                 + "  var elem = document.getElementById('text1');\n"
                 + "  elem.focus();\n"
                 + "  alert(document.activeElement);\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlForm2Test.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlForm2Test.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlForm2Test.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -60,7 +60,7 @@
     public void formsAccessor_FormsAsFunction() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    try {\n"
             + "        alert(document.forms[0].id);\n"
             + "        alert(document.forms(0).id);\n"
@@ -87,7 +87,7 @@
     public void formsAccessor_FormsAsFunction2() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    try {\n"
             + "        alert(document.forms['myName'].id);\n"
             + "        alert(document.forms('myName').id);\n"
@@ -114,7 +114,7 @@
     public void asFunction() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "function test(){\n"
+            + "function test() {\n"
             + "  var f1 = document.forms[0];\n"
             + "  try { alert(f1('textfieldid').id) } catch (e) { alert('error') }\n"
             + "  try { alert(f1('textfieldname').name) } catch (e) { alert('error') \
}\n" @@ -139,7 +139,7 @@
     public void asFunctionFormsFunction() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "function test(){\n"
+            + "function test() {\n"
             + "  try {\n"
             + "    var f1 = document.forms(0);\n"
             + "    try { alert(f1('textfieldid').id) } catch (e) { alert('error') \
}\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlInlineFrameTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlInlineFrameTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlInlineFrameTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -286,7 +286,7 @@
             + "<iframe id='myFrame' src='" + URL_THIRD + "'></iframe>';\n"
             + "<span id='A'></span>\n"
             + "<script>\n"
-            + "  function createIframe(){\n"
+            + "  function createIframe() {\n"
             + "    var frame='<iframe id=\"f\" src=\"" + URL_SECOND + \
"\"></iframe>';\n"  + "    document.getElementById('A').innerHTML=frame;\n"
             + "  }\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlPage2Test.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlPage2Test.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlPage2Test.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -71,7 +71,7 @@
             + "  var iframesrc = '<html><head>';\n"
             + "  iframesrc += '<script src=\"" + "js.js" + "\"></' + 'script>';\n"
             + "  iframesrc += '<script>';\n"
-            + "  iframesrc += 'function doSquared(){';\n"
+            + "  iframesrc += 'function doSquared() {';\n"
             + "  iframesrc += '    try {';\n"
             + "  iframesrc += '      var y = squared(5);';\n"
             + "  iframesrc += '      alert(y);';\n"
@@ -124,7 +124,7 @@
             + "  var iframesrc = '<html><head>';\n"
             + "  iframesrc += '<script src=\"" + URL_SECOND + "\"></' + \
'script>';\n"  + "  iframesrc += '<script>';\n"
-            + "  iframesrc += 'function doSquared(){';\n"
+            + "  iframesrc += 'function doSquared() {';\n"
             + "  iframesrc += '    try {';\n"
             + "  iframesrc += '      var y = squared(5);';\n"
             + "  iframesrc += '      alert(y);';\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlPage3Test.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlPage3Test.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlPage3Test.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -139,7 +139,7 @@
     public void onLoadHandler_ScriptNameRead() throws Exception {
         final String html = "<html><head><title>foo</title>\n"
             + "<script type='text/javascript'>\n"
-            + "load=function (){};\n"
+            + "load=function () {};\n"
             + "onload=load;\n"
             + "alert(onload);\n"
             + "</script></head><body></body></html>";

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlPageTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlPageTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlPageTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -489,7 +489,7 @@
     public void onLoadHandler_BodyName() throws Exception {
         final String htmlContent = "<html><head><title>foo</title>\n"
             + "<script type='text/javascript'>\n"
-            + "window.onload=function(){alert('foo')}</script>\n"
+            + "window.onload=function() {alert('foo')}</script>\n"
             + "</head><body></body></html>";
         final List<String> collectedAlerts = new ArrayList<>();
         final HtmlPage page = loadPage(htmlContent, collectedAlerts);
@@ -527,7 +527,7 @@
     public void onLoadHandler_ScriptName() throws Exception {
         final String htmlContent = "<html><head><title>foo</title>\n"
             + "<script type='text/javascript'>\n"
-            + "load=function(){alert('foo')};\n"
+            + "load=function() {alert('foo')};\n"
             + "onload=load\n"
             + "</script></head><body></body></html>";
         final List<String> collectedAlerts = new ArrayList<>();
@@ -1260,7 +1260,7 @@
             + "<div id='myId'>Hello there!</div>\n"
             + "<script>"
             + "  var x = document.all;"
-            + "  window.onload=function(){alert('foo')};"
+            + "  window.onload=function() {alert('foo')};"
 
             // this tests 3103703
             // we don't store the jobs are pending at the moment of serialization

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript2Test.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript2Test.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScript2Test.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -326,17 +326,17 @@
             + "  function test() {\n"
             + "    var s1 = document.createElement('script');\n"
             + "    s1.text = 'alert(\"s-x\")';\n"
-            + "    s1.addEventListener('load', function(){alert('x')}, false);\n"
+            + "    s1.addEventListener('load', function() {alert('x')}, false);\n"
             + "    document.body.insertBefore(s1, document.body.firstChild);\n"
             + "    \n"
             + "    var s2 = document.createElement('script');\n"
             + "    s2.src = '//:';\n"
-            + "    s2.addEventListener('load', function(){alert('y')}, false);\n"
+            + "    s2.addEventListener('load', function() {alert('y')}, false);\n"
             + "    document.body.insertBefore(s2, document.body.firstChild);\n"
             + "    \n"
             + "    var s3 = document.createElement('script');\n"
             + "    s3.src = 'script.js';\n"
-            + "    s3.addEventListener('load', function(){alert('z')}, false);\n"
+            + "    s3.addEventListener('load', function() {alert('z')}, false);\n"
             + "    document.body.insertBefore(s3, document.body.firstChild);\n"
             + "  }\n"
             + "</script>\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScriptTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScriptTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlScriptTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -274,32 +274,32 @@
             + "  function test() {\n"
             + "    var s1 = document.createElement('script');\n"
             + "    s1.text = 'var foo';\n"
-            + "    s1.addEventListener('error', function(){alert('a')}, false);\n"
+            + "    s1.addEventListener('error', function() {alert('a')}, false);\n"
             + "    document.body.insertBefore(s1, document.body.firstChild);\n"
             + "    \n"
             + "    var s2 = document.createElement('script');\n"
             + "    s2.text = 'varrrr foo';\n"
-            + "    s2.addEventListener('error', function(){alert('b')}, false);\n"
+            + "    s2.addEventListener('error', function() {alert('b')}, false);\n"
             + "    document.body.insertBefore(s2, document.body.firstChild);\n"
             + "    \n"
             + "    var s3 = document.createElement('script');\n"
             + "    s3.src = '//:';\n"
-            + "    s3.addEventListener('error', function(){alert('c')}, false);\n"
+            + "    s3.addEventListener('error', function() {alert('c')}, false);\n"
             + "    document.body.insertBefore(s3, document.body.firstChild);\n"
             + "    \n"
             + "    var s4 = document.createElement('script');\n"
             + "    s4.src = '" + URL_SECOND + "';\n"
-            + "    s4.addEventListener('error', function(){alert('d')}, false);\n"
+            + "    s4.addEventListener('error', function() {alert('d')}, false);\n"
             + "    document.body.insertBefore(s4, document.body.firstChild);\n"
             + "    \n"
             + "    var s5 = document.createElement('script');\n"
             + "    s5.src = '" + URL_THIRD + "';\n"
-            + "    s5.addEventListener('error', function(){alert('e')}, false);\n"
+            + "    s5.addEventListener('error', function() {alert('e')}, false);\n"
             + "    document.body.insertBefore(s5, document.body.firstChild);\n"
             + "    \n"
             + "    var s6 = document.createElement('script');\n"
             + "    s6.src = '" + fourOhFour + "';\n"
-            + "    s6.addEventListener('error', function(){alert('f')}, false);\n"
+            + "    s6.addEventListener('error', function() {alert('f')}, false);\n"
             + "    document.body.insertBefore(s6, document.body.firstChild);\n"
             + "  }\n"
             + "</script>\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/MalformedHtmlTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/MalformedHtmlTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/MalformedHtmlTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -45,7 +45,7 @@
     @Alerts({"in test", "BODY"})
     public void bodyAttributeWhenOpeningBodyGenerated() throws Exception {
         final String content = "<html><head><title>foo</title><script>\n"
-            + "function test(){\n"
+            + "function test() {\n"
             + "    alert('in test');\n"
             + "    alert(document.getElementById('span1').parentNode.tagName);\n"
             + "}\n"
@@ -64,7 +64,7 @@
     @Alerts({"2", "3", "text3", "text3", "null"})
     public void lostFormChildren() throws Exception {
         final String content = "<html><head><title>foo</title><script>\n"
-            + "function test(){\n"
+            + "function test() {\n"
             + "    alert(document.forms[0].childNodes.length);\n"
             + "    alert(document.forms[0].elements.length);\n"
             + "    alert(document.forms[0].elements[2].name);\n"
@@ -128,7 +128,7 @@
     @Alerts({"DIV", "TABLE"})
     public void div_between_table_and_tr() throws Exception {
         final String html = "<html><head><script>\n"
-            + "function test(){\n"
+            + "function test() {\n"
             + "  var c1 = document.body.firstChild;\n"
             + "  alert(c1.tagName);\n"
             + "  alert(c1.nextSibling.tagName);\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/JavaScriptEngineTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/JavaScriptEngineTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/JavaScriptEngineTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -923,7 +923,7 @@
         prototypeScope("String", "'some string'");
         prototypeScope("Number", "9");
         prototypeScope("Date", "new Date()");
-        prototypeScope("Function", "function(){}");
+        prototypeScope("Function", "function() {}");
         prototypeScope("Array", "[]");
     }
 

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/NativeFunctionTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/NativeFunctionTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/NativeFunctionTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -78,8 +78,8 @@
     public void arguments_prototype() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "var f1 = function(){};\n"
-            + "var f2 = function(){};\n"
+            + "var f1 = function() {};\n"
+            + "var f2 = function() {};\n"
             + "Object.prototype.myFunction = f1;\n"
             + "Array.prototype.myFunction = f2;\n"
             + "var a = (function() { return arguments;})();\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/PostponedActionTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/PostponedActionTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/PostponedActionTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -122,8 +122,8 @@
                 + "}\n"
                 + "  function timeout() {\n"
                 + "    alert('setting timeout');\n"
-                + "    window.setTimeout(function(){test()}, 400);\n"
-                + "    window.setTimeout(function(){alert('simpleAlert')}, 500);\n"
+                + "    window.setTimeout(function() {test()}, 400);\n"
+                + "    window.setTimeout(function() {alert('simpleAlert')}, 500);\n"
                 + "}\n"
                 + "</script>\n"
                 + "</head>\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/Navigator2Test.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/Navigator2Test.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/Navigator2Test.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -81,7 +81,7 @@
                 + "<head>\n"
                 + "    <title>test</title>\n"
                 + "    <script>\n"
-                + "    function doTest(){\n"
+                + "    function doTest() {\n"
                 + "       alert('" + name + " = ' + window.navigator." + name + \
");\n"  + "    }\n"
                 + "    </script>\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/NavigatorTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/NavigatorTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/NavigatorTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -181,7 +181,7 @@
                 + "<head>\n"
                 + "    <title>test</title>\n"
                 + "    <script>\n"
-                + "    function doTest(){\n"
+                + "    function doTest() {\n"
                 + "       for (var i = 0; i < window.navigator.plugins.length; i++) \
{\n"  + "         alert(window.navigator.plugins[i].name);\n"
                 + "      }\n"
@@ -215,7 +215,7 @@
                 + "<head>\n"
                 + "    <title>test</title>\n"
                 + "    <script>\n"
-                + "    function doTest(){\n"
+                + "    function doTest() {\n"
                 + "       for (var i = 0; i < window.navigator.plugins.length; i++) \
{\n"  + "         var plugin = window.navigator.plugins[i];\n"
                 + "         if ('Shockwave Flash' == \
window.navigator.plugins[i].name) {\n" @@ -248,7 +248,7 @@
                 + "<head>\n"
                 + "    <title>test</title>\n"
                 + "    <script>\n"
-                + "    function doTest(){\n"
+                + "    function doTest() {\n"
                 + "      try {\n"
                 + "        alert(window.navigator.taintEnabled());\n"
                 + "      } catch(e) { alert('exception'); }\n"
@@ -273,7 +273,7 @@
                 + "<head>\n"
                 + "  <title>test</title>\n"
                 + "  <script>\n"
-                + "    function doTest(){\n"
+                + "    function doTest() {\n"
                 + "      alert(window.navigator." + name + ");\n"
                 + "    }\n"
                 + "  </script>\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/ScreenTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/ScreenTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/ScreenTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -219,7 +219,7 @@
     private void testBooleanProperty(final String prop) throws Exception {
         final String html = "<html><head><title>test</title>\n"
             + "  <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "       try {\n"
             + "         alert(window.screen." + prop + ");\n"
             + "       } catch(e) { alert('get exception') }\n"
@@ -240,7 +240,7 @@
     private void testNumericProperty(final String prop) throws Exception {
         final String html = "<html><head><title>test</title>\n"
             + "  <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "       try {\n"
             + "         alert(window.screen." + prop + ");\n"
             + "       } catch(e) { alert('get exception') }\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/Window3Test.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/Window3Test.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/Window3Test.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -1253,7 +1253,7 @@
             + "   function test() {\n"
             + "      var s = 'string';\n"
             + "      var f = 'initial';\n"
-            + "      eval('f = function(){alert(s);}');\n"
+            + "      eval('f = function() {alert(s);}');\n"
             + "      invoke(f);\n"
             + "   };\n"
             + "   function invoke(fn) {\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/WindowTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/WindowTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/WindowTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -483,7 +483,7 @@
     @Test
     public void alert_NoAlertHandler() throws Exception {
         final String firstContent
-            = "<html><head><title>First</title><script>function \
doTest(){alert('foo')}</script></head>\n" +            = \
"<html><head><title>First</title><script>function doTest() \
{alert('foo')}</script></head>\n"  + "<body onload='doTest()'></body></html>";
 
         final HtmlPage firstPage = loadPage(firstContent);
@@ -562,7 +562,7 @@
         });
 
         final String firstContent
-            = "<html><head><title>First</title><script>function \
doTest(){alert(confirm('foo'))}</script>\n" +            = \
"<html><head><title>First</title><script>function doTest() \
{alert(confirm('foo'))}</script>\n"  + "</head><body \
onload='doTest()'></body></html>";  
         webConnection.setResponse(URL_FIRST, firstContent);
@@ -581,7 +581,7 @@
     @Test
     public void confirm_noConfirmHandler() throws Exception {
         final String html
-            = "<html><head><title>First</title><script>function \
doTest(){alert(confirm('foo'))}</script>\n" +            = \
"<html><head><title>First</title><script>function doTest() \
{alert(confirm('foo'))}</script>\n"  + "</head><body \
onload='doTest()'></body></html>";  
         final List<String> collectedAlerts = new ArrayList<>();
@@ -610,7 +610,7 @@
         });
 
         final String firstContent
-            = "<html><head><title>First</title><script>function \
doTest(){alert(prompt('foo'))}</script>\n" +            = \
"<html><head><title>First</title><script>function doTest() \
{alert(prompt('foo'))}</script>\n"  + "</head><body \
onload='doTest()'></body></html>";  
         webConnection.setResponse(URL_FIRST, firstContent);
@@ -636,7 +636,7 @@
         webClient.setAlertHandler(new CollectingAlertHandler(collectedAlerts));
 
         final String firstContent
-            = "<html><head><title>First</title><script>function \
doTest(){alert(prompt('foo'))}</script>\n" +            = \
"<html><head><title>First</title><script>function doTest() \
{alert(prompt('foo'))}</script>\n"  + "</head><body \
onload='doTest()'></body></html>";  
         webConnection.setResponse(URL_FIRST, firstContent);

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSPrimitiveValueTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSPrimitiveValueTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSPrimitiveValueTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -40,7 +40,7 @@
     public void test() throws Exception {
         final String html = "<html><head><title>First</title>\n"
             + "<script>\n"
-            + "function test(){\n"
+            + "function test() {\n"
             + "  try {\n"
             + "    alert(CSSPrimitiveValue);\n"
             + "    var props = ['CSS_UNKNOWN', 'CSS_NUMBER', 'CSS_PERCENTAGE', \
'CSS_EMS', 'CSS_EXS', 'CSS_PX', "

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSRuleListTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSRuleListTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSRuleListTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -41,7 +41,7 @@
                 + "  BODY { font-size: 1234px; }\n"
                 + "</style>\n"
                 + "<script>\n"
-                + "  function test(){\n"
+                + "  function test() {\n"
                 + "    var rules;\n"
                 + "    if (document.styleSheets[0].cssRules)\n"
                 + "      rules = document.styleSheets[0].cssRules;\n"
@@ -67,7 +67,7 @@
                 + "  BODY { font-size: 1234px; }\n"
                 + "</style>\n"
                 + "<script>\n"
-                + "  function test(){\n"
+                + "  function test() {\n"
                 + "    var rules;\n"
                 + "    if (document.styleSheets[0].cssRules)\n"
                 + "      rules = document.styleSheets[0].cssRules;\n"
@@ -93,7 +93,7 @@
                 + "  BODY { font-size: 1234px; }\n"
                 + "</style>\n"
                 + "<script>\n"
-                + "  function test(){\n"
+                + "  function test() {\n"
                 + "    var rules;\n"
                 + "    if (document.styleSheets[0].cssRules)\n"
                 + "      rules = document.styleSheets[0].cssRules;\n"
@@ -118,7 +118,7 @@
                 + "  @UnknownAtRule valo-animate-in-fade {0 {opacity: 0;}}\n"
                 + "</style>\n"
                 + "<script>\n"
-                + "  function test(){\n"
+                + "  function test() {\n"
                 + "    var rules;\n"
                 + "    if (document.styleSheets[0].cssRules)\n"
                 + "      rules = document.styleSheets[0].cssRules;\n"
@@ -145,7 +145,7 @@
                 + "  @keyframes mymove {from {top: 0px;} to {top: 200px;}}\n"
                 + "</style>\n"
                 + "<script>\n"
-                + "  function test(){\n"
+                + "  function test() {\n"
                 + "    var rules;\n"
                 + "    if (document.styleSheets[0].cssRules)\n"
                 + "      rules = document.styleSheets[0].cssRules;\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleDeclarationTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleDeclarationTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleDeclarationTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -362,7 +362,7 @@
     @NotYetImplemented
     public void styleFilter() throws Exception {
         final String html = "<html><body onload='test()'><script>\n"
-            + "   function test(){\n"
+            + "   function test() {\n"
             + "      var div1 = document.getElementById('div1');\n"
             + "      alert(div1.style.filter);\n"
             + "      var div2 = document.getElementById('div2');\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleRuleTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleRuleTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleRuleTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -47,7 +47,7 @@
                 + "  A  { text-decoration: none; color: blue; }\n"
                 + "</style>\n"
                 + "<script>\n"
-                + "  function test(){\n"
+                + "  function test() {\n"
                 + "    var rules;\n"
                 + "    if (document.styleSheets[0].cssRules)\n"
                 + "      rules = document.styleSheets[0].cssRules;\n"
@@ -87,7 +87,7 @@
                 + "  BODY { margin: 4px; }\n"
                 + "</style>\n"
                 + "<script>\n"
-                + "  function test(){\n"
+                + "  function test() {\n"
                 + "    var rules;\n"
                 + "    if (document.styleSheets[0].cssRules)\n"
                 + "      rules = document.styleSheets[0].cssRules;\n"
@@ -120,7 +120,7 @@
                 + "  A  { text-decoration: none; color: blue; }\n"
                 + "</style>\n"
                 + "<script>\n"
-                + "  function test(){\n"
+                + "  function test() {\n"
                 + "    var rules;\n"
                 + "    if (document.styleSheets[0].cssRules)\n"
                 + "      rules = document.styleSheets[0].cssRules;\n"
@@ -149,7 +149,7 @@
                 + "  A  { text-decoration: none; color: blue; }\n"
                 + "</style>\n"
                 + "<script>\n"
-                + "  function test(){\n"
+                + "  function test() {\n"
                 + "    var rules;\n"
                 + "    if (document.styleSheets[0].cssRules)\n"
                 + "      rules = document.styleSheets[0].cssRules;\n"
@@ -182,7 +182,7 @@
                 + "  #byId { font: 8pt; }\n"
                 + "</style>\n"
                 + "<script>\n"
-                + "  function test(){\n"
+                + "  function test() {\n"
                 + "    var sheet = document.styleSheets[0];\n"
                 + "    var rules = sheet.cssRules || sheet.rules;\n"
                 + "    for (var i = 0; i < rules.length; i++)\n"
@@ -206,7 +206,7 @@
                 + "(src='rightCorner.gif',sizingMethod='crop'); }\n"
                 + "</style>\n"
                 + "<script>\n"
-                + "function test(){\n"
+                + "function test() {\n"
                 + "  try {\n"
                 + "    var sheet = document.styleSheets[0];\n"
                 + "    var rules = sheet.cssRules || sheet.rules;\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleSheetTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleSheetTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleSheetTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -57,7 +57,7 @@
     public void owningNodeOwningElement() throws Exception {
         final String html = "<html><head><title>test_hasChildNodes</title>\n"
                 + "<script>\n"
-                + "function test(){\n"
+                + "function test() {\n"
                 + "  var myStyle = document.getElementById('myStyle');\n"
                 + "  var stylesheet = document.styleSheets[0];\n"
                 + "  alert(stylesheet);\n"
@@ -88,7 +88,7 @@
                 + "  A  { text-decoration: none; color: blue; }\n"
                 + "</style>\n"
                 + "<script>\n"
-                + "  function test(){\n"
+                + "  function test() {\n"
                 + "    var rules;\n"
                 + "    if (document.styleSheets[0].cssRules)\n"
                 + "      rules = document.styleSheets[0].cssRules;\n"
@@ -497,7 +497,7 @@
                 + cssSelector + " { z-index: 10 }\n"
                 + "</style>\n"
                 + "<script>\n"
-                + "  function test(){\n"
+                + "  function test() {\n"
                 + "    var getStyle = function(e) {\n"
                 + "      return window.getComputedStyle(e, '');\n"
                 + "    };\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSValueTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSValueTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSValueTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -38,7 +38,7 @@
     public void test() throws Exception {
         final String html = "<html><head><title>First</title>\n"
                 + "<script>\n"
-                + "function test(){\n"
+                + "function test() {\n"
                 + "  try {\n"
                 + "    alert(CSSValue);\n"
                 + "    var props = ['CSS_INHERIT', 'CSS_PRIMITIVE_VALUE', \
'CSS_VALUE_LIST', 'CSS_CUSTOM'];\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/ComputedCSSStyleDeclarationTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -1136,7 +1136,7 @@
         final String html = "<html><body onload='test()'>\n"
             + "<div id='d1' style='width:200px;height:400px'><div id='d2' \
style='width:50%;height:25%'></div></div>\n"  + "<script>\n"
-            + "  function test(){\n"
+            + "  function test() {\n"
             + "    var d1 = document.getElementById('d1');\n"
             + "    var s1 = window.getComputedStyle(d1, null);\n"
             + "    var d2 = document.getElementById('d2');\n"
@@ -1162,7 +1162,7 @@
         final String html = "<html><body onload='test()'>\n"
             + "<div id='d1' style='width:10em;height:20em'><div id='d2' \
style='width:50%;height:25%'></div></div>\n"  + "<script>\n"
-            + "  function test(){\n"
+            + "  function test() {\n"
             + "    var d1 = document.getElementById('d1');\n"
             + "    var s1 = window.getComputedStyle(d1, null);\n"
             + "    var d2 = document.getElementById('d2');\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/AttrTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/AttrTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/AttrTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -75,7 +75,7 @@
         final String html
             = "<html><body onload='test()'><div id='div' class='test'></div>\n"
             + "<script>\n"
-            + "  function test(){\n"
+            + "  function test() {\n"
             + "    var div = document.getElementById('div');\n"
             + "    alert(div.attributes.id.specified);\n"
             + "    alert(div.attributes.class.specified);\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/Document2Test.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/Document2Test.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/Document2Test.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -120,7 +120,7 @@
     public void appendChild() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "function test(){\n"
+            + "function test() {\n"
             + "    var span = document.createElement('SPAN');\n"
             + "    var div = document.getElementById('d');\n"
             + "    div.appendChild(span);\n"
@@ -142,7 +142,7 @@
         final String html
             = "<html><head><title>foo</title>"
             + "<script>\n"
-            + "  function doTest(){\n"
+            + "  function doTest() {\n"
             + "    if (!document.getElementsByTagNameNS) { \
                alert('getElementsByTagNameNS not available'); return; };\n"
             + "    alert(document.getElementsByTagNameNS('*', 'html').length);\n"
             + "  }\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/DocumentTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/DocumentTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/DocumentTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -86,7 +86,7 @@
     public void formsAccessor_FormWithNoName() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.forms.length)\n"
             + "}\n"
             + "</script></head><body onload='doTest()'>\n"
@@ -107,7 +107,7 @@
     public void formsAccessor_NoForms() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.forms.length)\n"
             + "    for(var i = 0; i < document.forms.length; i++) {\n"
             + "        alert(document.forms[i].name )\n"
@@ -393,7 +393,7 @@
     public void appendChild() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "  function doTest(){\n"
+            + "  function doTest() {\n"
             + "    var form = document.forms['form1'];\n"
             + "    var div = document.createElement('DIV');\n"
             + "    form.appendChild(div);\n"
@@ -452,7 +452,7 @@
     public void appendChild_textNode() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "  function doTest(){\n"
+            + "  function doTest() {\n"
             + "    var form = document.forms['form1'];\n"
             + "    var child = document.createTextNode('Some Text');\n"
             + "    form.appendChild(child);\n"
@@ -476,7 +476,7 @@
     public void cloneNode() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "  function doTest(){\n"
+            + "  function doTest() {\n"
             + "    var form = document.forms['form1'];\n"
             + "    var cloneShallow = form.cloneNode(false);\n"
             + "    alert(cloneShallow!=null);\n"
@@ -503,7 +503,7 @@
     public void insertBefore() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "  function doTest(){\n"
+            + "  function doTest() {\n"
             + "    var form = document.forms['form1'];\n"
             + "    var oldChild = document.getElementById('oldChild');\n"
             + "    var div = document.createElement('DIV');\n"
@@ -1404,7 +1404,7 @@
     @Alerts("foo")
     public void title() throws Exception {
         final String html = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.title)\n"
             + "}\n"
             + "</script></head>\n"
@@ -1483,7 +1483,7 @@
     @Alerts({"myImageId", "2", "FORM", "undefined", "undefined", "undefined", \
"undefined"})  public void directAccessByName() throws Exception {
         final String html = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.myImage.id);\n"
             + "    alert(document.myImage2.length);\n"
             + "    alert(document.myForm.tagName);\n"
@@ -1515,7 +1515,7 @@
     @Alerts({"[object HTMLCollection]", "2"})
     public void scriptsArray() throws Exception {
         final String html = HtmlPageTest.STANDARDS_MODE_PREFIX_ + \
                "<html><head><script lang='JavaScript'>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "        alert(document.scripts);\n"
             + "        try {\n"
             + "          alert(document.scripts.length);\n" // This line used to \
blow up @@ -1555,7 +1555,7 @@
             IE = {"true", "true"})
     public void defaultViewAndParentWindow() throws Exception {
         final String html = "<html><head><script>\n"
-            + "function test(){\n"
+            + "function test() {\n"
             + "    alert(document.defaultView == window);\n"
             + "    alert(document.parentWindow == window);\n"
             + "}\n"
@@ -2006,7 +2006,7 @@
               "<html><body>\n"
             + " <span id='s' onclick='\n"
             + "  if(document.fireEvent) {\n"
-            + "    document.onkeydown=function(){alert(\"x\")};\n"
+            + "    document.onkeydown=function() {alert(\"x\")};\n"
             + "    document.fireEvent(\"onkeydown\")\n"
             + "  }\n"
             + " '>abc</span>\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/MutationObserverTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/MutationObserverTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/MutationObserverTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -37,7 +37,7 @@
     public void characterData() throws Exception {
         final String html
             = "<html><head><script>\n"
-            + "function test(){\n"
+            + "function test() {\n"
             + "    var div = document.getElementById('myDiv');\n"
             + "    if (!window.MutationObserver) return;\n"
             + "    var observer = new MutationObserver(function(mutations) {\n"
@@ -70,7 +70,7 @@
     public void characterDataNoOldValue() throws Exception {
         final String html
             = "<html><head><script>\n"
-            + "function test(){\n"
+            + "function test() {\n"
             + "    var div = document.getElementById('myDiv');\n"
             + "    if (!window.MutationObserver) return;\n"
             + "    var observer = new MutationObserver(function(mutations) {\n"
@@ -101,7 +101,7 @@
     public void characterDataNoSubtree() throws Exception {
         final String html
             = "<html><head><script>\n"
-            + "function test(){\n"
+            + "function test() {\n"
             + "    var div = document.getElementById('myDiv');\n"
             + "    if (!window.MutationObserver) return;\n"
             + "    var observer = new MutationObserver(function(mutations) {\n"
@@ -133,7 +133,7 @@
     public void attributes() throws Exception {
         final String html
             = "<html><head><script>\n"
-            + "function test(){\n"
+            + "function test() {\n"
             + "    var div = document.getElementById('myDiv');\n"
             + "    if (!window.MutationObserver) return;\n"
             + "    var observer = new MutationObserver(function(mutations) {\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/Node2Test.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/Node2Test.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/Node2Test.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -48,7 +48,7 @@
     public void replaceChild_WithSameNode() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    var a = document.getElementById('a');\n"
             + "    var b = document.getElementById('b');\n"
             + "    a.replaceChild(b, b);\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/NodeListTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/NodeListTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/NodeListTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -38,7 +38,7 @@
     public void defaultValue() throws Exception {
         final String html = HtmlPageTest.STANDARDS_MODE_PREFIX_ + \
"<html><head><title>test</title>\n"  + "<script>\n"
-                + "  function test(){\n"
+                + "  function test() {\n"
                 + "    \
alert(document.getElementById('myId').firstChild.childNodes);\n"  + "  }\n"
                 + "</script>\n"
@@ -57,7 +57,7 @@
     public void has() throws Exception {
         final String html = "<html><head><title>test</title>\n"
                 + "<script>\n"
-                + "  function test(){\n"
+                + "  function test() {\n"
                 + "    alert(0 in document.body.parentNode.childNodes);\n"
                 + "  }\n"
                 + "</script>\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/NodeTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/NodeTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/dom/NodeTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -52,7 +52,7 @@
     public void hasChildNodes_true() throws Exception {
         final String html = "<html><head><title>test_hasChildNodes</title>\n"
                 + "<script>\n"
-                + "function doTest(){\n"
+                + "function doTest() {\n"
                 + "    alert(document.getElementById('myNode').hasChildNodes());\n"
                 + "}\n"
                 + "</script>\n"
@@ -71,7 +71,7 @@
     public void hasChildNodes_false() throws Exception {
         final String html = "<html><head><title>test_hasChildNodes</title>\n"
                 + "<script>\n"
-                + "function doTest(){\n"
+                + "function doTest() {\n"
                 + "    alert(document.getElementById('myNode').hasChildNodes());\n"
                 + "}\n"
                 + "</script>\n"
@@ -114,7 +114,7 @@
     public void removeChild() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    var form = document.forms['form1'];\n"
             + "    var div = form.firstChild;\n"
             + "    var removedDiv = form.removeChild(div);\n"
@@ -136,7 +136,7 @@
     public void removeChildSibling() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "  var div1 = document.getElementById('div1');\n"
             + "  var div2 = document.getElementById('div2');\n"
             + "  try {\n"
@@ -161,7 +161,7 @@
     public void replaceChild_Normal() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    var form = document.forms['form1'];\n"
             + "    var div1 = form.firstChild;\n"
             + "    var div2 = document.getElementById('newChild');\n"
@@ -188,7 +188,7 @@
     public void nodeNameIsUppercase() throws Exception {
         final String html = "<html><head>\n"
                 + "<script>\n"
-                + "function doTest(){\n"
+                + "function doTest() {\n"
                 + "    alert(document.getElementById('myNode').nodeName);\n"
                 + "}\n"
                 + "</script>\n"
@@ -284,7 +284,7 @@
     public void nodeType() throws Exception {
         final String html = "<html><head><title>test</title>\n"
                 + "<script>\n"
-                + "function doTest(){\n"
+                + "function doTest() {\n"
                 + "    alert('document: ' + document.nodeType);\n"
                 + "    alert('document.body: ' + document.body.nodeType);\n"
                 + "    alert('body child 1: ' + \
document.body.childNodes[0].nodeType);\n" @@ -719,7 +719,7 @@
     public void insertBefore_undefinedRef() throws Exception {
         final String html = "<html><head><title>foo</title>\n"
                 + "<script>\n"
-                + "function doTest(){\n"
+                + "function doTest() {\n"
                 + "  try {\n"
                 + "    var e = document.createElement('div');\n"
                 + "    e.innerHTML='new element';\n"
@@ -902,7 +902,7 @@
     public void insertBefore_newElement() throws Exception {
         final String html = "<html><head><title>foo</title>\n"
                 + "<script>\n"
-                + "function doTest(){\n"
+                + "function doTest() {\n"
                 + "  try {\n"
                 + "    var e = document.createElement('div');\n"
                 + "    e.innerHTML='new element';\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLBRElementTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLBRElementTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLBRElementTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -98,7 +98,7 @@
     public void outerHTML() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.getElementById('myId').outerHTML);\n"
             + "}\n"
             + "</script></head><body onload='doTest()'>\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLDocument2Test.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLDocument2Test.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLDocument2Test.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -50,7 +50,7 @@
     @Alerts({"www.gargoylesoftware.com", "gargoylesoftware.com"})
     public void domain() throws Exception {
         final String html = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.domain);\n"
             + "    document.domain = 'gargoylesoftware.com';\n"
             + "    alert(document.domain);\n"
@@ -69,7 +69,7 @@
     @Alerts({"localhost", "gargoylesoftware.com"})
     public void domainFromLocalhost() throws Exception {
         final String html = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.domain);\n"
             + "    document.domain = 'gargoylesoftware.com';\n"
             + "    alert(document.domain);\n"
@@ -91,7 +91,7 @@
         final URL urlGargoyleUpperCase = new \
URL("http://WWW.GARGOYLESOFTWARE.COM/");  
         final String html = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.domain);\n"
             + "    document.domain = 'GaRgOyLeSoFtWaRe.CoM';\n"
             + "    alert(document.domain);\n"
@@ -111,7 +111,7 @@
     @Alerts({"www.gargoylesoftware.com", "gargoylesoftware.com"})
     public void domainMixedCase() throws Exception {
         final String html = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.domain);\n"
             + "    document.domain = 'GaRgOyLeSoFtWaRe.CoM';\n"
             + "    alert(document.domain);\n"
@@ -130,7 +130,7 @@
     @Alerts({"d4.d3.d2.d1.gargoylesoftware.com", "d4.d3.d2.d1.gargoylesoftware.com", \
"d1.gargoylesoftware.com"})  public void domainLong() throws Exception {
         final String html = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.domain);\n"
             + "    document.domain = 'd4.d3.d2.d1.gargoylesoftware.com';\n"
             + "    alert(document.domain);\n"
@@ -152,7 +152,7 @@
     @Alerts({"localhost", "localhost"})
     public void domainSetSelf() throws Exception {
         final String html = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.domain);\n"
             + "    document.domain = 'localhost';\n"
             + "    alert(document.domain);\n"
@@ -171,7 +171,7 @@
     @Test
     public void domainTooShort() throws Exception {
         final String html = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.domain);\n"
             + "    document.domain = 'com';\n"
             + "    alert(document.domain);\n"
@@ -198,7 +198,7 @@
             IE = {"www.gargoylesoftware.com", "www.gargoylesoftware.com", \
"exception"})  public void domain_set_for_about_blank() throws Exception {
         final String html = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "  var domain = document.domain;\n"
             + "  alert(domain);\n"
             + "  var frameDoc = frames[0].document;\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLDocumentTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLDocumentTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLDocumentTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -594,7 +594,7 @@
     @Alerts("undefined")
     public void prefix() throws Exception {
         final String html = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.forms.fmLogin);\n"
             + "}\n"
             + "</script></head>\n"
@@ -640,7 +640,7 @@
 
     private void testLastModified(final List<NameValuePair> responseHeaders) throws \
Exception {  final String html = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "  alert(typeof document.lastModified);\n"
             + "  var d = new Date(document.lastModified);\n"
             + "  alert(d.toGMTString());\n" // to have results not depending on the \
user's time zone @@ -662,7 +662,7 @@
     @Alerts({"true", "true"})
     public void lastModified_noDateHeader() throws Exception {
         final String html = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "  var justBeforeLoading = " + System.currentTimeMillis() + ";\n"
             + "  var d = new Date(document.lastModified);\n"
             + "  alert(d.valueOf() >= justBeforeLoading - 1000);\n" // date string \
format has no ms, take 1s marge @@ -729,7 +729,7 @@
         final String html = "<html>\n"
             + "<head><title>foo</title>\n"
             + "<script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "  try {\n"
             + "    document.designMode = 'on';\n"
             + "    var s = window.getSelection();\n"
@@ -786,7 +786,7 @@
     @NotYetImplemented(IE)
     public void frames() throws Exception {
         final String html = "<html><head><script>\n"
-            + "function test(){\n"
+            + "function test() {\n"
             + "  if (document.frames)\n"
             + "  {\n"
             + "    alert(document.frames == window.frames);\n"
@@ -813,7 +813,7 @@
             FF = {"undefined", "false"})
     public void frameAccessByName() throws Exception {
         final String html = "<html><head><script>\n"
-            + "function test(){\n"
+            + "function test() {\n"
             + "  alert(document.foo);\n"
             + "  alert(window.frames[0] == document.foo);\n"
             + "}\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLDocumentWrite2Test.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLDocumentWrite2Test.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLDocumentWrite2Test.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -292,7 +292,7 @@
     public void writeOnOpenedWindow_WindowIsProxied() throws Exception {
         final String html
             = "<html><head><script>\n"
-            + "function test(){\n"
+            + "function test() {\n"
             + "var w = window.open('','blah','width=460,height=420');\n"
             + "w.document.write('<html><body><form></form></body></html>');\n"
             + "w.document.close();\n"
@@ -316,7 +316,7 @@
     public void writeOnOpenedWindow_DocumentIsProxied() throws Exception {
         final String html
             = "<html><head><script>\n"
-            + "function test(){\n"
+            + "function test() {\n"
             + "var w = window.open('','blah','width=460,height=420');\n"
             + "var d = w.document;\n"
             + "d.write('<html><body><form></form></body></html>');\n"
@@ -511,7 +511,7 @@
     @Alerts("outer")
     public void writeInManyTimes() throws Exception {
         final String html = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.getElementById('inner').parentNode.id);\n"
             + "}\n"
             + "</script></head>\n"
@@ -557,7 +557,7 @@
     @Alerts({"outer", "inner1"})
     public void writeAddNodesToCorrectParent_Bug1678826() throws Exception {
         final String html = "<html><head><title>foo</title><script>\n"
-             + "function doTest(){\n"
+             + "function doTest() {\n"
              + "    alert(document.getElementById('inner1').parentNode.id);\n"
              + "    alert(document.getElementById('inner2').parentNode.id);\n"
              + "}\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLElement2Test.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLElement2Test.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLElement2Test.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -1046,7 +1046,7 @@
             + "<head>\n"
             + "    <title>test</title>\n"
             + "    <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "       var myNode = document.getElementById('myNode');\n"
             + "       alert('Old = ' + myNode.innerHTML);\n"
             + "       myNode.innerHTML = ' <b><i id=\"newElt\">New cell \
value</i></b>';\n" @@ -1083,7 +1083,7 @@
             + "<head>\n"
             + "    <title>test</title>\n"
             + "    <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "       var myNode = document.getElementById('myNode');\n"
             + "       var innerNode = document.getElementById('innerNode');\n"
             + "       alert('Old = ' + innerNode.outerHTML);\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLElementTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLElementTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLElementTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -100,7 +100,7 @@
                 + "<head>\n"
                 + "    <title>test</title>\n"
                 + "    <script>\n"
-                + "    function doTest(){\n"
+                + "    function doTest() {\n"
                 + "       var myNode = document.getElementById('myNode');\n"
                 + "       alert(myNode.title);\n"
                 + "       alert(myNode.getAttribute('title'));\n"
@@ -147,7 +147,7 @@
         final String html =
               "<html><body onload='test()'><div id='div' style='color: \
green;'>abc</div>\n"  + "<script>\n"
-            + "  function test(){\n"
+            + "  function test() {\n"
             + "    var div = document.getElementById('div');\n"
             + "    alert(div.getAttribute('style', 2));\n"
             + "  }\n"
@@ -169,7 +169,7 @@
                 + "<head>\n"
                 + "    <title>test</title>\n"
                 + "    <script>\n"
-                + "    function doTest(){\n"
+                + "    function doTest() {\n"
                 + "       var myNode = document.body.firstChild;\n"
                 + "       if (myNode.attributes.length == 0)\n"
                 + "         alert('0 attribute');\n"
@@ -197,7 +197,7 @@
                 + "<head>\n"
                 + "    <title>test</title>\n"
                 + "    <script>\n"
-                + "    function doTest(){\n"
+                + "    function doTest() {\n"
                 + "try {\n"
                 + "       var myNode = document.getElementById('myNode');\n"
                 + "       alert(myNode.getAttributeNS('myNamespaceURI', \
'my:foo'));\n" @@ -255,7 +255,7 @@
             + "<head>\n"
             + "    <title>test</title>\n"
             + "    <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "       var myNode = document.getElementById('myNode');\n"
             + "       alert(myNode.title);\n"
             + "       myNode.setAttribute('title', 'b');\n"
@@ -805,7 +805,7 @@
             + "if (1 > 2 & 3 < 2) willNotHappen('yo');"
             + "</script>\n"
             + "    <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "       var myNode = document.getElementById('theScript');\n"
             + "       alert(myNode.innerHTML);\n"
             + "   }\n"
@@ -838,7 +838,7 @@
             + "<head>\n"
             + "    <title>test</title>\n"
             + "    <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "       var myNode = document.getElementById('myNode');\n"
             + "       alert('Old = ' + myNode.innerHTML);\n"
             + "       myNode.innerHTML = 'New  cell value';\n"
@@ -864,7 +864,7 @@
             + "<head>\n"
             + "    <title>test</title>\n"
             + "    <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "       var myNode = document.getElementById('myNode');\n"
             + "       myNode.innerHTML = '<input type=\"checkbox\" name=\"myCb\" \
checked>';\n"  + "       alert(myNode.myCb.checked);\n"
@@ -889,7 +889,7 @@
             + "<head>\n"
             + "    <title>test</title>\n"
             + "    <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "       var myNode = document.getElementById('myNode');\n"
             + "       alert('Old = ' + myNode.innerHTML);\n"
             + "       myNode.innerHTML = 'New  cell value &amp; \\u0110 &#272;';\n"
@@ -1122,7 +1122,7 @@
                 + "<head>\n"
                 + "    <title>test</title>\n"
                 + "    <script>\n"
-                + "    function doTest(){\n"
+                + "    function doTest() {\n"
                 + "       var myNode = document.getElementById('myNode');\n"
                 + "       try {\n"
                 + "           alert('Outer = ' + myNode.outerHTML);\n"
@@ -1269,7 +1269,7 @@
             + "<head>\n"
             + "    <title>test</title>\n"
             + "    <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "      var nodeTypes = ['body', 'caption', 'col', 'colgroup', 'head', \
                'html',\n"
             + "                       'tbody', 'td', 'tfoot', 'th', 'thead', \
'tr'];\n"  + "      for (var i = 0; i < nodeTypes.length; i++) {\n"
@@ -1406,7 +1406,7 @@
             + "<head>\n"
             + "    <title>test</title>\n"
             + "    <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "       var myNode = document.getElementById('myNode');\n"
             + "       var innerNode = document.getElementById('innerNode');\n"
             + "       alert('Old = ' + myNode.innerHTML);\n"
@@ -1438,7 +1438,7 @@
                 + "<head>\n"
                 + "    <title>test</title>\n"
                 + "    <script>\n"
-                + "    function doTest(){\n"
+                + "    function doTest() {\n"
                 + "       var myNode = document.getElementById('myNode');\n"
                 + "       document.body.removeChild(myNode);\n"
                 + "       alert('Old = ' + myNode.innerHTML);\n"
@@ -1471,7 +1471,7 @@
                 + "<head>\n"
                 + "    <title>test</title>\n"
                 + "    <script>\n"
-                + "    function doTest(){\n"
+                + "    function doTest() {\n"
                 + "       var myNode = document.getElementById('myNode');\n"
                 + "       document.body.removeChild(myNode);\n"
                 + "       alert('Old = ' + myNode.innerHTML);\n"
@@ -1504,7 +1504,7 @@
                 + "<head>\n"
                 + "    <title>test</title>\n"
                 + "    <script>\n"
-                + "    function doTest(){\n"
+                + "    function doTest() {\n"
                 + "       var myNode = document.getElementById('myNode');\n"
                 + "       document.body.removeChild(myNode);\n"
                 + "       alert('Old = ' + myNode.innerHTML);\n"
@@ -1537,7 +1537,7 @@
                 + "<head>\n"
                 + "    <title>test</title>\n"
                 + "    <script>\n"
-                + "    function doTest(){\n"
+                + "    function doTest() {\n"
                 + "       var myNode = document.getElementById('myNode');\n"
                 + "       document.body.removeChild(myNode);\n"
                 + "       alert('Old = ' + myNode.innerHTML);\n"
@@ -1570,7 +1570,7 @@
                 + "<head>\n"
                 + "    <title>test</title>\n"
                 + "    <script>\n"
-                + "    function doTest(){\n"
+                + "    function doTest() {\n"
                 + "       var myNode = document.getElementById('myNode');\n"
                 + "       document.body.removeChild(myNode);\n"
                 + "       alert('Old = ' + myNode.innerHTML);\n"
@@ -1781,7 +1781,7 @@
             + "<head>\n"
             + "    <title>test</title>\n"
             + "    <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "       var myNode = document.getElementById('myNode');\n"
             + "       alert('Old = ' + myNode.innerText);\n"
             + "       myNode.innerText = 'New cell value';\n"
@@ -3447,7 +3447,7 @@
     public void setAttribute_className() throws Exception {
         final String html = "<html><head>\n"
             + "<script>\n"
-            + "  function test(){\n"
+            + "  function test() {\n"
             + "    var div = document.createElement('div');\n"
             + "    div.setAttribute('className', 't');\n"
             + "    alert(div.className);\n"
@@ -3467,7 +3467,7 @@
     public void setAttribute_class() throws Exception {
         final String html = "<html><head>\n"
             + "<script>\n"
-            + "  function test(){\n"
+            + "  function test() {\n"
             + "    var div = document.createElement('div');\n"
             + "    div.setAttribute('class', 't');\n"
             + "    alert(div.className);\n"
@@ -3487,7 +3487,7 @@
     public void setAttribute_className_standards() throws Exception {
         final String html = HtmlPageTest.STANDARDS_MODE_PREFIX_ + "<html><head>\n"
             + "<script>\n"
-            + "  function test(){\n"
+            + "  function test() {\n"
             + "    var div = document.createElement('div');\n"
             + "    div.setAttribute('className', 't');\n"
             + "    alert(div.className);\n"
@@ -3507,7 +3507,7 @@
     public void setAttribute_class_standards() throws Exception {
         final String html = HtmlPageTest.STANDARDS_MODE_PREFIX_ + "<html><head>\n"
             + "<script>\n"
-            + "  function test(){\n"
+            + "  function test() {\n"
             + "    var div = document.createElement('div');\n"
             + "    div.setAttribute('class', 't');\n"
             + "    alert(div.className);\n"
@@ -3529,7 +3529,7 @@
                 + "<head>\n"
                 + "    <title>test</title>\n"
                 + "    <script>\n"
-                + "    function doTest(){\n"
+                + "    function doTest() {\n"
                 + "       var form = document.getElementById('testForm');\n"
                 + "       alert(form.getAttribute('target'));\n"
                 + "       alert(form.target);\n"
@@ -3557,7 +3557,7 @@
                 + "<head>\n"
                 + "    <title>test</title>\n"
                 + "    <script>\n"
-                + "    function doTest(){\n"
+                + "    function doTest() {\n"
                 + "       var form = document.getElementById('testForm');\n"
                 + "       alert(form.getAttribute('target'));\n"
                 + "       alert(form.target);\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLFormElementTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLFormElementTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLFormElementTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -61,7 +61,7 @@
     public void elementsAccessor() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.form1.length)\n"
             + "    for (var i = 0; i < document.form1.length; i++) {\n"
             + "        var element = document.form1.elements[i];\n"
@@ -108,7 +108,7 @@
     public void elementsAccessorOutOfBound() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.form1[-1]);\n"
             + "    alert(document.form1[2]);\n"
             + "}\n"
@@ -130,7 +130,7 @@
     public void radioButtonArray() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    var radioArray = document.form1['radio1'];\n"
             + "    alert(radioArray.length)\n"
             + "    for (var i = 0; i < radioArray.length; i++) {\n"
@@ -161,7 +161,7 @@
     public void radioButton_OnlyOne() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.form1['radio1'].value);\n"
             + "}\n"
             + "</script></head><body onload='doTest()'>\n"
@@ -258,7 +258,7 @@
     private void enctype(final String encoding) throws Exception {
         String html
             = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.forms[0].encoding);\n"
             + "}\n"
             + "</script></head><body onload='doTest()'>\n"
@@ -326,7 +326,7 @@
 
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.forms[0]." + jsProperty + ");\n"
             + "    try {\n"
             + "      document.forms[0]." + jsProperty + "='" + newValue + "';\n"
@@ -398,7 +398,7 @@
             + "<input type='radio' name='second' value='1'>\n"
             + "<input type='radio' name='second' value='2' checked>\n"
             + "</form><script>clickAction();\n"
-            + "function clickAction(){\n"
+            + "function clickAction() {\n"
             + "    var value = -1;\n"
             + "    radios = document.forms['whatsnew'].elements['second'];\n"
             + "    for (var i = 0; i < radios.length; i++){\n"
@@ -447,7 +447,7 @@
     public void length() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.form1.length);\n"
             + "}\n"
             + "</script></head><body onload='doTest()'>\n"
@@ -469,7 +469,7 @@
     public void get() throws Exception {
         final String html
             = "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.form1[0].name)\n"
             + "}\n"
             + "</script></head><body onload='doTest()'>\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLImageElement2Test.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLImageElement2Test.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLImageElement2Test.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -78,7 +78,7 @@
             + "  var i = document.createElement('img');\n"
             + "  i.src = '" + URL_SECOND + "';\n"
             + "  i.src = '" + URL_THIRD + "';\n"
-            + "  i.onload = function(){ alert(1); };\n"
+            + "  i.onload = function() { alert(1); };\n"
             + "</script></body></html>";
 
         final MockWebConnection conn = getMockWebConnection();
@@ -130,15 +130,15 @@
         final String html
             = "<html><body><img id='img' name='img'/><script>\n"
             + "  var i = document.getElementById('img');\n"
-            + "  i.onload = function(){\n"
+            + "  i.onload = function() {\n"
             + "    alert('image one');\n"
-            + "    i.onload = function(){\n"
+            + "    i.onload = function() {\n"
             + "      alert('image two');\n"
             + "    };\n"
             + "    i.src = '" + URL_THIRD + "';\n"
             + "  };\n"
             + "  i.setAttribute('src','" + URL_SECOND + "');\n"
-            + "  var t = setTimeout(function(){clearTimeout(t);}, 500);\n"
+            + "  var t = setTimeout(function() {clearTimeout(t);}, 500);\n"
             + "</script></body></html>";
 
         final MockWebConnection conn = getMockWebConnection();

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLImageElementTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLImageElementTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLImageElementTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -178,7 +178,7 @@
     public void getSrc() throws Exception {
         final String html
             = "<html><head><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.getElementById('anImage').src);\n"
             + "}\n"
             + "</script></head><body onload='doTest()'>\n"
@@ -197,7 +197,7 @@
     public void getSrc_newImage_srcNotSet() throws Exception {
         final String html
             = "<html><head><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    var oImg = new Image();\n"
             + "    alert(oImg.src);\n"
             + "}\n"
@@ -216,7 +216,7 @@
     public void setSrc() throws Exception {
         final String html
             = "<html><head><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    document.getElementById('anImage').src = 'bar.gif';\n"
             + "}\n"
             + "</script></head><body onload='doTest()'>\n"
@@ -244,7 +244,7 @@
     public void setSrc_newImage() throws Exception {
         final String html
             = "<html><head><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    var preloadImage = new Image();\n"
             + "    preloadImage.src = 'bar.gif';\n"
             + "    alert(preloadImage.src);\n"
@@ -294,7 +294,7 @@
     public void newImage() throws Exception {
         final String html
             = "<html><head><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    var i = new Image();\n"
             + "    alert(i.style != null);\n"
             + "    i.style.position = 'relative';\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLInputElementTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLInputElementTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLInputElementTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -52,7 +52,7 @@
         final String html
             = HtmlPageTest.STANDARDS_MODE_PREFIX_
             + "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + "    alert(document.form1.textfield1.value);\n"
             + "    alert(document.form1.textfield1.type);\n"
             + "    alert(document.form1.textfield1.name);\n"
@@ -218,7 +218,7 @@
     private void testValue(final String value) throws Exception {
         final String html = HtmlPageTest.STANDARDS_MODE_PREFIX_
             + "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
 
             + "    document.form1.button1.value = " + value + ";\n"
             + "    document.form1.button2.value = " + value + ";\n"
@@ -322,7 +322,7 @@
     private void testValue2(final String value) throws Exception {
         final String html = HtmlPageTest.STANDARDS_MODE_PREFIX_
             + "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
 
             + "    document.form1.select1.value = " + value + ";\n"
             + "    document.form1.select2.value = " + value + ";\n"
@@ -485,7 +485,7 @@
         String html
             = HtmlPageTest.STANDARDS_MODE_PREFIX_
             + "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n";
+            + "function doTest() {\n";
 
         if (value != null) {
             html = html
@@ -719,7 +719,7 @@
         final String html
             = HtmlPageTest.STANDARDS_MODE_PREFIX_
             + "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + " document.form1.textfield1.value = 'blue';\n"
             + "}\n"
             + "</script></head>\n"
@@ -745,7 +745,7 @@
         final String html
             = HtmlPageTest.STANDARDS_MODE_PREFIX_
             + "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + " document.form1.textfield1.select();\n"
             + "}\n"
             + "</script></head>\n"
@@ -801,7 +801,7 @@
             = HtmlPageTest.STANDARDS_MODE_PREFIX_
             + "<html>\n"
             + "<head><title>foo</title><script>\n"
-            + "function test(){\n"
+            + "function test() {\n"
             + "  var f = document.form1;\n"
             + "  alert(f == f.mySubmit.form);\n"
             + "  alert(f == f.myText.form);\n"
@@ -831,7 +831,7 @@
         final String html
             = HtmlPageTest.STANDARDS_MODE_PREFIX_
             + "<html><head><title>foo</title><script>\n"
-            + "function doTest(){\n"
+            + "function doTest() {\n"
             + " document.form1.textfield1.name = 'changed';\n"
             + "}\n"
             + "</script></head><body>\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLOptionsCollectionTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLOptionsCollectionTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLOptionsCollectionTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -376,7 +376,7 @@
             = "<html>\n"
             + "<head>\n"
             + "  <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "      try {\n"
             + "        var oSelect = document.forms.testForm.select1;\n"
             + "        alert(oSelect.length);\n"
@@ -488,7 +488,7 @@
             = "<html>\n"
             + "<head>\n"
             + "  <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "      try {\n"
             + "        var oSelect = document.forms.testForm.select1;\n"
             + "        var opt = oSelect.options[" + pos + "];\n"
@@ -699,7 +699,7 @@
             = "<html>\n"
             + "<head>\n"
             + "  <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "      try {\n"
             + "        var oSelect = document.forms.testForm.select1;\n"
             + "        alert(oSelect.length);\n"
@@ -890,7 +890,7 @@
             = "<html>\n"
             + "<head>\n"
             + "  <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "      try {\n"
             + "        var oSelect = document.forms.testForm.select1;\n"
             + "        oSelect.options.remove(" + pos + ");\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLSelectElementTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLSelectElementTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLSelectElementTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -381,7 +381,7 @@
             + "<html>\n"
             + "<head>\n"
             + "  <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "      var option1 = document.f1.elements['select'][0];\n"
             + "      alert(option1!=null);\n"
             + "    }\n"
@@ -410,7 +410,7 @@
             + "<html>\n"
             + "<head>\n"
             + "  <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "      var option1 = document.form1.select1.options[0];\n"
             + "      alert(option1.text);\n"
             + "    }\n"
@@ -440,7 +440,7 @@
             + "<html>\n"
             + "<head>\n"
             + "  <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "      var options = document.form1.select1.options;\n"
             + "      var index = options.length;\n"
             + "      options[index] = new Option('Four','value4');\n"
@@ -474,7 +474,7 @@
             + "<html>\n"
             + "<head>\n"
             + "  <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "      var oSelect = document.form1.select1;\n"
             + "      var options = oSelect.options;\n"
             + "      var firstSelectedIndex = oSelect.selectedIndex;\n"
@@ -519,7 +519,7 @@
             + "<html>\n"
             + "<head>\n"
             + "  <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "      var options = document.form1.select1;\n"
             + "      try {\n"
             + "        options.add(new Option('Four','value4'), null);\n"
@@ -556,7 +556,7 @@
             + "<html>\n"
             + "<head>\n"
             + "  <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "      var oSelect = document.form1.select1;\n"
             + "      try {\n"
             + "        oSelect.add(new Option('Four', 'value4'));\n"
@@ -596,7 +596,7 @@
             + "<html>\n"
             + "<head>\n"
             + "  <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "      var oSelect = document.form1.select1;\n"
             + "      try {\n"
             + "        alert(oSelect.length);\n"
@@ -947,7 +947,7 @@
             + "<html>\n"
             + "<head>\n"
             + "  <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "      try {\n"
             + "        var oSelect = document.forms.testForm.select1;\n"
             + "        alert(oSelect.length);\n"
@@ -993,7 +993,7 @@
             + "<html>\n"
             + "<head>\n"
             + "  <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "      try {\n"
             + "        var oSelect = document.forms.testForm.testSelect;\n"
             + "        alert(oSelect.length);\n"
@@ -1347,7 +1347,7 @@
             + "<html>\n"
             + "<head>\n"
             + "  <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "      try {\n"
             + "        var oSelect = document.forms.testForm.select1;\n"
             + "        alert(oSelect.length);\n"
@@ -1844,7 +1844,7 @@
             + "<html>\n"
             + "<body onload='test()'>\n"
             + "<script>\n"
-            + "   function test(){\n"
+            + "   function test() {\n"
             + "      alert(document.getElementById('s').size);\n"
             + "      alert(document.getElementById('a').selected);\n"
             + "      alert(document.getElementById('b').selected);\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLTextAreaElementTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLTextAreaElementTest.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLTextAreaElementTest.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -51,7 +51,7 @@
             = "<html>\n"
             + "<head><title>foo</title>\n"
             + "  <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "      alert(document.form1.textarea1.value)\n"
             + "      document.form1.textarea1.value='PoohBear';\n"
             + "      alert(document.form1.textarea1.value )\n"
@@ -252,7 +252,7 @@
             = "<html>\n"
             + "<head><title>foo</title>\n"
             + "  <script>\n"
-            + "    function doTest(){\n"
+            + "    function doTest() {\n"
             + "      alert(document.form1.textarea1.value);\n"
             + "    }\n"
             + "  </script>\n"
@@ -604,7 +604,7 @@
             = "<html>\n"
             + "<head><title>foo</title>\n"
             + "  <script>\n"
-            + "    function test(){\n"
+            + "    function test() {\n"
             + "      alert(document.form1.textarea1.maxLength);\n"
             // + "      \
alert(document.form1.textarea1.getAttribute('maxLength'));\n"  + "      \
alert(document.form1.textarea2.maxLength);\n" @@ -636,7 +636,7 @@
             = "<html>\n"
             + "<head><title>foo</title>\n"
             + "  <script>\n"
-            + "    function test(){\n"
+            + "    function test() {\n"
             + "      alert(document.form1.textarea1.getAttribute('maxLength'));\n"
             + "    }\n"
             + "  </script>\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/xml/XMLHttpRequest2Test.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/xml/XMLHttpRequest2Test.java	2016-04-29 \
                10:02:24 UTC (rev 12534)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/xml/XMLHttpRequest2Test.java	2016-04-29 \
10:14:40 UTC (rev 12535) @@ -410,7 +410,7 @@
             + "xhr.onreadystatechange = handler;\n"
             + "xhr.open('GET', '/delay200/foo.txt', true);\n"
             + "xhr.send('');\n"
-            + "setTimeout(function(){ alert('in timeout');}, 5);\n"
+            + "setTimeout(function() { alert('in timeout');}, 5);\n"
             + "</script></head><body></body></html>";
 
         getMockWebConnection().setDefaultResponse("hello", "text/plain");
@@ -434,7 +434,7 @@
             + "  xhr.send('');\n"
             + "}\n"
             + "function doTest() {\n"
-            + "  setTimeout(function(){ alert('in timeout');}, 5);\n"
+            + "  setTimeout(function() { alert('in timeout');}, 5);\n"
             + "  wait();\n"
             + "  var xhr2 = new XMLHttpRequest();\n"
             + "  var handler = function() {\n"


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
HtmlUnit-develop mailing list
HtmlUnit-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic