You are here

public function EventsTest::provideKeyboardEventsModifiers in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/driver-testsuite/tests/Js/EventsTest.php \Behat\Mink\Tests\Driver\Js\EventsTest::provideKeyboardEventsModifiers()

File

vendor/behat/mink/driver-testsuite/tests/Js/EventsTest.php, line 111

Class

EventsTest

Namespace

Behat\Mink\Tests\Driver\Js

Code

public function provideKeyboardEventsModifiers() {
  return array(
    'none' => array(
      null,
      '0 / 0 / 0 / 0',
    ),
    'alt' => array(
      'alt',
      '1 / 0 / 0 / 0',
    ),
    // jQuery considers ctrl as being a metaKey in the normalized event
    'ctrl' => array(
      'ctrl',
      '0 / 1 / 0 / 1',
    ),
    'shift' => array(
      'shift',
      '0 / 0 / 1 / 0',
    ),
    'meta' => array(
      'meta',
      '0 / 0 / 0 / 1',
    ),
  );
}