celerity 0.0.4 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +33 -0
- data/README.txt +19 -9
- data/Rakefile +9 -3
- data/lib/celerity.rb +39 -39
- data/lib/celerity/browser.rb +538 -153
- data/lib/celerity/clickable_element.rb +48 -7
- data/lib/celerity/collections.rb +155 -131
- data/lib/celerity/container.rb +766 -385
- data/lib/celerity/default_viewer.rb +10 -0
- data/lib/celerity/disabled_element.rb +19 -2
- data/lib/celerity/element.rb +152 -83
- data/lib/celerity/element_collection.rb +106 -0
- data/lib/celerity/element_locator.rb +89 -66
- data/lib/celerity/elements/button.rb +23 -13
- data/lib/celerity/elements/file_field.rb +17 -5
- data/lib/celerity/elements/form.rb +21 -16
- data/lib/celerity/elements/frame.rb +75 -53
- data/lib/celerity/elements/image.rb +76 -63
- data/lib/celerity/elements/label.rb +4 -2
- data/lib/celerity/elements/link.rb +30 -18
- data/lib/celerity/elements/meta.rb +6 -0
- data/lib/celerity/{non_control_elements.rb → elements/non_control_elements.rb} +106 -76
- data/lib/celerity/elements/option.rb +16 -2
- data/lib/celerity/elements/radio_check.rb +55 -20
- data/lib/celerity/elements/select_list.rb +65 -29
- data/lib/celerity/elements/table.rb +141 -94
- data/lib/celerity/elements/table_cell.rb +13 -6
- data/lib/celerity/elements/{table_body.rb → table_elements.rb} +20 -8
- data/lib/celerity/elements/table_row.rb +23 -7
- data/lib/celerity/elements/text_field.rb +89 -33
- data/lib/celerity/exception.rb +77 -41
- data/lib/celerity/extra/method_generator.rb +42 -24
- data/lib/celerity/htmlunit.rb +49 -0
- data/lib/celerity/htmlunit/commons-collections-3.2.1.jar +0 -0
- data/lib/celerity/htmlunit/htmlunit-2.5-SNAPSHOT.jar +0 -0
- data/lib/celerity/htmlunit/htmlunit-core-js-2.5-SNAPSHOT.jar +0 -0
- data/lib/celerity/htmlunit/nekohtml-1.9.12-20090308.130127-11.jar +0 -0
- data/lib/celerity/htmlunit/serializer-2.7.1.jar +0 -0
- data/lib/celerity/htmlunit/xalan-2.7.1.jar +0 -0
- data/lib/celerity/htmlunit/xml-apis-1.3.04.jar +0 -0
- data/lib/celerity/identifier.rb +3 -2
- data/lib/celerity/input_element.rb +5 -5
- data/lib/celerity/listener.rb +135 -0
- data/lib/celerity/resources/no_viewer.png +0 -0
- data/lib/celerity/util.rb +88 -0
- data/lib/celerity/version.rb +4 -3
- data/lib/celerity/watir_compatibility.rb +35 -25
- data/tasks/jar.rake +57 -0
- metadata +35 -142
- data.tar.gz.sig +0 -0
- data/Manifest.txt +0 -150
- data/lib/celerity/element_collections.rb +0 -54
- data/lib/celerity/element_map.rb +0 -51
- data/lib/celerity/elements/table_footer.rb +0 -30
- data/lib/celerity/elements/table_header.rb +0 -30
- data/lib/celerity/htmlunit/commons-collections-3.2.jar +0 -0
- data/lib/celerity/htmlunit/download.sh +0 -23
- data/lib/celerity/htmlunit/htmlunit-2.2.jar +0 -0
- data/lib/celerity/htmlunit/htmlunit-core-js-2.2.jar +0 -0
- data/lib/celerity/htmlunit/nekohtml-1.9.8.jar +0 -0
- data/lib/celerity/htmlunit/xalan-2.7.0.jar +0 -0
- data/lib/celerity/htmlunit/xml-apis-1.0.b2.jar +0 -0
- data/spec/area_spec.rb +0 -97
- data/spec/areas_spec.rb +0 -40
- data/spec/browser_spec.rb +0 -266
- data/spec/button_spec.rb +0 -227
- data/spec/buttons_spec.rb +0 -39
- data/spec/checkbox_spec.rb +0 -302
- data/spec/checkboxes_spec.rb +0 -38
- data/spec/div_spec.rb +0 -207
- data/spec/divs_spec.rb +0 -39
- data/spec/element_spec.rb +0 -79
- data/spec/filefield_spec.rb +0 -123
- data/spec/filefields_spec.rb +0 -40
- data/spec/form_spec.rb +0 -59
- data/spec/forms_spec.rb +0 -41
- data/spec/frame_spec.rb +0 -121
- data/spec/frames_spec.rb +0 -71
- data/spec/hidden_spec.rb +0 -127
- data/spec/hiddens_spec.rb +0 -39
- data/spec/hn_spec.rb +0 -104
- data/spec/hns_spec.rb +0 -45
- data/spec/html/2000_spans.html +0 -2009
- data/spec/html/bug_duplicate_attributes.html +0 -14
- data/spec/html/bug_javascript_001.html +0 -11
- data/spec/html/form_js_bug.html +0 -11
- data/spec/html/forms_with_input_elements.html +0 -114
- data/spec/html/frame_1.html +0 -17
- data/spec/html/frame_2.html +0 -16
- data/spec/html/frames.html +0 -11
- data/spec/html/iframes.html +0 -12
- data/spec/html/images.html +0 -27
- data/spec/html/images/1.gif +0 -0
- data/spec/html/images/2.gif +0 -0
- data/spec/html/images/3.gif +0 -0
- data/spec/html/images/button.jpg +0 -0
- data/spec/html/images/circle.jpg +0 -0
- data/spec/html/images/map.gif +0 -0
- data/spec/html/images/map2.gif +0 -0
- data/spec/html/images/minus.gif +0 -0
- data/spec/html/images/originaltriangle.jpg +0 -0
- data/spec/html/images/plus.gif +0 -0
- data/spec/html/images/square.jpg +0 -0
- data/spec/html/images/triangle.jpg +0 -0
- data/spec/html/invalid_js.html +0 -11
- data/spec/html/latin1_text.html +0 -17
- data/spec/html/non_control_elements.html +0 -115
- data/spec/html/simple_ajax.html +0 -22
- data/spec/html/tables.html +0 -119
- data/spec/html/utf8_text.html +0 -15
- data/spec/htmlunit_spec.rb +0 -26
- data/spec/image_spec.rb +0 -220
- data/spec/images_spec.rb +0 -39
- data/spec/label_spec.rb +0 -79
- data/spec/labels_spec.rb +0 -40
- data/spec/li_spec.rb +0 -139
- data/spec/link_spec.rb +0 -189
- data/spec/links_spec.rb +0 -43
- data/spec/lis_spec.rb +0 -40
- data/spec/map_spec.rb +0 -102
- data/spec/maps_spec.rb +0 -40
- data/spec/meta_spec.rb +0 -8
- data/spec/ol_spec.rb +0 -87
- data/spec/ols_spec.rb +0 -40
- data/spec/option_spec.rb +0 -154
- data/spec/p_spec.rb +0 -171
- data/spec/pre_spec.rb +0 -135
- data/spec/pres_spec.rb +0 -40
- data/spec/ps_spec.rb +0 -40
- data/spec/radio_spec.rb +0 -299
- data/spec/radios_spec.rb +0 -42
- data/spec/select_list_spec.rb +0 -299
- data/spec/select_lists_spec.rb +0 -47
- data/spec/span_spec.rb +0 -184
- data/spec/spans_spec.rb +0 -64
- data/spec/spec.opts +0 -1
- data/spec/spec_helper.rb +0 -55
- data/spec/table_bodies_spec.rb +0 -57
- data/spec/table_body_spec.rb +0 -111
- data/spec/table_cell_spec.rb +0 -74
- data/spec/table_cells_spec.rb +0 -59
- data/spec/table_footer_spec.rb +0 -101
- data/spec/table_footers_spec.rb +0 -55
- data/spec/table_header_spec.rb +0 -101
- data/spec/table_headers_spec.rb +0 -55
- data/spec/table_row_spec.rb +0 -104
- data/spec/table_rows_spec.rb +0 -58
- data/spec/table_spec.rb +0 -160
- data/spec/tables_spec.rb +0 -42
- data/spec/text_field_spec.rb +0 -323
- data/spec/text_fields_spec.rb +0 -44
- data/spec/ul_spec.rb +0 -88
- data/spec/uls_spec.rb +0 -40
- data/spec/watir_compatibility_spec.rb +0 -260
- data/support/spec_server.rb +0 -73
- data/tasks/rspec.rake +0 -30
- data/tasks/specserver.rake +0 -21
- 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>
|
data/spec/html/form_js_bug.html
DELETED
@@ -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 →" 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>
|
data/spec/html/frame_1.html
DELETED
@@ -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>
|
data/spec/html/frame_2.html
DELETED
@@ -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>
|
data/spec/html/frames.html
DELETED
@@ -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>
|
data/spec/html/iframes.html
DELETED
@@ -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>
|
data/spec/html/images.html
DELETED
@@ -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>
|
data/spec/html/images/1.gif
DELETED
Binary file
|
data/spec/html/images/2.gif
DELETED
Binary file
|
data/spec/html/images/3.gif
DELETED
Binary file
|
data/spec/html/images/button.jpg
DELETED
Binary file
|
data/spec/html/images/circle.jpg
DELETED
Binary file
|
data/spec/html/images/map.gif
DELETED
Binary file
|
data/spec/html/images/map2.gif
DELETED
Binary file
|
data/spec/html/images/minus.gif
DELETED
Binary file
|
Binary file
|
data/spec/html/images/plus.gif
DELETED
Binary file
|
data/spec/html/images/square.jpg
DELETED
Binary file
|
Binary file
|
data/spec/html/invalid_js.html
DELETED
data/spec/html/latin1_text.html
DELETED
@@ -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
|
-
<?php
|
64
|
-
echo "Hello, World!\n";
|
65
|
-
?>
|
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>
|
data/spec/html/simple_ajax.html
DELETED
@@ -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>
|