File: select-popup-on-spacebar.html

package info (click to toggle)
qtwebkit 2.3.4.dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 290,116 kB
  • ctags: 272,544
  • sloc: cpp: 1,417,496; python: 85,048; ansic: 39,353; perl: 38,858; ruby: 10,313; objc: 9,505; xml: 8,679; asm: 3,864; yacc: 2,458; sh: 1,237; lex: 813; makefile: 592; java: 228; php: 79
file content (29 lines) | stat: -rw-r--r-- 966 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
</head>
<body onload="document.getElementById('selectId').focus()">
<p><b>BUG ID:<a href="https://bugs.webkit.org/show_bug.cgi?id=18363">18363</a>.</p>
<p id="description">
This test ensures that pressing spacebar on Mac, Gtk and Chromium ports or pressing
return in Gtk and Chromium ports will popup the select control when focused.
</p>

<p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> <br>
Press <em>spacebar</em> or the <em>return</em> key (Gtk only).

<p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b> 
Select pops up the menu list</p>

<p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>  
Select does not popup a menu list - nothing happens.</p>


<select id="selectId">
  <option>Select</option>
  <option>Item 1</option>
</select>

</body>
</html>