1
+ <!--
2
+ Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
3
+ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
+
5
+ This code is free software; you can redistribute it and/or modify it
6
+ under the terms of the GNU General Public License version 2 only, as
7
+ published by the Free Software Foundation.
8
+
9
+ This code is distributed in the hope that it will be useful, but WITHOUT
10
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12
+ version 2 for more details (a copy is included in the LICENSE file that
13
+ accompanied this code).
14
+
15
+ You should have received a copy of the GNU General Public License version
16
+ 2 along with this work; if not, write to the Free Software Foundation,
17
+ Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18
+
19
+ Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20
+ or visit www.oracle.com if you need additional information or have any
21
+ questions.
22
+ -->
23
+ <!DOCTYPE html>
24
+ < html >
25
+ < head >
26
+ < style >
27
+ table , th , td {
28
+ border : 1px solid black;
29
+ }
30
+
31
+ </ style >
32
+ </ head >
33
+ < body >
34
+
35
+
36
+ < table >
37
+ < tr >
38
+ < th style ="background-color:rgb(204,255,255); font-weight:bold; width:5%; "> S.No</ th >
39
+ < th style ="background-color:rgb(204,255,255); font-weight:bold; width:25%; "> Test</ th >
40
+ < th style ="background-color:rgb(204,255,255); font-weight:bold; width:75%; "> Scenario</ th >
41
+ </ tr >
42
+ < tr >
43
+ < td > 1</ td >
44
+ < td > OptionPane Demo</ td >
45
+ < td >
46
+ < ol >
47
+ < li > Tab until the OptionPane icon < img src ="./resource/op.png "> has focus. Press 'space' to choose.
48
+ < li > Tab until the "OptionPane Demo" tab has focus. Press 'space'. Press 'tab'. The 'Show Input Dialog'
49
+ button should have focus.
50
+ < li > Press 'space'. An Input dialog should pop up. Type some text, and hit return. The dialog should
51
+ change to a Message dialog with text saying "That was a pretty good movie!" Press return.
52
+ < li > Bring up the dialog again (space). Press 'esc' and confirm that the dialog goes away without the
53
+ Message from above.
54
+ < li > Press Tab to move down through the buttons, and select "Component Dialog Example" (press space). A
55
+ dialog should appear. Tab to ensure that you can navigate through all the components:< br >
56
+ a. Textfield< br >
57
+ b. ComboBox< br >
58
+ c. All 4 buttons: "Cancel", "Probably", "Maybe", "No", "Yes".< br >
59
+ d. Press 'esc' to cancel the dialog.< br >
60
+ </ ol >
61
+ </ td >
62
+ </ tr >
63
+ < tr >
64
+ < td style ="Width:100%; " colspan ="3 ">
65
+ < b > Expected Result</ b >
66
+ </ td >
67
+ </ tr >
68
+ < tr >
69
+ < td style ="Width:100%; " colspan ="3 ">
70
+ When a popup window is created, focus must be on the popup window; when the window is closed, focus must
71
+ return to the previous focus point.
72
+ </ td >
73
+ </ tr >
74
+ </ table >
75
+ </ body >
76
+ </ html >
77
+
78
+
0 commit comments