Updated tests.xml to create Web Runtime set and format PageVisibility style
authorHao Yunfei <yunfeix.hao@intel.com>
Fri, 21 Jun 2013 10:45:23 +0000 (18:45 +0800)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Mon, 24 Jun 2013 06:58:46 +0000 (06:58 +0000)
Change-Id: I28df022470bdbbd8889d62a4f434b32ca01f6ed6
Signed-off-by: Hao Yunfei <yunfeix.hao@intel.com>
tests.xml
tests/PageVisibility/index.html

index f148cf2..1ea5c9e 100644 (file)
--- a/tests.xml
+++ b/tests.xml
         <test_script_entry test_script_expected_result="0"></test_script_entry>
       </description>
       </testcase>
-      <testcase purpose="Check if js and css animation will suspend when application goes invisible." type="functional_positive" status="approved" component="behavior" execution_type="manual" priority="P0" id="ApplicationInvisible">
-      <description>
-        <pre_condition />
-        <post_condition />
-        <steps>
-          <step order="1">
-            <step_desc>0</step_desc>
-            <expected>0</expected>
-          </step>
-        </steps>
-        <test_script_entry test_script_expected_result="0"></test_script_entry>
-      </description>
-      </testcase>
   </set>
   <set name="Communication">
       <testcase purpose="Check if Bluetooth communication between devices supported." type="functional_positive" status="approved" component="behavior" execution_type="manual" priority="P0" id="Bluetooth">
       </description>
       </testcase>
   </set>
+  <set name="Web Runtime">
+      <testcase purpose="Check if js and css animation will suspend when application goes invisible." type="functional_positive" status="approved" component="behavior" execution_type="manual" priority="P0" id="ApplicationInvisible">
+      <description>
+        <pre_condition />
+        <post_condition />
+        <steps>
+          <step order="1">
+            <step_desc>0</step_desc>
+            <expected>0</expected>
+          </step>
+        </steps>
+        <test_script_entry test_script_expected_result="0"></test_script_entry>
+      </description>
+      </testcase>
+  </set>
 </suite>
 </test_definition>
index fc345b1..6d21d81 100755 (executable)
@@ -34,14 +34,14 @@ Authors:
             <h1 id="main_page_title"></h1>
         </div>
         <div data-role="content">
-            <div data-role="collapsible-set" data-inset="false" data-collapsed-icon="arrow-r" data-expanded-icon="arrow-d">
-                <div data-role="collapsible" data-collapsed="true">
+            <div data-role="collapsible-set" data-inset="false" data-collapsed-icon="arrow-r" data-expanded-icon="arrow-d" data-theme="b">
+                <div data-role="collapsible" data-collapsed="true" data-theme="b">
                     <h3 id="homeList">Screen-lock State</h3>
                     <ul data-role="listview" data-inset="false">
                         <li class="ui-li ui-li-static" id="lock"></li>
                     </ul>
                 </div>
-                <div data-role="collapsible" data-collapsed="true">
+                <div data-role="collapsible" data-collapsed="true" data-theme="b">
                     <h3 id="homeList">Screen-unlock State</h3>
                     <ul data-role="listview" data-inset="false">
                         <li class="ui-li ui-li-static" id="unlock"></li>
@@ -52,12 +52,10 @@ Authors:
         <div data-role="footer" data-position="fixed" data-tap-toggle="false">
         </div>
         <div data-role="popup" id="popup_info" data-theme="a">
-          <font style="font-size:85%">
-            <p>Test Purpose: </p>
-            <p>Verifies the device is able to handle pageVisible event when lock and unlock the screen by gesture.</p>
-            <p>Expected Result: </p>
-            <p>This test PASS only if the screen lock and unlock information.</p>
-          </font>
+            <p>Lock the screen.</p>
+            <p>Unlock the screen.</p>
+            <p>Click "Screen-lock State", test passes if visibilitystate is hidden and hidden is true.</p>
+            <p>Click "Screen-unlock State", test passes if visibilitystate is visible and hidden is false.</p>
         </div>
     </div>
 </body>