2016-06-22 14:06:23 -07:00
|
|
|
/**
|
|
|
|
|
* @license
|
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
|
*/
|
|
|
|
|
|
2016-06-30 13:07:17 -07:00
|
|
|
import './init';
|
|
|
|
|
import {BasicComp} from '../src/basic';
|
|
|
|
|
import {CompWithPrecompile} from '../src/precompile';
|
|
|
|
|
import {createComponent} from './util';
|
2016-06-22 14:06:23 -07:00
|
|
|
|
|
|
|
|
describe('content projection', () => {
|
|
|
|
|
it('should support basic content projection', () => {
|
2016-06-30 13:07:17 -07:00
|
|
|
var compFixture = createComponent(CompWithPrecompile);
|
|
|
|
|
var cf = compFixture.componentInstance.cfr.resolveComponentFactory(BasicComp);
|
|
|
|
|
expect(cf.componentType).toBe(BasicComp);
|
2016-06-22 14:06:23 -07:00
|
|
|
});
|
|
|
|
|
});
|