[HtmlUnit] SVN: [13756] trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/ svg/SvgCursorTest.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: [13756] trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/ svg/SvgCursorTest.java

rbri
Revision: 13756
          http://sourceforge.net/p/htmlunit/code/13756
Author:   rbri
Date:     2017-03-15 20:37:04 +0000 (Wed, 15 Mar 2017)
Log Message:
-----------
latest Chrome

Modified Paths:
--------------
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/svg/SvgCursorTest.java

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/svg/SvgCursorTest.java
===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/svg/SvgCursorTest.java 2017-03-15 20:36:22 UTC (rev 13755)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/svg/SvgCursorTest.java 2017-03-15 20:37:04 UTC (rev 13756)
@@ -14,6 +14,8 @@
  */
 package com.gargoylesoftware.htmlunit.svg;
 
+import static com.gargoylesoftware.htmlunit.BrowserRunner.Browser.CHROME;
+
 import org.junit.Test;
 import org.junit.runner.RunWith;
 import org.openqa.selenium.WebDriver;
@@ -21,6 +23,7 @@
 
 import com.gargoylesoftware.htmlunit.BrowserRunner;
 import com.gargoylesoftware.htmlunit.BrowserRunner.Alerts;
+import com.gargoylesoftware.htmlunit.BrowserRunner.NotYetImplemented;
 import com.gargoylesoftware.htmlunit.WebDriverTestCase;
 import com.gargoylesoftware.htmlunit.html.HtmlPage;
 import com.gargoylesoftware.htmlunit.html.HtmlPageTest;
@@ -38,8 +41,8 @@
      * @throws Exception if the test fails
      */
     @Test
-    @Alerts(DEFAULT = "[object SVGElement]",
-            CHROME = "[object SVGCursorElement]")
+    @Alerts("[object SVGElement]")
+    @NotYetImplemented(CHROME)
     public void simpleScriptable() throws Exception {
         final String html = HtmlPageTest.STANDARDS_MODE_PREFIX_
             + "<html><head>\n"
@@ -57,12 +60,7 @@
         final WebDriver driver = loadPageWithAlerts2(html);
         if (driver instanceof HtmlUnitDriver) {
             final HtmlPage page = (HtmlPage) getWebWindowOf((HtmlUnitDriver) driver).getEnclosedPage();
-            if ("[object SVGElement]".equals(getExpectedAlerts()[0])) {
-                assertTrue(SvgElement.class.isInstance(page.getElementById("myId")));
-            }
-            else  {
-                assertTrue(SvgCursor.class.isInstance(page.getElementById("myId")));
-            }
+            assertTrue(SvgElement.class.isInstance(page.getElementById("myId")));
         }
     }
 }


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