watir-classic 3.0.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (206) hide show
  1. data/.gitignore +7 -0
  2. data/.gitmodules +3 -0
  3. data/.rspec +1 -0
  4. data/.yardopts +5 -0
  5. data/CHANGES +20 -10
  6. data/CONTRIBUTORS.txt +55 -0
  7. data/Gemfile +3 -0
  8. data/Gemfile.lock +78 -0
  9. data/README.rdoc +8 -14
  10. data/Rakefile +32 -0
  11. data/VERSION +1 -1
  12. data/lib/watir-classic.rb +0 -1
  13. data/lib/watir-classic/IEDialog/IEDialog.cpp +225 -0
  14. data/lib/watir-classic/IEDialog/IEDialog.h +15 -0
  15. data/lib/watir-classic/IEDialog/IEDialog.vcproj +159 -0
  16. data/lib/watir-classic/IEDialog/ReadMe.txt +40 -0
  17. data/lib/watir-classic/IEDialog/stdafx.cpp +8 -0
  18. data/lib/watir-classic/IEDialog/stdafx.h +21 -0
  19. data/lib/watir-classic/browser.rb +1 -1
  20. data/lib/watir-classic/container.rb +4 -33
  21. data/lib/watir-classic/core.rb +1 -3
  22. data/lib/watir-classic/dialogs/alert.rb +46 -0
  23. data/lib/watir-classic/dialogs/file_field.rb +1 -0
  24. data/lib/watir-classic/drag_and_drop_helper.rb +18 -6
  25. data/lib/watir-classic/element.rb +0 -2
  26. data/lib/watir-classic/ext/json2.js +487 -0
  27. data/lib/watir-classic/ie-class.rb +10 -164
  28. data/lib/watir-classic/ie.rb +2 -0
  29. data/lib/watir-classic/input_elements.rb +1 -1
  30. data/lib/watir-classic/modal_dialog.rb +1 -7
  31. data/lib/watir-classic/module.rb +1 -10
  32. data/lib/watir-classic/non_control_elements.rb +11 -0
  33. data/lib/watir-classic/page-container.rb +22 -24
  34. data/lib/watir-classic/screenshot.rb +33 -0
  35. data/lib/watir-classic/win32ole/1.8.7/win32ole.patch +56 -0
  36. data/lib/watir-classic/win32ole/1.9.3/win32ole.patch +63 -0
  37. data/lib/watir-classic/win32ole/build_notes.txt +18 -0
  38. data/lib/watir-classic/win32ole/history.txt +88 -0
  39. data/spec/browser_spec.rb +34 -0
  40. data/spec/implementation.rb +18 -0
  41. data/watir-classic.gemspec +40 -0
  42. data/watir.gif +0 -0
  43. metadata +159 -192
  44. data/bin/watir-console +0 -5
  45. data/lib/watir-classic/assertions.rb +0 -44
  46. data/lib/watir-classic/dialogs/javascript.rb +0 -43
  47. data/lib/watir-classic/irb-history.rb +0 -31
  48. data/lib/watir-classic/logger.rb +0 -19
  49. data/lib/watir-classic/screen_capture.rb +0 -115
  50. data/lib/watir-classic/testcase.rb +0 -97
  51. data/lib/watir-classic/waiter.rb +0 -98
  52. data/rakefile.rb +0 -54
  53. data/unittests/all_tests.rb +0 -10
  54. data/unittests/buttons_xpath_test.rb +0 -68
  55. data/unittests/checkbox_test.rb +0 -163
  56. data/unittests/checkbox_xpath_test.rb +0 -106
  57. data/unittests/click_no_wait_test.rb +0 -23
  58. data/unittests/close_all_test.rb +0 -17
  59. data/unittests/core_tests.rb +0 -17
  60. data/unittests/css_selector_test.rb +0 -44
  61. data/unittests/css_test.rb +0 -38
  62. data/unittests/dialog_test.rb +0 -64
  63. data/unittests/div2_xpath_test.rb +0 -21
  64. data/unittests/div_test.rb +0 -170
  65. data/unittests/div_xpath_test.rb +0 -95
  66. data/unittests/document_standards.rb +0 -63
  67. data/unittests/element_collection_indexes_test.rb +0 -57
  68. data/unittests/element_collections_test.rb +0 -100
  69. data/unittests/element_test.rb +0 -47
  70. data/unittests/errorchecker_test.rb +0 -31
  71. data/unittests/filefield_test.rb +0 -43
  72. data/unittests/filefield_xpath_test.rb +0 -35
  73. data/unittests/form_test.rb +0 -282
  74. data/unittests/form_xpath_test.rb +0 -254
  75. data/unittests/frame_test.rb +0 -165
  76. data/unittests/google_form_test.rb +0 -15
  77. data/unittests/html/JavascriptClick.html +0 -39
  78. data/unittests/html/blankpage.html +0 -11
  79. data/unittests/html/buttons1.html +0 -40
  80. data/unittests/html/checkboxes1.html +0 -89
  81. data/unittests/html/click_no_wait.html +0 -14
  82. data/unittests/html/complex_table.html +0 -35
  83. data/unittests/html/cssTest.html +0 -42
  84. data/unittests/html/depot_store.html +0 -59
  85. data/unittests/html/div.html +0 -92
  86. data/unittests/html/div_xml.html +0 -21
  87. data/unittests/html/fileupload.html +0 -44
  88. data/unittests/html/formTest1.html +0 -38
  89. data/unittests/html/forms2.html +0 -44
  90. data/unittests/html/forms3.html +0 -131
  91. data/unittests/html/forms4.html +0 -26
  92. data/unittests/html/frame_buttons.html +0 -4
  93. data/unittests/html/frame_links.html +0 -4
  94. data/unittests/html/frame_multi.html +0 -5
  95. data/unittests/html/google_india.html +0 -119
  96. data/unittests/html/ie7_document_standards.html +0 -9
  97. data/unittests/html/ie8_document_standards.html +0 -9
  98. data/unittests/html/ie9_document_standards.html +0 -9
  99. data/unittests/html/iframe.html +0 -3
  100. data/unittests/html/iframeTest.html +0 -17
  101. data/unittests/html/iframeTest1.html +0 -7
  102. data/unittests/html/iframeTest2.html +0 -5
  103. data/unittests/html/images/1.gif +0 -0
  104. data/unittests/html/images/2.GIF +0 -0
  105. data/unittests/html/images/3.GIF +0 -0
  106. data/unittests/html/images/button.jpg +0 -0
  107. data/unittests/html/images/circle.jpg +0 -0
  108. data/unittests/html/images/map.GIF +0 -0
  109. data/unittests/html/images/map2.gif +0 -0
  110. data/unittests/html/images/minus.GIF +0 -0
  111. data/unittests/html/images/originaltriangle.jpg +0 -0
  112. data/unittests/html/images/plus.gif +0 -0
  113. data/unittests/html/images/square.jpg +0 -0
  114. data/unittests/html/images/triangle.jpg +0 -0
  115. data/unittests/html/images1.html +0 -65
  116. data/unittests/html/javascriptevents.html +0 -33
  117. data/unittests/html/link_pass.html +0 -11
  118. data/unittests/html/links1.html +0 -37
  119. data/unittests/html/links2.html +0 -11
  120. data/unittests/html/links_multi.html +0 -12
  121. data/unittests/html/list_matters.html +0 -720
  122. data/unittests/html/lists.html +0 -18
  123. data/unittests/html/map_test.html +0 -30
  124. data/unittests/html/modal_dialog.html +0 -10
  125. data/unittests/html/modal_dialog_launcher.html +0 -12
  126. data/unittests/html/multiple_specifiers.html +0 -64
  127. data/unittests/html/nestedFrames.html +0 -6
  128. data/unittests/html/new_browser.html +0 -17
  129. data/unittests/html/pass.html +0 -13
  130. data/unittests/html/popups1.html +0 -59
  131. data/unittests/html/pre.html +0 -29
  132. data/unittests/html/quirks_document_standards.html +0 -8
  133. data/unittests/html/radioButtons1.html +0 -71
  134. data/unittests/html/select_tealeaf.html +0 -54
  135. data/unittests/html/selectboxes1.html +0 -52
  136. data/unittests/html/simple_table.html +0 -25
  137. data/unittests/html/simple_table_buttons.html +0 -104
  138. data/unittests/html/simple_table_columns.html +0 -75
  139. data/unittests/html/table1.html +0 -179
  140. data/unittests/html/tableCell_using_xpath.html +0 -19
  141. data/unittests/html/table_and_tablerow_to_a.html +0 -174
  142. data/unittests/html/textarea.html +0 -30
  143. data/unittests/html/textfields1.html +0 -100
  144. data/unittests/html/textsearch.html +0 -44
  145. data/unittests/html/wallofcheckboxes.html +0 -1003
  146. data/unittests/html/xpath_nbsp.html +0 -11
  147. data/unittests/html/zeroindex.html +0 -11
  148. data/unittests/ie_exists_test.rb +0 -16
  149. data/unittests/ie_mock.rb +0 -94
  150. data/unittests/ie_test.rb +0 -54
  151. data/unittests/images_test.rb +0 -156
  152. data/unittests/images_xpath_test.rb +0 -90
  153. data/unittests/index_specifier_test.rb +0 -31
  154. data/unittests/js_events_test.rb +0 -31
  155. data/unittests/links_multi_test.rb +0 -34
  156. data/unittests/links_test.rb +0 -131
  157. data/unittests/links_xpath_test.rb +0 -38
  158. data/unittests/lists_test.rb +0 -23
  159. data/unittests/map_test.rb +0 -98
  160. data/unittests/minmax_test.rb +0 -37
  161. data/unittests/navigate_test.rb +0 -38
  162. data/unittests/nbsp_xpath_test.rb +0 -16
  163. data/unittests/no_wait_test.rb +0 -28
  164. data/unittests/non_core_tests.rb +0 -12
  165. data/unittests/other/all_tests_concurrent.rb +0 -57
  166. data/unittests/other/navigate_exception_test.rb +0 -24
  167. data/unittests/other/rexml_unit_test.rb +0 -27
  168. data/unittests/other/screen_capture_test.rb +0 -53
  169. data/unittests/other/testcase_method_order_test.rb +0 -36
  170. data/unittests/other/testcase_verify_test.rb +0 -25
  171. data/unittests/other/wait_until_test.rb +0 -102
  172. data/unittests/pagecontainstext_test.rb +0 -69
  173. data/unittests/parent_child_test.rb +0 -27
  174. data/unittests/perf_test.rb +0 -20
  175. data/unittests/pre_test.rb +0 -49
  176. data/unittests/radios_test.rb +0 -181
  177. data/unittests/radios_xpath_test.rb +0 -100
  178. data/unittests/security_setting_test.rb +0 -24
  179. data/unittests/selectbox_test.rb +0 -144
  180. data/unittests/selectbox_xpath_test.rb +0 -102
  181. data/unittests/setup.rb +0 -69
  182. data/unittests/speed_settings_test.rb +0 -67
  183. data/unittests/table_cell_using_xpath_test.rb +0 -34
  184. data/unittests/table_test.rb +0 -296
  185. data/unittests/table_xpath_test.rb +0 -109
  186. data/unittests/test_tests.rb +0 -9
  187. data/unittests/textarea_test.rb +0 -92
  188. data/unittests/textarea_xpath_test.rb +0 -77
  189. data/unittests/textfield_for_ch_char_test.rb +0 -32
  190. data/unittests/textfields_test.rb +0 -184
  191. data/unittests/textfields_xpath_test.rb +0 -110
  192. data/unittests/version_test.rb +0 -15
  193. data/unittests/win32ole_so_test.rb +0 -35
  194. data/unittests/window_tests.rb +0 -10
  195. data/unittests/windows/attach_to_existing_window_test.rb +0 -52
  196. data/unittests/windows/attach_to_new_window_test.rb +0 -74
  197. data/unittests/windows/close_window_test.rb +0 -20
  198. data/unittests/windows/frame_links_test.rb +0 -23
  199. data/unittests/windows/ie-each_test.rb +0 -46
  200. data/unittests/windows/modal_dialog_test.rb +0 -95
  201. data/unittests/windows/new_process_test.rb +0 -24
  202. data/unittests/windows/new_test.rb +0 -58
  203. data/unittests/windows/open_close_test.rb +0 -19
  204. data/unittests/windows/send_keys_test.rb +0 -26
  205. data/unittests/xpath_tests.rb +0 -11
  206. data/watir-rdoc.rb +0 -7
