2015-02-05 18:58:15 -05:00
|
|
|
import {ddescribe, describe, it, iit, expect, IS_DARTIUM} from 'angular2/test_lib';
|
2014-12-22 17:15:18 -05:00
|
|
|
import {IMPLEMENTS} from './fixtures/annotations';
|
|
|
|
|
2014-11-25 18:16:53 -05:00
|
|
|
class Interface1 {
|
|
|
|
one(){}
|
|
|
|
}
|
|
|
|
class Interface2 {
|
|
|
|
two(){}
|
|
|
|
}
|
2014-12-22 17:15:18 -05:00
|
|
|
|
|
|
|
@IMPLEMENTS(Interface1, Interface2)
|
2014-11-25 18:16:53 -05:00
|
|
|
class SomeClass {
|
|
|
|
one(){}
|
|
|
|
two(){}
|
|
|
|
}
|
2014-12-22 17:15:18 -05:00
|
|
|
|
|
|
|
export function main() {
|
|
|
|
describe('interfaces', function() {
|
2014-11-25 18:16:53 -05:00
|
|
|
it('should work', function () {
|
|
|
|
var s = new SomeClass();
|
|
|
|
expect(s).toImplement(Interface1);
|
|
|
|
expect(s).toImplement(Interface2);
|
|
|
|
});
|
2014-12-22 17:15:18 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
}
|