Fix TTS-1959 by removing unsupport feature test in webkit
authorLi, Hao <haox.li@intel.com>
Tue, 3 Sep 2013 08:48:20 +0000 (16:48 +0800)
committerwanmingx.lin <wanmingx.lin@intel.com>
Wed, 4 Sep 2013 01:50:29 +0000 (09:50 +0800)
  Remove report-uri-single-violated test due to webkit does not implement "unsafe-eval"

Signed-off-by: Li, Hao <haox.li@intel.com>
tests/CSP/index.html
tests/CSP/js/main.js
tests/CSP/res/report-uri-single-violated.html [deleted file]
tests/CSP/res/report-uri-single-violated.wgt [deleted file]

index 1acd07e306acea82501db9e2a1bd9610a2afaef0..f1dde195c4d30962e0c7102afa063d3f02c0e3d4 100644 (file)
@@ -136,12 +136,6 @@ Authors:
                         <h2>style-src_self</h2>
                     </a>
                 </li>
-                <li data-role="list-divider" role="heading">Test report-uri directive</li>
-                <li id="report-uri-single-violated">
-                    <a href="javascript:goToApp('res/report-uri-single-violated.html')" data-transition="slide" style="">
-                        <h2>report-uri-single-violated</h2>
-                    </a>
-                </li>
                 <li data-role="list-divider" role="heading">Clean all the installed packages</li>
                 <li>
                     <div data-role="button" id="wgtClean" style="height:40px; line-height:20px;">Clean all test applications</div>
index 1c5b409b35f40b48f002d8dd6792fb653a56d24b..ba8afa8716dfc1dae7e742bf805f2381aff89294 100644 (file)
@@ -44,8 +44,7 @@ var allId=new Array('beh1csp001',
                     'beh1csp014',
                     'beh1csp015',
                     'beh1csp016',
-                    'beh1csp017',
-                    'wrt2rus061');
+                    'beh1csp017');
 
 var installedId = new Array();
 
diff --git a/tests/CSP/res/report-uri-single-violated.html b/tests/CSP/res/report-uri-single-violated.html
deleted file mode 100755 (executable)
index fab02e9..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Feng, GangX <gangx.feng@intel.com>
-
--->
-<html>
-  <head>
-    <meta charset="utf-8" />
-    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
-    <link rel="stylesheet" type="text/css" href="../../../css/jquery.mobile.css" />
-    <script src="../../../js/thirdparty/jquery.js"></script>
-    <script src="../../../js/thirdparty/jquery.mobile.js"></script>
-    <script src="../js/tests.js"></script>
-  </head>
-  <body>
-    <div data-role="page" id="report-uri-single-violated">
-        <div id="content">
-            <div>
-                <input type="hidden" id="wgt_name" value="report-uri-single-violated"/>
-                <input type="hidden" id="app_id"  value="wrt2rus061.reportUriSingleViolated"/>
-                <input type="hidden" id="package_id" value="wrt2rus061"/>
-            </div>
-            <ul data-role="listview">
-                <li data-role="list-divider">Package Launch</li>
-                <li>
-                    <div data-role="button" id="launch" style="height:40px; line-height:20px;">Package Launch</div>
-                </li>
-                <li data-role="list-divider">Package Uninstall</li>
-                <li>
-                    <div data-role="button" id="uninstall" style="height:40px; line-height:20px;">Package Uninstall</div>
-                </li>
-                <li>
-                    <div id="d">
-                      <div id="text-div">
-                        <div id="p">
-A "PASS" is displayed under the words '1.Csp policy worked well if text "PASS" appears below.'.A "PASS" is displayed under the words '1.Csp policy worked well if text "PASS" appears below.'.
-Notice the log in time on the screen, and open log file with the command: cat /tmp/csp-report.log
-At the end of the file, the last record's "Time" is the same as the "log in" time.
-                        </div>
-                      </div>
-                    </div>
-                </li>
-            </ul>
-        </div>
-        <div data-role="footer" data-position="fixed" data-tap-toggle="false">
-        </div>
-    </div>
-  </body>
-</html>
diff --git a/tests/CSP/res/report-uri-single-violated.wgt b/tests/CSP/res/report-uri-single-violated.wgt
deleted file mode 100644 (file)
index c4f8957..0000000
Binary files a/tests/CSP/res/report-uri-single-violated.wgt and /dev/null differ