You are here

public function ParserTest::getSpecificityTestData in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/css-selector/Tests/Parser/ParserTest.php \Symfony\Component\CssSelector\Tests\Parser\ParserTest::getSpecificityTestData()

File

vendor/symfony/css-selector/Tests/Parser/ParserTest.php, line 191

Class

ParserTest

Namespace

Symfony\Component\CssSelector\Tests\Parser

Code

public function getSpecificityTestData() {
  return array(
    array(
      '*',
      0,
    ),
    array(
      ' foo',
      1,
    ),
    array(
      ':empty ',
      10,
    ),
    array(
      ':before',
      1,
    ),
    array(
      '*:before',
      1,
    ),
    array(
      ':nth-child(2)',
      10,
    ),
    array(
      '.bar',
      10,
    ),
    array(
      '[baz]',
      10,
    ),
    array(
      '[baz="4"]',
      10,
    ),
    array(
      '[baz^="4"]',
      10,
    ),
    array(
      '#lipsum',
      100,
    ),
    array(
      ':not(*)',
      0,
    ),
    array(
      ':not(foo)',
      1,
    ),
    array(
      ':not(.foo)',
      10,
    ),
    array(
      ':not([foo])',
      10,
    ),
    array(
      ':not(:empty)',
      10,
    ),
    array(
      ':not(#foo)',
      100,
    ),
    array(
      'foo:empty',
      11,
    ),
    array(
      'foo:before',
      2,
    ),
    array(
      'foo::before',
      2,
    ),
    array(
      'foo:empty::before',
      12,
    ),
    array(
      '#lorem + foo#ipsum:first-child > bar:first-line',
      213,
    ),
  );
}