chore(ts): fix TODOs that were pending on 1.6 upgrade

Closes #4377
This commit is contained in:
Alex Eagle
2015-09-25 14:48:17 -07:00
committed by Alex Eagle
parent 8ff65a30c7
commit b4fe590b2d
25 changed files with 165 additions and 190 deletions

View File

@ -1,14 +1,12 @@
import {bind, Binding} from 'angular2/src/core/di';
import {Promise, PromiseWrapper} from 'angular2/src/core/facade/async';
import {ABSTRACT} from 'angular2/src/core/facade/lang';
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
import {StringMap} from 'angular2/src/core/facade/collection';
/**
* A metric is measures values
*/
@ABSTRACT()
export class Metric {
export abstract class Metric {
static bindTo(delegateToken): Binding[] {
return [bind(Metric).toFactory((delegate) => delegate, [delegateToken])];
}

View File

@ -1,14 +1,12 @@
import {bind, Binding} from 'angular2/src/core/di';
import {Promise, PromiseWrapper} from 'angular2/src/core/facade/async';
import {ABSTRACT} from 'angular2/src/core/facade/lang';
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
import {MeasureValues} from './measure_values';
/**
* A reporter reports measure values and the valid sample.
*/
@ABSTRACT()
export class Reporter {
export abstract class Reporter {
static bindTo(delegateToken): Binding[] {
return [bind(Reporter).toFactory((delegate) => delegate, [delegateToken])];
}

View File

@ -1,6 +1,5 @@
import {bind, Binding} from 'angular2/src/core/di';
import {StringMap} from 'angular2/src/core/facade/collection';
import {ABSTRACT} from 'angular2/src/core/facade/lang';
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
import {MeasureValues} from './measure_values';
@ -10,8 +9,7 @@ import {MeasureValues} from './measure_values';
* A valid sample is a sample that represents the population that should be observed
* in the correct way.
*/
@ABSTRACT()
export class Validator {
export abstract class Validator {
static bindTo(delegateToken): Binding[] {
return [bind(Validator).toFactory((delegate) => delegate, [delegateToken])];
}

View File

@ -1,6 +1,5 @@
import {bind, Binding} from 'angular2/src/core/di';
import {Promise} from 'angular2/src/core/facade/async';
import {ABSTRACT} from 'angular2/src/core/facade/lang';
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
import {Map} from 'angular2/src/core/facade/collection';
@ -9,8 +8,7 @@ import {Map} from 'angular2/src/core/facade/collection';
* e.g. JS vs Dart Async vs Dart Sync webdriver.
* Needs one implementation for every supported WebDriver client.
*/
@ABSTRACT()
export class WebDriverAdapter {
export abstract class WebDriverAdapter {
static bindTo(delegateToken): Binding[] {
return [bind(WebDriverAdapter).toFactory((delegate) => delegate, [delegateToken])];
}

View File

@ -1,6 +1,6 @@
import {bind, Binding, Injector, OpaqueToken} from 'angular2/src/core/di';
import {ABSTRACT, isBlank, isPresent} from 'angular2/src/core/facade/lang';
import {isBlank, isPresent} from 'angular2/src/core/facade/lang';
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
import {Promise, PromiseWrapper} from 'angular2/src/core/facade/async';
import {ListWrapper, StringMap} from 'angular2/src/core/facade/collection';
@ -12,8 +12,7 @@ import {Options} from './common_options';
* for a given browser, independent of the WebDriverAdapter.
* Needs one implementation for every supported Browser.
*/
@ABSTRACT()
export class WebDriverExtension {
export abstract class WebDriverExtension {
static bindTo(childTokens): Binding[] {
var res = [
bind(_CHILDREN)