summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/manual-tests/chromium
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/manual-tests/chromium')
-rw-r--r--Source/WebCore/manual-tests/chromium/no-autofill-on-readonly.html33
-rw-r--r--Source/WebCore/manual-tests/chromium/onchange-reload-popup.html44
-rw-r--r--Source/WebCore/manual-tests/chromium/select-close-popup-value-change.html20
-rw-r--r--Source/WebCore/manual-tests/chromium/suggestions-popup-font-change.html21
4 files changed, 118 insertions, 0 deletions
diff --git a/Source/WebCore/manual-tests/chromium/no-autofill-on-readonly.html b/Source/WebCore/manual-tests/chromium/no-autofill-on-readonly.html
new file mode 100644
index 0000000..9724aaa
--- /dev/null
+++ b/Source/WebCore/manual-tests/chromium/no-autofill-on-readonly.html
@@ -0,0 +1,33 @@
+<html>
+<head>
+</head>
+<body>
+ <p>This page tests that the autofill popup is not shown for read-only and disabled text inputs.</p>
+ <p>Do the following:</p>
+ <ul>
+ <li>Enter a name in the input text in Form 1 and press submit. This is so the autofill has a value for that field.</li>
+ <li>Reload the page so the input text is empty. Click twice on the Form 1 text input. An autofill popup with the name you entered previously should be shown.</li>
+ <li>Click twice on the Form 2 text input. No autofill popup should be shown.</li>
+ <li>Click twice on the Form 3 text input. No autofill popup should be shown.</li>
+ </ul>
+
+ <h1>Form 1 (text input non read-only)</h1>
+ <form action="no-autofill-on-readonly.html">
+ Name:<input type="text" name="name"></input><br>
+ <input type="submit"></input>
+ </form>
+
+ <h1>Form 2 (text input read-only)</h1>
+ <form action="no-autofill-on-readonly.html">
+ Name:<input type="text" name="name" READONLY></input><br>
+ <input type="submit"></input>
+ </form>
+
+ <h1>Form 3 (text input disabled)</h1>
+ <form action="no-autofill-on-readonly.html">
+ Name:<input type="text" name="name" DISABLED></input><br>
+ <input type="submit"></input>
+ </form>
+
+</body>
+</html>
diff --git a/Source/WebCore/manual-tests/chromium/onchange-reload-popup.html b/Source/WebCore/manual-tests/chromium/onchange-reload-popup.html
new file mode 100644
index 0000000..ce8f21e
--- /dev/null
+++ b/Source/WebCore/manual-tests/chromium/onchange-reload-popup.html
@@ -0,0 +1,44 @@
+<html>
+<head>
+ <script type="text/javascript">
+
+ function addEvent(obj, evType, fn) {
+ if (obj.addEventListener){
+ obj.addEventListener(evType, fn, false);
+ return true;
+ } else if (obj.attachEvent){
+ var r = obj.attachEvent("on"+evType, fn);
+ return r;
+ } else {
+ return false;
+ }
+ }
+
+ function reloadSelect() {
+ var container = document.getElementById('container');
+ container.innerHTML = '<select id="menu"> \
+ <option value="abcd">abcd</option>\
+ <option value="defg">efgh</option>\
+ </select>';
+
+ var menu = document.getElementById('menu');
+ addEvent(menu, 'change', reloadSelect);
+ }
+
+ </script>
+</head>
+<body>
+ <p>Do the following and see if Chromium crashes.</p>
+ <ul>
+ <li>Click the select</li>
+ <li>Press 'e' on your keyboard</li>
+ <li>Click on the document but not the select itself.</li>
+ </ul>
+
+ <div id="container"/>
+ <script>
+ reloadSelect()
+ </script>
+ </div>
+</body>
+</html>
diff --git a/Source/WebCore/manual-tests/chromium/select-close-popup-value-change.html b/Source/WebCore/manual-tests/chromium/select-close-popup-value-change.html
new file mode 100644
index 0000000..f2adf61
--- /dev/null
+++ b/Source/WebCore/manual-tests/chromium/select-close-popup-value-change.html
@@ -0,0 +1,20 @@
+<html>
+<head>
+</head>
+<body>
+ <p>Do the following, the test passes if the select keeps the selected value after step 4, fails if the value reverted.</p>
+ <ul>
+ <li>1. Click the select to open the popup list.</li>
+ <li>2. Use keyboard to select a value by pressing the first letter of the value.</li>
+ <li>3. Click the select again to close the popup list, it should stay at the value from step 2.</li>
+ <li>4. Click anywhere else on the page to move the focus out of the select.</li>
+ </ul>
+
+ <select>
+ <option>0</option>
+ <option>1</option>
+ <option>2</option>
+ <option>3</option>
+ </select>
+</body>
+</html>
diff --git a/Source/WebCore/manual-tests/chromium/suggestions-popup-font-change.html b/Source/WebCore/manual-tests/chromium/suggestions-popup-font-change.html
new file mode 100644
index 0000000..b85977a
--- /dev/null
+++ b/Source/WebCore/manual-tests/chromium/suggestions-popup-font-change.html
@@ -0,0 +1,21 @@
+<html>
+<head>
+</head>
+<body>
+ <p>Verify that the font size in the suggestion popup matches the corresponding
+ input field, test passes if step 2 matches expected behavior.</p>
+ <ul>
+ <li>1. Type "abcd" in the text form and press enter.</li>
+ <li>2. Type "a" in the text form, suggestions popup should appear.
+ Verify that font size of text in suggestion popup is the same as in
+ the corresponding input form.
+ </li>
+ <li>3. Delete contents of input box, press Cntrl/+ [Command/+ on Mac]
+ to magnify the page contents. Repeat step 2, text size should still
+ match. </li>
+ </ul>
+ <form method="get" action="suggestions-popup-font-change.html" id="form">
+ <input name="s" id="s" style="font-size:x-large">
+ </form>
+</body>
+</html>