summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests/wml/timer.wml
blob: 8885934ba3b0d26d037d75615d20b48c568e7eb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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>