rubinium 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (161) hide show
  1. data/CHANGES +7 -0
  2. data/MIT-LICENSE +21 -0
  3. data/README +137 -0
  4. data/Rakefile +139 -0
  5. data/TODO +7 -0
  6. data/doc/examples/rtc_site_live.rb +12 -0
  7. data/doc/examples/rts_main.rb +9 -0
  8. data/doc/examples/rts_shared_code.rb +25 -0
  9. data/lib/rubinium.rb +9 -0
  10. data/lib/rubinium/string.rb +3 -0
  11. data/lib/rubinium/test_base.rb +80 -0
  12. data/lib/rubinium/test_suite.rb +53 -0
  13. data/lib/rubinium/validator.rb +16 -0
  14. data/test/selenium_tests/test_click.rb +22 -0
  15. data/test/selenium_tests/test_open.rb +11 -0
  16. data/test/tc_file_creation.rb +60 -0
  17. data/test/ts_rubinium.rb +1 -0
  18. data/vendor/selenium-0.6.0/install-readme.txt +9 -0
  19. data/vendor/selenium-0.6.0/selenium/SeleneseRunner.html +253 -0
  20. data/vendor/selenium-0.6.0/selenium/SeleniumLog.html +61 -0
  21. data/vendor/selenium-0.6.0/selenium/TestRunner-splash.html +55 -0
  22. data/vendor/selenium-0.6.0/selenium/TestRunner.hta +146 -0
  23. data/vendor/selenium-0.6.0/selenium/TestRunner.html +146 -0
  24. data/vendor/selenium-0.6.0/selenium/devtests/TestClickInFrame.html +58 -0
  25. data/vendor/selenium-0.6.0/selenium/devtests/TestOpenInFrame.html +48 -0
  26. data/vendor/selenium-0.6.0/selenium/devtests/TestOpenInNewWindow.html +78 -0
  27. data/vendor/selenium-0.6.0/selenium/devtests/TestOpenMeta.html +43 -0
  28. data/vendor/selenium-0.6.0/selenium/devtests/TestSuite.html +39 -0
  29. data/vendor/selenium-0.6.0/selenium/devtests/meta/page.html +5 -0
  30. data/vendor/selenium-0.6.0/selenium/dom-images/butmin.gif +0 -0
  31. data/vendor/selenium-0.6.0/selenium/dom-images/butplus.gif +0 -0
  32. data/vendor/selenium-0.6.0/selenium/dom-styles/default.css +298 -0
  33. data/vendor/selenium-0.6.0/selenium/domviewer.html +16 -0
  34. data/vendor/selenium-0.6.0/selenium/html-xpath/carnation.jpg +0 -0
  35. data/vendor/selenium-0.6.0/selenium/html-xpath/example.html +75 -0
  36. data/vendor/selenium-0.6.0/selenium/html-xpath/html-xpath-patched.js +657 -0
  37. data/vendor/selenium-0.6.0/selenium/html-xpath/html-xpath.js +610 -0
  38. data/vendor/selenium-0.6.0/selenium/html-xpath/license.txt +504 -0
  39. data/vendor/selenium-0.6.0/selenium/html-xpath/rainbow.jpg +0 -0
  40. data/vendor/selenium-0.6.0/selenium/htmlutils.js +283 -0
  41. data/vendor/selenium-0.6.0/selenium/index.html +60 -0
  42. data/vendor/selenium-0.6.0/selenium/jsmock/mock-tests.html +205 -0
  43. data/vendor/selenium-0.6.0/selenium/jsmock/mock.js +124 -0
  44. data/vendor/selenium-0.6.0/selenium/selenium-api.js +683 -0
  45. data/vendor/selenium-0.6.0/selenium/selenium-browserbot.js +930 -0
  46. data/vendor/selenium-0.6.0/selenium/selenium-commandhandlers.js +286 -0
  47. data/vendor/selenium-0.6.0/selenium/selenium-domviewer.js +188 -0
  48. data/vendor/selenium-0.6.0/selenium/selenium-executionloop.js +250 -0
  49. data/vendor/selenium-0.6.0/selenium/selenium-fitrunner.js +597 -0
  50. data/vendor/selenium-0.6.0/selenium/selenium-logging.js +88 -0
  51. data/vendor/selenium-0.6.0/selenium/selenium-logo.png +0 -0
  52. data/vendor/selenium-0.6.0/selenium/selenium-tableparser.js +50 -0
  53. data/vendor/selenium-0.6.0/selenium/selenium.css +211 -0
  54. data/vendor/selenium-0.6.0/selenium/tests/ErrorCheckingTestSuite.html +36 -0
  55. data/vendor/selenium-0.6.0/selenium/tests/GoogleTestSearch.html +69 -0
  56. data/vendor/selenium-0.6.0/selenium/tests/GoogleTestSuite.html +32 -0
  57. data/vendor/selenium-0.6.0/selenium/tests/JsUnitSuite.html +38 -0
  58. data/vendor/selenium-0.6.0/selenium/tests/TestClick.html +128 -0
  59. data/vendor/selenium-0.6.0/selenium/tests/TestClickJavascriptHref.html +115 -0
  60. data/vendor/selenium-0.6.0/selenium/tests/TestCommandError.html +79 -0
  61. data/vendor/selenium-0.6.0/selenium/tests/TestConfirmations.html +77 -0
  62. data/vendor/selenium-0.6.0/selenium/tests/TestErrorChecking.html +71 -0
  63. data/vendor/selenium-0.6.0/selenium/tests/TestFailingAssert.html +59 -0
  64. data/vendor/selenium-0.6.0/selenium/tests/TestFailingVerifications.html +198 -0
  65. data/vendor/selenium-0.6.0/selenium/tests/TestFocusOnBlur.html +53 -0
  66. data/vendor/selenium-0.6.0/selenium/tests/TestGoBack.html +81 -0
  67. data/vendor/selenium-0.6.0/selenium/tests/TestImplicitLocators.html +81 -0
  68. data/vendor/selenium-0.6.0/selenium/tests/TestJavascriptParameters.html +91 -0
  69. data/vendor/selenium-0.6.0/selenium/tests/TestLocators.html +161 -0
  70. data/vendor/selenium-0.6.0/selenium/tests/TestModalDialog.html +58 -0
  71. data/vendor/selenium-0.6.0/selenium/tests/TestModalDialogDialog.html +48 -0
  72. data/vendor/selenium-0.6.0/selenium/tests/TestOpen.html +66 -0
  73. data/vendor/selenium-0.6.0/selenium/tests/TestPatternMatching.html +127 -0
  74. data/vendor/selenium-0.6.0/selenium/tests/TestPause.html +78 -0
  75. data/vendor/selenium-0.6.0/selenium/tests/TestPrompting.html +82 -0
  76. data/vendor/selenium-0.6.0/selenium/tests/TestProxy.html +62 -0
  77. data/vendor/selenium-0.6.0/selenium/tests/TestSelect.html +111 -0
  78. data/vendor/selenium-0.6.0/selenium/tests/TestSelectWindow.html +106 -0
  79. data/vendor/selenium-0.6.0/selenium/tests/TestStore.html +165 -0
  80. data/vendor/selenium-0.6.0/selenium/tests/TestSuite-InternetExplorer.html +79 -0
  81. data/vendor/selenium-0.6.0/selenium/tests/TestSuite-Konqueror.html +75 -0
  82. data/vendor/selenium-0.6.0/selenium/tests/TestSuite-Safari.html +75 -0
  83. data/vendor/selenium-0.6.0/selenium/tests/TestSuite.html +75 -0
  84. data/vendor/selenium-0.6.0/selenium/tests/TestType.html +79 -0
  85. data/vendor/selenium-0.6.0/selenium/tests/TestUserExtensions.html +81 -0
  86. data/vendor/selenium-0.6.0/selenium/tests/TestVerifications.html +164 -0
  87. data/vendor/selenium-0.6.0/selenium/tests/TestVerifyAlerts.html +80 -0
  88. data/vendor/selenium-0.6.0/selenium/tests/TestVerifyAlertsFailures.html +108 -0
  89. data/vendor/selenium-0.6.0/selenium/tests/TestVerifyConfirmationFailures.html +86 -0
  90. data/vendor/selenium-0.6.0/selenium/tests/TestVerifyEditable.html +70 -0
  91. data/vendor/selenium-0.6.0/selenium/tests/TestVerifyEditableFailures.html +95 -0
  92. data/vendor/selenium-0.6.0/selenium/tests/TestVisibility.html +91 -0
  93. data/vendor/selenium-0.6.0/selenium/tests/TestVisibilityFailures.html +131 -0
  94. data/vendor/selenium-0.6.0/selenium/tests/TestWait.html +112 -0
  95. data/vendor/selenium-0.6.0/selenium/tests/TestWaitFor.html +63 -0
  96. data/vendor/selenium-0.6.0/selenium/tests/TestWaitInPopupWindow.html +94 -0
  97. data/vendor/selenium-0.6.0/selenium/tests/TestXPathLocators.html +98 -0
  98. data/vendor/selenium-0.6.0/selenium/tests/browserbot/alert-handling-tests.html +79 -0
  99. data/vendor/selenium-0.6.0/selenium/tests/browserbot/assert-tests.html +113 -0
  100. data/vendor/selenium-0.6.0/selenium/tests/browserbot/browserbot-tests.html +123 -0
  101. data/vendor/selenium-0.6.0/selenium/tests/browserbot/command-factory-tests.html +290 -0
  102. data/vendor/selenium-0.6.0/selenium/tests/browserbot/command-handler-tests.html +115 -0
  103. data/vendor/selenium-0.6.0/selenium/tests/browserbot/confirm-handling-tests.html +97 -0
  104. data/vendor/selenium-0.6.0/selenium/tests/browserbot/error-checking-command-tests.html +198 -0
  105. data/vendor/selenium-0.6.0/selenium/tests/browserbot/event-bubble-tests.html +106 -0
  106. data/vendor/selenium-0.6.0/selenium/tests/browserbot/optionlocator-tests.html +180 -0
  107. data/vendor/selenium-0.6.0/selenium/tests/browserbot/pagebot-accessor-tests.html +65 -0
  108. data/vendor/selenium-0.6.0/selenium/tests/browserbot/pagebot-action-tests.html +200 -0
  109. data/vendor/selenium-0.6.0/selenium/tests/browserbot/pagebot-attribute-tests.html +98 -0
  110. data/vendor/selenium-0.6.0/selenium/tests/browserbot/pagebot-locator-tests-include.html +33 -0
  111. data/vendor/selenium-0.6.0/selenium/tests/browserbot/pagebot-locator-tests.html +258 -0
  112. data/vendor/selenium-0.6.0/selenium/tests/browserbot/pagebot-property-tests.html +49 -0
  113. data/vendor/selenium-0.6.0/selenium/tests/browserbot/pattern-matcher-tests.html +66 -0
  114. data/vendor/selenium-0.6.0/selenium/tests/browserbot/selenium-api-tests.html +412 -0
  115. data/vendor/selenium-0.6.0/selenium/tests/browserbot/selenium-parameter-tests.html +98 -0
  116. data/vendor/selenium-0.6.0/selenium/tests/browserbot/suite.html +52 -0
  117. data/vendor/selenium-0.6.0/selenium/tests/browserbot/testloop-handle-error-tests.html +74 -0
  118. data/vendor/selenium-0.6.0/selenium/tests/events/TestButtonEvents.html +72 -0
  119. data/vendor/selenium-0.6.0/selenium/tests/events/TestCheckboxEvents.html +107 -0
  120. data/vendor/selenium-0.6.0/selenium/tests/events/TestFireEvents.html +75 -0
  121. data/vendor/selenium-0.6.0/selenium/tests/events/TestLinkEvents.html +43 -0
  122. data/vendor/selenium-0.6.0/selenium/tests/events/TestRadioEvents.html +149 -0
  123. data/vendor/selenium-0.6.0/selenium/tests/events/TestSelectEvents.html +122 -0
  124. data/vendor/selenium-0.6.0/selenium/tests/events/TestTextEvents.html +87 -0
  125. data/vendor/selenium-0.6.0/selenium/tests/events/readme.txt +26 -0
  126. data/vendor/selenium-0.6.0/selenium/tests/html/banner.gif +0 -0
  127. data/vendor/selenium-0.6.0/selenium/tests/html/test_async_event.html +36 -0
  128. data/vendor/selenium-0.6.0/selenium/tests/html/test_click_javascript_page.html +34 -0
  129. data/vendor/selenium-0.6.0/selenium/tests/html/test_click_page1.html +31 -0
  130. data/vendor/selenium-0.6.0/selenium/tests/html/test_click_page2.html +30 -0
  131. data/vendor/selenium-0.6.0/selenium/tests/html/test_confirm.html +34 -0
  132. data/vendor/selenium-0.6.0/selenium/tests/html/test_dummy_page.html +26 -0
  133. data/vendor/selenium-0.6.0/selenium/tests/html/test_editable.html +36 -0
  134. data/vendor/selenium-0.6.0/selenium/tests/html/test_focus_on_blur.html +33 -0
  135. data/vendor/selenium-0.6.0/selenium/tests/html/test_form_events.html +98 -0
  136. data/vendor/selenium-0.6.0/selenium/tests/html/test_framed_page.html +7 -0
  137. data/vendor/selenium-0.6.0/selenium/tests/html/test_just_text.html +22 -0
  138. data/vendor/selenium-0.6.0/selenium/tests/html/test_locators.html +34 -0
  139. data/vendor/selenium-0.6.0/selenium/tests/html/test_modal_dialog.html +29 -0
  140. data/vendor/selenium-0.6.0/selenium/tests/html/test_modal_dialog_dialog.html +35 -0
  141. data/vendor/selenium-0.6.0/selenium/tests/html/test_open.html +23 -0
  142. data/vendor/selenium-0.6.0/selenium/tests/html/test_prompt.html +34 -0
  143. data/vendor/selenium-0.6.0/selenium/tests/html/test_reload_onchange_page.html +32 -0
  144. data/vendor/selenium-0.6.0/selenium/tests/html/test_select.html +35 -0
  145. data/vendor/selenium-0.6.0/selenium/tests/html/test_select_window.html +29 -0
  146. data/vendor/selenium-0.6.0/selenium/tests/html/test_select_window_popup.html +28 -0
  147. data/vendor/selenium-0.6.0/selenium/tests/html/test_slowloading_page.html +27 -0
  148. data/vendor/selenium-0.6.0/selenium/tests/html/test_store_value.html +23 -0
  149. data/vendor/selenium-0.6.0/selenium/tests/html/test_type_page1.html +37 -0
  150. data/vendor/selenium-0.6.0/selenium/tests/html/test_type_page2.html +61 -0
  151. data/vendor/selenium-0.6.0/selenium/tests/html/test_verifications.html +42 -0
  152. data/vendor/selenium-0.6.0/selenium/tests/html/test_verify_alert.html +46 -0
  153. data/vendor/selenium-0.6.0/selenium/tests/html/test_visibility.html +53 -0
  154. data/vendor/selenium-0.6.0/selenium/tests/readme.txt +1 -0
  155. data/vendor/selenium-0.6.0/selenium/tests/tableparser/tableparser-tests.html +122 -0
  156. data/vendor/selenium-0.6.0/selenium/tests/tinyWebServer.py +70 -0
  157. data/vendor/selenium-0.6.0/selenium/user-extensions.js.sample +62 -0
  158. data/vendor/selenium-0.6.0/selenium/version.txt +1 -0
  159. data/vendor/selenium-0.6.0/selenium/xmlextras.js +153 -0
  160. data/vendor/selenium-0.6.0/selenium/xpath.js +3910 -0
  161. metadata +216 -0
