firewatir 1.6.5 → 1.6.6.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. data/CHANGES +461 -0
  2. data/LICENSE +31 -31
  3. data/README.rdoc +112 -0
  4. data/VERSION +1 -0
  5. data/lib/firewatir.rb +41 -40
  6. data/lib/firewatir/container.rb +491 -491
  7. data/lib/firewatir/document.rb +239 -239
  8. data/lib/firewatir/element.rb +1364 -1364
  9. data/lib/firewatir/element_collections.rb +314 -314
  10. data/lib/firewatir/elements/button.rb +15 -15
  11. data/lib/firewatir/elements/file_field.rb +29 -29
  12. data/lib/firewatir/elements/form.rb +40 -40
  13. data/lib/firewatir/elements/frame.rb +55 -55
  14. data/lib/firewatir/elements/hidden.rb +56 -56
  15. data/lib/firewatir/elements/image.rb +139 -139
  16. data/lib/firewatir/elements/input_element.rb +44 -44
  17. data/lib/firewatir/elements/link.rb +76 -76
  18. data/lib/firewatir/elements/non_control_element.rb +53 -53
  19. data/lib/firewatir/elements/non_control_elements.rb +108 -108
  20. data/lib/firewatir/elements/not_used.rb +278 -278
  21. data/lib/firewatir/elements/option.rb +130 -130
  22. data/lib/firewatir/elements/radio_check_common.rb +163 -163
  23. data/lib/firewatir/elements/select_list.rb +188 -188
  24. data/lib/firewatir/elements/table.rb +218 -218
  25. data/lib/firewatir/elements/table_cell.rb +54 -54
  26. data/lib/firewatir/elements/table_row.rb +100 -100
  27. data/lib/firewatir/elements/text_field.rb +218 -218
  28. data/lib/firewatir/exceptions.rb +10 -10
  29. data/lib/firewatir/firefox.rb +984 -1040
  30. data/lib/firewatir/jssh_socket.rb +100 -100
  31. data/lib/firewatir/winClicker.rb +122 -122
  32. data/lib/firewatir/x11.rb +192 -192
  33. data/rakefile.rb +15 -0
  34. data/unittests/attach_to_new_window_test.rb +49 -49
  35. data/unittests/bug_fixes_test.rb +195 -195
  36. data/unittests/buttons_xpath_test.rb +88 -88
  37. data/unittests/checkbox_test.rb +158 -158
  38. data/unittests/checkbox_xpath_test.rb +107 -107
  39. data/unittests/div_test.rb +275 -275
  40. data/unittests/ff_test.rb +47 -0
  41. data/unittests/filefield_test.rb +49 -49
  42. data/unittests/filefield_xpath_test.rb +35 -35
  43. data/unittests/form_test.rb +296 -296
  44. data/unittests/frame_test.rb +159 -159
  45. data/unittests/hidden_test.rb +85 -85
  46. data/unittests/hidden_xpath_test.rb +72 -72
  47. data/unittests/html/JavascriptClick.html +42 -42
  48. data/unittests/html/blankpage.html +11 -11
  49. data/unittests/html/buttons1.html +61 -61
  50. data/unittests/html/checkboxes1.html +70 -70
  51. data/unittests/html/complex_table.html +36 -36
  52. data/unittests/html/cssTest.html +42 -42
  53. data/unittests/html/div.html +72 -72
  54. data/unittests/html/div_xml.html +20 -20
  55. data/unittests/html/fileupload.html +45 -45
  56. data/unittests/html/formTest1.html +38 -38
  57. data/unittests/html/forms2.html +45 -45
  58. data/unittests/html/forms3.html +132 -132
  59. data/unittests/html/forms4.html +27 -27
  60. data/unittests/html/frame_buttons.html +3 -3
  61. data/unittests/html/frame_links.html +3 -3
  62. data/unittests/html/frame_multi.html +4 -4
  63. data/unittests/html/iframeTest.html +14 -14
  64. data/unittests/html/iframeTest1.html +13 -13
  65. data/unittests/html/iframeTest2.html +5 -5
  66. data/unittests/html/images1.html +66 -66
  67. data/unittests/html/javascriptevents.html +35 -35
  68. data/unittests/html/link_pass.html +10 -10
  69. data/unittests/html/links1.html +42 -42
  70. data/unittests/html/links2.html +10 -10
  71. data/unittests/html/modal_dialog.html +8 -8
  72. data/unittests/html/modal_dialog_launcher.html +11 -11
  73. data/unittests/html/nestedFrames.html +6 -6
  74. data/unittests/html/new_browser.html +17 -17
  75. data/unittests/html/new_browser_popup.html +7 -7
  76. data/unittests/html/pass.html +9 -9
  77. data/unittests/html/popups1.html +60 -60
  78. data/unittests/html/pre.html +27 -27
  79. data/unittests/html/radioButtons1.html +70 -70
  80. data/unittests/html/redirect.html +10 -10
  81. data/unittests/html/redirect1.html +8 -8
  82. data/unittests/html/redirect2.html +8 -8
  83. data/unittests/html/redirect3.html +8 -8
  84. data/unittests/html/select_tealeaf.html +54 -54
  85. data/unittests/html/selectboxes1.html +55 -55
  86. data/unittests/html/simple_table.html +26 -26
  87. data/unittests/html/simple_table_buttons.html +104 -104
  88. data/unittests/html/simple_table_columns.html +74 -74
  89. data/unittests/html/table1.html +165 -165
  90. data/unittests/html/tableCell_using_xpath.html +19 -19
  91. data/unittests/html/textarea.html +30 -30
  92. data/unittests/html/textfields1.html +62 -62
  93. data/unittests/html/textsearch.html +44 -44
  94. data/unittests/images_test.rb +198 -198
  95. data/unittests/images_xpath_test.rb +118 -118
  96. data/unittests/javascript_test.rb +75 -75
  97. data/unittests/links_test.rb +231 -231
  98. data/unittests/links_xpath_test.rb +79 -79
  99. data/unittests/mozilla_all_tests.rb +7 -7
  100. data/unittests/pre_test.rb +75 -75
  101. data/unittests/radios_test.rb +166 -166
  102. data/unittests/radios_xpath_test.rb +101 -101
  103. data/unittests/redirect_test.rb +41 -41
  104. data/unittests/selectbox_test.rb +142 -142
  105. data/unittests/selectbox_xpath_test.rb +129 -129
  106. data/unittests/setup.rb +29 -29
  107. data/unittests/table_test.rb +385 -385
  108. data/unittests/table_xpath_test.rb +185 -185
  109. data/unittests/textfields_test.rb +234 -234
  110. data/unittests/textfields_xpath_test.rb +113 -113
  111. metadata +51 -19
  112. data/lib/firewatir/version.rb +0 -5
