[prev in list] [next in list] [prev in thread] [next in thread] 

List:       htmlunit-develop
Subject:    [HtmlUnit] SVN: [12534] trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/
From:       asashour () users ! sourceforge ! net
Date:       2016-04-29 10:02:25
Message-ID: E1aw5Fk-0006Wc-Db () sfs-ml-3 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 12534
          http://sourceforge.net/p/htmlunit/code/12534
Author:   asashour
Date:     2016-04-29 10:02:24 +0000 (Fri, 29 Apr 2016)
Log Message:
-----------
tests: setSelectionRange is always available.

Modified Paths:
--------------
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLInputElement2Test.java
  trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLTextAreaElementTest.java


Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLInputElement2Test.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLInputElement2Test.java	2016-04-29 \
                10:01:44 UTC (rev 12533)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLInputElement2Test.java	2016-04-29 \
10:02:24 UTC (rev 12534) @@ -47,7 +47,6 @@
             = "<html><head><title>foo</title><script>\n"
             + "function test() {\n"
             + "  var input = document.getElementById('myInput');\n"
-            + "  if (!input.setSelectionRange) { alert('input.setSelectionRange not \
available'); return };\n"  + "  input.setSelectionRange(2, 7);\n"
             + "  alert('hello');"
             + "}\n"

Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLTextAreaElementTest.java
 ===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLTextAreaElementTest.java	2016-04-29 \
                10:01:44 UTC (rev 12533)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLTextAreaElementTest.java	2016-04-29 \
10:02:24 UTC (rev 12534) @@ -475,7 +475,6 @@
             + "  <script>\n"
             + "    function test() {\n"
             + "      var ta = document.getElementById('myInput');\n"
-            + "      if (!ta.setSelectionRange) { alert('setSelectionRange not \
available'); return };\n"  + "      ta.setSelectionRange(15, 15);\n"
             + "      alert(ta.selectionStart);"
             + "      alert(ta.selectionEnd);"


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
HtmlUnit-develop mailing list
HtmlUnit-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic