diff options
Diffstat (limited to 'WebCore/manual-tests')
39 files changed, 894 insertions, 2 deletions
diff --git a/WebCore/manual-tests/NPN_Invoke/NPN_Invoke.xcodeproj/project.pbxproj b/WebCore/manual-tests/NPN_Invoke/NPN_Invoke.xcodeproj/project.pbxproj index f89106f..22c6659 100644 --- a/WebCore/manual-tests/NPN_Invoke/NPN_Invoke.xcodeproj/project.pbxproj +++ b/WebCore/manual-tests/NPN_Invoke/NPN_Invoke.xcodeproj/project.pbxproj @@ -52,9 +52,9 @@ 089C1671FE841209C02AAC07 /* External Frameworks and Libraries */ = { isa = PBXGroup; children = ( - 2220AF6009A447200030077C /* WebKit.framework */, 84226A8D06823C4700780194 /* Carbon.framework */, 0AA1909FFE8422F4C02AAC07 /* CoreFoundation.framework */, + 2220AF6009A447200030077C /* WebKit.framework */, ); name = "External Frameworks and Libraries"; sourceTree = "<group>"; @@ -62,8 +62,8 @@ 089C167CFE841241C02AAC07 /* Resources */ = { isa = PBXGroup; children = ( - 2220B04609A459ED0030077C /* Localized.r */, 8D576317048677EA00EA77CD /* Info.plist */, + 2220B04609A459ED0030077C /* Localized.r */, ); name = Resources; sourceTree = "<group>"; diff --git a/WebCore/manual-tests/drag-image-to-desktop.html b/WebCore/manual-tests/drag-image-to-desktop.html new file mode 100644 index 0000000..abcd395 --- /dev/null +++ b/WebCore/manual-tests/drag-image-to-desktop.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> + +<html> +<body> +<span style=""> +<p>This page tests WebKit's behavior when dragging an image with a file extension that doesn't match its MIME type or actual file type +<p>Prerequisites:<br> +<ul><li>run the LayoutTest's webserver (WebKitTools/run-webkit-httpd)</ul> +<p>Steps to test:<br> +<ol><li>drag and drop the image below to the desktop</ol> +<img src="http://127.0.0.1:8000/misc/resources/generatedimage.bat" width="88" height="31"> +<p>Expected results:<br> +The file should have .gif extension <em>(not .bat or .jpg/.jpeg)</em> +</body> +</html> diff --git a/WebCore/manual-tests/pointer-events.html b/WebCore/manual-tests/pointer-events.html new file mode 100644 index 0000000..b931176 --- /dev/null +++ b/WebCore/manual-tests/pointer-events.html @@ -0,0 +1,203 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd"> +<html> +<head> + <meta http-equiv="Content-type" content="text/html; charset=utf-8"> + <title>Test for 'pointer-events' property in HTML</title> + <style type="text/css" media="screen"> + #a { + pointer-events: auto; + background: #88f; + } + + #a:hover { + background: green; + } + + #b { + pointer-events: none; + background: #88f; + } + + #b:hover { + background: red; + } + + #c { + pointer-events: auto; + background: #88f; + } + + #c span { + pointer-events: none; + background: #8ff; + } + + #c:hover { + background: green; + } + + #d { + pointer-events: none; + background: #88f; + } + + #d span { + pointer-events: auto; + padding: 0 10px; + background: #8ff; + } + + #d:hover { + background: gray; + } + + #e { + padding: 10px; + pointer-events: none; + background: #88f; + } + + #e div { + pointer-events: auto; + background: #8ff; + } + + #e:hover { + background: gray; + } + + #e div:hover { + background: green; + } + + #f, #g, #h, #i, #k, #m { + padding: 10px; + background: #88f; + } + + #f { + pointer-events: auto; + } + + #f:hover { + background: green; + } + + #g { + pointer-events: none; + } + + #g:hover { + background: red; + } + + #h { + pointer-events: auto; + } + + #h:hover { + background: green; + } + + #i { + pointer-events: none; + } + + #i:hover { + background: red; + } + + #j { + background: #88f; + pointer-events: none; + } + + #j:hover { + background: gray; + } + + #k { + pointer-events: auto; + } + + #k:hover { + background: green; + } + + #l { + background: #88f; + pointer-events: auto; + } + + #l:hover { + background: green; + } + + #m { + pointer-events: none; + } + + #m:hover { + background: red; + } + + </style> + +</head> +<body> + <h1>Testing 'pointer-events' property in HTML</h1> + + <p id="a">This whole paragraph SHOULD change background when hovered</p> + + <p id="b">This whole paragraph SHOULD NOT change background when hovered</p> + + <p id="c">This paragraph SHOULD change background when hovered anywhere including + <span>this inline text</span> even though the inline text ignores pointer events.</p> + + <p id="d">This paragraph SHOULD NOT change when the pointer is over only it but + <span>this inline text</span> SHOULD change and cause the parent to change also.</p> + + <div id="e">This paragraph SHOULD NOT change when the pointer is over only it (not the child) + <div>This child element SHOULD change and cause the parent to change also</div> + </div> + + <p> + The following image SHOULD change when the pointer is over it. + </p> + + <img id="f" src="../../LayoutTests/media/content/abe.png"> + + <p> + The following image SHOULD NOT change when the pointer is over it. + </p> + + <img id="g" src="../../LayoutTests/media/content/abe.png"> + + <p> + The following image SHOULD change when the pointer is over it. It is inline + with this paragraph. + <img id="h" src="../../LayoutTests/media/content/abe.png"> + </p> + + <p> + The following image SHOULD NOT change when the pointer is over it. It is inline + with this paragraph. + <img id="i" src="../../LayoutTests/media/content/abe.png"> + </p> + + <p id="j"> + This paragraph SHOULD NOT change when the pointer is over only it, but the child + image SHOULD react and cause the parent to change. + <img id="k" src="../../LayoutTests/media/content/abe.png"> + </p> + + <p id="l"> + This paragraph SHOULD change when the pointer is over it, but the child + image SHOULD NOT react. + <img id="m" src="../../LayoutTests/media/content/abe.png"> + </p> + + +</body> +</html> diff --git a/WebCore/manual-tests/wml/a-br-element.wml b/WebCore/manual-tests/wml/a-br-element.wml new file mode 100644 index 0000000..c62543c --- /dev/null +++ b/WebCore/manual-tests/wml/a-br-element.wml @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> +<wml> + <card title="A element Test"> + <p>Test for A element including BR element</p> + <p> + "Next Page" will be broken by BR element between them<br/> + <a href="../test.wml">Next <br/> page</a> + </p> + </card> +</wml> + diff --git a/WebCore/manual-tests/wml/a-element.wml b/WebCore/manual-tests/wml/a-element.wml new file mode 100644 index 0000000..07a00de --- /dev/null +++ b/WebCore/manual-tests/wml/a-element.wml @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> +<wml> + <card title="A element Test"> + <p>Test for A element. <br/>When mouse moves into link, "go to test.wml" will appear, click the link, will jump to test.wml</p> + + <p> + <a href="../test.wml" title="go to test.wml" >Next page</a> + </p> + </card> +</wml> + diff --git a/WebCore/manual-tests/wml/a-img-element.wml b/WebCore/manual-tests/wml/a-img-element.wml new file mode 100644 index 0000000..71dad86 --- /dev/null +++ b/WebCore/manual-tests/wml/a-img-element.wml @@ -0,0 +1,11 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> +<wml> + <card title="A element Test"> + <p>Test for A element including img element. </p> + <p> + <a href="../test.wml" title="Next Page"><img src="../resources/smile.gif"/></a> + </p> + </card> +</wml> + diff --git a/WebCore/manual-tests/wml/access-target.wml b/WebCore/manual-tests/wml/access-target.wml new file mode 100644 index 0000000..7f00420 --- /dev/null +++ b/WebCore/manual-tests/wml/access-target.wml @@ -0,0 +1,11 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> + +<wml> +<card ontimer="./targetdeck.wml"> +<timer name="t1" value="30"/> +<p> Test for Deck Access control in WML. </p> +<p> If the test passes, this deck will jump to "targetdeck.wml" after 3 second</p> +</card> +</wml> diff --git a/WebCore/manual-tests/wml/anchor-br-element.wml b/WebCore/manual-tests/wml/anchor-br-element.wml new file mode 100644 index 0000000..922325c --- /dev/null +++ b/WebCore/manual-tests/wml/anchor-br-element.wml @@ -0,0 +1,12 @@ +<?xml version="1.0" ?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> + +<wml> +<card title="Anchor Tag"> +<p> Test for br element enclosed with anchor element </p> +<p> +<anchor><go href="../test.wml"/>Go to <br/>test.wml</anchor> +</p> +</card> +</wml> diff --git a/WebCore/manual-tests/wml/anchor-element.wml b/WebCore/manual-tests/wml/anchor-element.wml new file mode 100644 index 0000000..fe59eac --- /dev/null +++ b/WebCore/manual-tests/wml/anchor-element.wml @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> +<wml> + <card title="Anchor Tag"> + <p> + This is an anchor bound to go task<br/> + <anchor>Next page + <go href="cards.wml"/> + </anchor> + </p> + + <p> + This an anchor bound to prev task<br/> + <anchor title="Previous" >Prev page + <prev/> + </anchor> + </p> + + <p> + This an anchor bound to refresh task<br/> + <anchor title="Refresh">Refresh $var + <refresh> + <setvar name="var" value="me"/> + </refresh> + </anchor> + </p> + + <p> + This is an anchor contains img element, bound to prev task <br/> + <anchor title="click to go back"> + <prev/> + <img src="../resources/smile.gif" /> + </anchor> + </p> + </card> +</wml> diff --git a/WebCore/manual-tests/wml/anchor-img-element.wml b/WebCore/manual-tests/wml/anchor-img-element.wml new file mode 100644 index 0000000..ddd0c28 --- /dev/null +++ b/WebCore/manual-tests/wml/anchor-img-element.wml @@ -0,0 +1,12 @@ +<?xml version="1.0" ?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> + +<wml> +<card title="Anchor Tag"> +<p> Test for WML img enclosed with anchor element, when the mouse move into the image, the tip "go to test.wml" will appear</p> +<p> +<anchor title="go to test.wml"><img src="../resources/smile.gif"/> <go href="../test.wml"/></anchor> +</p> +</card> +</wml> diff --git a/WebCore/manual-tests/wml/card-newcontext-attr.wml b/WebCore/manual-tests/wml/card-newcontext-attr.wml new file mode 100644 index 0000000..bcfa1d3 --- /dev/null +++ b/WebCore/manual-tests/wml/card-newcontext-attr.wml @@ -0,0 +1,20 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> + +<wml> + <card id="firstcard" title="One"> + <p> Test for newcontext attribute of card element</p> + <p> This is the first card, Click "Go" to enter card two. <br/> Because newcontext of card two is true, the history state will be clean, and the variable "$var1" won't be replaced</p> + <do type="accept" label="Go"> + <go href="#secondcard"> + <setvar name="var1" value="two"/> + </go> + </do> + </card> + + <card id="secondcard" title="$var1" newcontext="true"> + <p> This is the card $var1 </p> + <p> Because newcontext of this card is true, the history state will be clean, and the variable "$var1" won't be replaced</p> + </card> +</wml> + diff --git a/WebCore/manual-tests/wml/card-onenterbackward.wml b/WebCore/manual-tests/wml/card-onenterbackward.wml new file mode 100644 index 0000000..42ba104 --- /dev/null +++ b/WebCore/manual-tests/wml/card-onenterbackward.wml @@ -0,0 +1,22 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> +<wml> +<card id="card1" title="Card 1" onenterbackward="#card3"> +<p>Test for card onenterbackward intrinsic event</p> +<p> Click "Go" to jump to the card2, if you go back from card2, it will jump to card3</p> +<anchor title="go to card2"> +<go href="#card2">Go</go> +</anchor> +</card> +<card id="card2" title="Card 2"> +<p>This is card2,click "Back" will back to the previous page</p> +<anchor> +Back +<prev /> +</anchor> +</card> +<card id="card3" title="Card 3" > +<p>This is card3</p> +</card> +</wml> diff --git a/WebCore/manual-tests/wml/card-onenterforward.wml b/WebCore/manual-tests/wml/card-onenterforward.wml new file mode 100644 index 0000000..5a7db37 --- /dev/null +++ b/WebCore/manual-tests/wml/card-onenterforward.wml @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> +<wml> +<card id="card1" title="Card 1" onenterforward="#card2"> +<p>Test for card onenterforward event</p> +<p>Card one will jump to card two when entered forward it</p> +</card> +<card id="card2" title="Card 2"> +<p>Test for card onenterforward event</p> +<p>This is card2, I am entered by card one forwarding</p> +</card> +</wml> + diff --git a/WebCore/manual-tests/wml/card-ontimer.wml b/WebCore/manual-tests/wml/card-ontimer.wml new file mode 100644 index 0000000..a1cc988 --- /dev/null +++ b/WebCore/manual-tests/wml/card-ontimer.wml @@ -0,0 +1,19 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> + +<wml> +<head> +<meta http-equiv="Cache-Control" content="max-age=0"/> +</head> +<card id="card1" ontimer="#card2" title="Card one"> +<p> Test for card ontimer intrinsic event in WML </p> +<timer name="time1" value="50"/> +<p> +This is card one<br/>The timer is triggered by the ontimer intrinsic event(ontimer as attribute of card element)<br/>When the timer is timeout(after 5s), will jump to card two. +</p> +</card> +<card id="card2"> +This is Card two +</card> +</wml> + diff --git a/WebCore/manual-tests/wml/deck-access-control.wml b/WebCore/manual-tests/wml/deck-access-control.wml new file mode 100644 index 0000000..8158f18 --- /dev/null +++ b/WebCore/manual-tests/wml/deck-access-control.wml @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> + +<wml> +<card onenterforward="targetdeck.wml"> +<p> Test for Deck Access control in WML. </p> +<p> This deck will try to jump to "targetdeck.wml" when it is loaded. But it will <strong>FAIL</strong> because "targetdeck.wml" just allows "access-target.wml" to access it.</p> +<p> You can click 'Go' to enter 'access-target.wml', and then enter 'targetdeck.wml' from there</p> +<anchor title="go to access-target.wml"><go href="./access-target.wml">Go</go></anchor> +</card> +</wml> diff --git a/WebCore/manual-tests/wml/go-element.wml b/WebCore/manual-tests/wml/go-element.wml new file mode 100644 index 0000000..33ea41a --- /dev/null +++ b/WebCore/manual-tests/wml/go-element.wml @@ -0,0 +1,40 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> +<wml> + <card id="card1" title="One"> + <p> Test for go element in WML </p> + <br/> + Case 1: jump among one deck + <do name="go" type="accept" label="Go to card2"> + <go href="#card2" sendreferer="true" /> + </do> + <p/> + Case 2: jump from one deck to another one + <do name="go2" type="accept" label="Go to test.wml"> + <go href="../test.wml"/> + </do> + <p/> + Case 3: jump to test.wml and post data with post method + <do name="go3" type="accept" label="Post to test.wml"> + <go href="../test.wml" method="post" accept-charset="utf-8, latin1"> + <postfield name="var1" value="hello"/> + <postfield name="var2" value=" world"/> + </go> + </do> + <p/> + Case 4: jump to test.wml and send request with get method + <do name="go4" type="accept" label="get from test.wml" sendreferer="true"> + <go href="../test.wml" method="get" accept-charset="utf-8,latin1,iso-8859-1"> + <postfield name="var1" value="hello"/> + <postfield name="var2" value="friend"/> + </go> + </do> + </card> + + <card id="card2" title="Two"> + <p align="center"> + This is the second card + </p> + </card> +</wml> + diff --git a/WebCore/manual-tests/wml/input-emptyok.wml b/WebCore/manual-tests/wml/input-emptyok.wml new file mode 100644 index 0000000..e2d7a1e --- /dev/null +++ b/WebCore/manual-tests/wml/input-emptyok.wml @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> + +<wml> +<card> +<p> Test for input emptyok attribute in WML </p> +For the following input elements, input is required: +<br/> +format=N*M;emptyok=false<input name="x2" emptyok="false" format="N*M"/> +<br/> +format=*M;emptyok=false<input name="x3" emptyok="false" format="*M"/> +<br/> +For the following input elements, input is not required: +<br/> +default<input name="x4"/> +<br/> +format=*M<input name="x5" format="*M"/> +<br/> +emptyok=true<input name="x6" emptyok="true"/> +<br/> +format=n*M;emptyok=true<input name="x7" emptyok="true" format="n*M"/> +<br/> +format=*M;emptyok=true<input name="x8" emptyok="true" format="*M"/> +</card> +</wml> diff --git a/WebCore/manual-tests/wml/input-format.wml b/WebCore/manual-tests/wml/input-format.wml new file mode 100644 index 0000000..a916ec5 --- /dev/null +++ b/WebCore/manual-tests/wml/input-format.wml @@ -0,0 +1,37 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> + +<wml> +<card title="Input"> +<p> Test for input format in WML</p> +<p> +Password(default:*M):<input name="default"/> +<br/> +Password(6M): <input name="Pwd" type="password" format="6M"/> +<br/> +Password(AAa): <input name="Pwd2" type="password" format="AAa"/> +<br/> +one-numeric+lowercase(N*a):<input name="upper" format="N*a"/> +<br/> +Uppercase+non-numeric(AAA;size=8):<input name="upper" size="8" format="AAA"/> +<br/> +Lowercase+non-numeric(aaa;size=8;width=2):<input name="lower" size="8" width="2" format="aaa"/> +<br/> +Numeric(5N;maxlen=3):<input name="numeric" maxlength="3" format="5N"/> +<br/> +Numeirc+symbols(nnn):<input name="numeric+" format="nnn"/> +<br/> +Uppercase+numeric+symbols(XXX):<input name="upper+" format="XXX"/> +<br/> +Lowercase+numeric+symbols(xxx):<input name="lower+" format="xxx"/> +<br/> +Uppercase+numeric+symbols(MMM):<input name="def_upper+" format="MMM"/> +<br/> +Lowercase+numeric+symbols(mmm):<input name="def_lower+" format="mmm"/> +<br/> +Mixed data(a\-NN*x)<input name="any" format="a\-NN*x"/> +<br/> +</p> +</card> +</wml> diff --git a/WebCore/manual-tests/wml/onevent-go.wml b/WebCore/manual-tests/wml/onevent-go.wml new file mode 100644 index 0000000..5fd6b34 --- /dev/null +++ b/WebCore/manual-tests/wml/onevent-go.wml @@ -0,0 +1,20 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> +<wml> + +<card id="card1" title="Card 1"> + <onevent type="onenterforward"> + <go href="#card2"/> + </onevent> +<p>Test for onevent element which binds go task with onenterforward event</p> +<p>when enter forward to this card, it will jump to card 2</p> +</card> +<card id="card2" title="Card 2"> +<p>Test for onevent element which binds go task with onenterforward event</p> +<p>while card 1 is loaded, it will trigger the onenterforward event and jump to card2 immediately</p> +<p>This is card2</p> +</card> + +</wml> + diff --git a/WebCore/manual-tests/wml/onevent-noop.wml b/WebCore/manual-tests/wml/onevent-noop.wml new file mode 100644 index 0000000..4b373c3 --- /dev/null +++ b/WebCore/manual-tests/wml/onevent-noop.wml @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> +<wml> + +<card id="card1" title="Card 1"> + <onevent type="onenterforward"> + <noop/> + </onevent> +<p>Test for onevent element which binds noop task with onenterforward event</p> +<p>when enter forward to this card, it won't do anything as if the onenterforward event wasn't triggered</p> +</card> +</wml> + diff --git a/WebCore/manual-tests/wml/onevent-prev.wml b/WebCore/manual-tests/wml/onevent-prev.wml new file mode 100644 index 0000000..4e8182b --- /dev/null +++ b/WebCore/manual-tests/wml/onevent-prev.wml @@ -0,0 +1,22 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> +<wml> + +<card id="card1" title="Card 1"> +<p>Test for onevent element which binds prev task with onenterforward event</p> +<p>Clicking "Go" will cause it to jump to the card2, but which binds prev task to onenterforward event within onevent element, as a result, it will jump back to card 1</p> +<anchor title="Go to card2">Go +<go href="#card2"/> +</anchor> +</card> + +<card id="card2" title="Card 2"> +<p>Test for onevent element which binds prev task with onenterforward event</p> +<p>This is card2. When card 2 is entered forward, it will jump back to the previous page </p> + <onevent type="onenterforward"> + <prev/> + </onevent> +</card> +</wml> + diff --git a/WebCore/manual-tests/wml/onevent-refresh.wml b/WebCore/manual-tests/wml/onevent-refresh.wml new file mode 100644 index 0000000..4ad0781 --- /dev/null +++ b/WebCore/manual-tests/wml/onevent-refresh.wml @@ -0,0 +1,18 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> +<wml> + +<card id="card1" title="Card 1"> + <timer name="T" value="30"/> + <onevent type="ontimer"> + <refresh> + <setvar name="var" value="VARIABLE"/> + </refresh> + </onevent> +<p>Test for onevent element which binds refresh task with ontimer event</p> +<p> When the timer timeout(3s), the page will be refresh. As a consequence, we can see the following variable reference has been substituted</p> +<p align="center"> Here is a variable : var = $var </p> +</card> +</wml> + diff --git a/WebCore/manual-tests/wml/onevent-shadow.wml b/WebCore/manual-tests/wml/onevent-shadow.wml new file mode 100644 index 0000000..bfaaa2a --- /dev/null +++ b/WebCore/manual-tests/wml/onevent-shadow.wml @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> +<wml> +<template> +<onevent type="onenterforward"> +<go href="#card2"/> +</onevent> +</template> +<card id="card1" title="Card One"> +<onevent type="onenterforward"> +<go href="#card3"/> +</onevent> +<p>Test for onevent shadowing in WML</p> +<p>The card-level onevent will shadow the deck-level onevent. As a result, card 1 won't jump to card2 but to card 3 according to the card-level onevent's requirement. After entered the card 3, the deck-level onevent element isn't shadowed by this card, so it will jump to card 2 immediately.</p> +</card> +<card id="card2" title="Card two" > +<p>This is card 2</p> +</card> +<card id="card3" title="Card Three"> +<p>This is card 3</p> +</card> +</wml> diff --git a/WebCore/manual-tests/wml/postfield-get.wml b/WebCore/manual-tests/wml/postfield-get.wml new file mode 100644 index 0000000..38e1043 --- /dev/null +++ b/WebCore/manual-tests/wml/postfield-get.wml @@ -0,0 +1,16 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"><wml> +<card> +<p>Test for postfield element in WML </p> +<p> + Click "Get" to Send data by get method<br /> + <do type="accept" label="Get"> + <go href="../test.wml" method="get"> + <postfield name="i" value="2"/> + <postfield name="j" value="30"/> + </go> + </do> +</p> +</card> +</wml> diff --git a/WebCore/manual-tests/wml/postfield-post.wml b/WebCore/manual-tests/wml/postfield-post.wml new file mode 100644 index 0000000..90dc6ca --- /dev/null +++ b/WebCore/manual-tests/wml/postfield-post.wml @@ -0,0 +1,17 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> +<wml> +<card id="card1" title="card1"> +<p>Test for postfield element in WML</p> +<p> + Click "Post" to Send data with post method<br/> + <do type="accept" name="Ok" label="Post"> + <go href="../test.wml" method="post"> + <postfield name="i" value="2"/> + <postfield name="j" value="30"/> + </go> + </do> +</p> +</card> +</wml> diff --git a/WebCore/manual-tests/wml/select-element.wml b/WebCore/manual-tests/wml/select-element.wml new file mode 100644 index 0000000..e6dd98b --- /dev/null +++ b/WebCore/manual-tests/wml/select-element.wml @@ -0,0 +1,27 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> + +<wml> +<card id="card1" title="Select Test"> +<p> Test for select element in WML </p> +<p> You can select one or more options, and then click 'Answer', the second card will tell you what you selected</p> +<p> +<select name="cars" title="SELECT" multiple="true" > + <option value="volvo" >Volvo</option> + <option value="fiat">Fiat</option> + <option value="saab">Saab</option> + <option value="audi">Audi</option> +</select> +</p> +<do type="accept" label="Answer"> + <go href="#card2"/> +</do> +</card> + +<card id="card2" title="Answer"> +<p> +You selected: $(cars) +</p> +</card> +</wml> diff --git a/WebCore/manual-tests/wml/select-onpick-event.wml b/WebCore/manual-tests/wml/select-onpick-event.wml new file mode 100644 index 0000000..60c25e8 --- /dev/null +++ b/WebCore/manual-tests/wml/select-onpick-event.wml @@ -0,0 +1,16 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> + +<wml> +<card> +<p> Test for select onpick intrinsic event in WML </p> +<p> When you select the 'Lion' option, will jump to test.wml</p> +Please choose your favourite animal:<br/> +<select name="X" multiple="true"> +<option value="D">Dog</option> +<option value="C">Cat</option> +<option value="L" onpick="../test.wml">Lion</option> +</select> +</card> +</wml> diff --git a/WebCore/manual-tests/wml/setvar-element.wml b/WebCore/manual-tests/wml/setvar-element.wml new file mode 100644 index 0000000..fe752cc --- /dev/null +++ b/WebCore/manual-tests/wml/setvar-element.wml @@ -0,0 +1,15 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> +<wml> + <card id="firstcard" title="Test for Setvar element"> + <p> Test for setvar element in WML </p> + <p>This is the first card , has variable: VAR='$var'</p> + <p>Click "Refresh" will update the value of VAR varaible which specified by setvar element</p> + <do name="Refresh" type="accept"> + <refresh> + <setvar name="var" value="VALUE"/> + </refresh> + </do> + </card> +</wml> + diff --git a/WebCore/manual-tests/wml/targetdeck.wml b/WebCore/manual-tests/wml/targetdeck.wml new file mode 100644 index 0000000..3c45edb --- /dev/null +++ b/WebCore/manual-tests/wml/targetdeck.wml @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> + +<wml> +<head> +<access domain="localhost" path="access-target.wml"/> +</head> +<card> +<p> Test for Deck Access control in WML. </p> +<p> This is the targetdeck, only './access-target.wml" can access me </p> +</card> +</wml> diff --git a/WebCore/manual-tests/wml/task-go-in-anchor.wml b/WebCore/manual-tests/wml/task-go-in-anchor.wml new file mode 100644 index 0000000..706e3bf --- /dev/null +++ b/WebCore/manual-tests/wml/task-go-in-anchor.wml @@ -0,0 +1,13 @@ +<?xml version="1.0" ?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> + +<wml> +<card title="Anchor Tag"> +<p> Test for WML go task enclosed with anchor element </p> +<p> click 'Next page' to go to test.wml </p> +<p> +<anchor>Next page<go href="../test.wml"/> </anchor> +</p> +</card> +</wml> diff --git a/WebCore/manual-tests/wml/task-noop-in-do.wml b/WebCore/manual-tests/wml/task-noop-in-do.wml new file mode 100644 index 0000000..105b0df --- /dev/null +++ b/WebCore/manual-tests/wml/task-noop-in-do.wml @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> + +<wml> +<card id="card1"> +<p> Test for Noop task in do element of WML. </p> +<p> If it passes, you should not see the "Back" button</p> + <do name="do" type="accept" label="Back"> + <noop/> + </do> +</card> +</wml> diff --git a/WebCore/manual-tests/wml/task-noop-in-onevent.wml b/WebCore/manual-tests/wml/task-noop-in-onevent.wml new file mode 100644 index 0000000..5ba8af0 --- /dev/null +++ b/WebCore/manual-tests/wml/task-noop-in-onevent.wml @@ -0,0 +1,14 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> + +<wml> +<card> +<p> Test for noop task in onevent element of WML</p> +<p> If it passes, you will see the card one in this deck</p> + <onevent type="onentimer"> + <noop/> + </onevent> +<p> This is Card one </p> +</card> +</wml> diff --git a/WebCore/manual-tests/wml/task-prev-in-anchor.wml b/WebCore/manual-tests/wml/task-prev-in-anchor.wml new file mode 100644 index 0000000..3e0b331 --- /dev/null +++ b/WebCore/manual-tests/wml/task-prev-in-anchor.wml @@ -0,0 +1,13 @@ +<?xml version="1.0" ?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> + +<wml> +<card title="Anchor Tag"> +<p> Test for WML prev task enclosed with anchor element </p> +<p> click 'prev page' to go to previous page if it is not the first page in history</p> +<p> +<anchor>Prev page<prev/></anchor> +</p> +</card> +</wml> diff --git a/WebCore/manual-tests/wml/task-refresh-in-anchor.wml b/WebCore/manual-tests/wml/task-refresh-in-anchor.wml new file mode 100644 index 0000000..239f94a --- /dev/null +++ b/WebCore/manual-tests/wml/task-refresh-in-anchor.wml @@ -0,0 +1,15 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> +<wml> +<card title="$T"> + <p> Test for refresh task within WML anchor element. <br/> click "Refresh" will refresh this page, as a result the page title will be updated. </p> + <p> + <anchor> + Refresh + <refresh> + <setvar name="T" value="Test refresh task"/> + </refresh> + </anchor> + </p> +</card> +</wml> diff --git a/WebCore/manual-tests/wml/template-go.wml b/WebCore/manual-tests/wml/template-go.wml new file mode 100644 index 0000000..927e712 --- /dev/null +++ b/WebCore/manual-tests/wml/template-go.wml @@ -0,0 +1,17 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> + +<wml> +<template> + <do name="go" type="accept" label="Template Go"> + <go href="#card2"/> + </do> +</template> +<card id="card1" title="Card 1"> +<p>Test for template element in WML. Template go button is global</p> +<p> This is Card one, click 'Template Go' to jump to Card two</p> +</card> +<card id="card2" title="Card 2"> +<p>This is card two. <br/>The global template Go button is still visible for me</p> +</card> +</wml> diff --git a/WebCore/manual-tests/wml/template-onevent.wml b/WebCore/manual-tests/wml/template-onevent.wml new file mode 100644 index 0000000..f21ca01 --- /dev/null +++ b/WebCore/manual-tests/wml/template-onevent.wml @@ -0,0 +1,19 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> +<wml> +<template> +<onevent type="onenterforward"> +<go href="#card2"/> +</onevent> +</template> +<card id="card1"> +<p>Test for template element in WML</p> +<p>When other page enter forward this page, it first show card 1, and then immediately jump to card 2 because of the template onenterforward event</p> +</card> +<card id="card2" title="card 2"> +<p> +This is card 2 +</p> +</card> +</wml> diff --git a/WebCore/manual-tests/wml/template-ontimer.wml b/WebCore/manual-tests/wml/template-ontimer.wml new file mode 100644 index 0000000..d72a8fd --- /dev/null +++ b/WebCore/manual-tests/wml/template-ontimer.wml @@ -0,0 +1,17 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" +"http://www.wapforum.org/DTD/wml_1.1.xml"> +<wml> +<template ontimer="#card2"> +</template> +<card id="card1"> +<p>Test for template ontimer event in WML</p> +<p>This is Card one,we will jump to card 2 after 5s because of the template ontimer event</p> +<timer value="50"/> +</card> +<card id="card2" title="card 2"> +<p> +This is card 2 +</p> +</card> +</wml> diff --git a/WebCore/manual-tests/wml/timer.wml b/WebCore/manual-tests/wml/timer.wml new file mode 100644 index 0000000..8885934 --- /dev/null +++ b/WebCore/manual-tests/wml/timer.wml @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> + +<wml> +<head> +<meta http-equiv="Cache-Control" content="max-age=0"/> +</head> +<card id="card1" ontimer="#card2" title="Card one"> +<p> This test case is used to test timer in WML </p> + <timer name="time1" value="50"/> + <p> + This is card one<br/>The timer is triggered by the ontimer intrinsic event(ontimer as attribute of card element)<br/>When the timer is timeout(after 5s), will jump to card two. + </p> +</card> + +<card id="card2" title="Card two"> + <onevent type="ontimer"> + <go href="#card1"/> + </onevent> + <timer name="timer2" value="30"/> + <p> + This is card Two!<br/> The timer is triggered by the ontimer intrinsic event(ontimer is specified by onevent element)<br/>When the timer is timeout(after 3s), will jump back to card one. + </p> +</card> +</wml> + diff --git a/WebCore/manual-tests/wml/variable-substitution.wml b/WebCore/manual-tests/wml/variable-substitution.wml new file mode 100644 index 0000000..29d98c3 --- /dev/null +++ b/WebCore/manual-tests/wml/variable-substitution.wml @@ -0,0 +1,30 @@ +<?xml version="1.0"?> +<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> +<wml> + <card id="card1" title="Test variable substitution"> + <p> Test for variable substitution </p> + <p> Click "Refersh" to refresh the card, and the varaible references in the card will be substitued</p> + <anchor> Refresh <br/> + <refresh> + <setvar name="hi" value="hello"/> + <setvar name="name" value=" Yi chao"/> + <setvar name="name2" value="$(name:e)"/> + <setvar name="name3" value="$(name2:u)"/> + </refresh> + </anchor> + <p>set hi = "hello", name = " Yi chao" <br/> + <![CDATA[$(hi),$name]]> => $(hi),$name <br/> + <![CDATA[$hi,$(name:esCape)]]> => $hi,$(name:esCape) <br/> + <![CDATA[$hi,$(name:e)]]> => $hi,$(name:e) <br/> + <![CDATA[$hi,$(name:U)]]> => $hi,$(name:U) <br/> + </p> + <p>set name2 = $$(name:e) <br/> + <![CDATA[$(hi),$(name2)]]> => $(hi),$(name2) <br/> + <![CDATA[$(hi),$$(name:e)]]> => $(hi),$$(name:e) <br/> + </p> + <p>set name3 = $$(name2:u) <br/> + <![CDATA[$(hi),$name3]]> => $(hi),$name3<br/> + <![CDATA[$(hi),$(name3:e)]]> => $(hi),$(name3:e) <br/> + </p> + </card> +</wml> |