Quantcast

[HtmlUnit] SVN: [13847] branches/huThread/htmlunit/src/test/java/com/gargoylesoftware /htmlunit/javascript/JavaScriptEngine2Test.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: [13847] branches/huThread/htmlunit/src/test/java/com/gargoylesoftware /htmlunit/javascript/JavaScriptEngine2Test.java

asashour-2
Revision: 13847
          http://sourceforge.net/p/htmlunit/code/13847
Author:   asashour
Date:     2017-03-20 16:31:58 +0000 (Mon, 20 Mar 2017)
Log Message:
-----------
thread: test case is incorrect, marked as @NYI

Modified Paths:
--------------
    branches/huThread/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/JavaScriptEngine2Test.java

Modified: branches/huThread/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/JavaScriptEngine2Test.java
===================================================================
--- branches/huThread/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/JavaScriptEngine2Test.java 2017-03-20 16:20:11 UTC (rev 13846)
+++ branches/huThread/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/JavaScriptEngine2Test.java 2017-03-20 16:31:58 UTC (rev 13847)
@@ -21,6 +21,7 @@
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.openqa.selenium.By;
+import org.openqa.selenium.NoAlertPresentException;
 import org.openqa.selenium.WebDriver;
 import org.openqa.selenium.WebDriverException;
 import org.openqa.selenium.WebElement;
@@ -427,7 +428,14 @@
             + "</script></head><body>\n"
             + "</body></html>";
 
-        loadPageWithAlerts2(html);
+        final WebDriver driver = loadPage2(html);
+        try {
+            getCollectedAlerts(driver, 1);
+            fail("expected NoAlertPresentException");
+        }
+        catch (final NoAlertPresentException e) {
+            // success
+        }
     }
 
     /**


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