From 24c1a51d9dbddf5e96383ccc6930719cb493f10a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Sun, 16 Jun 2013 03:54:21 +0200 Subject: [PATCH] [CssSelector] Added test to highlight a regression --- src/Symfony/Component/CssSelector/Tests/CssSelectorTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Symfony/Component/CssSelector/Tests/CssSelectorTest.php b/src/Symfony/Component/CssSelector/Tests/CssSelectorTest.php index 50daeccd1d278..ae8762bf793d2 100644 --- a/src/Symfony/Component/CssSelector/Tests/CssSelectorTest.php +++ b/src/Symfony/Component/CssSelector/Tests/CssSelectorTest.php @@ -19,6 +19,7 @@ public function testCssToXPath() { $this->assertEquals('descendant-or-self::*', CssSelector::toXPath('')); $this->assertEquals('descendant-or-self::h1', CssSelector::toXPath('h1')); + $this->assertEquals('descendant-or-self::Project', CssSelector::toXPath('Project')); $this->assertEquals("descendant-or-self::h1[@id = 'foo']", CssSelector::toXPath('h1#foo')); $this->assertEquals("descendant-or-self::h1[@class and contains(concat(' ', normalize-space(@class), ' '), ' foo ')]", CssSelector::toXPath('h1.foo')); $this->assertEquals('descendant-or-self::foo:h1', CssSelector::toXPath('foo|h1'));