test(ivy): update e2e tests to use Renderer2 instead of Renderer (#28558)

PR Close #28558
This commit is contained in:
Marc Laval
2019-02-06 10:52:18 +01:00
committed by Matias Niemelä
parent 6709db9677
commit 0e6f799aec
4 changed files with 62 additions and 66 deletions

View File

@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
import {Component, Directive, ElementRef, Injectable, NgModule, Renderer} from '@angular/core';
import {Component, Directive, ElementRef, Injectable, NgModule, Renderer2} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
@ -22,8 +22,8 @@ export class GreetingService {
export class RedDec {
// ElementRef is always injectable and it wraps the element on which the
// directive was found by the compiler.
constructor(el: ElementRef, renderer: Renderer) {
renderer.setElementStyle(el.nativeElement, 'color', 'red');
constructor(el: ElementRef, renderer: Renderer2) {
renderer.setStyle(el.nativeElement, 'color', 'red');
}
}