[HtmlUnit] SVN: [13777] trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit

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

[HtmlUnit] SVN: [13777] trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit

asashour-2
Revision: 13777
          http://sourceforge.net/p/htmlunit/code/13777
Author:   asashour
Date:     2017-03-16 07:34:32 +0000 (Thu, 16 Mar 2017)
Log Message:
-----------
delete KeyGen tests

Removed Paths:
-------------
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlKeyGenTest.java
    trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLKeygenElementTest.java

Deleted: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlKeyGenTest.java
===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlKeyGenTest.java 2017-03-16 07:32:30 UTC (rev 13776)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/html/HtmlKeyGenTest.java 2017-03-16 07:34:32 UTC (rev 13777)
@@ -1,62 +0,0 @@
-/*
- * Copyright (c) 2002-2017 Gargoyle Software Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.gargoylesoftware.htmlunit.html;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-
-import com.gargoylesoftware.htmlunit.BrowserRunner;
-import com.gargoylesoftware.htmlunit.BrowserRunner.Alerts;
-import com.gargoylesoftware.htmlunit.WebDriverTestCase;
-
-/**
- * Tests for {@link HtmlKeygen}.
- *
- * @author Ahmed Ashour
- */
-@RunWith(BrowserRunner.class)
-public class HtmlKeyGenTest extends WebDriverTestCase {
-
-    /**
-     * @throws Exception if the test fails
-     */
-    @Test
-    @Alerts(DEFAULT = {"", "inline", "inline"},
-            FF = {"block", "inline", "inline-block"},
-            IE = {"inline", "inline", "inline"})
-    public void defaultStyle() throws Exception {
-        final String html = "<html><head>\n"
-            + "<script>\n"
-            + "  function test() {\n"
-            + "    var e = document.createElement('keygen');\n"
-            + "    check(e);\n"
-            + "    document.body.appendChild(e);\n"
-            + "    check(e);\n"
-            + "    check(document.getElementById('myId'));\n"
-            + "  }\n"
-
-            + "  function check(e) {\n"
-            + "    var cs = window.getComputedStyle(e, null);\n"
-            + "    var disp = cs ? cs.display : null;\n"
-            + "    alert(disp);\n"
-            + "  }\n"
-            + "</script>\n"
-            + "</head><body onload='test()'>\n"
-            + "<keygen id='myId'>\n"
-            + "</body></html>";
-
-        loadPageWithAlerts2(html);
-    }
-}

Deleted: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLKeygenElementTest.java
===================================================================
--- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLKeygenElementTest.java 2017-03-16 07:32:30 UTC (rev 13776)
+++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLKeygenElementTest.java 2017-03-16 07:34:32 UTC (rev 13777)
@@ -1,68 +0,0 @@
-/*
- * Copyright (c) 2002-2017 Gargoyle Software Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.gargoylesoftware.htmlunit.javascript.host.html;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-
-import com.gargoylesoftware.htmlunit.BrowserRunner;
-import com.gargoylesoftware.htmlunit.BrowserRunner.Alerts;
-import com.gargoylesoftware.htmlunit.WebDriverTestCase;
-
-/**
- * Tests for {@link HTMLKeygenElement}.
- *
- * @author Ahmed Ashour
- */
-@RunWith(BrowserRunner.class)
-public class HTMLKeygenElementTest extends WebDriverTestCase {
-
-    /**
-     * @throws Exception if an error occurs
-     */
-    @Test
-    @Alerts(DEFAULT = {"undefined", "undefined", "undefined", "undefined", "undefined", "undefined"},
-            CHROME = {"0", "2", "1", "2", "1", "1"})
-    public void labels() throws Exception {
-        final String html =
-            "<html><head>\n"
-            + "  <script>\n"
-            + "    function test() {\n"
-            + "      debug(document.getElementById('e1'));\n"
-            + "      debug(document.getElementById('e2'));\n"
-            + "      debug(document.getElementById('e3'));\n"
-            + "      debug(document.getElementById('e4'));\n"
-            + "      var labels = document.getElementById('e4').labels;\n"
-            + "      document.body.removeChild(document.getElementById('l4'));\n"
-            + "      debug(document.getElementById('e4'));\n"
-            + "      alert(labels ? labels.length : labels);\n"
-            + "    }\n"
-            + "    function debug(e) {\n"
-            + "      alert(e.labels ? e.labels.length : e.labels);\n"
-            + "    }\n"
-            + "  </script>\n"
-            + "</head>\n"
-            + "<body onload='test()'>\n"
-            + "  <keygen id='e1'>e 1</keygen><br>\n"
-            + "  <label>something <label> click here <keygen id='e2'>e 2</keygen></label></label><br>\n"
-            + "  <label for='e3'> and here</label>\n"
-            + "  <keygen id='e3'>e 3</keygen><br>\n"
-            + "  <label id='l4' for='e4'> what about</label>\n"
-            + "  <label> this<keygen id='e4'>e 4</keygen></label><br>\n"
-            + "</body></html>";
-
-        loadPageWithAlerts2(html);
-    }
-}


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