    assert_equals(event.buttons, 0,
             'lostpointercapture should happen when all buttons are released.');
            assert_array_equals(events, ["target@pointerdown",
              "target@pointerup", "target@lostpointercapture"]);
            resolve_test();
            current_test.done();
          });
        }
        if(event.buttons === 0){
          addLog("Test Passed!");
        }else{
          addLog("Test Failed!");
        }
      }

      function removeEventListeners(){
        