protected function helpTest($objTestDataArray) { $strValue = $objTestDataArray["Value"]; $strAttrs = QCss::FormatLength($strValue); $strMessage = $objTestDataArray["Msg"] . " Expected: '" . $objTestDataArray["Expected"] . "'" . " Obtained: '" . $strAttrs . "'"; $this->assertEqual($strAttrs, $objTestDataArray["Expected"], $strMessage); }
/** * Returns all wrapper-style-attributes * * Similar to GetStyleAttributes, but specifically for CSS name/value pairs that will render * within a wrapper's HTML "style" attribute * * @return string */ protected function GetWrapperStyleAttributes($blnIsBlockElement = false) { $strStyle = ''; if ($this->strPosition && $this->strPosition != QPosition::NotSet) { $strStyle .= sprintf('position:%s;', $this->strPosition); } if (!$this->blnDisplay) { $strStyle .= 'display:none;'; } else { if ($blnIsBlockElement) { $strStyle .= 'display:inline;'; } } if (strlen(trim($this->strLeft)) > 0) { $strStyle .= sprintf('left:%s;', QCss::FormatLength($this->strLeft)); } if (strlen(trim($this->strTop)) > 0) { $strStyle .= sprintf('top:%s;', QCss::FormatLength($this->strTop)); } return $strStyle; }