@@ -0,0 +1,34 @@
1
+ <!--
2
+ Copyright 2004 ThoughtWorks, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ -->
16
+ <html>
17
+ <head>
18
+ <title>Click Page 1</title>
19
+ <script type="text/javascript">
20
+ function navigateTo(url) {
21
+ }
22
+ </script>
23
+ </head>
24
+ <body>
25
+ <img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
26
+ <a id="link" href="javascript:alert('link clicked')">link</a><br>
27
+ <a id="linkWithEnclosedImage" href="javascript:alert('enclosedImage clicked')"><img id="enclosedImage" src="./tw.jpg"></a><br/>
28
+ <a id="linkWithJavascriptVoidHref" href="javascript:void(0);" onclick="alert('onclick')">link with void href</a><br/>
29
+ <a id="linkWithOnclickReturnsFalse" href="javascript:alert('linkWithOnclickReturnsFalse clicked')" onclick="return false;">link with onclick returns false</a><br/>
30
+ <a id="linkWithMultipleJavascriptStatements" href="javascript: alert('alert1'); alert('alert2') ; alert ('alert3')">link with multiple javascript calls</a><br/>
31
+
32
+ </body>
33
+
34
+ </html>
@@ -0,0 +1,31 @@
1
+ <!--
2
+ Copyright 2004 ThoughtWorks, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ -->
16
+ <html>
17
+ <head>
18
+ <title>Click Page 1</title>
19
+ <script type="text/javascript">
20
+ </script>
21
+ </head>
22
+ <body>
23
+ <img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
24
+ <a id="link" href="./test_click_page2.html">Click here for next page</a><br>
25
+ <a id="absoluteLink" href="/tests/html/test_click_page2.html">Click here for next page via absolute link</a><br>
26
+ <a id="linkWithEnclosedImage" href="./test_click_page2.html"><img id="enclosedImage" src="./tw.jpg"></a><br/>
27
+ <a id="linkToAnchorOnThisPage" href="#link">link to other link</a><br/>
28
+ <a id="linkWithOnclickReturnsFalse" href="./test_click_page2.html" onclick="return false;">link with onclick="return false"</a><br/>
29
+ </body>
30
+
31
+ </html>
@@ -0,0 +1,30 @@
1
+ <!--
2
+ Copyright 2004 ThoughtWorks, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ -->
16
+ <html>
17
+ <head>
18
+ <title>Click Page Target</title>
19
+ <script type="text/javascript">
20
+ </script>
21
+ </head>
22
+ <body>
23
+ <img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
24
+ This is a test of the click command.
25
+
26
+ <br />
27
+ <br />
28
+ Return to <a id="previousPage" href="./test_click_page1.html">test_click_page1.html</a>
29
+ </body>
30
+ </html>
@@ -0,0 +1,34 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <!--
5
+ Copyright 2004 ThoughtWorks, Inc
6
+
7
+ Licensed under the Apache License, Version 2.0 (the "License");
8
+ you may not use this file except in compliance with the License.
9
+ You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing, software
14
+ distributed under the License is distributed on an "AS IS" BASIS,
15
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ See the License for the specific language governing permissions and
17
+ limitations under the License.
18
+ -->
19
+ <script type="text/javascript">
20
+
21
+ function confirmLeaving() {
22
+ if (confirm("You are about to go to a dummy page.")) {
23
+ document.location = "test_dummy_page.html";
24
+ }
25
+ }
26
+
27
+ </script>
28
+ <title>Test Confirm</title>
29
+ </head>
30
+ <body>
31
+ <img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
32
+ <a id="confirmAndLeave" href="javascript:confirmLeaving();">click to navigate to a new page</a>
33
+ </body>
34
+ </html>
@@ -0,0 +1,26 @@
1
+ <!--
2
+ Copyright 2004 ThoughtWorks, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ -->
16
+ <html>
17
+ <head>
18
+ <title>Dummy Page</title>
19
+ <script type="text/javascript">
20
+ </script>
21
+ </head>
22
+ <body>
23
+ <img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
24
+ <span id="theSpan">This is a dummy page.</span>
25
+ </body>
26
+ </html>
@@ -0,0 +1,36 @@
1
+ <!--
2
+ Copyright 2004 ThoughtWorks, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ -->
16
+ <html>
17
+ <head>
18
+ <title>Testing-ground for assertEditable and friends</title>
19
+ </head>
20
+ <body>
21
+ <img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
22
+ <form>
23
+ <table>
24
+
25
+ <tr><th>Editable text-field</th><td><input name="normal_text" value="black"></td></tr>
26
+ <tr><th>Editable select</th><td><select name="normal_select"><option>black</option></select></td></tr>
27
+
28
+ <tr><th>Disabled text-field</th><td><input name="disabled_text" value="black" disabled="yup"></td></tr>
29
+ <tr><th>Disabled select</th><td><select name="disabled_select" disabled="yup"><option>black</option></select></td></tr>
30
+
31
+ <tr><th>Faked read-only input</th><td><span id="fake_input" name="fake_input" style="border: 1px solid grey">black</span></td></tr>
32
+
33
+ </table>
34
+ </form>
35
+
36
+ </html>
@@ -0,0 +1,33 @@
1
+ <!--
2
+ Copyright 2004 ThoughtWorks, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ -->
16
+ <html>
17
+ <head>
18
+ <title>Testing-ground for assertEditable and friends</title>
19
+ <script type="text/javascript">
20
+ function generateAnAlertAndFocus(inputElement) {
21
+ if (inputElement.value == "test") {
22
+ alert("Bad value");
23
+ inputElement.focus();
24
+ }
25
+ }
26
+ </script>
27
+ </head>
28
+ <body>
29
+ <img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
30
+ <form>
31
+ <input name="testInput" onblur="javascript:generateAnAlertAndFocus(this);" />
32
+ </form>
33
+ </html>
@@ -0,0 +1,98 @@
1
+ <!--
2
+ Copyright 2004 ThoughtWorks, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ -->
16
+ <html>
17
+ <head>
18
+ <script language="javascript">
19
+ <!--
20
+ /* flag to determine if event should be recorded. */
21
+ var recording = true;
22
+
23
+ /* Records an event in the events textarea */
24
+ function recordEvent(e) {
25
+ if (!recording) return;
26
+ // Handle IE
27
+ if (!e) var e = window.event;
28
+ var targetString = this.id;
29
+ var eventMessage = '{' + e.type + '(' + targetString + ')} ';
30
+ log(eventMessage);
31
+ return true;
32
+ }
33
+
34
+ /** Attach recording event handlers to the element */
35
+ function attachEventRecorders(elementId) {
36
+ var element = document.getElementById(elementId);
37
+ element.onfocus=recordEvent;
38
+ element.onchange=recordEvent;
39
+ element.onclick=recordEvent;
40
+ element.onselect=recordEvent;
41
+ element.onblur=recordEvent;
42
+ }
43
+
44
+ function setupEventRecorders() {
45
+ attachEventRecorders('theTextbox');
46
+ attachEventRecorders('theCheckbox');
47
+ attachEventRecorders('theRadio1');
48
+ attachEventRecorders('theRadio2');
49
+ attachEventRecorders('theSelect');
50
+ attachEventRecorders('theButton');
51
+ attachEventRecorders('theSubmit');
52
+ attachEventRecorders('theLink');
53
+ document.theForm.onsubmit = function() {
54
+ log('{submit} ');
55
+ return false;
56
+ }
57
+ }
58
+
59
+ // This functionality is only provided for manual clickety-click assessing of events.
60
+ // Not used in automated testing
61
+ function setupFormEventRecorders(enable) {
62
+ var recorder = enable ? recordEvent : null;
63
+ var formElement = document.forms[0];
64
+ formElement.onfocus=recorder;
65
+ formElement.onchange=recorder;
66
+ formElement.onclick=recorder;
67
+ formElement.onselect=recorder;
68
+ formElement.onblur=recorder;
69
+ }
70
+
71
+ function log(message) {
72
+ document.getElementById('eventlog').value += message;
73
+ }
74
+
75
+ -->
76
+ </script>
77
+ </head>
78
+ <body id="theBody" onload="setupEventRecorders();">
79
+ <img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
80
+ <form id="theForm" name="theForm" onsubmit="return false;">
81
+ <input name="theTextbox" id="theTextbox" type="text" value=""/>
82
+ <input name="theCheckbox" id="theCheckbox" type="checkbox"/>
83
+ <input name="theRadio" id="theRadio1" type="radio" value="radio1"/><input name="theRadio" id="theRadio2" type="radio" value="theRadio"/>
84
+ <select name="theSelect" id="theSelect"><option value="">Empty Option</option><option value="option1">First Option</option><option value="option2">Second Option</option></select>
85
+ <input name="theButton" id="theButton" type="button" value="A Button"/>
86
+ <input name="theSubmit" id="theSubmit" type="submit" value="The Submit"/>
87
+ </form>
88
+ <a id="theLink" href="javascript:alert('link clicked');">The Link</a>
89
+
90
+ <hr/>
91
+
92
+ <div>EventLog<br/>
93
+ <textarea id="eventlog" rows="15" cols="80"></textarea><br/>
94
+ Record events:<input type="checkbox" checked="checked" onclick="recording=this.checked;"/><br/>
95
+ Record form events:<input type="checkbox" onclick="setupFormEventRecorders(this.checked);"/><br/>
96
+ </div>
97
+ </body>
98
+ </html>
@@ -0,0 +1,7 @@
1
+ <html>
2
+ <body>
3
+ <img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
4
+ <iframe name="theFrame" id="theFrame" width="220px;" height="20%" border="0" src="./test_click_page1.html"></iframe>
5
+
6
+ </body>
7
+ </html>
@@ -0,0 +1,22 @@
1
+ <!--
2
+ Copyright 2004 ThoughtWorks, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ -->
16
+ <html>
17
+ <head>
18
+ </head>
19
+ <body>
20
+ This is the entire text of the page.
21
+ </body>
22
+ </html>
@@ -0,0 +1,34 @@
1
+ <!--
2
+ Copyright 2004 ThoughtWorks, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ -->
16
+ <html>
17
+ <body>
18
+ <img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
19
+ <a id="id1" href="#id1" class="a1">this is the first element</a>
20
+ <!-- DO NOT DELETE THIS COMMENT: see SEL-68 -->
21
+ <a id="id2" name="name1" href="#id2" class="a2">this is the&nbsp;second element</a>
22
+ <a id="id3" name="name1" href="#id3" class="a3">this is the third element</a>
23
+ <a id="foo:bar" href="#id3" class="a4">this is the fourth element</a>
24
+
25
+
26
+ <table class="stylee">
27
+ <tr>
28
+ <th>theHeaderText</th>
29
+ <td>theCellText</td>
30
+ </tr>
31
+ </table>
32
+
33
+ </body>
34
+ </html>
@@ -0,0 +1,29 @@
1
+ <!--
2
+ Copyright 2004 ThoughtWorks, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ -->
16
+ <html>
17
+ <head>
18
+ <script type="text/javascript">
19
+ function openModal() {
20
+ myModalDialogReturnValue = window.showModalDialog("/tests/html/test_modal_dialog_dialog.html", "","" );
21
+ alert(myModalDialogReturnValue);
22
+ }
23
+ </script>
24
+ </head>
25
+ <body>
26
+ <img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
27
+ <button id="modal" onclick="javascript:openModal()">Click here to open a modal dialog</button>
28
+ </body>
29
+ </html>
@@ -0,0 +1,35 @@
1
+ <!--
2
+ Copyright 2004 ThoughtWorks, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ -->
16
+ <html>
17
+ <head>
18
+ <script type="text/javascript">
19
+ window.returnValue="ted";
20
+
21
+ function closeWindow() {
22
+ window.returnValue = "no ways";
23
+ window.close();
24
+ }
25
+
26
+ </script>
27
+ <title>Modal Dialog Popup</title>
28
+ </head>
29
+ <body>
30
+ <img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
31
+ <a id="change" onClick="javascript:window.returnValue='bill';">Click to change</a>
32
+ <p/>
33
+ <a id="close" onClick="javascript:closeWindow();">Click to close</a>
34
+ </body>
35
+ </html>