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
6 <!-- See chrome/browser/extensions/web_view_interactive_browsertest.cc (WebViewInteractiveTest, PointerLock) for documentation on this test. -->
8 <style type="text/css">
17 <div id="locktarget1">
18 <button id='button1' style="height:50px; width:150px;">Pointer Lock Target1</button>
20 <div id="locktarget2">
21 <button id='button2' style="height:50px; width:150px;">Send Clicked Message</button>
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>