| 
									
										
										
										
											2015-10-13 00:29:13 -07:00
										 |  |  | import 'package:angular2/testing_internal.dart' show SpyObject; | 
					
						
							| 
									
										
										
										
											2015-10-28 10:34:13 -07:00
										 |  |  | import 'package:angular2/core.dart' show Injector, bind; | 
					
						
							|  |  |  | import 'package:angular2/src/core/application_ref.dart' show ApplicationRef; | 
					
						
							| 
									
										
										
										
											2015-10-02 07:37:23 -07:00
										 |  |  | import 'package:angular2/src/core/linker/dynamic_component_loader.dart' | 
					
						
							| 
									
										
										
										
											2015-10-08 08:22:11 -07:00
										 |  |  |     show ComponentRef_; | 
					
						
							| 
									
										
										
										
											2015-09-04 14:44:24 -07:00
										 |  |  | import 'dart:js'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @proxy | 
					
						
							| 
									
										
										
										
											2015-10-28 10:34:13 -07:00
										 |  |  | class SpyApplicationRef extends SpyObject implements ApplicationRef { | 
					
						
							|  |  |  |   tick() {} | 
					
						
							| 
									
										
										
										
											2015-09-04 14:44:24 -07:00
										 |  |  |   noSuchMethod(m) => super.noSuchMethod(m); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @proxy | 
					
						
							| 
									
										
										
										
											2015-10-08 08:22:11 -07:00
										 |  |  | class SpyComponentRef extends SpyObject implements ComponentRef_ { | 
					
						
							| 
									
										
										
										
											2015-09-04 14:44:24 -07:00
										 |  |  |   Injector injector; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-09-15 17:13:48 -07:00
										 |  |  |   SpyComponentRef() { | 
					
						
							|  |  |  |     this.injector = | 
					
						
							| 
									
										
										
										
											2015-10-28 10:34:13 -07:00
										 |  |  |         Injector.resolveAndCreate([bind(ApplicationRef).toClass(SpyApplicationRef)]); | 
					
						
							| 
									
										
										
										
											2015-09-04 14:44:24 -07:00
										 |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   noSuchMethod(m) => super.noSuchMethod(m); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void callNgProfilerTimeChangeDetection([config]) { | 
					
						
							| 
									
										
										
										
											2015-09-15 17:13:48 -07:00
										 |  |  |   context['ng']['profiler'] | 
					
						
							|  |  |  |       .callMethod('timeChangeDetection', config != null ? [config] : []); | 
					
						
							| 
									
										
										
										
											2015-09-04 14:44:24 -07:00
										 |  |  | } |