<?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:content-security-policy>style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline'</tizen:content-security-policy>
+ <tizen:allow-navigation>*</tizen:allow-navigation>
<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
+</widget>
if(script_allow && script_not_allow && style_not_allow && style_allow && style_green_allow && connect) {
document.getElementById("test_result").innerHTML = "PASS";
+ }else{
+ document.getElementById("test_result").innerHTML = "FAIL";
}
</script>
<p style="color:blue">Four:The screen shows two green squares in two frames,respectively.</p>
<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>
+ <p style="color:blue">Six: The screen shows two videos.</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>
\ No newline at end of file
+</html>
<?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:content-security-policy-report-only>style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline'</tizen:content-security-policy-report-only>
+ <tizen:allow-navigation>*</tizen:allow-navigation>
+ <tizen:content-security-policy>style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline'</tizen:content-security-policy>
<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
+</widget>
if(script_allow && script_not_allow && style_not_allow && style_allow && style_green_allow && connect) {
document.getElementById("test_result").innerHTML = "PASS";
+ }else{
+ document.getElementById("test_result").innerHTML = "FAIL";
}
</script>
<p style="color:blue">Four:The screen shows two green squares in two frames,respectively.</p>
<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>
+ <p style="color:blue">Six: The screen shows two videos.</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>
\ No newline at end of file
+</html>