refactor(test): ts’if compiler integration tests.

This commit is contained in:
Tobias Bosch 2015-05-21 16:30:07 -07:00
parent c28952c707
commit cc2c8f6b00
5 changed files with 1566 additions and 1600 deletions

View File

@ -2,5 +2,5 @@ library angular2.core.decorators;
export '../annotations_impl/annotations.dart';
export '../annotations_impl/visibility.dart';
/* This file is empty because, Dart does not have decorators. */
export '../annotations_impl/view.dart';
export '../annotations_impl/di.dart';

View File

@ -73,7 +73,10 @@ export class View {
* }
* ```
*/
directives: List<Type>;
// TODO(tbosch): use Type | Binding | List<any> when Dart supports union types,
// as otherwise we would need to import Binding type and Dart would warn
// for an unused import.
directives: List<Type | any | List<any>>;
/**
* Specify a custom renderer for this View.
@ -89,7 +92,7 @@ export class View {
}: {
templateUrl?: string,
template?: string,
directives?: List<Type>,
directives?: List<Type | any | List<any>>,
renderer?: string
} = {})
{

View File

@ -17,7 +17,18 @@ export function proxy() {
var _global: jasmine.GlobalPolluter = <any>(typeof window === 'undefined' ? global : window);
export var afterEach = _global.afterEach;
export var expect = _global.expect;
export interface NgMatchers extends jasmine.Matchers {
toBe(expected: any): boolean;
toEqual(expected: any): boolean;
toBePromise(expected: any): boolean;
toBeAnInstanceOf(expected: any): boolean;
toHaveText(expected: any): boolean;
toImplement(expected: any): boolean;
not: NgMatchers;
}
export var expect: (actual: any) => NgMatchers = <any>_global.expect;
export var IS_DARTIUM = false;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff