diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Tools/TestWebKitAPI/Tests/WebKit2Cocoa/text-and-password-inputs.html | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Tools/TestWebKitAPI/Tests/WebKit2Cocoa/text-and-password-inputs.html')
-rw-r--r-- | Tools/TestWebKitAPI/Tests/WebKit2Cocoa/text-and-password-inputs.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/text-and-password-inputs.html b/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/text-and-password-inputs.html new file mode 100644 index 000000000..e7e11db24 --- /dev/null +++ b/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/text-and-password-inputs.html @@ -0,0 +1,39 @@ +<html> +<head> + <script> + function loaded() { + setTimeout(() => window.webkit.messageHandlers.testHandler.postMessage("loaded"), 0); + } + + function textFocused() { + setTimeout(() => window.webkit.messageHandlers.testHandler.postMessage("text-focused"), 0); + } + + function textInput() { + setTimeout(() => window.webkit.messageHandlers.testHandler.postMessage("text-input"), 0); + } + + function passwordFocused() { + setTimeout(() => window.webkit.messageHandlers.testHandler.postMessage("password-focused"), 0); + } + + function passwordInput() { + setTimeout(() => window.webkit.messageHandlers.testHandler.postMessage("password-input"), 0); + } + </script> + + <style> + input { + width: 100%; + height: 50%; + font-size: 100px; + } + body { margin: 0; } + </style> +</head> + +<body onload=loaded() onmousedown=mousedown(event)> + <input id="text" type="text" onfocus=textFocused() oninput=textInput()></input> + <input id="password" type="password" onfocus=passwordFocused() oninput=passwordInput()></input> +</body> +</html> |