本文整理汇总了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');
});