[HtmlUnit] SVN: [14146] 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: [14146] trunk/htmlunit/src

asashour-2
Revision: 14146
          http://sourceforge.net/p/htmlunit/code/14146
Author:   asashour
Date:     2017-04-21 10:31:27 +0000 (Fri, 21 Apr 2017)
Log Message:
-----------
trivial

Modified Paths:
--------------
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Window.java
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Window2.java
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/Window3Test.java

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Window.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Window.java 2017-04-21 09:23:57 UTC (rev 14145)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Window.java 2017-04-21 10:31:27 UTC (rev 14146)
@@ -1101,7 +1101,6 @@
     public Object getOnload() {
         final Object onload = getHandlerForJavaScript("load");
         if (onload == null) {
-            // NB: for IE, the onload of window is the one of the body element but not for Mozilla.
             final HtmlPage page = (HtmlPage) getWebWindow().getEnclosedPage();
             final HtmlElement body = page.getBody();
             if (body != null) {

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Window2.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Window2.java 2017-04-21 09:23:57 UTC (rev 14145)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Window2.java 2017-04-21 10:31:27 UTC (rev 14146)
@@ -356,7 +356,6 @@
         final Window2 window = getWindow(self);
         final Object onload = window.getHandlerForJavaScript("load");
         if (onload == null) {
-            // NB: for IE, the onload of window is the one of the body element but not for Mozilla.
             final HtmlPage page = (HtmlPage) window.getWebWindow().getEnclosedPage();
             final HtmlElement body = page.getBody();
             if (body != null) {

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 2017-04-21 09:23:57 UTC (rev 14145)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/Window3Test.java 2017-04-21 10:31:27 UTC (rev 14146)
@@ -948,7 +948,7 @@
 
     /**
      * Verifies that you can set window.onload to something else than a function.
-     * See bug 1708532 & 1201561.
+     *
      * @throws Exception if an error occurs
      */
     @Test


------------------------------------------------------------------------------
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...