refactor(ivy): abstract all styling-related compiler logic into a shared class (#27043)

PR Close #27043
This commit is contained in:
Matias Niemelä
2018-11-09 18:03:32 -08:00
committed by Andrew Kushnir
parent 8b9249a670
commit 095b6e8113
5 changed files with 439 additions and 337 deletions

View File

@ -5,9 +5,9 @@
* 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
*/
import {hyphenate, parseStyle, stripUnnecessaryQuotes} from '../../src/render3/view/styling';
import {hyphenate, parse as parseStyle, stripUnnecessaryQuotes} from '../../src/render3/view/style_parser';
describe('inline css style parsing', () => {
describe('style parsing', () => {
it('should parse empty or blank strings', () => {
const result1 = parseStyle('');
expect(result1).toEqual({});