mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 06:05:02 +03:00
74 lines
1.0 KiB
JavaScript
74 lines
1.0 KiB
JavaScript
|
'use strict';
|
||
|
|
||
|
/**
|
||
|
* @interface
|
||
|
*/
|
||
|
function ITester() {}
|
||
|
|
||
|
/**
|
||
|
* @type {string}
|
||
|
*/
|
||
|
ITester.prototype.hello = '123';
|
||
|
|
||
|
/**
|
||
|
* @enum
|
||
|
*/
|
||
|
ITester.type = {
|
||
|
KEYDOWN: 9,
|
||
|
KEYUP: 11
|
||
|
};
|
||
|
|
||
|
/**
|
||
|
* before each method
|
||
|
*/
|
||
|
ITester.prototype.beforeEach = function() {};
|
||
|
|
||
|
/**
|
||
|
* it method.
|
||
|
*/
|
||
|
ITester.prototype.it = function() {};
|
||
|
|
||
|
/**
|
||
|
* @constructor
|
||
|
* @implements {ITester}
|
||
|
*/
|
||
|
function MyTester() {}
|
||
|
|
||
|
/** @type {string} */
|
||
|
MyTester.prototype.hello = '234';
|
||
|
|
||
|
/** @enum */
|
||
|
MyTester.type = {
|
||
|
/** keyboard up */
|
||
|
KEYDOWN: 9,
|
||
|
KEYUP: 11,
|
||
|
KEYLEFT: 10
|
||
|
};
|
||
|
/**
|
||
|
* my tester's beforeEach method.
|
||
|
*/
|
||
|
MyTester.prototype.beforeEach = function() {};
|
||
|
MyTester.prototype.it = function() {};
|
||
|
|
||
|
/**
|
||
|
* @interface
|
||
|
*/
|
||
|
function IWorker() {}
|
||
|
/** Interface for doing some work. */
|
||
|
IWorker.prototype.work = function() {};
|
||
|
|
||
|
/**
|
||
|
* @constructor
|
||
|
* @implements {IWorker}
|
||
|
*/
|
||
|
function MyWorker() {}
|
||
|
/** Do some work. */
|
||
|
MyWorker.prototype.work = function() {};
|
||
|
MyWorker.prototype.process = function() {};
|
||
|
|
||
|
/**
|
||
|
* @constructor
|
||
|
* @implements {IWorker}
|
||
|
*/
|
||
|
function MyIncompleteWorker() {}
|