@@ -192,9 +192,9 @@ main() => describe('scope', () {
192
192
}));
193
193
194
194
it ('children should point to root' , inject ((RootScope rootScope) {
195
- var child = rootScope.createChild ();
195
+ var child = rootScope.createChild (new PrototypeMap (rootScope.context) );
196
196
expect (child.rootScope).toEqual (rootScope);
197
- expect (child.createChild ().rootScope).toEqual (rootScope);
197
+ expect (child.createChild (new PrototypeMap (rootScope.context) ).rootScope).toEqual (rootScope);
198
198
}));
199
199
});
200
200
@@ -206,10 +206,10 @@ main() => describe('scope', () {
206
206
207
207
208
208
it ('should point to parent' , inject ((RootScope rootScope) {
209
- var child = rootScope.createChild ();
209
+ var child = rootScope.createChild (new PrototypeMap (rootScope.context) );
210
210
expect (rootScope.parentScope).toEqual (null );
211
211
expect (child.parentScope).toEqual (rootScope);
212
- expect (child.createChild ().parentScope).toEqual (child);
212
+ expect (child.createChild (new PrototypeMap (rootScope.context) ).parentScope).toEqual (child);
213
213
}));
214
214
});
215
215
});
@@ -226,7 +226,7 @@ main() => describe('scope', () {
226
226
227
227
it (r'should add listener for both emit and broadcast events' , inject ((RootScope rootScope) {
228
228
var log = '' ,
229
- child = rootScope.createChild ();
229
+ child = rootScope.createChild (new PrototypeMap (rootScope.context) );
230
230
231
231
eventFn (event) {
232
232
expect (event).not.toEqual (null );
@@ -246,7 +246,7 @@ main() => describe('scope', () {
246
246
247
247
it (r'should return a function that deregisters the listener' , inject ((RootScope rootScope) {
248
248
var log = '' ;
249
- var child = rootScope.createChild ();
249
+ var child = rootScope.createChild (new PrototypeMap (rootScope.context) );
250
250
var subscription;
251
251
252
252
eventFn (e) {
0 commit comments