@@ -229,19 +229,17 @@ export function runCompilerCommonTests() {
229229      createNestedComponentSpec ( '(error -> sync)' ,  templateResolver , 
230230        'Failed to load the template for ParentComponent' ) ; 
231231
232-       // TODO(vicb): Check why errors this fails with Dart 
233-       // TODO(vicb): The Promise is rejected with the correct error but an exc is thrown before 
234-       //templateResolver = new FakeTemplateResolver(); 
235-       //templateResolver.setSync(ParentComponent); 
236-       //templateResolver.setError(NestedComponent); 
237-       //createNestedComponentSpec('(sync -> error)', templateResolver, 
238-       //  'Failed to load the template for NestedComponent -> Failed to compile ParentComponent'); 
239-       // 
240-       //templateResolver = new FakeTemplateResolver(); 
241-       //templateResolver.setAsync(ParentComponent); 
242-       //templateResolver.setError(NestedComponent); 
243-       //createNestedComponentSpec('(async -> error)', templateResolver, 
244-       //  'Failed to load the template for NestedComponent -> Failed to compile ParentComponent'); 
232+       templateResolver  =  new  FakeTemplateResolver ( ) ; 
233+       templateResolver . setSync ( ParentComponent ) ; 
234+       templateResolver . setError ( NestedComponent ) ; 
235+       createNestedComponentSpec ( '(sync -> error)' ,  templateResolver , 
236+         'Failed to load the template for NestedComponent -> Failed to compile ParentComponent' ) ; 
237+ 
238+       templateResolver  =  new  FakeTemplateResolver ( ) ; 
239+       templateResolver . setAsync ( ParentComponent ) ; 
240+       templateResolver . setError ( NestedComponent ) ; 
241+       createNestedComponentSpec ( '(async -> error)' ,  templateResolver , 
242+         'Failed to load the template for NestedComponent -> Failed to compile ParentComponent' ) ; 
245243
246244    } ) ; 
247245
0 commit comments