(container, define, features)
| 715 | } |
| 716 | |
| 717 | function initInputsContainer(container, define, features) { |
| 718 | assert(container.tagName.toLowerCase() === 'div'); |
| 719 | container.innerHTML = ''; |
| 720 | |
| 721 | var ignoreFixHeight = features && features.ignoreFixHeight; |
| 722 | var ignoreInputsStyle = features && features.ignoreInputsStyle; |
| 723 | |
| 724 | var inputsHeight = retrieveValue(define.inputsHeight, define.buttonsHeight, null); |
| 725 | if (inputsHeight != null) { |
| 726 | inputsHeight = parseFloat(inputsHeight); |
| 727 | } |
| 728 | |
| 729 | var classNameArr = []; |
| 730 | if (features && features.className) { |
| 731 | classNameArr.push(features.className); |
| 732 | } |
| 733 | if (!ignoreInputsStyle) { |
| 734 | classNameArr.push( |
| 735 | 'test-inputs', |
| 736 | 'test-buttons', // deprecated but backward compat. |
| 737 | 'test-inputs-style-' + (define.inputsStyle || define.buttonsStyle || 'normal') |
| 738 | ); |
| 739 | } |
| 740 | if (!ignoreFixHeight && inputsHeight != null) { |
| 741 | classNameArr.push('test-inputs-fix-height'); |
| 742 | container.style.cssText += [ |
| 743 | 'height:' + inputsHeight + 'px' |
| 744 | ].join(';') + ';'; |
| 745 | } |
| 746 | |
| 747 | container.className = classNameArr.join(' '); |
| 748 | } |
| 749 | |
| 750 | function dealInitEachInput(inputsDefineList, inputsContainer) { |
| 751 | var idList = []; |
no test coverage detected
searching dependent graphs…