teUnlocked = 2.

            var test_state = kStateInit;

            function resetTestState() {
              test_state = kStateInit;
              document.exitPointerLock();
            }

            function run() {
                var test_pointerEvent = setup_pointerevent_test("Test pointerevent coordinates when pointer is locked", ['mouse']);
                var div1 = document.getElementById("target");

                on_event(div1, 'click', function(event) {
                    if (test_state 