From 04220be8fd8efb265a2f74812a6b7b7e91be0b94 Mon Sep 17 00:00:00 2001 From: Tobias Bosch Date: Wed, 1 Jun 2016 16:30:51 -0700 Subject: [PATCH] chore: remove old tests (#8954) These tests are already captured in template_parser_spec.ts --- .../core/test/linker/integration_spec.ts | 53 ------------------- 1 file changed, 53 deletions(-) diff --git a/modules/@angular/core/test/linker/integration_spec.ts b/modules/@angular/core/test/linker/integration_spec.ts index 04be3a6f80..84e434c0c0 100644 --- a/modules/@angular/core/test/linker/integration_spec.ts +++ b/modules/@angular/core/test/linker/integration_spec.ts @@ -1751,59 +1751,6 @@ function declareTests(isJit: boolean) { })); }); - // Disabled until a solution is found, refs: - // - https://github.com/angular/angular/issues/776 - // - https://github.com/angular/angular/commit/81f3f32 - xdescribe('Missing directive checks', () => { - function expectCompileError(tcb, inlineTpl, errMessage, done) { - tcb = tcb.overrideView(MyComp, new ViewMetadata({template: inlineTpl})); - PromiseWrapper.then( - tcb.createAsync(MyComp), - (value) => { - throw new BaseException( - "Test failure: should not have come here as an exception was expected"); - }, - (err) => { - expect(err.message).toEqual(errMessage); - done(); - }); - } - - if (assertionsEnabled()) { - it('should raise an error if no directive is registered for a template with template bindings', - inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, - async) => { - expectCompileError(tcb, '
', - 'Missing directive to handle \'if\' in
', - () => async.done()); - })); - - it('should raise an error for missing template directive (1)', - inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, - async) => { - expectCompileError(tcb, '
', - 'Missing directive to handle: