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 @@ + + + + + + + Prado Client-Side CompareValidator Tests + + + + + + + + + +

Prado Client-Side CompareValidator Tests

+ +
+ + +
+
+ + + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+ + + + diff --git a/framework/Web/Javascripts/tests/CustomValidator.html b/framework/Web/Javascripts/tests/CustomValidator.html new file mode 100644 index 00000000..34303781 --- /dev/null +++ b/framework/Web/Javascripts/tests/CustomValidator.html @@ -0,0 +1,74 @@ + + + + + + + Prado Client-Side CustomValidator Tests + + + + + + + + + +

Prado Client-Side CustomValidator Tests

+ +
+ + +
+ + + +
+ +
+ + + + diff --git a/framework/Web/Javascripts/tests/DatePicker.html b/framework/Web/Javascripts/tests/DatePicker.html new file mode 100644 index 00000000..d173006d --- /dev/null +++ b/framework/Web/Javascripts/tests/DatePicker.html @@ -0,0 +1,99 @@ + + + + + Prado Date Picker + + + + + + + + +
+ + +
+ + +as
+dv
+as
+d
+as
+d
+asd
+a
+sd
+dv
+as
+d
+as
+d
+asd
+a
+sd
+dv
+as
+d
+as
+d
+asd
+a
+sd
+
+ + +
+d
+as
+d
+asd
+a
+sd
+dv
+as
+d
+as
+d
+asd
+a
+sd
+ + diff --git a/framework/Web/Javascripts/tests/Effects.html b/framework/Web/Javascripts/tests/Effects.html new file mode 100644 index 00000000..6ee5324b --- /dev/null +++ b/framework/Web/Javascripts/tests/Effects.html @@ -0,0 +1,124 @@ + + + + + Effects demo page + + + + + + + +

Effect.Fade()

+ +

Call with new Effect.Fade(element)

+

Example: onclick="new Effect.Fade(this)"

+ +
+ Click here or the image to start effect +
+ + +

Effect.Highlight()

+ +

Call with new Effect.Highlight(element)

+

Example: onclick="new Effect.Highlight(this)"

+ +
+ Click here or the image to start effect +
+ +

Effect.Appear()

+ +

Call with new Effect.Appear(element)

+

Example: onclick="new Effect.Appear('appear')"

+ +Start effect + + + +

Effect.Scale()

+ +

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)"

+ +
+ + + + +
+ +

Effect.Squish()

+

Call with new Effect.Squish(element)

+
+ Click me to squish.
+ + +
+ +

Effect.Puff()

+

Call with new Effect.Puff(element)

+

Works with absolute and relative positioned elements. In this example, divs with float:left are used.

+
+ (floating) Click me to puff.
+ + +
+
+ (floating) Click me to puff.
+ +
+
+ (floating) Click me to puff.
+ +
+
+ (floating) Click me to puff.
+ + +
+
+ (floating) Click me to puff.
+ +
+
+ (floating) Click me to puff.
+ +
+ +
+ (floating) Click me to puff.
+ +
+
+ (floating) Click me to puff.
+ +
+
+ (floating) Click me to puff.
+ + +
+
+ (floating) Click me to puff.
+ +
+
+ (floating) Click me to puff.
+ +
+ +
+ (floating) Click me to puff.
+ +
+ + + \ No newline at end of file diff --git a/framework/Web/Javascripts/tests/Form.disable.html b/framework/Web/Javascripts/tests/Form.disable.html new file mode 100644 index 00000000..5ff5f7d6 --- /dev/null +++ b/framework/Web/Javascripts/tests/Form.disable.html @@ -0,0 +1,37 @@ + + + + + Form disable test + + + + + + +
+Number + + + +
+ + + yes + no + + +
+

+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 @@ + + + + + + + + + + +

+ content +
+
+ + + +
+ + \ No newline at end of file diff --git a/framework/Web/Javascripts/tests/PradoTestSuite.html b/framework/Web/Javascripts/tests/PradoTestSuite.html new file mode 100644 index 00000000..8b3c8ccf --- /dev/null +++ b/framework/Web/Javascripts/tests/PradoTestSuite.html @@ -0,0 +1,37 @@ + + + + + + Prado Javascript Test Suite + + + + + + +

Prado Javascript Test Suite

+ +

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 @@ + + + + + + + Prado Client-Side RangeValidator Tests + + + + + + + + + +

Prado Client-Side RangeValidator Tests

+ +
+ + +
+ + + +
+ +
+ + + + diff --git a/framework/Web/Javascripts/tests/RegularExpressionValidator.html b/framework/Web/Javascripts/tests/RegularExpressionValidator.html new file mode 100644 index 00000000..619ec6f5 --- /dev/null +++ b/framework/Web/Javascripts/tests/RegularExpressionValidator.html @@ -0,0 +1,72 @@ + + + + + + + Prado Client-Side RegularExpressionValidator Tests + + + + + + + + + +

Prado Client-Side RegularExpressionValidator Tests

+ +
+ + +
+ + + + + + +
+ +
+ + + + diff --git a/framework/Web/Javascripts/tests/RequiredFieldValidator.html b/framework/Web/Javascripts/tests/RequiredFieldValidator.html new file mode 100644 index 00000000..ae99d355 --- /dev/null +++ b/framework/Web/Javascripts/tests/RequiredFieldValidator.html @@ -0,0 +1,95 @@ + + + + + + + Prado Client-Side RequiredFieldValidator Tests + + + + + +

Prado Client-Side RequiredFieldValidator Tests

+ +
+ + + + + + + +
+
+ + + + + + + + +
+ +
+
+ + + + + + + + +
+ +
+ + + + + + + + +
\ No newline at end of file diff --git a/framework/Web/Javascripts/tests/RequiredListValidator.html b/framework/Web/Javascripts/tests/RequiredListValidator.html new file mode 100644 index 00000000..7e79e4af --- /dev/null +++ b/framework/Web/Javascripts/tests/RequiredListValidator.html @@ -0,0 +1,110 @@ + + + + + + + Prado Client-Side RequiredListValidator Tests + + + + + + + + + + + + + + + + + +

Prado Client-Side RequiredListValidator Tests

+ +
+ + +
+
+ 1 + 2 + 3 + 4 + +
+ +
+ + +
+ + +
+ +
+ + + + diff --git a/framework/Web/Javascripts/tests/ValidationTests.html b/framework/Web/Javascripts/tests/ValidationTests.html new file mode 100644 index 00000000..67c9aecb --- /dev/null +++ b/framework/Web/Javascripts/tests/ValidationTests.html @@ -0,0 +1,79 @@ + + + + + + Prado Client-Side Validation Tests + + + + + + + + + + + + +

Prado Client-Side Validation Tests

+ +

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 @@ + + + + +Test all compressed JS + + + + + + + + + +OK + + diff --git a/framework/Web/Javascripts/tests/console.html b/framework/Web/Javascripts/tests/console.html new file mode 100644 index 00000000..e6aed30f --- /dev/null +++ b/framework/Web/Javascripts/tests/console.html @@ -0,0 +1,30 @@ + + + + Prototype Console + + + + +
+ + +
+
+
+ + diff --git a/framework/Web/Javascripts/tests/fungii_logo.gif b/framework/Web/Javascripts/tests/fungii_logo.gif new file mode 100644 index 00000000..b667c73e Binary files /dev/null and b/framework/Web/Javascripts/tests/fungii_logo.gif differ diff --git a/framework/Web/Javascripts/tests/getElementsByClassName.html b/framework/Web/Javascripts/tests/getElementsByClassName.html new file mode 100644 index 00000000..b764aac4 --- /dev/null +++ b/framework/Web/Javascripts/tests/getElementsByClassName.html @@ -0,0 +1,28 @@ + + + + + + + +
a: foo
+
b: foo, bar
+
c: bar
+
d: bar, baz
+
e: baz
+
f: foo, baz
+ +
+ + + +
+ + diff --git a/framework/Web/Javascripts/tests/getElementsBySelector.html b/framework/Web/Javascripts/tests/getElementsBySelector.html new file mode 100644 index 00000000..e8f716fc --- /dev/null +++ b/framework/Web/Javascripts/tests/getElementsBySelector.html @@ -0,0 +1,55 @@ + + + + +document.getElementsBySelector Demo + + + + + + +

document.getElementsBySelector Demo

+

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

+
+ +
+

Try them out:

+ +
+ + diff --git a/framework/Web/Javascripts/tests/index.html b/framework/Web/Javascripts/tests/index.html new file mode 100644 index 00000000..2ca89cc6 --- /dev/null +++ b/framework/Web/Javascripts/tests/index.html @@ -0,0 +1,138 @@ + + + + + + + + + + +Selenium Functional Test Runner + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Selenium TestRunner

+
+ + + + + + + + + + + +
+ Run: + + +
+ Mode: + + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Elapsed:00.00
TestsCommands
0run0passed
0failed0failed
0incomplete
+
+ +
+

Javascript Log Console (Close Clear)

+
+ + + diff --git a/framework/Web/Javascripts/tests/librarytest.html b/framework/Web/Javascripts/tests/librarytest.html new file mode 100644 index 00000000..14a024a2 --- /dev/null +++ b/framework/Web/Javascripts/tests/librarytest.html @@ -0,0 +1,49 @@ + + + + +Test all compressed JS + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +OK + + diff --git a/framework/Web/Javascripts/tests/test_scripts/TestRequiredFieldValidator.html b/framework/Web/Javascripts/tests/test_scripts/TestRequiredFieldValidator.html new file mode 100644 index 00000000..f9895a23 --- /dev/null +++ b/framework/Web/Javascripts/tests/test_scripts/TestRequiredFieldValidator.html @@ -0,0 +1,85 @@ + + + +Test Open + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Test Open
+
open../tests/RequiredFieldValidator.html 
assertLocationRequiredFieldValidator.html 
assertTextPresent RequiredFieldValidator Tests +  
assertNotVisiblevalidator1
assertNotVisiblevalidator2
clicksubmit1
assertVisiblevalidator1
assertVisiblevalidator2
typetext1testing
clicksubmit1
assertNotVisiblevalidator1
clicksubmit2
assertNotVisiblevalidator1
assertNotVisiblevalidator2
assertVisiblevalidator3
assertVisiblevalidator4
+ + \ No newline at end of file diff --git a/framework/Web/Javascripts/tests/test_scripts/TestSuite.html b/framework/Web/Javascripts/tests/test_scripts/TestSuite.html new file mode 100644 index 00000000..9b8b8918 --- /dev/null +++ b/framework/Web/Javascripts/tests/test_scripts/TestSuite.html @@ -0,0 +1,36 @@ + + + + +Test Suite + + + + + + + + + + +
Test Suite
TestTRequiredFieldValidator
+ + + -- cgit v1.2.3