本文整理匯總了TypeScript中test/helper.assert.match方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript assert.match方法的具體用法?TypeScript assert.match怎麽用?TypeScript assert.match使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類test/helper.assert
的用法示例。
在下文中一共展示了assert.match方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: it
it('has the date picker button styled appropriately', function() {
assert.isTrue(datePickerButton.hasAttribute('shy'), 'isâs shy');
var css = datePickerButton.style;
assert.equal(css.position, 'absolute', 'itâs absolutely positioned not to affect the layout');
assert.equal(css.marginTop, '2px', 'vertically align the icon with the input text');
assert.equal(css.marginLeft, '-18px', 'uses 18px of negative left margin to look as being inside of the field');
assert.equal(css.width, '20px', 'is 20px wide to accommodate clicking');
assert.equal(css.height, '20px', 'is 20px high to accommodate clicking');
assert.equal(css.padding, '0px', 'has no padding');
assert.equal(css.backgroundColor, 'transparent', 'is transparent to be less intrusive');
assert.match(css.backgroundImage, /^url\(.+\)/, 'has a date picker image on the background');
assert.equal(css.backgroundPosition, '50% 50%', 'its background image is centered');
assert.equal(css.backgroundRepeat, 'no-repeat', 'background image is not repeated');
});