@@ -1,165 +1,165 @@
1
- <html>
2
- <head>
3
- <title>
4
- Test page for Tables
5
- </title>
6
- </head>
7
- <body>
8
-
9
- <script language=javascript>
10
-
11
- function addRow() {
12
-
13
- var tbody = document.getElementById('t1' ).getElementsByTagName("TBODY")[0];
14
-
15
- // Create a TR
16
- var row = document.createElement("TR");
17
- row.setAttribute("class", "normal");
18
- row.setAttribute("border", "1");
19
-
20
- for (j=0 ; j < document.getElementById('t1' ).rows[1].cells.length; j++) {
21
- // Create a TD
22
- var td = document.createElement("TD");
23
- td.setAttribute("border","1");
24
- td.innerHTML = "New Cell";
25
-
26
- // Assign TD to TR and then assign TR to TBODY
27
- row.appendChild(td);
28
- }
29
- tbody.appendChild(row);
30
- }
31
-
32
- </script>
33
-
34
-
35
- CVS Revision: "$Revision: 1.0 $"
36
- <br>
37
- <br>
38
- <table border="1" id='tblTest' cellspacing="3" cellpadding="6" class="TableClass">
39
- <tr>
40
- <td> Row 1 Col1</td>
41
- <td> Row 1 Col2</td>
42
- </tr> <tr>
43
- <td> Row 2 Col1</td>
44
- <td> Row 2 Col2</td>
45
- </tr>
46
- </table>
47
-
48
-
49
- <br>
50
- <br>
51
- <table id= 't1'>
52
- <Tr><td id=cell_with_colspan colspan=2>Table 2
53
- <tr>
54
- <td id=cell1> Row 1 Col1</td>
55
- <td> Row 1 Col2</td>
56
- </tr>
57
- <tr id=row1>
58
- <td> Row 2 Col1</td>
59
- <td> Row 2 Col2</td>
60
- </tr>
61
- <tr>
62
- <td> Row 3 Col1</td>
63
- <td> Row 3 Col2</td>
64
- </tr>
65
- <tr>
66
- <td> Row 4 Col1</td>
67
- <td> Row 4 Col2</td>
68
- </tr>
69
- </table>
70
- <br>
71
- <input type=button value='add row' onClick='javascript:addRow()'>
72
-
73
- <br>
74
- <br>
75
-
76
- The following has a nested table
77
- <table id='t2' border=1>
78
- <tr>
79
- <td>
80
- cell 1</td>
81
- <td>
82
- cell2</td>
83
- </tr>
84
- <tr>
85
- <td>
86
- <table><tr><td>nest1</td><td>nest2</td></tr></table>
87
- </td>
88
- <td>
89
- Normal
90
- </td>
91
- </tr>
92
- </table>
93
- <br>
94
- This table has 3 body tags.
95
- <br><br>
96
- <table id=body_test>
97
- <THEAD>
98
- <TR>
99
- <TD>
100
- This text is in the THEAD.
101
- </TD>
102
- </TR>
103
- </THEAD>
104
- <TBODY>
105
- <TR>
106
- <TD>
107
- This text is in the FRST TBODY.
108
- </TD>
109
- </TR>
110
- </TBODY>
111
-
112
- <TBODY>
113
- <TR>
114
- <TD>
115
- This text is in the SECOND TBODY.
116
- </TD>
117
- </TR>
118
- <TR>
119
- <TD>
120
- This text is also in the SECOND TBODY.
121
- </TD>
122
- </TR>
123
- </TBODY>
124
-
125
- <TBODY>
126
- <TR>
127
- <TD>
128
- This text is in the THIRD TBODY.
129
- </TD>
130
- </TR>
131
- </TBODY>
132
-
133
- </TABLE>
134
-
135
- <table border="1" id=pic_table>
136
- <tr>
137
- <td> A picture is in the next cell</td>
138
- <td><img src=images/circle.jpg></td>
139
- </tr><tr>
140
- <td> A link is in the next cell</td>
141
- <td><a href = http://google.com>Google</a></td>
142
- </tr>
143
- </table>
144
- Table to string test
145
- <table border="1" id='tblTest1' cellspacing="3" cellpadding="6" class="TableClass">
146
- <tr><td id=cellwithcolspan colspan=2>Table 3</td></tr>
147
- <tr>
148
- <td id=cell1> Row 1 Col1</td>
149
- <td> Row 1 Col2</td>
150
- </tr>
151
- <tr id=row1>
152
- <td> Row 2 Col1</td>
153
- <td> Row 2 Col2</td>
154
- </tr>
155
- <tr>
156
- <td> Row 3 Col1</td>
157
- <td> Row 3 Col2</td>
158
- </tr>
159
- <tr>
160
- <td> Row 4 Col1</td>
161
- <td> Row 4 Col2</td>
162
- </tr>
163
- </table>
164
- </body>
165
- </html>
1
+ <html>
2
+ <head>
3
+ <title>
4
+ Test page for Tables
5
+ </title>
6
+ </head>
7
+ <body>
8
+
9
+ <script language=javascript>
10
+
11
+ function addRow() {
12
+
13
+ var tbody = document.getElementById('t1' ).getElementsByTagName("TBODY")[0];
14
+
15
+ // Create a TR
16
+ var row = document.createElement("TR");
17
+ row.setAttribute("class", "normal");
18
+ row.setAttribute("border", "1");
19
+
20
+ for (j=0 ; j < document.getElementById('t1' ).rows[1].cells.length; j++) {
21
+ // Create a TD
22
+ var td = document.createElement("TD");
23
+ td.setAttribute("border","1");
24
+ td.innerHTML = "New Cell";
25
+
26
+ // Assign TD to TR and then assign TR to TBODY
27
+ row.appendChild(td);
28
+ }
29
+ tbody.appendChild(row);
30
+ }
31
+
32
+ </script>
33
+
34
+
35
+ CVS Revision: "$Revision: 1.0 $"
36
+ <br>
37
+ <br>
38
+ <table border="1" id='tblTest' cellspacing="3" cellpadding="6" class="TableClass">
39
+ <tr>
40
+ <td> Row 1 Col1</td>
41
+ <td> Row 1 Col2</td>
42
+ </tr> <tr>
43
+ <td> Row 2 Col1</td>
44
+ <td> Row 2 Col2</td>
45
+ </tr>
46
+ </table>
47
+
48
+
49
+ <br>
50
+ <br>
51
+ <table id= 't1'>
52
+ <Tr><td id=cell_with_colspan colspan=2>Table 2
53
+ <tr>
54
+ <td id=cell1> Row 1 Col1</td>
55
+ <td> Row 1 Col2</td>
56
+ </tr>
57
+ <tr id=row1>
58
+ <td> Row 2 Col1</td>
59
+ <td> Row 2 Col2</td>
60
+ </tr>
61
+ <tr>
62
+ <td> Row 3 Col1</td>
63
+ <td> Row 3 Col2</td>
64
+ </tr>
65
+ <tr>
66
+ <td> Row 4 Col1</td>
67
+ <td> Row 4 Col2</td>
68
+ </tr>
69
+ </table>
70
+ <br>
71
+ <input type=button value='add row' onClick='javascript:addRow()'>
72
+
73
+ <br>
74
+ <br>
75
+
76
+ The following has a nested table
77
+ <table id='t2' border=1>
78
+ <tr>
79
+ <td>
80
+ cell 1</td>
81
+ <td>
82
+ cell2</td>
83
+ </tr>
84
+ <tr>
85
+ <td>
86
+ <table><tr><td>nest1</td><td>nest2</td></tr></table>
87
+ </td>
88
+ <td>
89
+ Normal
90
+ </td>
91
+ </tr>
92
+ </table>
93
+ <br>
94
+ This table has 3 body tags.
95
+ <br><br>
96
+ <table id=body_test>
97
+ <THEAD>
98
+ <TR>
99
+ <TD>
100
+ This text is in the THEAD.
101
+ </TD>
102
+ </TR>
103
+ </THEAD>
104
+ <TBODY>
105
+ <TR>
106
+ <TD>
107
+ This text is in the FRST TBODY.
108
+ </TD>
109
+ </TR>
110
+ </TBODY>
111
+
112
+ <TBODY>
113
+ <TR>
114
+ <TD>
115
+ This text is in the SECOND TBODY.
116
+ </TD>
117
+ </TR>
118
+ <TR>
119
+ <TD>
120
+ This text is also in the SECOND TBODY.
121
+ </TD>
122
+ </TR>
123
+ </TBODY>
124
+
125
+ <TBODY>
126
+ <TR>
127
+ <TD>
128
+ This text is in the THIRD TBODY.
129
+ </TD>
130
+ </TR>
131
+ </TBODY>
132
+
133
+ </TABLE>
134
+
135
+ <table border="1" id=pic_table>
136
+ <tr>
137
+ <td> A picture is in the next cell</td>
138
+ <td><img src=images/circle.jpg></td>
139
+ </tr><tr>
140
+ <td> A link is in the next cell</td>
141
+ <td><a href = http://google.com>Google</a></td>
142
+ </tr>
143
+ </table>
144
+ Table to string test
145
+ <table border="1" id='tblTest1' cellspacing="3" cellpadding="6" class="TableClass">
146
+ <tr><td id=cellwithcolspan colspan=2>Table 3</td></tr>
147
+ <tr>
148
+ <td id=cell1> Row 1 Col1</td>
149
+ <td> Row 1 Col2</td>
150
+ </tr>
151
+ <tr id=row1>
152
+ <td> Row 2 Col1</td>
153
+ <td> Row 2 Col2</td>
154
+ </tr>
155
+ <tr>
156
+ <td> Row 3 Col1</td>
157
+ <td> Row 3 Col2</td>
158
+ </tr>
159
+ <tr>
160
+ <td> Row 4 Col1</td>
161
+ <td> Row 4 Col2</td>
162
+ </tr>
163
+ </table>
164
+ </body>
165
+ </html>
@@ -1,19 +1,19 @@
1
- <html>
2
- <head>
3
- <title>Testing table cell using xpath.</title>
4
- </head>
5
- <body>
6
- <table>
7
- <tr>
8
- <td colspan="1"><img src="images/square.jpg"> Table Cell with image of square.
9
- </td>
10
- <td colspan="2"><img src="images/triangle.jpg"> Table Cell with image of triangle.
11
- </td>
12
- <td colspan="3"><img src="images/circle.jpg"> Table Cell with image of circle.
13
- </td>
14
- <td colspan="4"><img src="images/button.jpg"> Table Cell with image of button.
15
- </td>
16
- </tr>
17
- </table>
18
- </body>
19
- </html>
1
+ <html>
2
+ <head>
3
+ <title>Testing table cell using xpath.</title>
4
+ </head>
5
+ <body>
6
+ <table>
7
+ <tr>
8
+ <td colspan="1"><img src="images/square.jpg"> Table Cell with image of square.
9
+ </td>
10
+ <td colspan="2"><img src="images/triangle.jpg"> Table Cell with image of triangle.
11
+ </td>
12
+ <td colspan="3"><img src="images/circle.jpg"> Table Cell with image of circle.
13
+ </td>
14
+ <td colspan="4"><img src="images/button.jpg"> Table Cell with image of button.
15
+ </td>
16
+ </tr>
17
+ </table>
18
+ </body>
19
+ </html>
@@ -1,30 +1,30 @@
1
-
2
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
3
- <HTML>
4
- <HEAD>
5
- <title>TextArea-MultiLine</title>
6
- </HEAD>
7
- <body MS_POSITIONING="FlowLayout">
8
-
9
- <form name="Form1" method="post" action="textArea.html" id="Form1">
10
-
11
- <textarea name="txtMultiLine1" id="txtMultiLine1" style="height:152px;width:248px;">Hello World</textarea>
12
- <textarea name="txtReadOnly" id="txtReadOnly" style="height:152px;width:248px;" readonly></textarea>
13
- </form>
14
- <form name="Form2" method="post" action="textArea.html" id="Form1">
15
-
16
- <textarea name="txtMultiLine2" id="txtMultiLine2" style="height:152px;width:248px;">
17
- IExplore.exe is at the top level; it is a small application that is instantiated when Internet Explorer is loaded. This executable application uses Internet Explorer components to perform the navigation, history maintenance, favorites maintenance, HTML parsing and rendering, and so on, while it supplies the toolbar and frame for the stand-alone browser. IExplorer.exe directly hosts the Shdocvw.dll component.
18
- </textarea>
19
- <textarea name="txtDisabled" id="txtDisabled" disabled>
20
- Disabled here </textarea>
21
- <form name="Form3" method="post" action="textArea.html" id="Form1">
22
-
23
- <textarea name="txtMultiLine3" id="txtMultiLine3" style="height:152px;width:248px;">
24
- Shdocvw.dll in turn hosts the Mshtml.dll component, as well as any other Active Document component (such as a Microsoft Office application) that can be loaded in place in the browser when the user navigates to a specific document type. Shdocvw.dll supplies the functionality associated with navigation, in-place linking, favorites and history management, and PICS support. This dynamic-link library (DLL) also exposes interfaces to its host to allow it to be hosted separately as an ActiveX control. The Shdocvw.dll component is more frequently referred to as the WebBrowser Control. In-place linking refers to the ability to click a link in the HTML of the loaded document and to load a new HTML document in the same instance of the WebBrowser Control. If only Mshtml.dll is being hosted, a click on the link results in a new instance of the browser.
25
- </textarea>
26
- </form>
27
- </form>
28
- </body>
29
- </HTML>
30
-
1
+
2
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
3
+ <HTML>
4
+ <HEAD>
5
+ <title>TextArea-MultiLine</title>
6
+ </HEAD>
7
+ <body MS_POSITIONING="FlowLayout">
8
+
9
+ <form name="Form1" method="post" action="textArea.html" id="Form1">
10
+
11
+ <textarea name="txtMultiLine1" id="txtMultiLine1" style="height:152px;width:248px;">Hello World</textarea>
12
+ <textarea name="txtReadOnly" id="txtReadOnly" style="height:152px;width:248px;" readonly></textarea>
13
+ </form>
14
+ <form name="Form2" method="post" action="textArea.html" id="Form1">
15
+
16
+ <textarea name="txtMultiLine2" id="txtMultiLine2" style="height:152px;width:248px;">
17
+ IExplore.exe is at the top level; it is a small application that is instantiated when Internet Explorer is loaded. This executable application uses Internet Explorer components to perform the navigation, history maintenance, favorites maintenance, HTML parsing and rendering, and so on, while it supplies the toolbar and frame for the stand-alone browser. IExplorer.exe directly hosts the Shdocvw.dll component.
18
+ </textarea>
19
+ <textarea name="txtDisabled" id="txtDisabled" disabled>
20
+ Disabled here </textarea>
21
+ <form name="Form3" method="post" action="textArea.html" id="Form1">
22
+
23
+ <textarea name="txtMultiLine3" id="txtMultiLine3" style="height:152px;width:248px;">
24
+ Shdocvw.dll in turn hosts the Mshtml.dll component, as well as any other Active Document component (such as a Microsoft Office application) that can be loaded in place in the browser when the user navigates to a specific document type. Shdocvw.dll supplies the functionality associated with navigation, in-place linking, favorites and history management, and PICS support. This dynamic-link library (DLL) also exposes interfaces to its host to allow it to be hosted separately as an ActiveX control. The Shdocvw.dll component is more frequently referred to as the WebBrowser Control. In-place linking refers to the ability to click a link in the HTML of the loaded document and to load a new HTML document in the same instance of the WebBrowser Control. If only Mshtml.dll is being hosted, a click on the link results in a new instance of the browser.
25
+ </textarea>
26
+ </form>
27
+ </form>
28
+ </body>
29
+ </HTML>
30
+
@@ -1,62 +1,62 @@
1
- <html>
2
- <head>
3
- <title>Test page for Text Fields </title>
4
- </head>
5
- <body>
6
- CVS Revision: "$Revision: 1.0 $"
7
- <script>
8
- function addEvent(e) {
9
- document.all.events_text.value = document.all.events_text.value + "\n" + e
10
- }
11
- </script>
12
- <br>
13
- <br>
14
- <table>
15
- <tr>
16
- <td>
17
- <input type="text" name="text1" value='Hello World' maxlength="500">number 1
18
- <br>
19
- <label for="text2">Label For this Field </label><input type="text" id="text2" value='goodbye all' maxlength="500">
20
- <td>
21
- These text fields are not in a form
22
- <tr>
23
- <td>
24
- <input type="text" name="disabled" value="Cant enter text in me" disabled>
25
- <td>
26
- Disabled text box
27
- <tr>
28
- <td>
29
- <input type="text" maxlength="400" name="readOnly" value="Cant enter text in me" readonly>
30
- <br>
31
- <label for="readOnly2" id="label2">Another Label (pointless- its a readonly box!) </label><input type="text" id="readOnly2" value="Cant enter text in me" readonly>
32
- <td>
33
- readonly text boxes
34
- <form name="test1" method="get" action="pass.html">
35
- <tr>
36
- <td>
37
- <input type="text" name="text1" value='Ruby'>
38
- <td>
39
- This is used in text1 in form test1
40
- </form>
41
- </tr>
42
- </table>
43
- These text fields are used to test :beforeText and :afterText
44
- <br>
45
- <input type="text" name="beforetest" value='Before Text Test'>This Text After
46
- <br>
47
- This Text Before<input type="text" name="aftertest" value='AfterText Test' title="This used to test :afterText">
48
- <br>
49
- <br>
50
- This Field has javascript events in it <input type="text" name="events_tester" onKeyUp='javascript:addEvent("keyup")' onKeyDown='javascript:addEvent("keydown")'
51
- onKeyPress='javascript:addEvent("keypress")'>
52
- <br>
53
- <textarea id="events_text" name="events_text" cols="20" rows="10"></textarea> <input type="button" onClick='document.all.events_text.value=""' value="Clear Events Box">
54
- <br>
55
- Password Fields
56
- <br>
57
- Password With Name<input type="password" name="password1">
58
- <br>
59
- <label for="password1">Password With ID ( the text here is a label for it )</label><input type="password" id="password1">
60
- <div name="divvy">Div Text</div>
61
- </body>
62
- </html>
1
+ <html>
2
+ <head>
3
+ <title>Test page for Text Fields </title>
4
+ </head>
5
+ <body>
6
+ CVS Revision: "$Revision: 1.0 $"
7
+ <script>
8
+ function addEvent(e) {
9
+ document.all.events_text.value = document.all.events_text.value + "\n" + e
10
+ }
11
+ </script>
12
+ <br>
13
+ <br>
14
+ <table>
15
+ <tr>
16
+ <td>
17
+ <input type="text" name="text1" value='Hello World' maxlength="500">number 1
18
+ <br>
19
+ <label for="text2">Label For this Field </label><input type="text" id="text2" value='goodbye all' maxlength="500">
20
+ <td>
21
+ These text fields are not in a form
22
+ <tr>
23
+ <td>
24
+ <input type="text" name="disabled" value="Cant enter text in me" disabled>
25
+ <td>
26
+ Disabled text box
27
+ <tr>
28
+ <td>
29
+ <input type="text" maxlength="400" name="readOnly" value="Cant enter text in me" readonly>
30
+ <br>
31
+ <label for="readOnly2" id="label2">Another Label (pointless- its a readonly box!) </label><input type="text" id="readOnly2" value="Cant enter text in me" readonly>
32
+ <td>
33
+ readonly text boxes
34
+ <form name="test1" method="get" action="pass.html">
35
+ <tr>
36
+ <td>
37
+ <input type="text" name="text1" value='Ruby'>
38
+ <td>
39
+ This is used in text1 in form test1
40
+ </form>
41
+ </tr>
42
+ </table>
43
+ These text fields are used to test :beforeText and :afterText
44
+ <br>
45
+ <input type="text" name="beforetest" value='Before Text Test'>This Text After
46
+ <br>
47
+ This Text Before<input type="text" name="aftertest" value='AfterText Test' title="This used to test :afterText">
48
+ <br>
49
+ <br>
50
+ This Field has javascript events in it <input type="text" name="events_tester" onKeyUp='javascript:addEvent("keyup")' onKeyDown='javascript:addEvent("keydown")'
51
+ onKeyPress='javascript:addEvent("keypress")'>
52
+ <br>
53
+ <textarea id="events_text" name="events_text" cols="20" rows="10"></textarea> <input type="button" onClick='document.all.events_text.value=""' value="Clear Events Box">
54
+ <br>
55
+ Password Fields
56
+ <br>
57
+ Password With Name<input type="password" name="password1">
58
+ <br>
59
+ <label for="password1">Password With ID ( the text here is a label for it )</label><input type="password" id="password1">
60
+ <div name="divvy">Div Text</div>
61
+ </body>
62
+ </html>