[HtmlUnit] SVN: [13745] trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/ DefaultPageCreator2Test.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[HtmlUnit] SVN: [13745] trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/ DefaultPageCreator2Test.java

rbri
Revision: 13745
          http://sourceforge.net/p/htmlunit/code/13745
Author:   rbri
Date:     2017-03-15 20:05:29 +0000 (Wed, 15 Mar 2017)
Log Message:
-----------
fix build

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

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/DefaultPageCreator2Test.java
===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/DefaultPageCreator2Test.java 2017-03-15 20:04:35 UTC (rev 13744)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/DefaultPageCreator2Test.java 2017-03-15 20:05:29 UTC (rev 13745)
@@ -32,6 +32,7 @@
     @Test
     public void determinePageType() {
         assertEquals(PageType.HTML, DefaultPageCreator.determinePageType("text/html"));
+        assertEquals(PageType.HTML, DefaultPageCreator.determinePageType("image/svg+xml"));
 
         assertEquals(PageType.JAVASCRIPT, DefaultPageCreator.determinePageType("text/javascript"));
         assertEquals(PageType.JAVASCRIPT, DefaultPageCreator.determinePageType("application/x-javascript"));
@@ -44,7 +45,6 @@
         assertEquals(PageType.XML, DefaultPageCreator.determinePageType("application/vnd.mozilla.xul+xml"));
         assertEquals(PageType.XML, DefaultPageCreator.determinePageType("application/vnd.wap.xhtml+xml"));
         assertEquals(PageType.XML, DefaultPageCreator.determinePageType("application/rdf+xml"));
-        assertEquals(PageType.XML, DefaultPageCreator.determinePageType("image/svg+xml"));
 
         assertEquals(PageType.TEXT, DefaultPageCreator.determinePageType("text/plain"));
         assertEquals(PageType.TEXT, DefaultPageCreator.determinePageType("text/csv"));


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