Quantcast

[HtmlUnit] SVN: [13803] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ javascript

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: [13803] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ javascript

rbri
Revision: 13803
          http://sourceforge.net/p/htmlunit/code/13803
Author:   rbri
Date:     2017-03-17 13:05:54 +0000 (Fri, 17 Mar 2017)
Log Message:
-----------
improved output for XMLHttpRequest

Modified Paths:
--------------
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/background/JavascriptXMLHttpRequestJob.java
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/xml/XMLHttpRequest.java

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/background/JavascriptXMLHttpRequestJob.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/background/JavascriptXMLHttpRequestJob.java 2017-03-17 07:35:29 UTC (rev 13802)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/background/JavascriptXMLHttpRequestJob.java 2017-03-17 13:05:54 UTC (rev 13803)
@@ -38,6 +38,6 @@
 
     @Override
     public String toString() {
-        return "XMLHttpRequest Job " + getId();
+        return "XMLHttpRequest Execution Job " + getId() + ": " + action_.toString();
     }
 }

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/xml/XMLHttpRequest.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/xml/XMLHttpRequest.java 2017-03-17 07:35:29 UTC (rev 13802)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/xml/XMLHttpRequest.java 2017-03-17 13:05:54 UTC (rev 13803)
@@ -661,6 +661,13 @@
                     }
                     return null;
                 }
+
+                @Override
+                public String toString() {
+                    return "XMLHttpRequest "
+                                + webRequest_.getHttpMethod().toString()
+                                + " '" + webRequest_.getUrl().toExternalForm() + "'";
+                }
             };
             final JavaScriptJob job = BackgroundJavaScriptFactory.theFactory().
                     createJavascriptXMLHttpRequestJob(cf, action);


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