rubinium 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +7 -0
- data/MIT-LICENSE +21 -0
- data/README +137 -0
- data/Rakefile +139 -0
- data/TODO +7 -0
- data/doc/examples/rtc_site_live.rb +12 -0
- data/doc/examples/rts_main.rb +9 -0
- data/doc/examples/rts_shared_code.rb +25 -0
- data/lib/rubinium.rb +9 -0
- data/lib/rubinium/string.rb +3 -0
- data/lib/rubinium/test_base.rb +80 -0
- data/lib/rubinium/test_suite.rb +53 -0
- data/lib/rubinium/validator.rb +16 -0
- data/test/selenium_tests/test_click.rb +22 -0
- data/test/selenium_tests/test_open.rb +11 -0
- data/test/tc_file_creation.rb +60 -0
- data/test/ts_rubinium.rb +1 -0
- data/vendor/selenium-0.6.0/install-readme.txt +9 -0
- data/vendor/selenium-0.6.0/selenium/SeleneseRunner.html +253 -0
- data/vendor/selenium-0.6.0/selenium/SeleniumLog.html +61 -0
- data/vendor/selenium-0.6.0/selenium/TestRunner-splash.html +55 -0
- data/vendor/selenium-0.6.0/selenium/TestRunner.hta +146 -0
- data/vendor/selenium-0.6.0/selenium/TestRunner.html +146 -0
- data/vendor/selenium-0.6.0/selenium/devtests/TestClickInFrame.html +58 -0
- data/vendor/selenium-0.6.0/selenium/devtests/TestOpenInFrame.html +48 -0
- data/vendor/selenium-0.6.0/selenium/devtests/TestOpenInNewWindow.html +78 -0
- data/vendor/selenium-0.6.0/selenium/devtests/TestOpenMeta.html +43 -0
- data/vendor/selenium-0.6.0/selenium/devtests/TestSuite.html +39 -0
- data/vendor/selenium-0.6.0/selenium/devtests/meta/page.html +5 -0
- data/vendor/selenium-0.6.0/selenium/dom-images/butmin.gif +0 -0
- data/vendor/selenium-0.6.0/selenium/dom-images/butplus.gif +0 -0
- data/vendor/selenium-0.6.0/selenium/dom-styles/default.css +298 -0
- data/vendor/selenium-0.6.0/selenium/domviewer.html +16 -0
- data/vendor/selenium-0.6.0/selenium/html-xpath/carnation.jpg +0 -0
- data/vendor/selenium-0.6.0/selenium/html-xpath/example.html +75 -0
- data/vendor/selenium-0.6.0/selenium/html-xpath/html-xpath-patched.js +657 -0
- data/vendor/selenium-0.6.0/selenium/html-xpath/html-xpath.js +610 -0
- data/vendor/selenium-0.6.0/selenium/html-xpath/license.txt +504 -0
- data/vendor/selenium-0.6.0/selenium/html-xpath/rainbow.jpg +0 -0
- data/vendor/selenium-0.6.0/selenium/htmlutils.js +283 -0
- data/vendor/selenium-0.6.0/selenium/index.html +60 -0
- data/vendor/selenium-0.6.0/selenium/jsmock/mock-tests.html +205 -0
- data/vendor/selenium-0.6.0/selenium/jsmock/mock.js +124 -0
- data/vendor/selenium-0.6.0/selenium/selenium-api.js +683 -0
- data/vendor/selenium-0.6.0/selenium/selenium-browserbot.js +930 -0
- data/vendor/selenium-0.6.0/selenium/selenium-commandhandlers.js +286 -0
- data/vendor/selenium-0.6.0/selenium/selenium-domviewer.js +188 -0
- data/vendor/selenium-0.6.0/selenium/selenium-executionloop.js +250 -0
- data/vendor/selenium-0.6.0/selenium/selenium-fitrunner.js +597 -0
- data/vendor/selenium-0.6.0/selenium/selenium-logging.js +88 -0
- data/vendor/selenium-0.6.0/selenium/selenium-logo.png +0 -0
- data/vendor/selenium-0.6.0/selenium/selenium-tableparser.js +50 -0
- data/vendor/selenium-0.6.0/selenium/selenium.css +211 -0
- data/vendor/selenium-0.6.0/selenium/tests/ErrorCheckingTestSuite.html +36 -0
- data/vendor/selenium-0.6.0/selenium/tests/GoogleTestSearch.html +69 -0
- data/vendor/selenium-0.6.0/selenium/tests/GoogleTestSuite.html +32 -0
- data/vendor/selenium-0.6.0/selenium/tests/JsUnitSuite.html +38 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestClick.html +128 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestClickJavascriptHref.html +115 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestCommandError.html +79 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestConfirmations.html +77 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestErrorChecking.html +71 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestFailingAssert.html +59 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestFailingVerifications.html +198 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestFocusOnBlur.html +53 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestGoBack.html +81 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestImplicitLocators.html +81 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestJavascriptParameters.html +91 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestLocators.html +161 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestModalDialog.html +58 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestModalDialogDialog.html +48 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestOpen.html +66 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestPatternMatching.html +127 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestPause.html +78 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestPrompting.html +82 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestProxy.html +62 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestSelect.html +111 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestSelectWindow.html +106 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestStore.html +165 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestSuite-InternetExplorer.html +79 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestSuite-Konqueror.html +75 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestSuite-Safari.html +75 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestSuite.html +75 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestType.html +79 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestUserExtensions.html +81 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestVerifications.html +164 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestVerifyAlerts.html +80 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestVerifyAlertsFailures.html +108 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestVerifyConfirmationFailures.html +86 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestVerifyEditable.html +70 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestVerifyEditableFailures.html +95 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestVisibility.html +91 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestVisibilityFailures.html +131 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestWait.html +112 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestWaitFor.html +63 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestWaitInPopupWindow.html +94 -0
- data/vendor/selenium-0.6.0/selenium/tests/TestXPathLocators.html +98 -0
- data/vendor/selenium-0.6.0/selenium/tests/browserbot/alert-handling-tests.html +79 -0
- data/vendor/selenium-0.6.0/selenium/tests/browserbot/assert-tests.html +113 -0
- data/vendor/selenium-0.6.0/selenium/tests/browserbot/browserbot-tests.html +123 -0
- data/vendor/selenium-0.6.0/selenium/tests/browserbot/command-factory-tests.html +290 -0
- data/vendor/selenium-0.6.0/selenium/tests/browserbot/command-handler-tests.html +115 -0
- data/vendor/selenium-0.6.0/selenium/tests/browserbot/confirm-handling-tests.html +97 -0
- data/vendor/selenium-0.6.0/selenium/tests/browserbot/error-checking-command-tests.html +198 -0
- data/vendor/selenium-0.6.0/selenium/tests/browserbot/event-bubble-tests.html +106 -0
- data/vendor/selenium-0.6.0/selenium/tests/browserbot/optionlocator-tests.html +180 -0
- data/vendor/selenium-0.6.0/selenium/tests/browserbot/pagebot-accessor-tests.html +65 -0
- data/vendor/selenium-0.6.0/selenium/tests/browserbot/pagebot-action-tests.html +200 -0
- data/vendor/selenium-0.6.0/selenium/tests/browserbot/pagebot-attribute-tests.html +98 -0
- data/vendor/selenium-0.6.0/selenium/tests/browserbot/pagebot-locator-tests-include.html +33 -0
- data/vendor/selenium-0.6.0/selenium/tests/browserbot/pagebot-locator-tests.html +258 -0
- data/vendor/selenium-0.6.0/selenium/tests/browserbot/pagebot-property-tests.html +49 -0
- data/vendor/selenium-0.6.0/selenium/tests/browserbot/pattern-matcher-tests.html +66 -0
- data/vendor/selenium-0.6.0/selenium/tests/browserbot/selenium-api-tests.html +412 -0
- data/vendor/selenium-0.6.0/selenium/tests/browserbot/selenium-parameter-tests.html +98 -0
- data/vendor/selenium-0.6.0/selenium/tests/browserbot/suite.html +52 -0
- data/vendor/selenium-0.6.0/selenium/tests/browserbot/testloop-handle-error-tests.html +74 -0
- data/vendor/selenium-0.6.0/selenium/tests/events/TestButtonEvents.html +72 -0
- data/vendor/selenium-0.6.0/selenium/tests/events/TestCheckboxEvents.html +107 -0
- data/vendor/selenium-0.6.0/selenium/tests/events/TestFireEvents.html +75 -0
- data/vendor/selenium-0.6.0/selenium/tests/events/TestLinkEvents.html +43 -0
- data/vendor/selenium-0.6.0/selenium/tests/events/TestRadioEvents.html +149 -0
- data/vendor/selenium-0.6.0/selenium/tests/events/TestSelectEvents.html +122 -0
- data/vendor/selenium-0.6.0/selenium/tests/events/TestTextEvents.html +87 -0
- data/vendor/selenium-0.6.0/selenium/tests/events/readme.txt +26 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/banner.gif +0 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_async_event.html +36 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_click_javascript_page.html +34 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_click_page1.html +31 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_click_page2.html +30 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_confirm.html +34 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_dummy_page.html +26 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_editable.html +36 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_focus_on_blur.html +33 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_form_events.html +98 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_framed_page.html +7 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_just_text.html +22 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_locators.html +34 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_modal_dialog.html +29 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_modal_dialog_dialog.html +35 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_open.html +23 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_prompt.html +34 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_reload_onchange_page.html +32 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_select.html +35 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_select_window.html +29 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_select_window_popup.html +28 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_slowloading_page.html +27 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_store_value.html +23 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_type_page1.html +37 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_type_page2.html +61 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_verifications.html +42 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_verify_alert.html +46 -0
- data/vendor/selenium-0.6.0/selenium/tests/html/test_visibility.html +53 -0
- data/vendor/selenium-0.6.0/selenium/tests/readme.txt +1 -0
- data/vendor/selenium-0.6.0/selenium/tests/tableparser/tableparser-tests.html +122 -0
- data/vendor/selenium-0.6.0/selenium/tests/tinyWebServer.py +70 -0
- data/vendor/selenium-0.6.0/selenium/user-extensions.js.sample +62 -0
- data/vendor/selenium-0.6.0/selenium/version.txt +1 -0
- data/vendor/selenium-0.6.0/selenium/xmlextras.js +153 -0
- data/vendor/selenium-0.6.0/selenium/xpath.js +3910 -0
- 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,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 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>
|