From ccf76e430b7703db028966a845a966f50956f490 Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 5 Dec 2005 01:00:16 +0000 Subject: --- .../Web/Javascripts/tests/CompareValidator.html | 95 ++++++++++++++ .../Web/Javascripts/tests/CustomValidator.html | 74 +++++++++++ framework/Web/Javascripts/tests/DatePicker.html | 99 +++++++++++++++ framework/Web/Javascripts/tests/Effects.html | 124 ++++++++++++++++++ framework/Web/Javascripts/tests/Form.disable.html | 37 ++++++ framework/Web/Javascripts/tests/Insertion.html | 47 +++++++ .../Web/Javascripts/tests/PradoTestSuite.html | 37 ++++++ .../Web/Javascripts/tests/RangeValidator.html | 65 ++++++++++ .../tests/RegularExpressionValidator.html | 72 +++++++++++ .../Javascripts/tests/RequiredFieldValidator.html | 95 ++++++++++++++ .../Javascripts/tests/RequiredListValidator.html | 110 ++++++++++++++++ .../Web/Javascripts/tests/ValidationTests.html | 79 ++++++++++++ .../Web/Javascripts/tests/calendar_system.css | 70 +++++++++++ framework/Web/Javascripts/tests/compression.html | 18 +++ framework/Web/Javascripts/tests/console.html | 30 +++++ framework/Web/Javascripts/tests/fungii_logo.gif | Bin 0 -> 5473 bytes .../Javascripts/tests/getElementsByClassName.html | 28 +++++ .../Javascripts/tests/getElementsBySelector.html | 55 ++++++++ framework/Web/Javascripts/tests/index.html | 138 +++++++++++++++++++++ framework/Web/Javascripts/tests/librarytest.html | 49 ++++++++ .../test_scripts/TestRequiredFieldValidator.html | 85 +++++++++++++ .../Javascripts/tests/test_scripts/TestSuite.html | 36 ++++++ 22 files changed, 1443 insertions(+) create mode 100644 framework/Web/Javascripts/tests/CompareValidator.html create mode 100644 framework/Web/Javascripts/tests/CustomValidator.html create mode 100644 framework/Web/Javascripts/tests/DatePicker.html create mode 100644 framework/Web/Javascripts/tests/Effects.html create mode 100644 framework/Web/Javascripts/tests/Form.disable.html create mode 100644 framework/Web/Javascripts/tests/Insertion.html create mode 100644 framework/Web/Javascripts/tests/PradoTestSuite.html create mode 100644 framework/Web/Javascripts/tests/RangeValidator.html create mode 100644 framework/Web/Javascripts/tests/RegularExpressionValidator.html create mode 100644 framework/Web/Javascripts/tests/RequiredFieldValidator.html create mode 100644 framework/Web/Javascripts/tests/RequiredListValidator.html create mode 100644 framework/Web/Javascripts/tests/ValidationTests.html create mode 100644 framework/Web/Javascripts/tests/calendar_system.css create mode 100644 framework/Web/Javascripts/tests/compression.html create mode 100644 framework/Web/Javascripts/tests/console.html create mode 100644 framework/Web/Javascripts/tests/fungii_logo.gif create mode 100644 framework/Web/Javascripts/tests/getElementsByClassName.html create mode 100644 framework/Web/Javascripts/tests/getElementsBySelector.html create mode 100644 framework/Web/Javascripts/tests/index.html create mode 100644 framework/Web/Javascripts/tests/librarytest.html create mode 100644 framework/Web/Javascripts/tests/test_scripts/TestRequiredFieldValidator.html create mode 100644 framework/Web/Javascripts/tests/test_scripts/TestSuite.html (limited to 'framework/Web/Javascripts/tests') diff --git a/framework/Web/Javascripts/tests/CompareValidator.html b/framework/Web/Javascripts/tests/CompareValidator.html new file mode 100644 index 00000000..1a41fd11 --- /dev/null +++ b/framework/Web/Javascripts/tests/CompareValidator.html @@ -0,0 +1,95 @@ + + + +
+ + +Call with new Effect.Fade(element)
Example: onclick="new Effect.Fade(this)"
Call with new Effect.Highlight(element)
Example: onclick="new Effect.Highlight(this)"
Call with new Effect.Appear(element)
Example: onclick="new Effect.Appear('appear')"
Call with new Effect.Scale(element, percent)
Note: if you scale a div, all contained elements must have width or height set with em. If you +scale an image, width and height are not required to be set. Also, Effect.Scale is aware of other scaling effects done on +the target element, and will act accordingly. The percent parameter is always relative of the original size of the element.
+Example: onmouseover="new Effect.Scale('scale',150)" onmouseout="new Effect.Scale('scale',100)"
Call with new Effect.Squish(element)
Call with new Effect.Puff(element)
Works with absolute and relative positioned elements. In this example, divs with float:left are used.
++disable +enable diff --git a/framework/Web/Javascripts/tests/Insertion.html b/framework/Web/Javascripts/tests/Insertion.html new file mode 100644 index 00000000..1aefd3aa --- /dev/null +++ b/framework/Web/Javascripts/tests/Insertion.html @@ -0,0 +1,47 @@ + +
+ + + + + + + + +This page contains a suite of tests for testing + Prado javascripts.
+ + + diff --git a/framework/Web/Javascripts/tests/RangeValidator.html b/framework/Web/Javascripts/tests/RangeValidator.html new file mode 100644 index 00000000..0dd3c283 --- /dev/null +++ b/framework/Web/Javascripts/tests/RangeValidator.html @@ -0,0 +1,65 @@ + + + + + + +This page contains tests for the utility functions + that JsUnit uses. To see them, take a look at the source.
+ + + diff --git a/framework/Web/Javascripts/tests/calendar_system.css b/framework/Web/Javascripts/tests/calendar_system.css new file mode 100644 index 00000000..a797372e --- /dev/null +++ b/framework/Web/Javascripts/tests/calendar_system.css @@ -0,0 +1,70 @@ +div.Prado_Calendar +{ + border: 1px solid WindowText; + position: absolute; + text-align: center; + background-color: Window; + z-index: 1000; + font: small-caption; + font-weight: normal; + width: 20em; +} + +div.Prado_Calendar .calendarHeader +{ + background-color: ActiveCaption; + padding: 1px; + border-bottom: 1px solid WindowText; +} + +div.Prado_Calendar table +{ + width: 100%; +} + +div.Prado_Calendar .date +{ + font-weight: normal; + cursor: pointer; +} + +div.Prado_Calendar .selected +{ + border: 1px solid WindowText; +} + +div.Prado_Calendar .today +{ + font-weight: bold; +} + +div.Prado_Calendar .current +{ + border: 1px dotted WindowText; +} + +div.Prado_Calendar .calendarBody td +{ + padding: 2px 0; +} + +div.Prado_Calendar .hover +{ + background-color: Highlight; + color: HighlightText; +} + +div.Prado_Calendar td.empty +{ + background-color: Window; +} + +div.Prado_Calendar .grid td +{ + width: 14%; +} + +div.Prado_Calendar .grid +{ + border-spacing: 0; +} \ No newline at end of file diff --git a/framework/Web/Javascripts/tests/compression.html b/framework/Web/Javascripts/tests/compression.html new file mode 100644 index 00000000..66e10a97 --- /dev/null +++ b/framework/Web/Javascripts/tests/compression.html @@ -0,0 +1,18 @@ + + + + +See this blog entry for more information.
+Here are some links in a normal paragraph: Google, Google Groups. This link has class="blog"
: diveintomark
Everything inside the red border is inside a div with id="foo"
.
This is a normal link: Yahoo
+ +This link has class="blog"
: Simon Willison's Weblog
Test Open + |
+ ||
open | +../tests/RequiredFieldValidator.html | ++ |
assertLocation | +RequiredFieldValidator.html | ++ |
assertTextPresent | +RequiredFieldValidator Tests + | ++ |
assertNotVisible | +validator1 | +|
assertNotVisible | +validator2 | +|
click | +submit1 | +|
assertVisible | +validator1 | +|
assertVisible | +validator2 | +|
type | +text1 | +testing |
click | +submit1 | +|
assertNotVisible | +validator1 | +|
click | +submit2 | +|
assertNotVisible | +validator1 | +|
assertNotVisible | +validator2 | +|
assertVisible | +validator3 | +|
assertVisible | +validator4 | +
Test Suite |
TestTRequiredFieldValidator |