本文整理匯總了TypeScript中intern/lib/Test.skip函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript skip函數的具體用法?TypeScript skip怎麽用?TypeScript skip使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了skip函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: getPage
function getPage(test: Test): Command<void> {
const { browserName = '' } = test.remote.environmentType!;
if (browserName === 'safari' || browserName === 'firefox' || browserName.toLowerCase() === 'microsoftedge') {
test.skip('Tests do not run in these browsers.');
}
return test.remote
.get(`http://localhost:9000/_build/common/example/?id=${uuid()}#split-pane`)
.setFindTimeout(5000);
}
示例2: getPage
function getPage(test: Test) {
const { browserName = '' } = test.remote.environmentType!;
if (browserName.toLowerCase() === 'microsoftedge') {
test.skip('example page currently doesn\'t work in edge.');
}
const remote: Remote = test.remote;
return remote
.get(`http://localhost:9000/_build/common/example/?id=${uuid()}#range-slider`)
.setFindTimeout(5000);
}