diff options
Diffstat (limited to 'Tools/TestWebKitAPI/Tests/WebKit2/input-focus-blur.html')
-rw-r--r-- | Tools/TestWebKitAPI/Tests/WebKit2/input-focus-blur.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Tools/TestWebKitAPI/Tests/WebKit2/input-focus-blur.html b/Tools/TestWebKitAPI/Tests/WebKit2/input-focus-blur.html new file mode 100644 index 000000000..c06439e66 --- /dev/null +++ b/Tools/TestWebKitAPI/Tests/WebKit2/input-focus-blur.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> +<body> +<input id="input" type="text"> +<input id="readonly" type="text" readonly> +<script> +function focusTextField(id) +{ + document.getElementById(id).focus(); +} + +function blurTextField(id) +{ + document.getElementById(id).blur(); +} +</script> +</body> +</html> |