Re: Surprising lostpointercapture event test 11.1

Isn't this effectively the same as
http://lists.w3.org/Archives/Public/public-pointer-events/2014JulSep/0068.html


On 08/22/2014 05:04 PM, Maksim Lebedev wrote:
> Hi folks.
>
> I investigated test 11.1 and would like to inform something in this test, which confusing me.
> pointerevent_lostpointercapture_is_first-manual.html
>
> Test 11.1 have strange expected behavior and dis-corresponding description.
>
> Description:
> Press and hold left mouse button over "Set Capture" button. "gotpointercapture" should be logged inside of the black rectangle
> Release left mouse button. "lostpointercapture" should be logged inside of the black rectangle
>
> After release mouse button browser should fire such sequence of events: pointerup and lostpointercapture events.
> But test checks that lostpointercapture event should be asynchronous. This set up in following:
>
> on_event(captureButton, 'pointerdown', function(e) {
>      if(isPointerCapture == false) {
>          isPointerCapture = true;
>          captureButton.value = 'Release Capture';
>          sPointerCapture(e);
>          pointerupGot = false;
>      }
>      else {
>          rPointerCapture(e);
>          setTimeout(function() {
>              isAsync = true;
>          });
>      }
> });
>
> This can be executing, if we second time put mouse on button (first mouse should be stay on button )
> Other words, we can run test only with touch devices (because we should have ability to put down on button twice).
> And description of test has very otherwise description of action, which user should be doing.
> Other words, if user will doing what is in description, test always were failed on all browsers.
>
> I can assume that current version of test is incorrect, and test should be changes.
>
> Please, let me know your opinion.
>
> Thanks, Maksim Lebedev.
>

Received on Tuesday, 2 September 2014 14:55:56 UTC