Each(function(type) {
    test(function() {
      var input = document.createElement("input");
      var a;

      input.type = type;
      assert_equals(input.type, type, "the given input type is not supported");

      input.select();

    }, "input type " + type + " should support the select() method");
  });
});

/* only certain input types are allowed to have a variable-length selection */
test(function() {
  var invalid = [
    "month",
    "week",
  ];

  invalid.forEach(function(type) {
    test(fun