1. Delete the "Please" string in test steps.
2. Add viewport limitation with wgt.
3. Fix bugs, such as test-hd-image issue in Stability.
4. Add more test steps and expected result info in subtest.
5. Increase the size of button in wgt.
Signed-off-by: yuhanx.xu <yuhanx.xu@intel.com>
<p>Test Purpose: </p>
<p>Verifies js and css animation will suspend when application goes invisible</p>
<p>Test Step: </p>
- <p>1. Push the "Home" button on device to return to the menu</p>
- <p>2. Long touch "Home" button to start the "Task switcher" and select "tct-behavior-tests"</p>
+ <ol>
+ <li>Push the "Home" button on device to return to the menu</li>
+ <li>Long touch "Home" button to start the "Task switcher" and select "tct-behavior-tests"</li>
+ </ol>
<p>Expected Result: </p>
<p>This case is PASS if the "JS time" is different from the "Difference time" and the "Animation time" is different from the "Difference time" too</p>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click Package Launch button.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass only if all sub tests pass.</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click Package Launch button.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass only if all sub tests pass.</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click Package Launch button.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass only if all sub tests pass.</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click Package Launch button.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass only if all sub tests pass.</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click Package Launch button.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass only if all sub tests pass.</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click Package Launch button.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass only if all sub tests pass.</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click Package Launch button.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass if there is a "PASS" displayed.</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click Package Launch button.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass only if all sub tests pass.</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click Package Launch button.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass if there is a "PASS" displayed.</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click Package Launch button.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass only if all sub tests pass.</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click Package Launch button.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass if there is no text "FAIL" displayed.</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click Package Launch button.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass if there is no text "FAIL" displayed.</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click Package Launch button.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass if there is no text "FAIL" displayed.</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click Package Launch button.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass only if all sub tests pass.</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click Package Launch button.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass if there is a "PASS" displayed.</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click Package Launch button.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass if there is a "PASS" displayed.</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click Package Launch button.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass if there is a "PASS" under a blue square.</p>
</font>
</div>
</div>
<p>Pre-condition: </p>
<p>Make sure the device can access to http://www.google.com.</p>
<p>Test Step: </p>
- <p>Please click the Package Launch to launch the widget.</p>
+ <p>Click Package Launch button to launch the widget.</p>
<p>Expected Result: </p>
<p>The case will pass if the widget redirect the start page to http://www.google.com</p>
</font>
<p>Pre-condition: </p>
<p>Make sure the device can access to internet.</p>
<p>Test Step: </p>
- <p>Please click the Package Launch to launch the widget.</p>
+ <p>Click Package Launch button to launch the widget.</p>
<p>Expected Result: </p>
<p>The "tizen" "developer.tizen" "baidu" and "baike.baidu" are displayed on the page.</p>
</font>
<p>Pre-condition: </p>
<p>Make sure the device can access to internet.</p>
<p>Test Step: </p>
- <p>Please click the Package Launch to launch the widget.</p>
+ <p>Click Package Launch button to launch the widget.</p>
<p>Expected Result: </p>
<p>The "google" "tizen" and "developer.tizen" are displayed on the page.</p>
</font>
<p>Pre-condition: </p>
<p>Make sure the device can access to internet.</p>
<p>Test Step: </p>
- <p>Please click the Package Launch to launch the widget.</p>
+ <p>Click Package Launch button to launch the widget.</p>
<p>Expected Result: </p>
<p>The "google" and "tizen" links are displayed on the page.</p>
</font>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Pre-condition: </p>
- <p>Please set the auto rotate enable in Setting > Display> Auto rotate screen.</p>
+ <p>Set the auto rotate enable in Setting > Display> Auto rotate screen.</p>
<p>Test Step: </p>
- <p>Please click the Package Launch to launch the widget.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>The case will pass if the widget application can rotate with the device orientation change.</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click the Package Launch to launch the widget.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>Test passes if the counter on the page doesn't change when the widget is running background</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click the Package Launch to launch the widget.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>The case will pass if the context menu cannot be displayed after losing the press.</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click the Package Launch to launch the widget.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>The case will pass if the context menu can be displayed after losing the press.</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click the Package Launch to launch the widget.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>Test passes if the "Fail" is changed by "Pass --- menu event is invoked" or "Pass --- back event is invoked".</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click the Package Launch to launch the widget.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>Test passes if there is no change on the page.</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click the Package Launch to launch the widget.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>Test passes if the "Fail" is changed by "Pass --- menu event is invoked" or "Pass --- back event is invoked".</p>
</font>
</div>
</div>
<p>Pre-condition: </p>
<p>Insert a memory card into the device.</p>
<p>Test Step: </p>
- <p>1. Click the Package Install to install the widget.<br>
- 2. Click the Package Launch to launch the widget.</p>
+ <ol>
+ <li>Click the Package Install button to install the widget.</li>
+ <li>Click the Package Launch button to launch the widget.</li>
+ </ol>
+ <p>Expected Result: </p>
+ <p>Test passes if the "Fail" is changed by "Pass --- menu event is invoked" or "Pass --- back event is invoked".</p>
</font>
</div>
</div>
<p>Pre-condition: </p>
<p>Make sure there is no memory card inserted into the device.</p>
<p>Test Step: </p>
- <p>Click the Package Install to install the widget</p>
+ <p>Click the Package Install button to install the widget</p>
<p>Expected Result: </p>
<p>The case will pass if the widget can not be installed successfully.</p>
</font>
<p>Pre-condition: </p>
<p>Insert a memory card into the device.</p>
<p>Test Step: </p>
- <p>1. Click the Package Install to install the widget.<br>
- 2. Click the Package Launch to launch the widget.</p>
+ <ol>
+ <li>Click the Package Install button to install the widget.</li>
+ <li>Click the Package Launch button to launch the widget.</li>
+ </ol>
+ <p>Expected Result: </p>
+ <p>The case will pass if the widget can not be installed successfully.</p>
</font>
</div>
</div>
<p>Test Purpose: </p>
<p>Verifies the functionality of DynamicBox application. Tests the functionality of mouse event, visibility event and unload event for DynamicBox.Install app-widget and DynamicBox viewer by clicking the "Package Install" button.Launch DynamicBox Viewer by clicking the "Launch" button.Uninstall app-widget and DynamicBox viewer by clicking "Package UnInstall" button.</p>
<p>Test Step: </p>
- <p>(1) "Mousde event false", touch the red filled square in the app-widget, test passes if the red square doesn't change;</p>
- <p>(2) "Sample", test passes if got a green pass on the screen;</p>
- <p>(3) "AppWidget Unload event", wait 5 seconds after click the app-widget, test passes if several words "pass" displayed on the screen;</p>
- <p>(4) "Dynamic Box", touch the menu button to select size 354x354 then flick down the box, push button "Send message to Box", test passes if "Hello, Dynamic Box" displayed on the box;</p>
- <p>(5) Switch device's language to French, then relaunch the viewer by push "Launch" button, test passes if the fifth app-widget's name changed from "NO NAME" to"Caisses dynamique";</p>
- <p>(6) app-widget-primary-true-false appWidget's titles("AppWidget Primary set1 true false" and "AppWidget Primary set2 true false") are displayed in dynamicbox viewer;</p>
- <p>(7) "AppWidget Content mouse event", Use finger to touch the red filled square, test passes if the square turned to green;</p>
- <p>(8) "AppWidget Load event", test passes if the box is loaded successfully, and the green "Pass" is displayed;</p>
- <p>(9) "Visibility widget", test passes if the green pass is displayed in box, and flicks down content of Web AppWidget, PD is opened and displayed "PD index.html";</p>
- <p>(10) "Size Decoration", touch the menu button to select box size, test passes if the box with "354x354" size have different frame decoration with the box with other two sizes;</p>
- <p>(11) "Size Preview", touch the menu button to select box size, test passes if some icons can be displayed on size list.</p>
+ <ol>
+ <li>"Mousde event false", touch the red filled square in the app-widget,passes if the red square doesn't change;</li>
+ <li>"Sample", passes if got a green pass on the screen;</li>
+ <li>"AppWidget Unload event", wait 5 seconds after click the app-widget, passes if several words "pass" displayed on the screen;</li>
+ <li>"Dynamic Box", select size 354x354 then flick down the box, push button "Send message to Box", passes if "Hello, Dynamic Box" displayed on the box;</li>
+ <li>Switch device's language to French, then relaunch the viewer by push "Launch" button, passes if the fifth app-widget's name changed from "NO NAME" to"Caisses dynamique";</li>
+ <li>app-widget-primary-true-false appWidget's titles("AppWidget Primary set1 true false" and "AppWidget Primary set2 true false") are displayed in dynamicbox viewer;</li>
+ <li>"AppWidget Content mouse event" Use finger to touch the red filled square,pass if the square turned to green;</li>
+ <li>"AppWidget Load event", pass if the box is loaded successfully, and the green "Pass" is displayed;</li>
+ <li>"Visibility widget", pass if the green pass is displayed in box, and flicks down content of Web AppWidget, PD is opened and displayed "PD index.html";</li>
+ <li>"Size Decoration", touch the "size list" button and select box size, pass if box with "354x354" size has frame decoration;</li>
+ <li>"Size Preview", touch "Size list" button, pass if some icons can be displayed on size list.</li>
+ </ol>
<p>Expected Result: </p>
<p>This test PASS only if all the test points function well.</p>
</font>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click package launch to launch the widget.</p>
+ <p>Click package launch button to launch the widget.</p>
<p>Expected Result: </p>
<p>The case will pass if "This is Web App for testing" is displayed and the widget name is shown as "Sample-widget1" on device idle screen.</p>
</font>
<p>Pre-condition: </p>
<p>Make sure the Sample-widget2.wgt is not installed.</p>
<p>Test Step: </p>
- <p>1. Click the Package Install to install the widget, during the installing power off and power on the device;<br>
- 2. Install Sample-widget2.wgt again.</p>
+ <ol>
+ <li>Click the Package Install button to install the widget, during the installing power off and power on the device;</li>
+ <li>Install Sample-widget2.wgt again.</li>
+ </ol>
<p>Expected Result: </p>
<p>The case will pass if the installation of Sample-widget2 app can run correctly.</p>
</font>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>1. Copy the Sample-widget3.wgt to Downloads folder. For example, use the command: cp -a /opt/usr/apps/tctbhtests/res/wgt/tests/PackageManagement/res/Sample-widget3.wgt /opt/usr/media/Downloads.<br>
- 2. Open the file browser and select Sample-widget3 webapp to install.</p>
+ <ol>
+ <li>Copy the Sample-widget3.wgt to Downloads folder. For example, use the command: cp -a /opt/usr/apps/tctbhtests/res/wgt/tests/PackageManagement/res/Sample-widget3.wgt /opt/usr/media/Downloads.</li>
+ <li>Open the file browser and select Sample-widget3 webapp to install.</li>
+ </ol>
<p>Expected Result: </p>
<p>The case will pass if the webapp is being installed.</p>
</font>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click Package Launch button to launch the widget.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected result:</p>
+ <ul>
+ <li>If this is a arm device, the case will pass if Javascript and NPRuntime multiplication time displayed above the button "Get the multiplication time". </li>
+ <li>If this is a x86 device, the case will pass if a popup displayed on the screen.</li>
+ </ul>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>Please click Package Launch button to launch the widget.</p>
+ <p>Click Package Launch button to launch the widget.</p>
+ <p>Expected result:</p>
+ <ul>
+ <li>If this is a x86 device, the case will pass if Javascript and NPRuntime multiplication time displayed above the button "Get the multiplication time". </li>
+ <li>If this is a arm device, the case will pass if a popup displayed on the screen.</li>
+ </ul>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Test Step: </p>
- <p>1. Waiting the widget is installed successfully, then click "Package Update" button.<br>
- 2. Close the terminal when the widget is updating.</p>
+ <ol>
+ <li>Waiting the widget is installed successfully, then click "Package Update" button.</li>
+ <li>Close the terminal when the widget is updating.</li>
+ </ol>
<p>Expected Result: </p>
<p>The case will pass if there aren't any error messages and system crash.</p>
</font>
<p>Pre-condition: </p>
<p>Make sure the free storage is more than half memory.</p>
<p>Test Step: </p>
- <p>1. Change the test-half-memory.wgt.<br>
- (1)Open the folder of "test-half-memory"(suppose you have the test-half-memory.wgt or you can find it in the behavior rpm, unzip the wgt as "test-half-memory").<br>
- (2)Push a file that the size is larger than half memory into the folder and rename the file as "zipzip.png".<br>
- (3)Use the command :"zip -rq ../test-half-memory.wgt *" to create a test-half-memory.wgt.<br>
- (4)Push the created widget to device with the command "sdb push 'path'/test-half-memory.wgt /opt/usr/apps/tctbhtests/res/wgt/tests/Stability/res/".<br>
- 2. Then Please click the Package Install</p>
+ <ol>
+ <li>Change the test-half-memory.wgt.</li>
+ <ol type="a">
+ <li>Open the folder of "test-half-memory"(suppose you have the test-half-memory.wgt or you can find it in the behavior rpm, unzip the wgt as "test-half-memory").</li>
+ <li>Push a file that the size is larger than half memory into the folder and rename the file as "zipzip.png".</li>
+ <li>Use the command :"zip -rq ../test-half-memory.wgt *" to create a test-half-memory.wgt.</li>
+ <li>Push the created widget to device with the command "sdb push 'path'/test-half-memory.wgt /opt/usr/apps/tctbhtests/res/wgt/tests/Stability/res/".</li>
+ </ol>
+ <li>Then click the Package Install button.</li>
+ </ol>
<p>Expected Result: </p>
<p>The case will pass if the installation is successful.</p>
</font>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
- <p>Pre-condition: </p>
- <p>Download 2304x1296 PNG and rename the downloaded image as "test.png".</p>
<p>Test Step: </p>
- <p>1. Push the image to device with the command "sdb push 'path'/test.png /opt/media/Images/.<br>
- 2. Click the Package Launch to launch the widget.</p>
+ <p>Click the Package Launch button to launch the widget.</p>
<p>Expected Result: </p>
<p>The case will pass if the image displayed normally.</p>
</font>
<script>
$(document).ready(function(){
jQuery("#user-agent-string").text(navigator.userAgent);
+ var agent_string = navigator.userAgent;
+ var tizen_platform_ver = agent_string.substring(agent_string.indexOf("(")+1, agent_string.indexOf(")"));
+ var khtml = agent_string.substring(agent_string.lastIndexOf("(")+1, agent_string.lastIndexOf(")"));
+ agent_string = agent_string.replace(" ("+tizen_platform_ver+")","");
+ agent_string = agent_string.replace(" ("+khtml+")","");
+ var platform_ver_array = tizen_platform_ver.split(";");
+
+ if(platform_ver_array.length == 3){ // tizen
+ jQuery("#user-platform-ver").text(platform_ver_array[1]);
+ jQuery("#user-model-string").text(platform_ver_array[2]);
+ } else if(platform_ver_array.length == 2){ // chrome
+ jQuery("#user-platform-ver").text(platform_ver_array[1]);
+ jQuery("#user-model-string").text("N/A");
+ } else if(platform_ver_array.length == 4){ //firefox
+ jQuery("#user-platform-ver").text(platform_ver_array[2]);
+ jQuery("#user-model-string").text("N/A");
+ }
+
+ var agent_string_array = agent_string.split(" ");
+ if(agent_string_array.length == 6){ //chrome
+ jQuery("#user-apple-webkit-ver").text(agent_string_array[1].substr(agent_string_array[1].indexOf("\/")+1));
+ jQuery("#user-app-name").text(agent_string_array[4].substring(0, agent_string_array[4].indexOf("\/")));
+ jQuery("#user-app-ver").text(agent_string_array[4].substr(agent_string_array[4].indexOf("\/")+1));
+ } else if(agent_string_array.length == 4){ //tizen
+ jQuery("#user-apple-webkit-ver").text("537.4");
+ jQuery("#user-app-name").text("tct-behavior-tests");
+ jQuery("#user-app-ver").text(agent_string_array[1].substr(agent_string_array[1].lastIndexOf("\/")+1));
+ }
});
</script>
<style type="text/css">
.d{
border: 1px solid #000;
width:100%;
- height:200px;
+ height:280px;
}
.d li{
margin: 10px 5px;
<ul>
<li>User-Agent:</li>
<li id="user-agent-string"><span style="color: red;">Failed to get user agent string</span></li>
+ <li>PLATFORM_VER: <span id="user-platform-ver"></span></li>
+ <li>MODEL: <span id="user-model-string"></span></li>
+ <li>APPLE_WEBKIT_VER: <span id="user-apple-webkit-ver"></span></li>
+ <li>APP_NAME: <span id="user-app-name"></span></li>
+ <li>APP_VER: <span id="user-app-ver"></span></li>
</ul>
</div>
</div>
p {
margin: 0px 10px;
}
- button {
+ .button {
background: #eee;
border: 1px solid #ccc;
- border-radius: 10px;
- width: 150px;
- height: 30px;
+ border-radius: 5px;
font-weight: bold;
- color: #222;
- margin: 2px 5px;
- text-shadow: 0 1px 0 #fff;
- background-image: -webkit-gradient(linear,left top,left bottom,from( #fff ),to( #f1f1f1 ));
- background-image: -webkit-linear-gradient( #fff,#f1f1f1 );
- background-image: -moz-linear-gradient( #fff,#f1f1f1 );
- background-image: -ms-linear-gradient( #fff,#f1f1f1 );
- background-image: -o-linear-gradient( #fff,#f1f1f1 );
- background-image: linear-gradient( #fff,#f1f1f1 );
+ font-size: 15px;
+ padding: 8px 2px;
+ width: 100%;
}
</style>
</head>
div.innerHTML = "<p>device-height : " + height + "</p><br>" +
"<p>device-width : " + width + "</p><br>" +
"<p>Test passes if the screen is full of green background</p><br>" +
- "<p><button onclick='javascript: window.history.go(-1)'>Complete Test</button></p>";
+ "<p><button onclick='javascript: window.history.go(-1)' class='button'>Complete Test</button></p>";
document.body.appendChild(div);
});
</script>
p {
margin: 0px 10px;
}
- button {
+ .button {
background: #eee;
border: 1px solid #ccc;
- border-radius: 10px;
- width: 150px;
- height: 30px;
+ border-radius: 5px;
font-weight: bold;
- color: #222;
- margin: 2px 5px;
- text-shadow: 0 1px 0 #fff;
- background-image: -webkit-gradient(linear,left top,left bottom,from( #fff ),to( #f1f1f1 ));
- background-image: -webkit-linear-gradient( #fff,#f1f1f1 );
- background-image: -moz-linear-gradient( #fff,#f1f1f1 );
- background-image: -ms-linear-gradient( #fff,#f1f1f1 );
- background-image: -o-linear-gradient( #fff,#f1f1f1 );
- background-image: linear-gradient( #fff,#f1f1f1 );
+ font-size: 15px;
+ padding: 8px 2px;
+ width: 160px;
}
</style>
</head>
var screenWidth = property.resolutionWidth / adapter;
var divWidth = screenWidth / maximum_scale;
div.style.background = "green";
- div.innerHTML = "<div style='background-color:green;float:left;width:" + divWidth + "px;height:"+screenHight+"px'><p>1.Zoom to minimum, the screen background is about half of green and half of yellow</p><br><p>2.Zoom to maximum, the screen is full of green; then slide to right, you can see yellow background</p><br><p><button onclick='javascript: window.history.go(-1)'>Complete Test</button></p></div>" + "<div style='background-color: yellow;float:left;width:"+divWidth+"px;height:" + screenHight + "px'></div>";
+ div.innerHTML = "<div style='background-color:green;float:left;width:" + divWidth + "px;height:"+screenHight+"px'><p>1.Zoom to minimum, the screen background is about half of green and half of yellow</p><br><p>2.Zoom to maximum, the screen is full of green; then slide to right, you can see yellow background</p><br><p><button onclick='javascript: window.history.go(-1)' class='button'>Complete Test</button></p></div>" + "<div style='background-color: yellow;float:left;width:"+divWidth+"px;height:" + screenHight + "px'></div>";
document.body.appendChild(div);
});
</script>
body {
padding: 0px;
margin: 0px;
- background-color: red;
+ background-color: green;
}
div {
background-color: green;
p {
margin: 0px 10px;
}
- button {
+ .button {
background: #eee;
border: 1px solid #ccc;
- border-radius: 10px;
- width: 200px;
- height: 30px;
+ border-radius: 5px;
font-weight: bold;
- color: #222;
- margin: 2px 5px;
- text-shadow: 0 1px 0 #fff;
- background-image: -webkit-gradient(linear,left top,left bottom,from( #fff ),to( #f1f1f1 ));
- background-image: -webkit-linear-gradient( #fff,#f1f1f1 );
- background-image: -moz-linear-gradient( #fff,#f1f1f1 );
- background-image: -ms-linear-gradient( #fff,#f1f1f1 );
- background-image: -o-linear-gradient( #fff,#f1f1f1 );
- background-image: linear-gradient( #fff,#f1f1f1 );
+ font-size: 15px;
+ padding: 8px 2px;
+ width: 270px;
}
</style>
<script type="text/javascript">
<p>EnableScale: you can scale the screen</p><br>
<p>DisableScale: you can not scale the screen</p><br>
<p>
- <button onclick="javascript: window.history.back();">Complete Test</button><br>
- <button onclick="changeUerscalable('enable')">Enable Scale</button><br>
- <button onclick="changeUerscalable('disable')">Disable Scale</button><br>
+ <button onclick="javascript: window.history.back();" class="button">Complete Test</button><br>
+ <button onclick="changeUerscalable('enable')" class="button">Enable Scale</button><br>
+ <button onclick="changeUerscalable('disable')" class="button">Disable Scale</button><br>
</p>
</div>
</body>
<p>Make sure SDK is installed to PC(ubuntu) and it is launched;</p>
<p>Turn on device USB debugging mode.</p>
<p>Test Step: </p>
- <p>1. Open SDK, File->New->Tizen Web Project.Click "Basic",then input Project name e.g. test-debugging, then click "finish".<br>
- 2. Connect test device to PC.Open Window->Show View -> Connection Explorer,the device information appears in the "Connection Explorer" of SDK.<br>
- 3. Right-click on the folder "test-debugging" -> Debug as -> 1 Tizen Web Application.</p>
+ <ol>
+ <li>Open SDK, File->New->Tizen Web Project.Click "Basic",then input Project name e.g. test-debugging, then click "finish".</li>
+ <li>Connect test device to PC.Open Window->Show View -> Connection Explorer,the device information appears in the "Connection Explorer" of SDK.</li>
+ <li>Right-click on the folder "test-debugging" -> Debug as -> 1 Tizen Web Application.</li>
+ </ol>
<p>Expected Result: </p>
<p>'web inspector' interface for widget debugging is displayed on the screen.</p>
</font>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Pre-condition: </p>
- 1. Make sure SDK is installed to PC(windows) and it is launched;<br>
- 2. Turn on device USB debugging mode.</p>
+ <ol>
+ <li>Make sure SDK is installed to PC(windows) and it is launched;</li>
+ <li>Turn on device USB debugging mode.</li>
+ </ol>
<p>Test Step: </p>
- <p>1. Open SDK, File->New->Tizen Web Project.Click "Basic",then input Project name e.g. test-debugging, then click "finish".Connect test device to PC.<br>
- 2. Open Window->Show View -> Connection Explorer,the device information appears in the "Connection Explorer" of SDK.<br>
- 3. Right-click on the folder "test-debugging" -> Debug as -> 1 Tizen Web Application.</p>
+ <ol>
+ <li>Open SDK, File->New->Tizen Web Project.Click "Basic",then input Project name e.g. test-debugging, then click "finish".Connect test device to PC.</li>
+ <li>Open Window->Show View -> Connection Explorer,the device information appears in the "Connection Explorer" of SDK.</li>
+ <li>Right-click on the folder "test-debugging" -> Debug as -> 1 Tizen Web Application.</li>
+ </ol>
<p>Expected Result: </p>
<p>'web inspector' interface for widget debugging is displayed on the screen.</p>
</font>
<font style="font-size:85%">
<p>Test Step: </p>
<p>Click the Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This case will pass if there is a popup with the content of "unload event success!".</p>
</font>
</div>
</div>
<div data-role="popup" id="popup_info" data-theme="a">
<font style="font-size:85%">
<p>Pre-condition: </p>
- <p>Make sure the local language is English (please check the installed widget's name on the device idle screen, it should be "english-ol").</p>
+ <p>Make sure the local language is English (check the installed widget's name on the device idle screen, it should be "english-ol").</p>
<p>Test Step: </p>
<p>Click the Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass only if all steps passed.</p>
</font>
</div>
</div>
<font style="font-size:85%">
<p>Test Step: </p>
<p>Click the Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>The case will pass if the email with its correct contents are displayed on screen.</p>
</font>
</div>
</div>
<font style="font-size:85%">
<p>Test Step: </p>
<p>Click the Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>The case will pass if the sms module, mms module and email module of the device are requested when click the links "sms", "mmsto" and "mailto".</p>
</font>
</div>
</div>
<p>Make sure the device can connect to the internet.</p>
<p>Test Step: </p>
<p>Click the Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass only if all steps passed.</p>
</font>
</div>
</div>
For example: use the command:vi /opt/usr/apps/wrt5pec002/res/wgt/index.html to show the content of index.html in terminal, the content of index.html is encrypted.</p>
<p>Test Step: </p>
<p>Click the Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>The case will pass if "js code ok" and a picture which "Pass" are displayed.</p>
</font>
</div>
</div>
<font style="font-size:85%">
<p>Test Step: </p>
<p>Click the Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>The case will pass if the screen shows "PASS".</p>
</font>
</div>
</div>
<font style="font-size:85%">
<p>Test Step: </p>
<p>Click the Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>The case will pass if the screen shows "PASS".</p>
</font>
</div>
</div>
<p>Make sure the device can connect to the internet.</p>
<p>Test Step: </p>
<p>Click the Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass only if all steps passed.</p>
</font>
</div>
</div>
<p>Make sure the device can connect to the internet.</p>
<p>Test Step: </p>
<p>Click the Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass only if all steps passed.</p>
</font>
</div>
</div>
<p>Make sure the device can connect to the internet.</p>
<p>Test Step: </p>
<p>Click the Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>This test will pass only if all steps passed.</p>
</font>
</div>
</div>
<p>Turn on the auto-rotate screen. (Maybe this option can be found in the "setting" menu of the device).</p>
<p>Test Step: </p>
<p>Click the Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>The case will pass if the screen orientation is changed and a "PASS" popup on the screen.</p>
</font>
</div>
</div>
<font style="font-size:85%">
<p>Test Step: </p>
<p>Click the Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>The case will pass if a new page with "index2.html" can be opened when click the "open window" button on the page.</p>
</font>
</div>
</div>
<font style="font-size:85%">
<p>Test Step: </p>
<p>Click the Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>The case will pass if the screen is landscape and fullscreen.</p>
</font>
</div>
</div>
<font style="font-size:85%">
<p>Test Step: </p>
<p>Click the Package Launch button to launch the widget.</p>
+ <p>Expected Result: </p>
+ <p>The case will pass if the screen is landscape and maximized.</p>
</font>
</div>
</div>