From 57664be4cf092dd4150a2b8b2c886b2d061ace74 Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Mon, 16 May 2016 12:17:17 -0400 Subject: [PATCH] Bug 1264017 - Add a basic sanity mouse click synthesization test. r=botond MozReview-Commit-ID: Gv6QQrF2T7d --HG-- rename : gfx/layers/apz/test/mochitest/test_tap.html => gfx/layers/apz/test/mochitest/test_click.html --- .../apz/test/mochitest/helper_click.html | 36 +++++++++ gfx/layers/apz/test/mochitest/mochitest.ini | 4 + gfx/layers/apz/test/mochitest/test_click.html | 81 +++++++++++++++++++ gfx/layers/apz/test/mochitest/test_tap.html | 2 +- 4 files changed, 122 insertions(+), 1 deletion(-) create mode 100644 gfx/layers/apz/test/mochitest/helper_click.html create mode 100644 gfx/layers/apz/test/mochitest/test_click.html diff --git a/gfx/layers/apz/test/mochitest/helper_click.html b/gfx/layers/apz/test/mochitest/helper_click.html new file mode 100644 index 000000000000..2859eb91fd64 --- /dev/null +++ b/gfx/layers/apz/test/mochitest/helper_click.html @@ -0,0 +1,36 @@ + + + + + + Sanity mouse-clicking test + + + + + + + + + diff --git a/gfx/layers/apz/test/mochitest/mochitest.ini b/gfx/layers/apz/test/mochitest/mochitest.ini index 2a4c695eb764..f3121ac65902 100644 --- a/gfx/layers/apz/test/mochitest/mochitest.ini +++ b/gfx/layers/apz/test/mochitest/mochitest.ini @@ -15,6 +15,7 @@ support-files = helper_long_tap.html helper_scroll_on_position_fixed.html helper_tap_passive.html + helper_click.html tags = apz [test_bug982141.html] [test_bug1151663.html] @@ -43,3 +44,6 @@ skip-if = (os == 'android') || (os == 'b2g') || (buildapp == 'mulet') # wheel ev skip-if = (toolkit == 'windows') || (toolkit == 'cocoa') [test_scroll_window.html] skip-if = (toolkit == 'android') # wheel events not supported on mobile +[test_click.html] +# Very similar to test_tap, but we don't yet have mouse event synthesization on android +skip-if = (os == 'android') diff --git a/gfx/layers/apz/test/mochitest/test_click.html b/gfx/layers/apz/test/mochitest/test_click.html new file mode 100644 index 000000000000..6a3ff0d75933 --- /dev/null +++ b/gfx/layers/apz/test/mochitest/test_click.html @@ -0,0 +1,81 @@ + + + + + Sanity clicking test + + + + + + + diff --git a/gfx/layers/apz/test/mochitest/test_tap.html b/gfx/layers/apz/test/mochitest/test_tap.html index 3f72c5afc1de..ae3df23b8120 100644 --- a/gfx/layers/apz/test/mochitest/test_tap.html +++ b/gfx/layers/apz/test/mochitest/test_tap.html @@ -2,7 +2,7 @@ - Sanity panning test + Sanity tapping test