[mobile][fullscreen][DPTTIZEN-3068, modify fullscreen function due to web engnie... 49/180249/1
authorzhongyuan <zy123.yuan@samsung.com>
Sat, 26 May 2018 04:09:42 +0000 (12:09 +0800)
committerzhongyuan <zy123.yuan@samsung.com>
Sat, 26 May 2018 04:09:42 +0000 (12:09 +0800)
Change-Id: I38fc9b1207e34a7561ac241368d4939d5458c65e

mobile/tct-behavior-tests/tests/FullScreen/index.html
mobile/tct-behavior-tests/tests/FullScreen/js/main.js

index 4188aa8..ce26f2a 100755 (executable)
@@ -70,7 +70,7 @@ Authors:
         <li data-role="list-divider" id="labelcssFullScreen">CSS FullScreen</li>
         <li id ="buttoncssFullScreen">
           <div data-role="button" id="cssFullScreen">Request</div>
-          <div data-role="button" id="cancelCssFullScreen" class="hideButton">Cancle CSS FullScreen</div>
+          <div data-role="button" id="cancelCssFullScreen" class="hideButton">Touch anywhere on the screen to cancel CSS FullScreen</div>
         </li>
       </ul>
     </div>
index cfb4371..b879e71 100755 (executable)
@@ -53,6 +53,9 @@ $(document).ready(function () {
                 element.webkitRequestFullScreen();
                 setTimeout(function() {
                     document.documentElement.webkitRequestFullScreen();
+                    document.documentElement.addEventListener("click", function() {
+                        window.location.reload();
+                    });
                 }, 50);
             }
             EnablePassButton();