refactor(tests): refactor tests to clarify the behavior of onChange

This commit is contained in:
vsavkin
2015-03-13 17:52:27 -07:00
parent 956b8c8792
commit 33bff17f33
3 changed files with 17 additions and 9 deletions

View File

@ -2,7 +2,7 @@ import {DOM} from 'angular2/src/dom/dom_adapter';
import {Promise} from 'angular2/src/facade/async';
import {ListWrapper, MapWrapper, Map, StringMapWrapper, List} from 'angular2/src/facade/collection';
import {AST, ContextWithVariableBindings, ChangeDispatcher, ProtoChangeDetector, ChangeDetector,
ChangeRecord, BindingRecord} from 'angular2/change_detection';
ChangeRecord, BindingRecord, uninitialized} from 'angular2/change_detection';
import {ProtoElementInjector, ElementInjector, PreBuiltObjects} from './element_injector';
import {BindingPropagationConfig} from './binding_propagation_config';
@ -682,7 +682,7 @@ class DirectiveMemento {
}
}
class PropertyUpdate {
export class PropertyUpdate {
currentValue;
previousValue;
@ -690,4 +690,8 @@ class PropertyUpdate {
this.currentValue = currentValue;
this.previousValue = previousValue;
}
static createWithoutPrevious(currentValue) {
return new PropertyUpdate(currentValue, uninitialized);
}
}