se.then(() => {
                            test_pointerEvent.done();
                        });
                    }
                });

                // Dispatch a mouse/touch drag in target0.
                var pointerType = location.search.substring(1);
                switch (pointerType) {
                    case "mouse":
                        actions_promise = new test_driver.Actions()
                            .pointerMove(0, 0, {origin: target0})
                            .pointerDown(