celerity 0.0.4 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. data/History.txt +33 -0
  2. data/README.txt +19 -9
  3. data/Rakefile +9 -3
  4. data/lib/celerity.rb +39 -39
  5. data/lib/celerity/browser.rb +538 -153
  6. data/lib/celerity/clickable_element.rb +48 -7
  7. data/lib/celerity/collections.rb +155 -131
  8. data/lib/celerity/container.rb +766 -385
  9. data/lib/celerity/default_viewer.rb +10 -0
  10. data/lib/celerity/disabled_element.rb +19 -2
  11. data/lib/celerity/element.rb +152 -83
  12. data/lib/celerity/element_collection.rb +106 -0
  13. data/lib/celerity/element_locator.rb +89 -66
  14. data/lib/celerity/elements/button.rb +23 -13
  15. data/lib/celerity/elements/file_field.rb +17 -5
  16. data/lib/celerity/elements/form.rb +21 -16
  17. data/lib/celerity/elements/frame.rb +75 -53
  18. data/lib/celerity/elements/image.rb +76 -63
  19. data/lib/celerity/elements/label.rb +4 -2
  20. data/lib/celerity/elements/link.rb +30 -18
  21. data/lib/celerity/elements/meta.rb +6 -0
  22. data/lib/celerity/{non_control_elements.rb → elements/non_control_elements.rb} +106 -76
  23. data/lib/celerity/elements/option.rb +16 -2
  24. data/lib/celerity/elements/radio_check.rb +55 -20
  25. data/lib/celerity/elements/select_list.rb +65 -29
  26. data/lib/celerity/elements/table.rb +141 -94
  27. data/lib/celerity/elements/table_cell.rb +13 -6
  28. data/lib/celerity/elements/{table_body.rb → table_elements.rb} +20 -8
  29. data/lib/celerity/elements/table_row.rb +23 -7
  30. data/lib/celerity/elements/text_field.rb +89 -33
  31. data/lib/celerity/exception.rb +77 -41
  32. data/lib/celerity/extra/method_generator.rb +42 -24
  33. data/lib/celerity/htmlunit.rb +49 -0
  34. data/lib/celerity/htmlunit/commons-collections-3.2.1.jar +0 -0
  35. data/lib/celerity/htmlunit/htmlunit-2.5-SNAPSHOT.jar +0 -0
  36. data/lib/celerity/htmlunit/htmlunit-core-js-2.5-SNAPSHOT.jar +0 -0
  37. data/lib/celerity/htmlunit/nekohtml-1.9.12-20090308.130127-11.jar +0 -0
  38. data/lib/celerity/htmlunit/serializer-2.7.1.jar +0 -0
  39. data/lib/celerity/htmlunit/xalan-2.7.1.jar +0 -0
  40. data/lib/celerity/htmlunit/xml-apis-1.3.04.jar +0 -0
  41. data/lib/celerity/identifier.rb +3 -2
  42. data/lib/celerity/input_element.rb +5 -5
  43. data/lib/celerity/listener.rb +135 -0
  44. data/lib/celerity/resources/no_viewer.png +0 -0
  45. data/lib/celerity/util.rb +88 -0
  46. data/lib/celerity/version.rb +4 -3
  47. data/lib/celerity/watir_compatibility.rb +35 -25
  48. data/tasks/jar.rake +57 -0
  49. metadata +35 -142
  50. data.tar.gz.sig +0 -0
  51. data/Manifest.txt +0 -150
  52. data/lib/celerity/element_collections.rb +0 -54
  53. data/lib/celerity/element_map.rb +0 -51
  54. data/lib/celerity/elements/table_footer.rb +0 -30
  55. data/lib/celerity/elements/table_header.rb +0 -30
  56. data/lib/celerity/htmlunit/commons-collections-3.2.jar +0 -0
  57. data/lib/celerity/htmlunit/download.sh +0 -23
  58. data/lib/celerity/htmlunit/htmlunit-2.2.jar +0 -0
  59. data/lib/celerity/htmlunit/htmlunit-core-js-2.2.jar +0 -0
  60. data/lib/celerity/htmlunit/nekohtml-1.9.8.jar +0 -0
  61. data/lib/celerity/htmlunit/xalan-2.7.0.jar +0 -0
  62. data/lib/celerity/htmlunit/xml-apis-1.0.b2.jar +0 -0
  63. data/spec/area_spec.rb +0 -97
  64. data/spec/areas_spec.rb +0 -40
  65. data/spec/browser_spec.rb +0 -266
  66. data/spec/button_spec.rb +0 -227
  67. data/spec/buttons_spec.rb +0 -39
  68. data/spec/checkbox_spec.rb +0 -302
  69. data/spec/checkboxes_spec.rb +0 -38
  70. data/spec/div_spec.rb +0 -207
  71. data/spec/divs_spec.rb +0 -39
  72. data/spec/element_spec.rb +0 -79
  73. data/spec/filefield_spec.rb +0 -123
  74. data/spec/filefields_spec.rb +0 -40
  75. data/spec/form_spec.rb +0 -59
  76. data/spec/forms_spec.rb +0 -41
  77. data/spec/frame_spec.rb +0 -121
  78. data/spec/frames_spec.rb +0 -71
  79. data/spec/hidden_spec.rb +0 -127
  80. data/spec/hiddens_spec.rb +0 -39
  81. data/spec/hn_spec.rb +0 -104
  82. data/spec/hns_spec.rb +0 -45
  83. data/spec/html/2000_spans.html +0 -2009
  84. data/spec/html/bug_duplicate_attributes.html +0 -14
  85. data/spec/html/bug_javascript_001.html +0 -11
  86. data/spec/html/form_js_bug.html +0 -11
  87. data/spec/html/forms_with_input_elements.html +0 -114
  88. data/spec/html/frame_1.html +0 -17
  89. data/spec/html/frame_2.html +0 -16
  90. data/spec/html/frames.html +0 -11
  91. data/spec/html/iframes.html +0 -12
  92. data/spec/html/images.html +0 -27
  93. data/spec/html/images/1.gif +0 -0
  94. data/spec/html/images/2.gif +0 -0
  95. data/spec/html/images/3.gif +0 -0
  96. data/spec/html/images/button.jpg +0 -0
  97. data/spec/html/images/circle.jpg +0 -0
  98. data/spec/html/images/map.gif +0 -0
  99. data/spec/html/images/map2.gif +0 -0
  100. data/spec/html/images/minus.gif +0 -0
  101. data/spec/html/images/originaltriangle.jpg +0 -0
  102. data/spec/html/images/plus.gif +0 -0
  103. data/spec/html/images/square.jpg +0 -0
  104. data/spec/html/images/triangle.jpg +0 -0
  105. data/spec/html/invalid_js.html +0 -11
  106. data/spec/html/latin1_text.html +0 -17
  107. data/spec/html/non_control_elements.html +0 -115
  108. data/spec/html/simple_ajax.html +0 -22
  109. data/spec/html/tables.html +0 -119
  110. data/spec/html/utf8_text.html +0 -15
  111. data/spec/htmlunit_spec.rb +0 -26
  112. data/spec/image_spec.rb +0 -220
  113. data/spec/images_spec.rb +0 -39
  114. data/spec/label_spec.rb +0 -79
  115. data/spec/labels_spec.rb +0 -40
  116. data/spec/li_spec.rb +0 -139
  117. data/spec/link_spec.rb +0 -189
  118. data/spec/links_spec.rb +0 -43
  119. data/spec/lis_spec.rb +0 -40
  120. data/spec/map_spec.rb +0 -102
  121. data/spec/maps_spec.rb +0 -40
  122. data/spec/meta_spec.rb +0 -8
  123. data/spec/ol_spec.rb +0 -87
  124. data/spec/ols_spec.rb +0 -40
  125. data/spec/option_spec.rb +0 -154
  126. data/spec/p_spec.rb +0 -171
  127. data/spec/pre_spec.rb +0 -135
  128. data/spec/pres_spec.rb +0 -40
  129. data/spec/ps_spec.rb +0 -40
  130. data/spec/radio_spec.rb +0 -299
  131. data/spec/radios_spec.rb +0 -42
  132. data/spec/select_list_spec.rb +0 -299
  133. data/spec/select_lists_spec.rb +0 -47
  134. data/spec/span_spec.rb +0 -184
  135. data/spec/spans_spec.rb +0 -64
  136. data/spec/spec.opts +0 -1
  137. data/spec/spec_helper.rb +0 -55
  138. data/spec/table_bodies_spec.rb +0 -57
  139. data/spec/table_body_spec.rb +0 -111
  140. data/spec/table_cell_spec.rb +0 -74
  141. data/spec/table_cells_spec.rb +0 -59
  142. data/spec/table_footer_spec.rb +0 -101
  143. data/spec/table_footers_spec.rb +0 -55
  144. data/spec/table_header_spec.rb +0 -101
  145. data/spec/table_headers_spec.rb +0 -55
  146. data/spec/table_row_spec.rb +0 -104
  147. data/spec/table_rows_spec.rb +0 -58
  148. data/spec/table_spec.rb +0 -160
  149. data/spec/tables_spec.rb +0 -42
  150. data/spec/text_field_spec.rb +0 -323
  151. data/spec/text_fields_spec.rb +0 -44
  152. data/spec/ul_spec.rb +0 -88
  153. data/spec/uls_spec.rb +0 -40
  154. data/spec/watir_compatibility_spec.rb +0 -260
  155. data/support/spec_server.rb +0 -73
  156. data/tasks/rspec.rake +0 -30
  157. data/tasks/specserver.rake +0 -21
  158. metadata.gz.sig +0 -0
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
- <head>
4
- <title>Duplicate attributes</title>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- </head>
7
- <body>
8
- <form action="">
9
- <fieldset>
10
- <input id="org_id" class="numeric" tabindex="1" type="text" name="org_name" id="org_name" value="" />
11
- </fieldset>
12
- </form>
13
- </body>
14
- </html>
@@ -1,11 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
2
- <html>
3
- <head>
4
- <title>java.lang.StackOverflowError</title>
5
- </head>
6
- <body>
7
- <script>
8
- document.write('<body>bug</body>');
9
- </script>
10
- </body>
11
- </html>
@@ -1,11 +0,0 @@
1
- <html>
2
- <head>
3
- <meta http-equiv="Content-type" content="text/html; charset=utf-8">
4
- <title>form javascript bug</title>
5
-
6
- </head>
7
- <form action="post_to_me" method="post" accept-charset="utf-8">
8
- <input type="text" name="some_name" value="" id="some_name">
9
- <p><input type="submit" value="Continue &rarr;" id="submit_button" onclick="javascript:;"></p>
10
- </form>
11
- </html>
@@ -1,114 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
- <head>
4
- <title>Forms with input elements</title>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- </head>
7
- <body>
8
- <h1><a href="">User administration</a></h1>
9
- <h2>Add user</h2>
10
- <form enctype="multipart/form-data" action="post_to_me" method="post" name="user_new" id="new_user" class="user">
11
- <fieldset>
12
- <legend>Personal information</legend>
13
- <label for="new_user_first_name" id="first_label">First name</label>
14
- <input name="new_user_first_name" id="new_user_first_name" class="name" /> <br />
15
- <label for="new_user_last_name">Last name</label>
16
- <input type="no_such_type" name="new_user_last_name" id="new_user_last_name" class="name" /> <br />
17
- <label for="new_user_email">Email address</label>
18
- <input type="text" name="new_user_email" id="new_user_email" /> <br />
19
- <label for="new_user_country">Country</label>
20
- <select name="new_user_country" id="new_user_country" class="country">
21
- <option class="scandinavia" value="1">Denmark</option>
22
- <option id="nor" class="scandinavia" value="2" selected="selected">Norway</option>
23
- <option class="scandinavia" value="3">Sweden</option>
24
- <option value="4">United Kingdom</option>
25
- <option value="5">USA</option>
26
- </select> <br />
27
- <label for="new_user_occupation">Occupation</label>
28
- <input type="text" name="new_user_occupation" id="new_user_occupation" value="Developer" onfocus="document.getElementById('onfocus_test').innerHTML = 'changed by onfocus event'"/> <br />
29
- <label for="new_user_species">Species</label>
30
- <input type="text" name="new_user_species" id="new_user_species" value="Homo sapiens sapiens" disabled="disabled" /> <br />
31
- <label for="new_user_code">Personal code</label>
32
- <input type="text" title="Your personal code" name="new_user_code" id="new_user_code" value="HE2FF8" readonly="readonly" /> <br />
33
- <label for="new_user_languages">Languages</label>
34
- <select name="new_user_languages" id="new_user_languages" multiple="multiple" onchange="document.getElementById('changed_language').innerHTML += 'changed language'">
35
- <option id="danish">Danish</option>
36
- <option selected="selected">English</option>
37
- <option selected="selected">Norwegian</option>
38
- <option>Swedish</option>
39
- </select> <br />
40
- <label for="new_user_portrait">Portrait</label>
41
- <input type="file" name="new_user_portrait" id="new_user_portrait" class="portrait" title="Smile!" onchange="document.getElementById('changed_language').innerHTML = 'File onchange triggered'" /> <br />
42
- <label for="new_user_portrait">Dental records</label>
43
- <input type="file" name="new_user_teeth" id="new_user_teeth" title="Smile here too!" />
44
- </fieldset>
45
- <fieldset>
46
- <legend>Login information</legend>
47
- <label for="new_user_username">Username (max 20 characters)</label>
48
- <input type="text" name="new_user_username" id="new_user_username" maxlength="20" size="20" onkeypress="var elem = document.getElementById('current_length'); elem.innerHTML = parseInt(elem.innerHTML)+1"/> <span id="current_length">0</span><br />
49
- <label for="new_user_password">Password</label>
50
- <input type="password" name="new_user_password" id="new_user_password" /> <br />
51
- <label for="new_user_role">Role</label>
52
- <select name="new_user_role" id="new_user_role" disabled="disabled">
53
- <option>Administrator</option>
54
- <option>Moderator</option>
55
- <option>Regular user</option>
56
- </select>
57
- </fieldset>
58
- <fieldset>
59
- <legend>Interests</legend>
60
- <input type="checkbox" name="new_user_interests" id="new_user_interests_books" value="books" checked="checked" /> <label for="new_user_interests_books">Books</label>
61
- <input type="checkbox" name="new_user_interests" value="bowling" /> <label>Bowling</label>
62
- <input type="checkbox" name="new_user_interests" id="new_user_interests_cars" value="cars" /> <label for="new_user_interests_cars">Cars</label>
63
- <input type="checkbox" name="new_user_interests" id="new_user_interests_dancing" value="dancing" class="fun" title="Dancing is fun!" /> <label for="new_user_interests_dancing">Dancing</label>
64
- <input type="checkbox" name="new_user_interests" id="new_user_interests_dentistry" value="dentistry" disabled="disabled" /> <label for="new_user_interests_dentistry">Dentistry</label>
65
- <input type="hidden" name="new_user_interests" id="new_user_interests_dolls" value="dolls" class="fun" />
66
- <input type="checkbox" id="new_user_interests_food" value="food" /> <label for="new_user_interests_food">Food</label>
67
- </fieldset>
68
- <fieldset>
69
- <legend>Preferences</legend>
70
- <p>Do you want to recieve our newslettter?</p>
71
- <input type="radio" name="new_user_newsletter" id="new_user_newsletter_yes" value="yes" checked="checked" class="huge" onclick="document.getElementById('wants_newsletter').innerHTML = ''"/>
72
- <label for="new_user_newsletter_yes">Yes</label>
73
- <input type="radio" name="new_user_newsletter" id="new_user_newsletter_no" value="no" title="Traitor!" onclick="document.getElementById('wants_newsletter').innerHTML = this.title" />
74
- <label for="new_user_newsletter_no">No</label>
75
- <input type="radio" name="new_user_newsletter" value="certainly" />
76
- <label>Certainly</label>
77
- <input type="radio" id="new_user_newsletter_absolutely" value="absolutely" />
78
- <label for="new_user_newsletter_absolutely">Absolutely</label>
79
- <input type="radio" name="new_user_newsletter" id="new_user_newsletter_nah" value="nah" disabled="disabled" />
80
- <label for="new_user_newsletter_nah">Nah</label>
81
- </fieldset>
82
- <fieldset>
83
- <legend>Actions</legend>
84
- <input type="submit" title="Submit the form" name="new_user_submit" id="new_user_submit" value="Submit" />
85
- <input type="reset" name="new_user_reset" id="new_user_reset" value="Reset" />
86
- <input type="button" name="new_user_button" id="new_user_button" value="Button" onclick="this.value = 'new_value_set_by_onclick_event'" />
87
- <button name="new_user_button_2">Button 2</button>
88
- <input type="image" class="image" name="new_user_image" src="images/button.jpg" alt="Submittable button" />
89
- <input type="submit" name="new_user_submit_disabled" id="disabled_button" value="Disabled" disabled="disabled" />
90
- <input type="checkbox" name="new_user_submit_disabled" id="toggle_button_checkbox" onclick="var elem = document.getElementById('disabled_button'); elem.disabled = !elem.disabled" />
91
- </fieldset>
92
- </form>
93
- <h2>Delete user</h2>
94
- <form id="delete_user" action="tables.html">
95
- <fieldset>
96
- <label for="delete_user_username">Username</label>
97
- <select name="delete_user_username" id="delete_user_username">
98
- <option>Username 1</option>
99
- <option>Username 2</option>
100
- <option onclick="elem = document.getElementById('delete_user_comment'); elem.value = 'Don\'t do it!'; elem.style.color = 'red';">Username 3</option>
101
- </select> <br />
102
- <label for="delete_user_comment">Comment</label>
103
- <textarea name="delete_user_comment" id="delete_user_comment">Default comment.</textarea> <br />
104
- <input type="submit" name="delete_user_submit" id="delete_user_submit" value="Delete" style="border: 4px solid red;" />
105
- </fieldset>
106
- </form>
107
-
108
- <!-- used for testing javascript events -->
109
- <div id="changed_language"></div>
110
- <div id="wants_newsletter"></div>
111
- <div id="onfocus_test"></div>
112
-
113
- </body>
114
- </html>
@@ -1,17 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
- <head>
4
- <title>Frame 1</title>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- </head>
7
- <body>
8
- <h1>Frame 1</h1>
9
- <p>Nam accumsan. Donec nisi pede, interdum eget, ultrices ac, vulputate vitae, nunc. Nulla lorem. Duis cursus pharetra dolor. Nulla accumsan hendrerit leo. Vivamus commodo. Nullam dignissim adipiscing est. Aliquam vitae orci in risus lobortis luctus. Ut luctus fermentum ligula. Nullam ipsum. Suspendisse sit amet nisi.</p>
10
- <form action="" method="post" name="senderForm">
11
- <fieldset>
12
- <input type="text" name="senderElement" value="send_this_value" />
13
- <input type="button" id="send" onclick="parent.frame2.document.recieverForm.recieverElement.value = document.senderForm.senderElement.value" value="Send!" />
14
- </fieldset>
15
- </form>
16
- </body>
17
- </html>
@@ -1,16 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
- <head>
4
- <title>Frame 2</title>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- </head>
7
- <body>
8
- <h1>Frame 2</h1>
9
- <p>Vestibulum dignissim mauris id tellus. Nulla volutpat bibendum ante. Nam malesuada, lacus vel ultrices luctus, lorem purus tristique magna, quis pharetra leo ipsum nec neque. Cras ornare tincidunt sem. In hac habitasse platea dictumst. Suspendisse commodo turpis at est. Sed quis tortor. Aenean non massa. Phasellus scelerisque nulla vel lectus. Quisque lorem. Praesent volutpat dignissim risus. Fusce vulputate ligula eu ipsum.</p>
10
- <form action="" method="post" name="recieverForm">
11
- <fieldset>
12
- <input type="text" name="recieverElement" value="old_value" />
13
- </fieldset>
14
- </form>
15
- </body>
16
- </html>
@@ -1,11 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
- <head>
4
- <title>Frames</title>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- </head>
7
- <frameset cols="50%, 50%">
8
- <frame src="frame_1.html" id="frame_1" name="frame1" class="half" />
9
- <frame src="frame_2.html" id="frame_2" name="frame2" class="half" />
10
- </frameset>
11
- </html>
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
- <head>
4
- <title>Iframes</title>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- </head>
7
- <body>
8
- <h1>Iframes</h1>
9
- <iframe src="frame_1.html" id="frame_1" name="frame1" class="iframe"></iframe>
10
- <iframe src="frame_2.html" id="frame_2" name="frame2" class="iframe"></iframe>
11
- </body>
12
- </html>
@@ -1,27 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
- <head>
4
- <title>Images</title>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- </head>
7
- <body>
8
- <div>
9
- <img />
10
- <img src="images/1.gif" alt="1" title="The number one!" />
11
- <img src="images/2.gif" alt="2" />
12
- <img src="images/3.gif" alt="3" />
13
- <img src="images/circle.jpg" name="circle" alt="circle" title="Circle" />
14
- <img src="images/square.jpg" name="square" alt="square" id="square" title="Square" />
15
- <img src="images/triangle.jpg" id="triangle" usemap="#triangle_map" />
16
- <img src="images/no_such_file.jpg" id="no_such_file" />
17
- <img src="images/1.gif" alt="1" id="non_self_closing"></img>
18
- <map id ="triangle_map" name="triangle_map">
19
- <area id="NCE" name="NCE" shape ="rect" coords ="40,0,70,25" href ="non_control_elements.html" alt="Non-control elements" title="Non-control elements" />
20
- <area id="tables" name="tables" shape ="rect" coords ="0,80,20,98" href ="tables.html" alt="Tables" title="Tables" />
21
- </map>
22
- <map>
23
- <area></area>
24
- </map>
25
- </div>
26
- </body>
27
- </html>
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,11 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
2
- <html>
3
- <head>
4
- <title>java.lang.StackOverflowError</title>
5
- </head>
6
- <body>
7
- <script>
8
- foo bar
9
- </script>
10
- </body>
11
- </html>
@@ -1,17 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml">
4
- <head>
5
- <meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
6
- <title>
7
- ISO-8859-1
8
- </title>
9
- </head>
10
- <body>
11
- <p>
12
- ���
13
- </p>
14
- <input type="text" id="charset" value="">
15
- <input type="text" id="���" value="">
16
- </body>
17
- </html>
@@ -1,115 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
- <head>
4
- <title>Non-control elements</title>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- </head>
7
- <body>
8
- <div></div>
9
- <div id="outer_container">
10
- <div id="header" title="Header and primary navigation" class="profile">
11
- <h1 id="first_header" class="primary">Header 1</h1>
12
- <ul id="navbar" class="navigation">
13
- <li><a></a></li>
14
- <li><a id="link_2" title="link_title_2" href="non_control_elements.html" class="external">Link 2</a></li>
15
- <li><a id="link_3" title="link_title_3" href="forms_with_input_elements.html" name="bad_attribute" value="bad_attribute" class="external">Link 3</a></li>
16
- <li></li>
17
- <li id="non_link_1" class="nonlink" title="This is not a link!">Non-link 1</li>
18
- <li id="non_link_2">Non-link 2</li>
19
- <li>Non-link 3</li>
20
- </ul>
21
- </div>
22
- <div id="promo" name="invalid_attribute" value="invalid_attribute">
23
- <h2 id="promo_header">Promo</h2>
24
- <span id="lead" class="lead" title="Lorem ipsum">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur eu pede. Ut justo. Praesent feugiat, elit in feugiat iaculis, sem risus rutrum justo, eget fermentum dolor arcu non nunc.</span>
25
- <span name="invalid_attribute" value="invalid_attribute">Sed pretium metus et quam. Nullam odio dolor, vestibulum non, tempor ut, vehicula sed, sapien. Vestibulum placerat ligula at quam. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</span>
26
- <span>Suspendisse at ipsum a turpis viverra venenatis. Praesent ut nibh. Nullam eu odio. Donec tempor, elit ut lacinia porttitor, augue neque vehicula diam, in elementum ligula nisi a tellus. Aliquam vestibulum ultricies tortor. </span>
27
- <span>Dubito, ergo cogito, ergo sum.</span>
28
- <span></span>
29
- <h3>Chemical compunds</h3>
30
- <ul>
31
- <li>Abietic acid, C20H30O2</li>
32
- <li>Acenaphthene, C12H10</li>
33
- <li>Acenaphthoquinone, C12H6O2</li>
34
- <li>Acenaphthylene, C12H8</li>
35
- <li>Acetaldehyde (ethanal), CH3CHO</li>
36
- </ul>
37
- <ol id="favorite_compounds" class="chemistry">
38
- <li>Propanol, CH3CH2CH2OH</li>
39
- <li>Ethane, C2H6</li>
40
- <li>Hexene, C6H12</li>
41
- <li>Acetone, CH3COCH3</li>
42
- <li>Ethanol, CH3CH2OH</li>
43
- </ol>
44
- <ol>
45
- <li></li>
46
- </ol>
47
- </div>
48
- <div id="content">
49
- <h2>Content</h2>
50
- <p id="lead" class="lead" title="Lorem ipsum">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur eu pede. Ut justo. Praesent feugiat, elit in feugiat iaculis, sem risus rutrum justo, eget fermentum dolor arcu non nunc.</p>
51
- <p name="invalid_attribute" value="invalid_attribute">Sed pretium metus et quam. Nullam odio dolor, vestibulum non, tempor ut, vehicula sed, sapien. Vestibulum placerat ligula at quam. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.</p>
52
- <p>Suspendisse at ipsum a turpis viverra venenatis. Praesent ut nibh. Nullam eu odio. Donec tempor, elit ut lacinia porttitor, augue neque vehicula diam, in elementum ligula nisi a tellus. Aliquam vestibulum ultricies tortor. </p>
53
- <p>Dubito, ergo cogito, ergo sum.</p>
54
- <p></p>
55
- <pre></pre>
56
- <div id="best_language" onclick="this.innerHTML = 'Ruby!'" style="color: red; text-decoration: underline; cursor: pointer;">What's the best programming language?</div>
57
- <h2>Ruby RSpec example</h2>
58
- <pre class="ruby" id="rspec">
59
- @browser.pre(:id, "rspec").should exist
60
- </pre>
61
- <h2>PHP Hello World</h2>
62
- <pre class="php">
63
- &lt;?php
64
- echo "Hello, World!\n";
65
- ?&gt;
66
- </pre>
67
- <h2>Ruby Hello World</h2>
68
- <pre class="ruby">
69
- puts "Hello, World!"
70
- </pre>
71
- <h2>C++ Hello World</h2>
72
- <pre class="c++">
73
- main() {
74
- cout << "Hello World!\n";
75
- return 0;
76
- }
77
- </pre>
78
- <h2>Haskell</h2>
79
- <pre class="haskell">
80
- main = putStrLn "Hello World"
81
- </pre>
82
- <h2>Brainfuck</h2>
83
- <pre class="brainfuck" title="The brainfuck language is an esoteric programming language noted for its extreme minimalism">
84
- ++++++++++
85
- [>+++++++>++++++++++>+++>+<<<<-] The initial loop to set up useful values in the array
86
- >++. Print 'H'
87
- >+. Print 'e'
88
- +++++++. Print 'l'
89
- . Print 'l'
90
- +++. Print 'o'
91
- >++. Print ' '
92
- <<+++++++++++++++. Print 'W'
93
- >. Print 'o'
94
- +++. Print 'r'
95
- ------. Print 'l'
96
- --------. Print 'd'
97
- >+. Print '!'
98
- >. Print newline
99
- </pre>
100
- </div>
101
- <div id="html_test" class=some_class title = "This is a title">
102
- <h1 id="header1">Header 1</h1>
103
- <h2 id="header2">Header 2</h2>
104
- <h3 id="header3">Header 3</h3>
105
- <h4 id="header4">Header 4</h4>
106
- <h5 id="header5">Header 5</h5>
107
- <h6 id="header6">Header 6</h6>
108
- <h6 id="empty_header"></h6>
109
- </div>
110
- <div id="footer" title="Closing remarks" class="profile">
111
- <span class="footer" name="footer" onclick="this.innerHTML = 'This is a footer with text set by Javascript.'">This is a footer.</span>
112
- </div>
113
- </div>
114
- </body>
115
- </html>
@@ -1,22 +0,0 @@
1
- <html><head><title>Simple Ajax</title><body>
2
- <script type="text/javascript">
3
- function doIt () {
4
- var http = false;
5
-
6
- if(navigator.appName == "Microsoft Internet Explorer") {
7
- http = new ActiveXObject("Microsoft.XMLHTTP");
8
- } else {
9
- http = new XMLHttpRequest();
10
- }
11
-
12
- http.open("GET", "ajax");
13
- http.onreadystatechange=function() {
14
- if(http.readyState == 4) {
15
- document.write(http.responseText);
16
- }
17
- }
18
- http.send(null);
19
- }
20
- </script>
21
- <a href='javascript:doIt()'>Click me</a>
22
- </body></html>