webkit2gtk-event-handling-redesign manual

medium

Image Types:
basesdk-amd64 / sdk-amd64 / target-armhf-internal / target-armhf / target-amd64
Image Deployment:
APT
Type:
functional

Description

Test WebKit2Gtk ability to scroll by touch with inertial behaviour after the touch ended.


Resources

  • A touch-screen with multiple touch points.

Pre Conditions

  1. Clone the tests repository from another computer (Note that the branch being tested may change depending on the release, please make sure to clone the correct branch for the release in question):
  2. $ git clone --branch apertis/v2020 https://gitlab.apertis.org/tests/webkit2gtk.git
  3. Copy the test directory webkit2gtk to the target device:
  4. $ DUT_IP=<device-ip>
    $ scp -r webkit2gtk user@$DUT_IP:
  5. Log into the target device:
  6. $ ssh user@$DUT_IP

Execution Steps

  1. Run the following command:
  2. $ /usr/lib/*/webkit2gtk-4.0/MiniBrowser -g 700x600 webkit2gtk/scroll.html
  3. Wait for the page to load, there will be two in-page scrollable areas, with a text entry in between them.
  4. Scroll the main page until you align the top of the text entry with the top of the viewport.
  5. Click the entry to focus it and enter some text.
  6. Scroll the scrollable area below the entry until you find another entry inside the scrollable area.
  7. Try to focus it and enter some text.
  8. Scroll to the bottom of the main page by doing a quick drag and release.
  9. If you have a touchscreen, try dragging from the green area.
  10. If you have a mouse, try dragging from the red area.
  11. Click one of the two links at the very bottom and wait for the page to load.

Expected

A page with many nested scrollable elements should be rendered.

Dragging the right side of the page with a single touch or mouse click should cause the page content to scroll.

Clicking or touching the entry should focus it and allow you to enter text.

Scrolling the area bellow the entry should scroll the content that is inside that area only, revealing another text entry.

Clicking the entry that is inside the scrollable area should focus it and allow you to enter text.

When scrolling to the bottom of the page with a quick drag and release touch with enough momentum should cause the scroll to continue with decreasing speed towards the bottom of the page.

Starting a touch drag from the green "Touch scroll drags here should not start" element should not result in page scrolls.

Starting a mouse drag from the red "Mouse scroll drags here should not start" element should not result in page scrolls.

Clicking one of the links at the bottom of the page should take you to the appropriate page (www.collabora.com or planet.collabora.com).