Skip to content

Commit

Permalink
testElementsKnowTheirCssPropertiesValues failing test case fixed with…
Browse files Browse the repository at this point in the history
… RegExp to ignore whitespace
  • Loading branch information
nicolasrenold committed Sep 7, 2012
1 parent 41a4105 commit ec5ed26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Selenium2TestCaseTest.php
Expand Up @@ -195,7 +195,7 @@ public function testElementsKnowTheirCssPropertiesValues()
{
$this->url('html/test_geometry.html');
$element = $this->byId('colored');
$this->assertEquals('rgba(0,0,255,1)', $element->css('background-color'));
$this->assertRegExp('/rgba\(0,\s*0,\s*255,\s*1\)/', $element->css('background-color'));
}

public function testClick()
Expand Down

0 comments on commit ec5ed26

Please sign in to comment.