You never call the global done() function so this test always times out.  I think we can consider it done after test_lostpointercapture completes, so this line should just be removed.