Issue Type: Unit Tests: Problem Created: 2011-11-08T13:26:49.000+0000 Last Updated: 2011-11-30T17:43:02.000+0000 Status: Open Fix version(s): Reporter: Adam Lundrigan (adamlundrigan) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Dojo
Related issues: Attachments:
When running Zend_Dojo suite three failures occur in view helper tests:
<pre class="highlight">
There were 3 failures:
1) Zend_Dojo_Form_Element_NumberSpinnerTest::testRenderingShouldOutputMinAndMaxConstraints
NumberSpinner
Failed asserting that matches PCRE pattern "/'min':\s*5/".
/tmp/zfdev/trunk/tests/Zend/Dojo/Form/Element/NumberSpinnerTest.php:198
2) Zend_Dojo_View_Helper_HorizontalSliderTest::testShouldCreateOnChangeAttributeByDefault
`` 20% 40% 60% 80%
``
``
0%
50%
100%
Failed asserting that contains "onChange="dojo.byId('elementId').value = arguments[0];"".
/tmp/zfdev/trunk/tests/Zend/Dojo/View/Helper/HorizontalSliderTest.php:198
3) Zend_Dojo_View_Helper_VerticalSliderTest::testShouldCreateOnChangeAttributeByDefault
`` 20% 40% 60% 80%
``
``
0%
50%
100%
Failed asserting that contains "onChange="dojo.byId('elementId').value = arguments[0];"".
All three failures have to do with encoding of attribute values. The SUT returns HTML with dojo attributes encoded, but the tests test for unencoded attributes.
No comments to display