test(ivy): ngcc - test compiling the Angular Material library (#26403)

* rename test helper script
* add material to the ngcc integration test
* add MatButton to ngcc integration test checks
* remove platform-server from ngcc integration test
  This package does not yet compile as it contains a package-private
  (internal) decorated class, which the ngcc compiler does not yet
  handle.

PR Close #26403
This commit is contained in:
Pete Bacon Darwin
2018-10-15 11:02:38 +01:00
committed by Kara Erickson
parent 030d43b9f3
commit 603e7935aa
4 changed files with 17 additions and 5 deletions

View File

@ -1,9 +1,11 @@
import {Component, NgModule, ɵrenderComponent as renderComponent} from '@angular/core';
import {CommonModule} from '@angular/common';
import {MatButtonModule} from '@angular/material/button';
@Component({
selector: 'hello-world',
template: `
<button (click)="visible = true">See Message</button>
<button mat-button (click)="visible = true">See Message</button>
<h2 *ngIf="visible">Hello World</h2>
`,
})
@ -13,7 +15,7 @@ class HelloWorld {
@NgModule({
declarations: [HelloWorld],
imports: [CommonModule],
imports: [CommonModule, MatButtonModule],
})
class Module {}