
                });
                on_event(document, 'pointerlockchange', function(event) {
                    if (test_state == kStateInit) {
                        test_state = kStateLocked;
                        test_pointerEvent.step(function() {
                            assert_equals(document.pointerLockElement, div1, "document.pointerLockElement should be div1.");
                        });

                        var actions = new test_driver.Actions();
                        pos_x = div