@@ -1,11 +0,0 @@
1
- <!doctype html>
2
- <head>
3
- <title>
4
- Test page for buttons
5
- </title>
6
- </head>
7
- <body>
8
- <br>
9
- Blank page to fill in the frames
10
- </body>
11
- </html>
@@ -1,40 +0,0 @@
1
- <!doctype html>
2
- <head>
3
- <title>
4
- Test page for buttons
5
- </title>
6
- <link rel="stylesheet" type="text/css" href="watir_unit_tests.css">
7
- </head>
8
- <body>
9
- <br>
10
- <br>
11
- <table>
12
- <tr>
13
- <td>
14
- <form name = test1 method = get action = pass.html>
15
-
16
- <input type = button class="italic_button" name = b1 id = b2 value = "Click Me" onClick="javascript:document.location='pass.html';" title = "this is button1">
17
- <br><input type = button name = b4 id=b5 value = "Disabled Button" onClick="javascript:document.location='fail.html';" disabled>
18
-
19
- </form>
20
- <td> The top button is for testing buttons with names
21
- <br> The second button is used for testing disabled buttons
22
-
23
-
24
- <tr>
25
- <td>
26
- <form name = test2 method = get action = pass2.html>
27
- <br><input type = submit value=Submit>
28
- </form>
29
- <td> This button is a submit ( the others are buttons)
30
-
31
- <tr>
32
- <td>
33
- <form name = test3 method = get action = pass3.html>
34
- <br><input type = image src=images/button.jpg name =sub3>
35
- </form>
36
- <td> This button is an image. It should behave the same as a submit
37
-
38
-
39
-
40
- </html>
@@ -1,89 +0,0 @@
1
- <!doctype html>
2
- <head>
3
- <title>
4
- Test page for Check Boxes
5
- </title>
6
-
7
- <script>
8
-
9
- function setButtonState( )
10
- {
11
- var button = document.getElementById('foo');
12
- if (button.disabled ){
13
-
14
- button.disabled = false
15
- } else {
16
- button.disabled = true
17
- }
18
- }
19
- </script>
20
-
21
- <link rel="stylesheet" type="text/css" href="watir_unit_tests.css">
22
-
23
- </head>
24
- <body>
25
- <br>
26
- <br>
27
- <table>
28
- <tr>
29
- <td>
30
- CheckBox 1 <input type = checkbox name = box1 class=check_box_style >
31
- </td>
32
- </tr>
33
-
34
- <tr>
35
- <td>
36
- Disabled<input type = checkbox name = box2 disabled>
37
- </td>
38
- </tr>
39
- <tr>
40
- <td>
41
- Set<input type = checkbox name = box3 checked>
42
- </td>
43
- </tr>
44
- <tr><td>
45
- These 2 have ids
46
- <br>
47
- id= box4 value=1 <input type ='checkbox' id='box4' name='verify1' value='1' checked>
48
- <br>
49
- id = box4a value=2 <input type = 'checkbox' id = 'box4a' name= 'verify2' value = '2' checked>
50
- </tr>
51
- <br>
52
- <tr>
53
- These boxes have the same name, but different values
54
- </tr>
55
-
56
- <tr><td>
57
- Name = box4 value=1 <input type = checkbox name = box4 value = 1 checked>
58
- </tr>
59
- <tr><td>
60
- Name = box4 value=2 <input type = checkbox name = box4 value = 2>
61
- </tr>
62
- <tr><td>
63
- Name = box4 value=3 <input type = checkbox name = box4 value = 3>
64
- </tr>
65
- <tr><td>
66
- Name = box4 value=4 <input type = checkbox name = box4 value = 4>
67
- </tr>
68
- <tr><td>
69
- Name = box4 value=5 <input type = checkbox name = box4 value = 5 disabled title="box4-value5">
70
- </tr>
71
-
72
- <tr><td>
73
- Name = box5 value=1 <input type = checkbox name = box5 value = 1 onClick='javascript:setButtonState( )'>
74
- </tr>
75
-
76
- <tr><td>
77
- <input type = button id = foo value = foo disabled=disabled ><td> This button is used with checkbox box5. This button is enabled if the checkbox is enabled
78
- </tr>
79
-
80
- <tr><td>
81
- Milk<input type = checkbox name = "box6" value ="Milk">
82
- <br>
83
- Tea<input type = checkbox name = "box6" value ="Tea">
84
- </tr>
85
-
86
-
87
- </table>
88
- </body>
89
- </html>
@@ -1,14 +0,0 @@
1
- <!doctype html>
2
- <head>
3
- <title>Click No Wait Tests</title>
4
- <script type="text/javascript">
5
- function showMessage() {
6
- document.getElementById('div1').innerHTML = "message!";
7
- }
8
- </script>
9
- </head>
10
-
11
- <div id="div1">nothing</div>
12
- <a id="link1" href="javascript:void(0)" onclick="javascript:showMessage();">Click me!</a>
13
-
14
- </html>
@@ -1,35 +0,0 @@
1
- <!doctype html>
2
- <head>
3
- <title>
4
- Test page for Tables
5
- </title>
6
- </head>
7
- <body>
8
- <br>
9
- <br>
10
-
11
- The table below has 2 smaller tables, one on each row
12
- <br>
13
- red is the main table
14
- green is a table and grey is also a table
15
-
16
- <table border =1 bgcolor=red>
17
- <tr>
18
- <td><table bgcolor=grey ><tr>
19
- <td> subtable1 Row 1 Col1 </td>
20
- <td> subtable1 Row 1 Col2 </td>
21
- </tr>
22
- </table>
23
- </td>
24
- </tr>
25
- <tr>
26
- <td><table bgcolor=silver><tr>
27
- <td> subtable2 Row 1 Col1 </td>
28
- <td> subtable2 Row 1 Col2 </td>
29
- </tr>
30
- </table>
31
- </td>
32
- </tr>
33
- </table>
34
- </body>
35
- </html>
@@ -1,42 +0,0 @@
1
- <!doctype html>
2
- <head>
3
- <title>Test Hidden Message</title>
4
-
5
- <style type="text/css">
6
- div.hide { display: none; margin-left: auto; margin-right: auto; }
7
- div.show { display: block; margin-left: auto; margin-right: auto; }
8
- #Container { background-color: #f00; color: #fff; width: 300px; height: 300px; padding-top: 100px; text-align: center; font: bold 2em Verdana, Helvetica, sans-serif; }
9
-
10
- </style>
11
-
12
- <script type="text/javascript">
13
- function show(divId)
14
- {
15
- var divContainer = document.getElementById("Container");
16
- var divArr = divContainer.getElementsByTagName("div");
17
- for (var i = 0; i < divArr.length; i++)
18
- {
19
- if ( divArr[i].id == divId )
20
- {
21
- divArr[i].className = "show";
22
- }
23
- else
24
- {
25
- divArr[i].className = "hide";
26
- }
27
- }
28
- }
29
- </script>
30
- </head>
31
-
32
- <body>
33
- <div id="Container">
34
- <div id="successError" class="hide">Success!</div><div id="failureError" class="hide">Failure!</div>
35
- </div>
36
- <form style="width: 300px; text-align: center;">
37
- <p>Click on a button to display a message.</p>
38
- <input type="button" name="success" value="Success" onclick="show( this.name + 'Error' );" />
39
- <input type="button" name="failure" value="Failure" onclick="show( this.name + 'Error' );" />
40
- </form>
41
- </body>
42
- </html>
@@ -1,59 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
- <!-- saved from url=(0027)http://localhost:3000/store -->
3
- <!--
4
- ! Excerpted from "Agile Web Development with Rails"
5
- ! We make no guarantees that this code is fit for any purpose.
6
- ! Visit http://www.pragmaticprogrammer.com for more book information.
7
- --><!doctype html><HEAD><TITLE>Pragprog Books Online Store</TITLE>
8
- <META http-equiv=Content-Type content="text/html; charset=utf-8"><LINK media=all
9
- href="depot_store_files/scaffold.css" type=text/css rel=Stylesheet><LINK
10
- media=all href="depot_store_files/depot.css" type=text/css rel=Stylesheet>
11
- <META content="MSHTML 6.00.2900.2995" name=GENERATOR></HEAD>
12
- <BODY>
13
- <DIV id=banner><IMG src="depot_store_files/logo.png"> Pragmatic Bookshelf </DIV>
14
- <DIV id=columns>
15
- <DIV id=side><A href="http://www..../">Home</A><BR><A
16
- href="http://www..../faq">Questions</A><BR><A
17
- href="http://www..../news">News</A><BR><A
18
- href="http://www..../contact">Contact</A><BR></DIV>
19
- <DIV id=main><!--
20
- ! Excerpted from "Agile Web Development with Rails"
21
- ! We make no guarantees that this code is fit for any purpose.
22
- ! Visit http://www.pragmaticprogrammer.com for more book information.
23
- -->
24
- <DIV class=catalogentry><IMG src="depot_store_files/sk_auto_small.jpg">
25
- <H3>Pragmatic Project Automation</H3>
26
- <P><EM>Pragmatic Project Automation</EM> shows you how to improve the
27
- consistency and repeatability of your project's procedures using automation to
28
- reduce risk and errors. </P>
29
- <P>Simply put, we're going to put this thing called a computer to work for you
30
- doing the mundane (but important) project stuff. That means you'll have more
31
- time and energy to do the really exciting---and difficult---stuff, like writing
32
- quality code. </P><SPAN class=catalogprice>$29.95</SPAN> <A class=addtocart
33
- href="http://localhost:3000/store/add_to_cart/4">Add to Cart</A><BR></DIV>
34
- <DIV class=separator>&nbsp;</DIV>
35
- <DIV class=catalogentry><IMG src="depot_store_files/sk_svn_small.jpg">
36
- <H3>Pragmatic Version Control</H3>
37
- <P>This book is a recipe-based approach to using Subversion that will get you up
38
- and running quickly---and correctly. All projects need version control: it's a
39
- foundational piece of any project's infrastructure. Yet half of all project
40
- teams in the U.S. don't use any version control at all. Many others don't use it
41
- well, and end up experiencing time-consuming problems. </P><SPAN
42
- class=catalogprice>$29.95</SPAN> <A class=addtocart
43
- href="http://localhost:3000/store/add_to_cart/12">Add to Cart</A><BR></DIV>
44
- <DIV class=separator>&nbsp;</DIV>
45
- <DIV class=catalogentry><IMG src="depot_store_files/sk_utc_small.jpg">
46
- <H3>Pragmatic Unit Testing (C#)</H3>
47
- <P>Pragmatic programmers use feedback to drive their development and personal
48
- processes. The most valuable feedback you can get while coding comes from unit
49
- testing. </P>
50
- <P>Without good tests in place, coding can become a frustrating game of
51
- "whack-a-mole." That's the carnival game where the player strikes at a
52
- mechanical mole; it retreats and another mole pops up on the opposite side of
53
- the field. The moles pop up and down so fast that you end up flailing your
54
- mallet helplessly as the moles continue to pop up where you least expect them.
55
- </P><SPAN class=catalogprice>$29.95</SPAN> <A class=addtocart
56
- href="http://localhost:3000/store/add_to_cart/11">Add to Cart</A><BR></DIV>
57
- <DIV class=separator>&nbsp;</DIV><A
58
- href="http://localhost:3000/store/display_cart">Show my cart</A>
59
- </DIV></DIV></BODY></HTML>
@@ -1,92 +0,0 @@
1
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <!doctype html>
3
- <head>
4
- <title>Test page for Div</title>
5
-
6
- <link rel="stylesheet" type="text/css" href="watir_unit_tests.css">
7
-
8
-
9
- </head>
10
- <body>
11
- <br>
12
- <br>
13
- <div id = div1 title = "Test1" >This text is in a div with an id of div1 and title of test1</div>
14
- <br>
15
- <div id = div2 class="blueText">This text is in a div with an id of div2</div>
16
- <br>
17
- <div id = div3 onClick = "javascript:document.all.text1.value=parseInt(document.all.text1.value)+1">This div has an onClick that increments text1</div>
18
- <div id = div4 onClick = "javascript:document.all.text1.value=parseInt(document.all.text1.value)-1">This div has an onClick that decrements text1</div>
19
-
20
- This input field gets its value from div3. Its name is text1<input type = text name = text1 value = 0>
21
- <br>
22
- <br> The following DIVS are used to test buttons and other objects in a div
23
-
24
- <div id=buttons1>
25
- <input type=button name=b1 value="Button 1" onClick="javascript:document.all.div_text1.value='button1';">
26
- </div>
27
- <div id=buttons2>
28
- <input type=button name=b2 value="Button 2" onClick="javascript:document.all.div_text1.value='button2';">
29
- <input type=button name=b3 value="Button 3" onClick="javascript:document.all.div_text1.value='button3';">
30
- </div>
31
-
32
- <div id=text_fields1>
33
- Text1: <input type=textarea name=div_text1 >&nbsp;&nbsp;&nbsp;&nbsp; Text2: <input type=text name=div_text2 >&nbsp;&nbsp;&nbsp;&nbsp; Text3: <input type=text name=div_text3>
34
- </div>
35
-
36
- <div id=hasImages>
37
- <img src = images/triangle.jpg id=img1>
38
- <img src = images/square.jpg id=img2>
39
- <img src = images/circle.jpg id=circle>
40
- </div>
41
-
42
-
43
-
44
-
45
- <br>
46
- <hr>
47
- Span Tests
48
- <br>
49
- <br>
50
- <span id = span1 title = "Test2" >This text is in a span with an id of span1 and title of test2</span>
51
- <br>
52
- <span id = span2 class="blueText">This text is in a span with an id of span2</span>
53
- <br>
54
- <span id = span3 onClick = "javascript:document.all.text2.value=parseInt(document.all.text2.value)+1">This span has an onClick that increments text2</span>
55
- <br>
56
- <span id = span4 onClick = "javascript:document.all.text2.value=parseInt(document.all.text2.value)-1">This span has an onClick that decrements text2</span>
57
- <br>
58
- This input field gets its value from span3. Its name is text1<input type = text name = text2 value = 0>
59
-
60
- <br>
61
- <br> The following spans are used to test buttons and other objects in a span
62
- <br>
63
- <span id=buttons1>
64
- <input type=button name=b1 value="Button 1" onClick="javascript:document.all.span_text1.value='button1';">
65
- </span>
66
- <br>
67
- <span id=buttons2>
68
- <input type=button name=b2 value="Button 2" onClick="javascript:document.all.span_text1.value='button2';">
69
- <input type=button name=b3 value="Button 3" onClick="javascript:document.all.span_text1.value='button3';">
70
- </span>
71
- <br>
72
- <span id=text_fields1>
73
- Text1: <input type=text name=span_text1 >&nbsp;&nbsp;&nbsp;&nbsp; Text2: <input type=text name=span_text2 >&nbsp;&nbsp;&nbsp;&nbsp; Text3: <input type=text name=span_text3>
74
- </span>
75
-
76
-
77
-
78
- <br>
79
- <br>
80
- <p id = number1 title = "P_tag_1" class=redText >This text is in a p with an id of number1 and title of P_tag_1</p>
81
- <br>
82
- <p id = number2 title = "P_tag_2" class=italicText >This text is in a p with an id of number2</p>
83
- <br>
84
- <p id = number3 title = "test_3" class=blueText >This text is in a p with an id of number3</p>
85
-
86
-
87
-
88
-
89
-
90
-
91
- </body>
92
- </html>
@@ -1,21 +0,0 @@
1
- <!doctype html>
2
- <head>
3
- <title>Test</title>
4
- </head>
5
-
6
- <XML ID="Tags">
7
- <Data>
8
- <ButtonList>List</ButtonList>
9
- <ButtonCreate>Create</ButtonCreate>
10
- </Data>
11
- </XML>
12
-
13
-
14
- <body bgcolor="#ffff80">
15
- This is the main portal screen
16
- <div class="ButtonAction">
17
- <a href="missing.html" ONMOUSEOVER="Gen_img_act('ButtonList','')" ONMOUSEOUT="Gen_img_inact('ButtonList','')" NAME="ButtonList" ID="ButtonList" style="text-decoration: none; position:relative"><span ID="ButtonListSpan" class="ButtonLabelOn" style="position:absolute; right:25; text-align: right; top:2; z-index:2; width:60px; height:20px; cursor:hand" ONMOUSEOVER="Gen_img_act('ButtonList','')" ONMOUSEOUT="Gen_img_inact('ButtonList','')" datasrc="#Tags" datafld="ButtonList"></span></a><br>
18
- <a href="missing2.html" ONMOUSEOVER="Gen_img_act('ButtonCreate','')" ONMOUSEOUT="Gen_img_inact('ButtonCreate','')" NAME="ButtonCreate" ID="ButtonCreate" style="text-decoration: none; position:relative"><span ID="ButtonCreateSpan" class="ButtonLabelOn" style="position:absolute; right:25; text-align: right; top:2; z-index:2; width:60px; height:20px; cursor:hand" ONMOUSEOVER="Gen_img_act('ButtonCreate','')" ONMOUSEOUT="Gen_img_inact('ButtonCreate','')" datasrc="#Tags" datafld="ButtonCreate"></span></a>
19
- </div>
20
- </body>
21
- </html>
@@ -1,44 +0,0 @@
1
- <!doctype html>
2
- <head>
3
- <title>
4
- Test page for File Fields
5
- </title>
6
- </head>
7
- <body>
8
- <br>
9
- <br>
10
- <table>
11
-
12
- <tr>
13
- <td>
14
- <input type = file name = file1 value = 'fileupload.html' class='file_class' >number 1
15
- <br>
16
- <input type = file id= file2 value = 'fileupload.html'>
17
-
18
-
19
- <td>These file fields are not in a form
20
-
21
-
22
- <tr>
23
- <td>
24
- <input type = file name = disabled value = 'fileupload.html' disabled>
25
- <td>
26
- Disabled file box
27
-
28
- <form name = test1 method = get action = pass.html>
29
- <tr>
30
- <td>
31
- <input type = file name = file3 value = 'fileupload.html'>
32
- <td> This is used in file1 in form test1
33
-
34
- <input name="upload" type="submit" value="upload">
35
- </form>
36
- </table>
37
-
38
- These file fields are used to test :beforeText and :afterText
39
- <br>
40
- <input type = file name = beforetest value = 'fileupload.html'>This Text After
41
- <br>
42
- This Text Before<input type = file name=aftertest value = 'fileupload.html'>
43
-
44
- </html>