You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(compiler-cli): add compliance tests for external runtime styles (angular#57613)
To ensure that the external runtime style component feature is correctly
emitted by the Angular compiler, compliance tests have been added for
file-based component styles. Additionally, the partial golden generator
has been updated to work with file-based component styles.
PR Closeangular#57613
Copy file name to clipboardExpand all lines: packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/GOLDEN_PARTIAL.js
+74Lines changed: 74 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,43 @@ export declare class MyModule {
Copy file name to clipboardExpand all lines: packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/TEST_CASES.json
+35-1Lines changed: 35 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,20 @@
15
15
}
16
16
]
17
17
},
18
+
{
19
+
"description": "should pass in the component metadata styles into the component definition and shim them using style encapsulation",
20
+
"inputFiles": [
21
+
"encapsulation_emulated.ts"
22
+
],
23
+
"expectations": [
24
+
{
25
+
"failureMessage": "Incorrect template",
26
+
"files": [
27
+
"encapsulation_emulated.js"
28
+
]
29
+
}
30
+
]
31
+
},
18
32
{
19
33
"description": "should pass in styles, but skip shimming the styles if the view encapsulation signals not to",
20
34
"inputFiles": [
@@ -42,6 +56,26 @@
42
56
]
43
57
}
44
58
]
59
+
},
60
+
{
61
+
"description": "should emit external runtime styles component feature for file-based styles when 'externalRuntimeStyles' option is enabled",
0 commit comments