typescript-closure-tools
Version:
Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files
33 lines (26 loc) • 1.17 kB
TypeScript
/// <reference path="../../../globals.d.ts" />
/// <reference path="./testcase.d.ts" />
declare module goog.testing {
class ShardingTestCase extends ShardingTestCase__Class { }
/** Fake class which should be extended to avoid inheriting static properties */
class ShardingTestCase__Class extends goog.testing.TestCase__Class {
/**
* A test case that runs tests in per-file shards.
* @param {number} shardIndex Shard index for this page,
* <strong>1-indexed</strong>.
* @param {number} numShards Number of shards to split up test cases into.
* @extends {goog.testing.TestCase}
* @constructor
* @final
*/
constructor(shardIndex: number, numShards: number, opt_name?: any /* jsdoc error */);
}
}
declare module goog.testing.ShardingTestCase {
/**
* Shards tests based on the test filename. Assumes that the filename is
* formatted like 'foo_1of5_test.html'.
* @param {string=} opt_name A descriptive name for the test case.
*/
function shardByFileName(opt_name?: string): void;
}