当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript testing.xdescribe函数代码示例

本文整理汇总了TypeScript中selenium-webdriver/testing.xdescribe函数的典型用法代码示例。如果您正苦于以下问题:TypeScript xdescribe函数的具体用法?TypeScript xdescribe怎么用?TypeScript xdescribe使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了xdescribe函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: TestTestingModule

function TestTestingModule() {
    testing.before(function () {
    });

    testing.beforeEach(function () {
    });

    testing.describe("My test suite", function () {
        testing.it("My test", function () {
        });

        testing.iit("My exclusive test.", function () {
        });

    });

    testing.xdescribe("My disabled suite", function () {
        testing.xit("My disabled test.", function () {
        });
    });

    testing.after(function () {
    });

    testing.afterEach(function () {
    });
}
开发者ID:KostyaTretyak,项目名称:DefinitelyTyped,代码行数:27,代码来源:selenium-webdriver-tests.ts

示例2: TestTestingModule

function TestTestingModule() {
    testing.before(() => {
    });

    testing.beforeEach(() => {
    });

    testing.describe('My test suite', () => {
        testing.it('My test', () => {
        });

        testing.iit('My exclusive test.', () => {
        });

    });

    testing.xdescribe('My disabled suite', () => {
        testing.xit('My disabled test.', () => {
        });
    });

    testing.after(() => {
    });

    testing.afterEach(() => {
    });
}
开发者ID:Kroisse,项目名称:DefinitelyTyped,代码行数:27,代码来源:index.ts

示例3: afterEach

    afterEach(() => { });

    it('should append query to title', () => {
        const flow = controlFlow();
        flow.execute(() => {
            driver.get('http://www.google.com/ncr');
            driver.findElement(By.name('q')).sendKeys('webdriver');
            driver.findElement(By.name('btnG')).click();
            driver.wait(until.titleIs('webdriver - Google Search'), 1000);
        });
    });
});

ignore(maybe).it('is flaky', () => {
    if (Math.random() < 0.5) throw Error();
});

function maybe() { return Math.random() < 0.5; }

describe.only('just this', () => {
    it.only('just this too', () => { });
});

describe.skip('not this', () => {
    it.skip('not this either', () => { });
});

xdescribe('not this', () => {
    xit('not this either', () => { });
});
开发者ID:AbraaoAlves,项目名称:DefinitelyTyped,代码行数:30,代码来源:testing.ts


注:本文中的selenium-webdriver/testing.xdescribe函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。