 box.removeEventListener("pointermove", slide);
      }

      function handle_contextmenu(e){
        e.preventDefault();
      }

      function handle_lostpointercapture(e){
        if(window.promise_test){
          current_test.step(function(){
            events.push("target@lostpointercapture");
            assert_equals(currentPhase, PhaseEnum.UpDone,
              "Current Phase should be " + PhaseEnum.UpDone + "." +
              'lostpointercapture should happen after pointerup event.');
        