From ef72f6c629badaa08ff3874459bc628549375aa2 Mon Sep 17 00:00:00 2001 From: Wes Johnston Date: Thu, 21 Apr 2011 10:51:47 -0700 Subject: [PATCH] Bug 651429 - Wait for panning to end in test. r=mfinkle --- mobile/chrome/tests/browser_tapping.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mobile/chrome/tests/browser_tapping.js b/mobile/chrome/tests/browser_tapping.js index 148f553ca4b..68bc1c53fb7 100644 --- a/mobile/chrome/tests/browser_tapping.js +++ b/mobile/chrome/tests/browser_tapping.js @@ -223,7 +223,9 @@ gTests.push({ ok(checkEvents([]), "Fired a pan + delay which should be seen as a non-event"); clearEvents(); - gCurrentTest.longTapPassTest(); + window.addEventListener("PanFinished", function() { + setTimeout(gCurrentTest.longTapPassTest, 0); + }, true); }, 500); },