public function TranslatorTest::getHtmlShakespearTestData in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/css-selector/Tests/XPath/TranslatorTest.php \Symfony\Component\CssSelector\Tests\XPath\TranslatorTest::getHtmlShakespearTestData()
File
- vendor/
symfony/ css-selector/ Tests/ XPath/ TranslatorTest.php, line 273
Class
Namespace
Symfony\Component\CssSelector\Tests\XPathCode
public function getHtmlShakespearTestData() {
return array(
array(
'*',
246,
),
array(
'div:contains(CELIA)',
26,
),
array(
'div:only-child',
22,
),
// ?
array(
'div:nth-child(even)',
106,
),
array(
'div:nth-child(2n)',
106,
),
array(
'div:nth-child(odd)',
137,
),
array(
'div:nth-child(2n+1)',
137,
),
array(
'div:nth-child(n)',
243,
),
array(
'div:last-child',
53,
),
array(
'div:first-child',
51,
),
array(
'div > div',
242,
),
array(
'div + div',
190,
),
array(
'div ~ div',
190,
),
array(
'body',
1,
),
array(
'body div',
243,
),
array(
'div',
243,
),
array(
'div div',
242,
),
array(
'div div div',
241,
),
array(
'div, div, div',
243,
),
array(
'div, a, span',
243,
),
array(
'.dialog',
51,
),
array(
'div.dialog',
51,
),
array(
'div .dialog',
51,
),
array(
'div.character, div.dialog',
99,
),
array(
'div.direction.dialog',
0,
),
array(
'div.dialog.direction',
0,
),
array(
'div.dialog.scene',
1,
),
array(
'div.scene.scene',
1,
),
array(
'div.scene .scene',
0,
),
array(
'div.direction .dialog ',
0,
),
array(
'div .dialog .direction',
4,
),
array(
'div.dialog .dialog .direction',
4,
),
array(
'#speech5',
1,
),
array(
'div#speech5',
1,
),
array(
'div #speech5',
1,
),
array(
'div.scene div.dialog',
49,
),
array(
'div#scene1 div.dialog div',
142,
),
array(
'#scene1 #speech1',
1,
),
array(
'div[class]',
103,
),
array(
'div[class=dialog]',
50,
),
array(
'div[class^=dia]',
51,
),
array(
'div[class$=log]',
50,
),
array(
'div[class*=sce]',
1,
),
array(
'div[class|=dialog]',
50,
),
// ? Seems right
array(
'div[class!=madeup]',
243,
),
// ? Seems right
array(
'div[class~=dialog]',
51,
),
);
}