.`);
    });
    // https://stackblitz.com/edit/angular-wlenwd?file=src%2Fapp%2Fapp.component.ts
    it('should support view and content queries matching the same element', () => {
      /**
       * 
       * 
       * class Cmpt {
       *  @ViewChildren('foo, bar') foos;
       * }
       */
      const AppComponent = createComponent(
          'app-component',
          function(rf: RenderFlags, ctx: any) {
            if (rf & RenderFlags.Create) {
              ɵɵelementStart(0, 'div', ['with-content', '']);
              { ɵɵelement(1, 'div', null, ['foo', '']); }
              ɵɵelementEnd();
              ɵɵelement(3, 'div', ['id', 'after'], ['bar', '']);
            }
          },
          5, 0, [WithContentDirective], [],
          function(rf: RenderFlags, ctx: any) {
            if (rf & RenderFlags.Create) {
              ɵɵviewQuery(['foo', 'bar'], true, null);
            }
            if (rf & RenderFlags.Update) {
              let tmp: any;
              ɵɵqueryRefresh(tmp = ɵɵloadViewQuery
>()) &&
                  (ctx.foos = tmp as QueryList);
            }
          });
      const fixture = new ComponentFixture(AppComponent);
      const viewQList = fixture.component.foos;
      expect(viewQList.length).toBe(2);
      expect(withContentInstance !.foos.length).toBe(1);
      expect(viewQList.first.nativeElement).toBe(withContentInstance !.foos.first.nativeElement);
      expect(viewQList.last.nativeElement.id).toBe('after');
    });
    it('should not report deep content query matches found above content children', () => {
      /**
       * 
       *   
    <-- should match content query
       * 
        *       
        *         
        *       
        *    
        *    
        */
      class ViewQueryComponent {
        // @ViewChildren(TextDirective)
        texts !: QueryList;
        static ngComponentDef = ɵɵdefineComponent({
          type: ViewQueryComponent,
          selectors: [['view-query']],
          factory: () => new ViewQueryComponent(),
          template: function(rf: RenderFlags, ctx: ViewQueryComponent) {
            if (rf & RenderFlags.Create) {
              ɵɵelement(0, 'span', ['text', 'A']);
              ɵɵelementStart(1, 'div', ['text', 'B']);
              ɵɵelementStart(2, 'span', ['text', 'C']);
              { ɵɵelement(3, 'span', ['text', 'D']); }
              ɵɵelementEnd();
              ɵɵelementEnd();
              ɵɵelement(4, 'span', ['text', 'E']);
            }
          },
          consts: 5,
          vars: 0,
          viewQuery: function(rf: RenderFlags, ctx: ViewQueryComponent) {
            let tmp: any;
            if (rf & RenderFlags.Create) {
              ɵɵviewQuery(TextDirective, true, null);
            }
            if (rf & RenderFlags.Update) {
              ɵɵqueryRefresh(tmp = ɵɵloadViewQuery>()) &&
                  (ctx.texts = tmp as QueryList);
            }
          },
          directives: [TextDirective]
        });
      }
      const fixture = new ComponentFixture(ViewQueryComponent);
      expect(fixture.component.texts.map(item => item.value)).toEqual(['A', 'B', 'C', 'D', 'E']);
    });
  });
});