Issues

ZF-11875: When running Zend_Dojo suite three failures occur in view helper tests

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

  • state:need-feedback

Related issues: Attachments:

Description

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.

Comments

No comments to display

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts