Merge "Fix bug TTS-1767 update code format" into tizen_2.2
[test/tct/web/wrt.git] / tct-rt02-wrt-tests / css-animation-background-enable / index.html
1 <!DOCTYPE html>
2 <!--
3 Copyright (c) 2012 Intel Corporation.
4
5 Redistribution and use in source and binary forms, with or without modification,
6 are permitted provided that the following conditions are met:
7
8 * Redistributions of works must retain the original copyright notice, this list
9   of conditions and the following disclaimer.
10 * Redistributions in binary form must reproduce the original copyright notice,
11   this list of conditions and the following disclaimer in the documentation
12   and/or other materials provided with the distribution.
13 * Neither the name of Intel Corporation nor the names of its contributors
14   may be used to endorse or promote products derived from this work without
15   specific prior written permission.
16
17 THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
18 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
21 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22 BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
24 OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
28 Authors:
29         Hao, Yunfei <yunfenx.hao@intel.com>
30
31 -->
32
33 <html>
34   <head>
35     <title>WRT Test: css-animation-background-enable</title>
36     <link rel="author" title="Intel" href="http://www.intel.com"/>
37     <link rel="help" href=""/>
38     <meta name="flags" content=""/>
39     <meta name="assert" content="Check if WRT is able to continue render CSS animation when Web Application enters invisible state while background support is enabled"/>
40     <meta charset="utf-8">
41     <style>
42         .main
43         {
44             width:100px;
45             height:100px;
46             background:red;
47             position:relative;
48             -webkit-animation:ani 500s;
49         }
50
51         @-webkit-keyframes ani
52         {
53             0%   {background:red; left:0px; top:0px;}
54             1%  {background:yellow; left:200px; top:0px;}
55             3%  {background:blue; left:400px; top:0px;}
56             75%  {background:blue; left:600px; top:0px;}
57             100% {background:blue; left:800px; top:0px;}
58         }
59
60         *{
61             font-size:20px;
62         }
63     </style>
64   </head>
65   <body>
66     <p><b>CSS3 Animation Test:</b> </br>
67     1.When the moving block turns to yellow color (the right-side of the block arrived in 300px), press the "Home" button on device.</br>
68     Expcted:it turned to the home screen.</br>
69     2.Wait for more than 10 seconds and then turn back to this widget by clicking the icon on the home screen or using the command "wrt-launcher -s wrt3css171.CssAnimationBackgroundEnable".</br>
70     Expcted:the block continuously turning the color from yellow to blue, and became dark bule when arrived at 500px.</br>
71     </p>
72     <p>0px- - - - - - - - - - - - - - - - - - - 300px - - - - - - - - - - - - 500px</p>
73     <p style="border-top:1px solid #ccc;width:300px;"   ></p>
74     <p style="border-top:1px solid #ccc;width:500px;"   ></p>
75     <div class="main"></div>
76     <input type="button" value="RELOAD" onclick="javascript:window.top.location.reload()"/>
77   </body>
78 </html>