[HtmlUnit] SVN: [13808] trunk/htmlunit/src

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[HtmlUnit] SVN: [13808] trunk/htmlunit/src

asashour-2
Revision: 13808
          http://sourceforge.net/p/htmlunit/code/13808
Author:   asashour
Date:     2017-03-17 17:57:33 +0000 (Fri, 17 Mar 2017)
Log Message:
-----------
checkstyle

Modified Paths:
--------------
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleSheet.java
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleSheet2Test.java
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleSheetTest.java

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleSheet.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleSheet.java 2017-03-17 17:55:18 UTC (rev 13807)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleSheet.java 2017-03-17 17:57:33 UTC (rev 13808)
@@ -411,7 +411,7 @@
      * @param selector the selector to test
      * @param element the element to test
      * @param pseudoElement the pseudo element to match, (can be {@code null})
-     * @param fromQuerySelectorAll whether this is called from {@link DomNode#querySelectorAll(String)
+     * @param fromQuerySelectorAll whether this is called from {@link DomNode#querySelectorAll(String)
      * @return {@code true} if it does apply, {@code false} if it doesn't apply
      */
     public static boolean selects(final BrowserVersion browserVersion, final Selector selector,
@@ -513,7 +513,7 @@
      * @param browserVersion the browser version
      * @param condition the condition to test
      * @param element the element to test
-     * @param fromQuerySelectorAll whether this is called from {@link DomNode#querySelectorAll(String)
+     * @param fromQuerySelectorAll whether this is called from {@link DomNode#querySelectorAll(String)
      * @return {@code true} if it does apply, {@code false} if it doesn't apply
      */
     static boolean selects(final BrowserVersion browserVersion, final Condition condition, final DomElement element,
@@ -598,7 +598,8 @@
                 final String tagName = element.getTagName();
                 return ((HtmlPage) element.getPage()).getElementsByTagName(tagName).getLength() == 1;
             case Condition.SAC_PSEUDO_CLASS_CONDITION:
-                return selectsPseudoClass(browserVersion, (AttributeCondition) condition, element, fromQuerySelectorAll);
+                return selectsPseudoClass(browserVersion,
+                        (AttributeCondition) condition, element, fromQuerySelectorAll);
             case Condition.SAC_POSITIONAL_CONDITION:
                 return false;
             default:

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleSheet2Test.java
===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleSheet2Test.java 2017-03-17 17:55:18 UTC (rev 13807)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleSheet2Test.java 2017-03-17 17:57:33 UTC (rev 13808)
@@ -73,7 +73,7 @@
         final CSSStyleSheet sheet = host.getSheet();
 
         Selector selector = parseSelector(sheet, "*.yui-log input");
-        
+
         assertFalse(CSSStyleSheet.selects(browserVersion, selector, body, null, false));
         assertFalse(CSSStyleSheet.selects(browserVersion, selector, form, null, false));
         assertTrue(CSSStyleSheet.selects(browserVersion, selector, input1, null, false));

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 2017-03-17 17:55:18 UTC (rev 13807)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/css/CSSStyleSheetTest.java 2017-03-17 17:57:33 UTC (rev 13808)
@@ -1296,7 +1296,7 @@
                 + "  </div>\n"
                 + "</div>\n"
                 + "</body></html>";
-        getMockWebConnection().setDefaultResponse(html);;
+        getMockWebConnection().setDefaultResponse(html);
         final WebDriver webDriver = loadPage2(html);
         assertFalse(webDriver.findElement(By.id("anchor")).isDisplayed());
         webDriver.get(URL_FIRST + "#anchor");


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Loading...