_equals(input.selectionDirection, null, 'getting input.selectionDirection');
      assert_throws_dom("INVALID_STATE_ERR", function() { input.selectionDirection = "none"; });
      assert_throws_dom("INVALID_STATE_ERR", function() { input.setSelectionRange(0, 0); });
      assert_throws_dom("INVALID_STATE_ERR", function() { input.setRangeText('', 0, 0); });

    }, "input type " + type + " should not support variable-length selections");
  });
});
</script>
