- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / platform_apps / web_view / pointer_lock / guest.html
1 <!--
2  * Copyright (c) 2013 The Chromium Authors. All rights reserved.  Use of this
3  * source code is governed by a BSD-style license that can be found in the
4  * LICENSE file.
5 -->
6 <!-- See chrome/browser/extensions/web_view_interactive_browsertest.cc (WebViewInteractiveTest, PointerLock) for documentation on this test. -->
7 <html><head>
8   <style type="text/css">
9     * {
10       margin: 0px;
11       padding: 0px;
12     }
13   </style>
14 </head>
15 <body>
16
17   <div id="locktarget1">
18     <button id='button1' style="height:50px; width:150px;">Pointer Lock Target1</button>
19   </div>
20   <div id="locktarget2">
21     <button id='button2' style="height:50px; width:150px;">Send Clicked Message</button>
22   </div>
23   <div id="info">Info: </div>
24   <br>To test this manually:<br>
25   1. Without moving the cursor over the other button, click Pointer Lock Target1<br>
26   2. With mouse now locked, attempt to move (not visible) cursor over the other button<br>
27   3. Press escape to exit pointerlock<br>
28   Test passes if mouse was properly locked, and "Info:" did not change to "fail".
29 <script src="guest.js"></script>
30 </body>
31 </html>