testing/web-platform/tests/old-tests/submission/Infraware/Forms/contents/Forms/Not_Use/input_list-manual.html
author James Graham <james@hoppipolla.co.uk>
Thu, 16 Feb 2017 14:15:01 +0000
changeset 372619 e71b73c5012fd4f83ea2a9d214a2e48e4238cdd7
parent 372609 testing/web-platform/tests/old-tests/submission/Infraware/Forms/contents/Forms/Not_Use/input_list.html@f8139688fabcce12d3251002974b4c77ceabb75e
child 373018 6e2d0a0a93695edcd4ecd7f6fe9504e3e2a02c54
permissions -rw-r--r--
Bug 1340133 - Mark manual Infraware form tests as manual, r=jmaher MozReview-Commit-ID: JUNZ0S1I7W9

<!DOCTYPE HTML>
<html>
 <head>
  <title>Forms</title>
  <script src="/resources/testharness.js"></script>
  <script src="/resources/testharnessreport.js"></script>
 </head>
 <body>
  <p>
    <h3>input_list</h3>
  </p>
  <li>List is showed list when click the input control.</li>
  <hr>

  <div id="log"></div>

  <form method="post"
      enctype="application/x-www-form-urlencoded"
      action=""
      name="input_form">
  <p><input type='text' id='input_url' list="urls"></p>
  <datalist id="urls">
    <option value="http://www.google.com/" label="Google">
    <option value="http://www.reddit.com/" label="Reddit">
  </datalist>
  </form>

  <script>
    
    var input_url = document.getElementById("input_url");
    var ele = input_url.list;

    if (typeof(ele) != "object") {
      if (typeof(ele) == "null") {
        test(function() {
          assert_unreached("list attribute is not correct.");
        });
      } else {
        test(function() {
          assert_unreached("list attribute is not exist.");
        });
      }
    }
  </script>

 </body>
</html>