test: add example test for change_detection

This commit is contained in:
Misko Hevery
2014-10-01 22:05:46 -07:00
parent 78d758b4bb
commit f9923ea7db
4 changed files with 12 additions and 5 deletions

View File

@ -1,6 +1,8 @@
import {WatchGroup} from './watch_group';
import {Record} from './record';
import {ProtoWatchGrou, WatchGroup} from './watch_group';
import {ProtoRecord, Record} from './record';
import {FIELD} from 'facade/lang';
export * from './record';
export * from './watch_group'
export class ChangeDetection {

View File

@ -1,5 +1,5 @@
import {describe, it, expect} from 'test_lib/test_lib';
import {ProtoWatchGroup, WatchGroup, WatchGroupDispatcher} from 'change_detection/watch_group';
import {ProtoWatchGroup, WatchGroup, WatchGroupDispatcher} from 'change_detection/change_detection';
import {DOM} from 'facade/dom';
@ -7,7 +7,7 @@ export function main() {
describe('change_detection', function() {
describe('ChangeDetection', function() {
it('should do simple watching', function() {
return; // remove me after getting the test to pass.
return; // remove me once xit or CD works.
var person = new Person('misko', 38);
var pwg = new ProtoWatchGroup();
pwg.watch('name', 'nameToken');