  if (eventTested == false) {
                        pointerleaveReceived = true;
                        eventTested = true;
                    }
                });

                // Inject mouse inputs.
                actions_promise = new test_driver.Actions()
                    .pointerMove(0, 0, {origin: target0})
                    .pointerMove(0, 0, {origin: target1})
                    .pointerDown()
                    .pointerUp()
                    .send();
            }
        </scrip