<content src="index.html"/>
<name>config-default-header-null</name>
<tizen:application id="wrt5cdh102.configDefaultHeaderNull" package="wrt5cdh102" required_version="2.2"/>
-</widget>
+</widget>
\ No newline at end of file
<p style="color:blue">Three:Test passes if text "PASS" appears below.</p>
<div id="log">FAIL</div>
</body>
-</html>
+</html>
\ No newline at end of file
function show_fail() {
document.getElementById("log").innerHTML = "PASS";
-}
-
+}
\ No newline at end of file
<content src="index.html"/>
<name>config-normal-header-null</name>
<tizen:application id="wrt5cnh101.configNormalHeaderNull" package="wrt5cnh101" required_version="2.2"/>
-</widget>
+</widget>
\ No newline at end of file
<p style="color:blue">Three:Test passes if text "PASS" appears below.</p>
<div id="log">PASS</div>
</body>
-</html>
+</html>
\ No newline at end of file
<icon src="custom.png"/>
<name>config-xml-with-csp</name>
<tizen:setting install-location="auto"/>
-</widget>
+</widget>
\ No newline at end of file
<html>
<head>
<title>WRT Test: config-xml-with-csp</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="http://www.w3.org/TR/CSP" />
- <meta name="flags" content="" />
- <meta name="assert" content="Check that WRT MUST enforce CSP policy in content-security-policy tag in config.xml" />
+ <link rel="author" title="Intel" href="http://www.intel.com"/>
+ <link rel="help" href="http://www.w3.org/TR/CSP"/>
+ <meta name="flags" content=""/>
+ <meta name="assert" content="Check that WRT MUST enforce CSP policy in content-security-policy tag in config.xml"/>
<meta charset="utf-8">
<style>body{ background:red }</style>
</head>
<p id="reason">Test did not run.</p>
<script src="support/csp.js"></script>
<script language="javascript" type="text/javascript">
- var id = "config-xml-with-csp";
- var reason = document.getElementById("reason");
- var body = document.getElementById("body");
- var verdict = document.getElementById("verdict");
+ var id = "config-xml-with-csp";
+ var reason = document.getElementById("reason");
+ var body = document.getElementById("body");
+ var verdict = document.getElementById("verdict");
- /* Called if the test passed */
- function pass(excuse) {
- body.style.backgroundColor = "green";
- verdict.innerHTML = "PASS";
- reason.innerHTML = excuse;
- }
+ /* Called if the test passed */
+ function pass(excuse) {
+ body.style.backgroundColor = "green";
+ verdict.innerHTML = "PASS";
+ reason.innerHTML = excuse;
+ }
- /* Called if the test failed */
- function fail(excuse) {
- reason.innerHTML = excuse;
- }
+ /* Called if the test failed */
+ function fail(excuse) {
+ reason.innerHTML = excuse;
+ }
- /*Called to perform the test */
- function test() {
- try {
- var xhr = new XMLHttpRequest();
- xhr.open("GET", "support/csp.js");
- why = "Test "+ id +" passed because WRT MUST enforce CSP policy in content-security-policy tag in config.xml";
- pass(why);
- } catch(e) {
- why = "Test "+ id +" failed by throwing the following exception: " + e;
- fail(why);
+ /*Called to perform the test */
+ function test() {
+ try {
+ var xhr = new XMLHttpRequest();
+ xhr.open("GET", "support/csp.js");
+ why = "Test "+ id +" passed because WRT must enforce CSP policy when the content-security-policy label is set in config.xml";
+ pass(why);
+ } catch(e) {
+ why = "Test "+ id +" failed by throwing the following exception: " + e;
+ fail(why);
+ }
}
- }
</script>
</body>
-</html>
-
+</html>
\ No newline at end of file
<icon src="custom.png"/>
<name>config-xml-with-report-only</name>
<tizen:setting install-location="auto"/>
-</widget>
+</widget>
\ No newline at end of file
}
</script>
</body>
-</html>
-
+</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://tizen.org/default-policy-by-directives-csp" version="1.0.0" viewmodes="maximized">
- <tizen:content-security-policy></tizen:content-security-policy>
- <tizen:application id="wrt8dpb004.DefaultPolicyByDirectivesCsp" package="wrt8dpb004" required_version="2.2"/>
- <content src="index.html"/>
- <icon src="custom.png"/>
- <name>default-policy-by-directives-csp</name>
- <tizen:setting install-location="auto"/>
-</widget>
+ <tizen:content-security-policy></tizen:content-security-policy>
+ <tizen:application id="wrt8dpb004.DefaultPolicyByDirectivesCsp" package="wrt8dpb004" required_version="2.2"/>
+ <content src="index.html"/>
+ <icon src="custom.png"/>
+ <name>default-policy-by-directives-csp</name>
+ <tizen:setting install-location="auto"/>
+</widget>
\ No newline at end of file
</style>
</head>
<body>
+ <p style="color:blue">One:Test passes if text "PASS" appears below.</p>
<div id="test_result"></div>
+ <p style="color:blue">Two:Font of "1234 ABCD" decorated by canvas is differnet from itself.</p>
<div id="test">1234 ABCD</div>
<div>1234 ABCD</div>
+ <p style="color:blue">Three:The screen shows a blue square.</p>
<div id="test-green"></div>
<div id="test-blue"></div>
<h3></h3>
document.getElementById("test_result").innerHTML = "PASS";
}
</script>
+ <p style="color:blue">Four:The screen shows two green squares in two frames,respectively.</p>
<div><iframe src="support/green-100x100.png"></iframe></div>
<div><iframe src="http://127.0.0.1:8081/opt/tct-sp02-wrt-tests/support/green-100x100.png"></iframe></div>
+ <p style="color:blue">Five:The screen shows two green squares.</p>
<div><img src="support/green-100x100.png" /></div>
<div><img src="http://127.0.0.1:8081/opt/tct-sp02-wrt-tests/support/green-100x100.png"/></div>
+ <p style="color:blue">Six: The screen shows two videos and no red square.</p>
<div><video src="support/red-green.theora.ogv" /></div>
<div><video src="http://127.0.0.1:8081/opt/tct-sp02-wrt-tests/support/red-green.theora.ogv"/></div>
<div><object data="support/red-100x100.png"></object></div>
<div><object data="http://127.0.0.1:8081/opt/tct-sp02-wrt-tests/support/red-100x100.png"></object></div>
</body>
-</html>
+</html>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://tizen.org/default-policy-by-directives-report-only" version="1.0.0" viewmodes="maximized">
- <tizen:content-security-policy-report-only></tizen:content-security-policy-report-only>
- <tizen:application id="wrt8dpb005.DefaultPolicyByDirectivesReportOnly" package="wrt8dpb005" required_version="2.2"/>
- <content src="index.html"/>
- <icon src="custom.png"/>
- <name>default-policy-by-directives-report-only</name>
- <tizen:setting install-location="auto"/>
-</widget>
+ <tizen:content-security-policy-report-only></tizen:content-security-policy-report-only>
+ <tizen:application id="wrt8dpb005.DefaultPolicyByDirectivesReportOnly" package="wrt8dpb005" required_version="2.2"/>
+ <content src="index.html"/>
+ <icon src="custom.png"/>
+ <name>default-policy-by-directives-report-only</name>
+ <tizen:setting install-location="auto"/>
+</widget>
\ No newline at end of file
</style>
</head>
<body>
+ <p style="color:blue">One:Test passes if text "PASS" appears below.</p>
<div id="test_result"></div>
+ <p style="color:blue">Two:Font of "1234 ABCD" decorated by canvas is differnet from itself.</p>
<div id="test">1234 ABCD</div>
<div>1234 ABCD</div>
+ <p style="color:blue">Three:The screen shows a blue square.</p>
<div id="test-green"></div>
<div id="test-blue"></div>
<h3></h3>
document.getElementById("test_result").innerHTML = "PASS";
}
</script>
+ <p style="color:blue">Four:The screen shows two green squares in two frames,respectively.</p>
<div><iframe src="support/green-100x100.png"></iframe></div>
<div><iframe src="http://127.0.0.1:8081/opt/tct-sp02-wrt-tests/support/green-100x100.png"></iframe></div>
+ <p style="color:blue">Five:The screen shows two green squares.</p>
<div><img src="support/green-100x100.png" /></div>
<div><img src="http://127.0.0.1:8081/opt/tct-sp02-wrt-tests/support/green-100x100.png"/></div>
+ <p style="color:blue">Six: The screen shows two videos and no red square.</p>
<div><video src="support/red-green.theora.ogv" /></div>
<div><video src="http://127.0.0.1:8081/opt/tct-sp02-wrt-tests/support/red-green.theora.ogv"/></div>
<div><object data="support/red-100x100.png"></object></div>
<div><object data="http://127.0.0.1:8081/opt/tct-sp02-wrt-tests/support/red-100x100.png"></object></div>
</body>
-</html>
+</html>
\ No newline at end of file
<html>
<head>
<title>WRT Test: private_localstorage_check</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="" />
- <meta name="flags" content="" />
- <meta name="assert" content="Check if Application have its own localStorage space" />
+ <link rel="author" title="Intel" href="http://www.intel.com"/>
+ <link rel="help" href=""/>
+ <meta name="flags" content=""/>
+ <meta name="assert" content="Check if Application have its own localStorage space"/>
<meta charset="utf-8">
</head>
-</head>
-<body>
- <p>1.Install private_localstorage_check.wgt<br>Expected:widget application is able to install successfully<br>2.Confirm Application have its own localStorage space<br>Expected: The application must be stored in its own storage space which must not be accessible to other applications</p>
-</body>
-</html>
+ <body>
+ <p>1.Install private_localstorage_check.wgt<br>Expected:widget application is able to install successfully<br>2.Confirm Application have its own localStorage space<br>Expected: The application must be stored in its own storage space which must not be accessible to other applications</p>
+ </body>
+</html>
\ No newline at end of file
body {
-background-color:yellow;
-}
+ background-color:yellow;
+}
\ No newline at end of file
-->
<html>
- <head>
- <title>WRT Test: protection-encryption-check</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="" />
- <meta name="flags" content="" />
- <meta name="assert" content="Check if the WRT encrypt all resources of the Application storage." />
- <meta charset="utf-8" />
- <link rel="stylesheet" type="text/css" href="./css/style.css"/>
- <script src ="./js/main.js" ></script>
- </head>
- <body>
- <br><br>
- <input type="button" onclick="clickButton()" value="click"/>
- </body>
+ <head>
+ <title>WRT Test: protection-encryption-check</title>
+ <link rel="author" title="Intel" href="http://www.intel.com"/>
+ <link rel="help" href=""/>
+ <meta name="flags" content=""/>
+ <meta name="assert" content="Check if the WRT encrypt all resources of the Application storage."/>
+ <meta charset="utf-8"/>
+ <link rel="stylesheet" type="text/css" href="./css/style.css"/>
+ <script src ="./js/main.js" ></script>
+ </head>
+ <body>
+ <br><br>
+ <input type="button" onclick="clickButton()" value="click"/>
+ </body>
</html>
\ No newline at end of file
function clickButton(){
- document.write("<br><br>");
- document.write("js code ok");
- document.write("<br><br>");
- document.write("<img src ='custom.png'/>");
-}
+ document.write("<br><br>");
+ document.write("js code ok");
+ document.write("<br><br>");
+ document.write("<img src ='custom.png'/>");
+}
\ No newline at end of file
<html>
<head>
<title>WRT Test: security-permission</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="" />
- <meta name="flags" content="" />
- <meta name="assert" content="Check if WRT allow the user to elevate permissions set by the security policy." />
+ <link rel="author" title="Intel" href="http://www.intel.com"/>
+ <link rel="help" href=""/>
+ <meta name="flags" content=""/>
+ <meta name="assert" content="Check if WRT allow the user to elevate permissions set by the security policy."/>
<meta charset="utf-8">
</head>
- <body>
- <script type="text/javascript">
+ <body>
+ <script type="text/javascript">
- document.write("<br><br><br>");
- try{
- var alarm = new tizen.AlarmAbsolute(new Date(2012, 10, 4, 8, 0));
- var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/view", "http://www.tizen.org");
- tizen.alarm.add(alarm, "org.tizen.browser", appControl);
- document.write("FAIL");
- }catch(e){
- document.write("PASS");
- }
-</script>
- </body>
-</html>
+ document.write("<br><br><br>");
+ try{
+ var alarm = new tizen.AlarmAbsolute(new Date(2012, 10, 4, 8, 0));
+ var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/view", "http://www.tizen.org");
+ tizen.alarm.add(alarm, "org.tizen.browser", appControl);
+ document.write("FAIL");
+ }catch(e){
+ document.write("PASS");
+ }
+ </script>
+ </body>
+</html>
\ No newline at end of file
<html>
<head>
<title>WRT Test: security-policy</title>
- <link rel="author" title="Intel" href="http://www.intel.com" />
- <link rel="help" href="" />
- <meta name="flags" content="" />
- <meta name="assert" content="Check if WRT include mechanism disabling the security policy checks" />
+ <link rel="author" title="Intel" href="http://www.intel.com"/>
+ <link rel="help" href=""/>
+ <meta name="flags" content=""/>
+ <meta name="assert" content="Check if WRT include mechanism disabling the security policy checks"/>
<meta charset="utf-8">
</head>
- <body>
- <script type="text/javascript">
+ <body>
+ <script type="text/javascript">
- document.write("<br><br><br>");
- try{
- var alarm = new tizen.AlarmAbsolute(new Date(2012, 10, 4, 8, 0));
- var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/view", "http://www.tizen.org");
- tizen.alarm.add(alarm, "org.tizen.browser", appControl);
- document.write("PASS");
- }catch(e){
- document.write("FAIL");
- }
-</script>
- </body>
-</html>
+ document.write("<br><br><br>");
+ try{
+ var alarm = new tizen.AlarmAbsolute(new Date(2012, 10, 4, 8, 0));
+ var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/view", "http://www.tizen.org");
+ tizen.alarm.add(alarm, "org.tizen.browser", appControl);
+ document.write("PASS");
+ }catch(e){
+ document.write("FAIL");
+ }
+ </script>
+ </body>
+</html>
\ No newline at end of file
</spec>
</specs>
</testcase>
- <testcase purpose="Check if WRT includes the mechanism disabling the security policy checks." type="user_experience" status="approved" component="Web/Runtime/SecurityPrivacy" execution_type="manual" priority="P1" id="security-policy">
+ <testcase purpose="Check if WRT not includes the mechanism disabling the security policy checks." type="user_experience" status="approved" component="Web/Runtime/SecurityPrivacy" execution_type="manual" priority="P1" id="security-policy">
<description>
<pre_condition>Make sure the security-policy.wgt is installed: Install security-policy.wgt with the command :"wrt-installer -i /opt/tct-sp02-wrt-tests/security-policy.wgt"</pre_condition>
<post_condition>Get the 'application id' of security-policy.wgt with the command :"wrt-launcher -l" and uninstall the security-policy.wgt with the command :"wrt-installer -un 'application id'"</post_condition>
<expected>The screen shows "PASS".</expected>
</step>
<step order="2">
- <step_desc>Get into the resources folder which is the security-policy widget storage.</step_desc>
+ <step_desc>Get into the resources folder with command "cd /opt/apps/wrt5pec119/res/wgt".</step_desc>
<expected>Access to the widget application storage.</expected>
</step>
<step order="3">
+ <step_desc>Get the 'application id' of security-policy.wgt with the command :"wrt-launcher -l" and close the security-policy.wgt with the command :"wrt-launcher -k 'application id'".</step_desc>
+ <expected>The widget is closed successfully.</expected>
+ </step>
+ <step order="4">
<step_desc>Del the config.xml file.</step_desc>
<expected>The config.xml file is deleted.</expected>
</step>
- <step order="4">
+ <step order="5">
<step_desc>Get the 'application id' of security-policy.wgt with the command :"wrt-launcher -l" and launch the security-policy.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
<expected>The screen shows "PASS"</expected>
</step>
<expected>The screen shows "Pass".</expected>
</step>
<step order="3">
- <step_desc>Edit config.xml in the resources folder which is the security-permission widget storage.</step_desc>
- <expected>Access to the widget application storage and the config file is opened.</expected>
+ <step_desc>Get the 'application id' of security-permission.wgt with the command :"wrt-launcher -l" and close the security-permission.wgt with the command :"wrt-launcher -k 'application id'".</step_desc>
+ <expected>The widget is closed successfully.</expected>
</step>
<step order="4">
+ <step_desc>Get into the resources folder with command "cd /opt/apps/wrt5pec120/res/wgt".Edit config.xml in the resources folder.</step_desc>
+ <expected>Access to the widget application storage and the config file is opened.</expected>
+ </step>
+ <step order="5">
<step_desc>Del the annotation symbol in config.xml file.</step_desc>
<expected>The config.xml file is changed.</expected>
</step>
- <step order="5">
+ <step order="6">
<step_desc>Get the 'application id' of security-permission.wgt with the command :"wrt-launcher -l" and launch the security-permission.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
<expected>The screen shows "Pass"</expected>
</step>
</spec>
</specs>
</testcase>
- <testcase purpose="Check that WRT MUST enforce CSP policy in content-security-policy tag in config.xml." type="user_experience" status="approved" component="Web/Runtime/SecurityPrivacy" execution_type="manual" priority="P1" id="config-xml-with-csp">
+ <testcase purpose="Check that WRT must enforce CSP policy when the content-security-policy label is set in config.xml." type="user_experience" status="approved" component="Web/Runtime/SecurityPrivacy" execution_type="manual" priority="P1" id="config-xml-with-csp">
<description>
- <pre_condition>Make sure config-xml-with-csp.wgt is installed with the command : wrt-installer -i /opt/tct-sp02-wrt-tests/config-xml-with-csp.wgt</pre_condition>
+ <pre_condition></pre_condition>
<post_condition>Get the 'application id' of config-xml-with-csp.wgt with the command : wrt-launcher -l, then uninstall the config-xml-with-csp.wgt with the command : wrt-installer -un 'application id'</post_condition>
<steps>
<step order="1">
<expected>The screen shows "PASS" on green background.</expected>
</step>
</steps>
- <test_script_entry timeout="90">/opt/tct-sp02-wrt-tests/config-xml-with-csp.wgt</test_script_entry>
+ <test_script_entry timeout="90"></test_script_entry>
<notes></notes>
</description>
<specs>
</spec>
</specs>
</testcase>
- <testcase purpose="Check that default CSP policy enforced by WRT is default-src *; script-src self; style-src self; object-src none with content-security-policy." type="user_experience" status="approved" component="Web/Runtime/SecurityPrivacy" execution_type="manual" priority="P1" id="default-policy-by-directives-csp">
+ <testcase purpose="Check that default CSP policy enforced by WRT is 'default-src *; script-src self; style-src self; object-src none' when the content-security-policy label is set in config file." type="user_experience" status="approved" component="Web/Runtime/SecurityPrivacy" execution_type="manual" priority="P1" id="default-policy-by-directives-csp">
<description>
- <pre_condition>Make sure default-policy-by-directives-csp.wgt is installed with the command : wrt-installer -i /opt/tct-sp02-wrt-tests/default-policy-by-directives-csp.wgt</pre_condition>
+ <pre_condition></pre_condition>
<post_condition>Get the 'application id' of default-policy-by-directives-csp.wgt with the command : wrt-launcher -l, then uninstall the default-policy-by-directives-csp.wgt with the command : wrt-installer -un 'application id'</post_condition>
<steps>
<step order="1">
</step>
<step order="2">
<step_desc>Get the 'application id' of default-policy-by-directives-csp.wgt with the command :"wrt-launcher -l" and launch the default-policy-by-directives-csp.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
- <expected>The screen shows "PASS" on the first line.
- Font of "1234 ABCD" decorated by canvas is differnet from itself.
- The screen shows a blue square, two frames, two green squares, two videos and no red square.
+ <expected>For Test One,The screen shows "PASS" on the first line.For Test Two,Font of "1234 ABCD" decorated by canvas is differnet from itself.For Test Three,The screen shows a blue square.For Test Four, The screen shows two green squares in two frames,respectively.For Test Five,The screen shows two green squares.For Test Six,The screen shows two videos and no red square.
</expected>
</step>
</steps>
- <test_script_entry timeout="90">/opt/tct-sp02-wrt-tests/default-policy-by-directives-csp.wgt</test_script_entry>
+ <test_script_entry timeout="90"></test_script_entry>
<notes></notes>
</description>
<specs>
</spec>
</specs>
</testcase>
- <testcase purpose="Check that default CSP policy enforced by WRT is default-src *; script-src self; style-src self; object-src none with content-security-policy-report-only." type="user_experience" status="approved" component="Web/Runtime/SecurityPrivacy" execution_type="manual" priority="P1" id="default-policy-by-directives-report-only">
+ <testcase purpose="Check that default CSP policy enforced by WRT is 'default-src *; script-src self; style-src self; object-src none' when the content-security-policy-report-only label is set in config file." type="user_experience" status="approved" component="Web/Runtime/SecurityPrivacy" execution_type="manual" priority="P1" id="default-policy-by-directives-report-only">
<description>
- <pre_condition>Make sure default-policy-by-directives-report-only.wgt is installed with the command : wrt-installer -i /opt/tct-sp02-wrt-tests/default-policy-by-directives-report-only.wgt</pre_condition>
+ <pre_condition></pre_condition>
<post_condition>Get the 'application id' of default-policy-by-directives-report-only.wgt with the command : wrt-launcher -l, then uninstall the default-policy-by-directives-report-only.wgt with the command : wrt-installer -un 'application id'</post_condition>
<steps>
<step order="1">
</step>
<step order="2">
<step_desc>Get the 'application id' of default-policy-by-directives-report-only.wgt with the command :"wrt-launcher -l" and launch the default-policy-by-directives-report-only.wgt with the command :"wrt-launcher -s 'application id'".</step_desc>
- <expected>The screen shows "PASS" on the first line.
- Font of "1234 ABCD" decorated by canvas is differnet from itself.
- The screen shows a blue square, two frames, two green squares, two videos and two red squares.
+ <expected>For Test One,The screen shows "PASS" on the first line.For Test Two,Font of "1234 ABCD" decorated by canvas is differnet from itself.For Test Three,The screen shows a blue square.For Test Four, The screen shows two green squares in two frames,respectively.For Test Five,The screen shows two green squares.For Test Six,The screen shows two videos and no red square.
</expected>
</step>
</steps>
- <test_script_entry timeout="90">/opt/tct-sp02-wrt-tests/default-policy-by-directives-report-only.wgt</test_script_entry>
+ <test_script_entry timeout="90"></test_script_entry>
<notes></notes>
</description>
<specs>