function ImageTestProviderTrait::providerWidth

Data provider for ::testWidth().

Return value

string[][] An array of test cases, each with a width value.

File

core/modules/ckeditor5/tests/src/FunctionalJavascript/ImageTestProviderTrait.php, line 246

Class

ImageTestProviderTrait
Provides test methods using data providers for image tests.

Namespace

Drupal\Tests\ckeditor5\FunctionalJavascript

Code

public static function providerWidth() : array {
  return [
    'Image resize with percent unit (only allowed in HTML 4)' => [
      'width' => '33%',
    ],
    'Image resize with (implied) px unit' => [
      'width' => '100',
    ],
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.