[HtmlUnit] SVN: [13849] branches/huThread/htmlunit/src/test/java/com/gargoylesoftware /htmlunit/javascript/host/xml/FormDataTest.java

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: [13849] branches/huThread/htmlunit/src/test/java/com/gargoylesoftware /htmlunit/javascript/host/xml/FormDataTest.java

asashour-2
Revision: 13849
          http://sourceforge.net/p/htmlunit/code/13849
Author:   asashour
Date:     2017-03-20 16:58:55 +0000 (Mon, 20 Mar 2017)
Log Message:
-----------
thread: fix expectations

Modified Paths:
--------------
    branches/huThread/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/xml/FormDataTest.java

Modified: branches/huThread/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/xml/FormDataTest.java
===================================================================
--- branches/huThread/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/xml/FormDataTest.java 2017-03-20 16:54:44 UTC (rev 13848)
+++ branches/huThread/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/xml/FormDataTest.java 2017-03-20 16:58:55 UTC (rev 13849)
@@ -368,7 +368,7 @@
 
             driver.findElement(By.id("testBtn")).click();
 
-            final List<String> alerts = getCollectedAlerts(driver);
+            final List<String> alerts = getCollectedAlerts(driver, 1);
             return alerts.get(0);
         }
         finally {
@@ -424,7 +424,7 @@
         final Map<String, Class<? extends Servlet>> servlets = new HashMap<>();
         servlets.put("/test2", PostServlet.class);
         final WebDriver driver = loadPage2(html, servlets);
-        final String alerts = getCollectedAlerts(driver).get(0);
+        final String alerts = getCollectedAlerts(driver, 1).get(0);
         for (String expected : getExpectedAlerts()) {
             assertTrue(expected + " not found", alerts.contains(expected));
         }


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