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,23 @@
|
|
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
|
+
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
|
21
|
+
This is a test of the open command.
|
22
|
+
</body>
|
23
|
+
</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 (prompt("Type 'yes' and click OK") == 'yes') {
|
23
|
+
document.location = "test_dummy_page.html";
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
</script>
|
28
|
+
<title>Test Prompt</title>
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
|
32
|
+
<a id="promptAndLeave" href="javascript:confirmLeaving();">click to navigate to a new page</a>
|
33
|
+
</body>
|
34
|
+
</html>
|
@@ -0,0 +1,32 @@
|
|
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>Reload 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
|
+
Selecting an option or changing text causes page to reload.
|
25
|
+
<a id="theLink" href="./test_slowloading_page.html">Click here</a>
|
26
|
+
<form action="./test_slowloading_page.html">
|
27
|
+
<select name="theSelect" id="theSelect" onchange="this.form.submit();"><option value="">Empty Option</option><option value="option1">First Option</option><option value="option2">Second Option</option></select>
|
28
|
+
<input name="theTextbox" id="theTextbox" onblur="this.form.submit();" value="initialValue"/>
|
29
|
+
<input type="submit" name="theSubmit" id="theSubmit" value="submit"/>
|
30
|
+
</form>
|
31
|
+
</body>
|
32
|
+
</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
|
+
<body>
|
18
|
+
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
|
19
|
+
<h3>Test for selecting options from a Selection.</h3>
|
20
|
+
<br>
|
21
|
+
<form name="myform">
|
22
|
+
<select name="theSelect" id="theSelect">
|
23
|
+
<option value="option1" id="o1">First Option</option>
|
24
|
+
<option value="option2" id="o2" selected="true">Second Option</option>
|
25
|
+
<option value="option3" id="o3">Third Option</option>
|
26
|
+
<option value="option4" id="o4">Fourth Option</option>
|
27
|
+
<option value="option5" id="o4">Fifth Option</option>
|
28
|
+
<option value="option6" id="o6">Sixth Option</option>
|
29
|
+
<option value="" id="o7">Empty Value Option</option>
|
30
|
+
</select>
|
31
|
+
<br>
|
32
|
+
<input name="theInput">
|
33
|
+
</form>
|
34
|
+
</body>
|
35
|
+
</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 openWindow() {
|
20
|
+
myPopupWindow = window.open('./test_select_window_popup.html', 'myNewWindow', 'height=200,width=500,top=400,left=50');
|
21
|
+
}
|
22
|
+
</script>
|
23
|
+
</head>
|
24
|
+
<body>
|
25
|
+
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
|
26
|
+
<button id="popupPage" onclick="openWindow();">Click here to open a popup window</button>
|
27
|
+
<button id="popupAnonymous" onclick="javascript:window.open('./test_select_window_popup.html', 'anonymouspopup', 'height=200,width=500,top=400,left=50');">Click here to open an anonymous popup window</button>
|
28
|
+
</body>
|
29
|
+
</html>
|
@@ -0,0 +1,28 @@
|
|
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>Select Window Popup</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 href="./test_select_window_popup.html">Click to reload</a>
|
25
|
+
<a href="./test_reload_onchange_page.html">Click to load new page</a>
|
26
|
+
<a id="closePage" href="javascript:window.close()">Click to close</a>
|
27
|
+
</body>
|
28
|
+
</html>
|
@@ -0,0 +1,27 @@
|
|
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>Slow Loading 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 slow-loading page.</span>
|
25
|
+
<a id="slowPage_reload" href="./test_slowloading_page.html">Click to reload</a>
|
26
|
+
</body>
|
27
|
+
</html>
|
@@ -0,0 +1,23 @@
|
|
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
|
+
<form>
|
20
|
+
<input name="theText" value=""/>
|
21
|
+
</form>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,37 @@
|
|
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
|
+
<h3>Test for typing values into form text fields.</h3>
|
20
|
+
<br>
|
21
|
+
<form METHOD=GET action="./test_type_page2.html">
|
22
|
+
username: <input name="username"
|
23
|
+
type="text" >
|
24
|
+
<br />
|
25
|
+
<br />
|
26
|
+
password: <input name="password"
|
27
|
+
type="password" >
|
28
|
+
<br />
|
29
|
+
<br />
|
30
|
+
<input id="submitButton"
|
31
|
+
|
32
|
+
type="submit"
|
33
|
+
value="Log in" >
|
34
|
+
|
35
|
+
</form>
|
36
|
+
</body>
|
37
|
+
<html>
|
@@ -0,0 +1,61 @@
|
|
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
|
+
<!--
|
20
|
+
// This JavaScript will dump all the parameters in the URL. Useful for checking forms.
|
21
|
+
// if you are are not using a webserver.
|
22
|
+
|
23
|
+
// paramsMap is an associative array (like a Java map, Perl hash, or Python dictionary).
|
24
|
+
var paramsMap = new Array();
|
25
|
+
|
26
|
+
var query=this.location.search.substring(1);
|
27
|
+
if (query.length > 0){
|
28
|
+
var params=query.split("&");
|
29
|
+
for (var i=0 ; i<params.length ; i++){
|
30
|
+
var pos = params[i].indexOf("=");
|
31
|
+
var name = params[i].substring(0, pos);
|
32
|
+
var value = params[i].substring(pos + 1);
|
33
|
+
paramsMap[name] = value;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
// -->
|
37
|
+
</script>
|
38
|
+
|
39
|
+
</head>
|
40
|
+
<body>
|
41
|
+
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
|
42
|
+
<h2>
|
43
|
+
<script type="text/javascript">
|
44
|
+
<!--
|
45
|
+
message = "Welcome, " + paramsMap['username'] + "!";
|
46
|
+
document.writeln(message);
|
47
|
+
// -->
|
48
|
+
</script>
|
49
|
+
</h2>
|
50
|
+
<br>
|
51
|
+
|
52
|
+
Here are the values you entered in <a href="./test_type_page1.html">test_type_page1.html</a>:
|
53
|
+
<br />
|
54
|
+
<script type="text/javascript">
|
55
|
+
<!--
|
56
|
+
document.writeln("username : " + paramsMap['username'] + "<br \/>");
|
57
|
+
document.writeln("password : " + paramsMap['password'] + "<br \/>");
|
58
|
+
// -->
|
59
|
+
</script>
|
60
|
+
</body>
|
61
|
+
<html>
|
@@ -0,0 +1,42 @@
|
|
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>theTitle</title>
|
19
|
+
</head>
|
20
|
+
<body>
|
21
|
+
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
|
22
|
+
<span id="theSpan">this is the span</span>
|
23
|
+
<form>
|
24
|
+
<input name="theText" value="the text value" class="foo"/>
|
25
|
+
<input type="hidden" name="theHidden" value="the hidden value">
|
26
|
+
<select id="theSelect">
|
27
|
+
<option value="option1" id="o1">first option</option>
|
28
|
+
<option value="option2" id="o2" selected="selected">second option</option>
|
29
|
+
<option value="option3" id="o3">third,,option</option>
|
30
|
+
</select>
|
31
|
+
<textarea name="theTextarea">
|
32
|
+
Line 1
|
33
|
+
Line 2
|
34
|
+
</textarea>
|
35
|
+
</form>
|
36
|
+
<table id="theTable">
|
37
|
+
<tr><td>a</td><td>b</td></tr>
|
38
|
+
<tr><td>c</td><td>d</td></tr>
|
39
|
+
</table>
|
40
|
+
|
41
|
+
</body>
|
42
|
+
</html>
|
@@ -0,0 +1,46 @@
|
|
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
|
+
|
20
|
+
function generateAnAlert() {
|
21
|
+
alert("Store Below 494 degrees K!");
|
22
|
+
}
|
23
|
+
|
24
|
+
function generateTwoAlerts() {
|
25
|
+
alert("Store Below 220 degrees C!");
|
26
|
+
alert("Store Below 429 degrees F!");
|
27
|
+
}
|
28
|
+
|
29
|
+
function generateAnAlertBeforeLeaving() {
|
30
|
+
alert("I'm Melting! I'm Melting!");
|
31
|
+
document.location = "test_dummy_page.html";
|
32
|
+
}
|
33
|
+
|
34
|
+
|
35
|
+
</script>
|
36
|
+
</head>
|
37
|
+
<body>
|
38
|
+
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
|
39
|
+
<button id="oneAlert" onclick="javascript:generateAnAlert();"> click to generate one alert</button>
|
40
|
+
<br>
|
41
|
+
<button id="twoAlerts" onclick="javascript:generateTwoAlerts();"> click to generate two alerts</button>
|
42
|
+
<br>
|
43
|
+
<button id="alertAndLeave" onclick="javascript:generateAnAlertBeforeLeaving();"> click to generate an alert before navigating to new page</button>
|
44
|
+
</body>
|
45
|
+
|
46
|
+
</html>
|
@@ -0,0 +1,53 @@
|
|
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
|
+
<style type="text/css">
|
19
|
+
.suppressed {
|
20
|
+
display: none;
|
21
|
+
}
|
22
|
+
</style>
|
23
|
+
</head>
|
24
|
+
<body>
|
25
|
+
<img style="width: 644px; height: 41px;" alt="banner" src="banner.gif"><br>
|
26
|
+
|
27
|
+
<p id="visibleParagraph">A visible paragraph</p>
|
28
|
+
|
29
|
+
<p><i>Note: much of this page is hidden, in one way or another</i></p>
|
30
|
+
|
31
|
+
<p id="hiddenParagraph" style="visibility: hidden">A paragraph hidden using CSS visibility=hidden</p>
|
32
|
+
|
33
|
+
<p id="suppressedParagraph" style="display: none">A paragraph suppressed using CSS display=none</p>
|
34
|
+
|
35
|
+
<p style="visibility: hidden">A <b id="hiddenSubElement">sub-element</b> hidden using CSS visibility=hidden</p>
|
36
|
+
|
37
|
+
<p style="visibility: hidden">A <b id="visibleSubElement" style="visibility: visible">sub-element that is explicitly visible</b> using CSS visibility=visible</p>
|
38
|
+
|
39
|
+
<p style="display: none">A <b id="suppressedSubElement">sub-element</b> suppressed using CSS display=none</p>
|
40
|
+
|
41
|
+
<p id="jsHiddenParagraph">A paragraph hidden using CSS visibility=hidden, applied by JavaScript</p>
|
42
|
+
|
43
|
+
<p id="classSuppressedParagraph" class="suppressed">A paragraph suppressed via CSS class</p>
|
44
|
+
|
45
|
+
<p id="jsClassSuppressedParagraph">A paragraph suppressed via CSS class, applied by JavaScript</p>
|
46
|
+
|
47
|
+
<script type="text/javascript">
|
48
|
+
document.getElementById('jsHiddenParagraph').style.visibility = "hidden";
|
49
|
+
document.getElementById('jsClassSuppressedParagraph').className = "suppressed";
|
50
|
+
</script>
|
51
|
+
|
52
|
+
</body>
|
53
|
+
</html>
|