Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"cases": [
{
"description": "should support content projection in root template",
"inputFiles": [
"root_template.ts"
],
"inputFiles": ["root_template.ts"],
"expectations": [
{
"failureMessage": "Incorrect SimpleComponent definition",
Expand All @@ -29,29 +27,21 @@
},
{
"description": "should support multi-slot content projection with multiple wildcard slots",
"inputFiles": [
"multiple_wildcards.ts"
],
"inputFiles": ["multiple_wildcards.ts"],
"expectations": [
{
"failureMessage": "Invalid content projection instructions generated",
"files": [
"multiple_wildcards.js"
]
"files": ["multiple_wildcards.js"]
}
]
},
{
"description": "should support content projection in nested templates",
"inputFiles": [
"nested_template.ts"
],
"inputFiles": ["nested_template.ts"],
"expectations": [
{
"failureMessage": "Invalid content projection instructions generated",
"files": [
"nested_template.js"
]
"files": ["nested_template.js"]
},
{
"failureMessage": "Invalid content projection instructions generated",
Expand All @@ -66,15 +56,11 @@
},
{
"description": "should support content projection in both the root and nested templates",
"inputFiles": [
"root_and_nested.ts"
],
"inputFiles": ["root_and_nested.ts"],
"expectations": [
{
"failureMessage": "Invalid content projection instructions generated",
"files": [
"root_and_nested.js"
]
"files": ["root_and_nested.js"]
},
{
"failureMessage": "Invalid content projection instructions generated",
Expand All @@ -89,85 +75,61 @@
},
{
"description": "should parse the selector that is passed into ngProjectAs",
"inputFiles": [
"ng_project_as_selector.ts"
],
"inputFiles": ["ng_project_as_selector.ts"],
"expectations": [
{
"failureMessage": "Incorrect SimpleComponent definition",
"files": [
"ng_project_as_selector.js"
]
"files": ["ng_project_as_selector.js"]
}
]
},
{
"description": "should take the first selector if multiple values are passed into ngProjectAs",
"inputFiles": [
"ng_project_as_compound_selector.ts"
],
"inputFiles": ["ng_project_as_compound_selector.ts"],
"expectations": [
{
"failureMessage": "Incorrect SimpleComponent definition",
"files": [
"ng_project_as_compound_selector.js"
]
"files": ["ng_project_as_compound_selector.js"]
}
]
},
{
"description": "should include parsed ngProjectAs selectors into template attrs",
"inputFiles": [
"ng_project_as_attribute.ts"
],
"inputFiles": ["ng_project_as_attribute.ts"],
"expectations": [
{
"failureMessage": "Incorrect MyApp definition",
"files": [
"ng_project_as_attribute.js"
]
"files": ["ng_project_as_attribute.js"]
}
]
},
{
"description": "should capture the node name of ng-content with a structural directive",
"inputFiles": [
"ng_content_with_structural_dir.ts"
],
"inputFiles": ["ng_content_with_structural_dir.ts"],
"expectations": [
{
"failureMessage": "Incorrect SimpleComponent definition",
"files": [
"ng_content_with_structural_dir.js"
]
"files": ["ng_content_with_structural_dir.js"]
}
]
},
{
"description": "support projectAs on ng-content",
"inputFiles": [
"project_as_ng_content.ts"
],
"inputFiles": ["project_as_ng_content.ts"],
"expectations": [
{
"failureMessage": "Incorrect projection",
"files": [
"project_as_ng_content.js"
]
"files": ["project_as_ng_content.js"]
}
]
},
{
"description": "should support fallback content in ng-content",
"inputFiles": [
"ng_content_fallback.ts"
],
"inputFiles": ["ng_content_fallback.ts"],
"expectations": [
{
"failureMessage": "Incorrect projection",
"files": [
"ng_content_fallback.js"
]
"files": ["ng_content_fallback.js"]
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"cases": [
{
"description": "should handle SVG",
"inputFiles": [
"svg.ts"
],
"inputFiles": ["svg.ts"],
"expectations": [
{
"files": [
Expand All @@ -29,9 +27,7 @@
},
{
"description": "should handle SVG with an embedded ng-template",
"inputFiles": [
"svg_embedded_view.ts"
],
"inputFiles": ["svg_embedded_view.ts"],
"expectations": [
{
"files": [
Expand All @@ -46,9 +42,7 @@
},
{
"description": "should handle MathML",
"inputFiles": [
"mathml.ts"
],
"inputFiles": ["mathml.ts"],
"expectations": [
{
"files": [
Expand All @@ -72,9 +66,7 @@
},
{
"description": "should translate DOM structure",
"inputFiles": [
"dom.ts"
],
"inputFiles": ["dom.ts"],
"expectations": [
{
"files": [
Expand All @@ -98,9 +90,7 @@
},
{
"description": "should support namespaced attributes",
"inputFiles": [
"namespace.ts"
],
"inputFiles": ["namespace.ts"],
"expectations": [
{
"files": [
Expand All @@ -124,9 +114,7 @@
},
{
"description": "should support <ng-container>",
"inputFiles": [
"ng-container.ts"
],
"inputFiles": ["ng-container.ts"],
"expectations": [
{
"failureMessage": "Incorrect generated template."
Expand All @@ -135,9 +123,7 @@
},
{
"description": "should generate self-closing elementContainer instruction for empty <ng-container>",
"inputFiles": [
"empty_ng-container.ts"
],
"inputFiles": ["empty_ng-container.ts"],
"expectations": [
{
"failureMessage": "Incorrect generated template."
Expand All @@ -146,9 +132,7 @@
},
{
"description": "should bind to element properties",
"inputFiles": [
"properties.ts"
],
"inputFiles": ["properties.ts"],
"expectations": [
{
"files": [
Expand All @@ -172,9 +156,7 @@
},
{
"description": "should reserve slots for pure functions",
"inputFiles": [
"property_pure_functions.ts"
],
"inputFiles": ["property_pure_functions.ts"],
"expectations": [
{
"files": [
Expand All @@ -198,9 +180,7 @@
},
{
"description": "should reserve slots for pure functions in host binding function",
"inputFiles": [
"host_binding_pure_functions.ts"
],
"inputFiles": ["host_binding_pure_functions.ts"],
"expectations": [
{
"failureMessage": "Incorrect `hostBindings` function."
Expand All @@ -209,9 +189,7 @@
},
{
"description": "should bind to class and style names",
"inputFiles": [
"class_style_bindings.ts"
],
"inputFiles": ["class_style_bindings.ts"],
"expectations": [
{
"files": [
Expand All @@ -235,9 +213,7 @@
},
{
"description": "should de-duplicate attribute arrays",
"inputFiles": [
"deduplicate_attributes.ts"
],
"inputFiles": ["deduplicate_attributes.ts"],
"expectations": [
{
"failureMessage": "Incorrect generated template."
Expand All @@ -246,9 +222,7 @@
},
{
"description": "should specify security-sensitive constant attributes as template literals",
"inputFiles": [
"security_sensitive_constant_attributes.ts"
],
"inputFiles": ["security_sensitive_constant_attributes.ts"],
"expectations": [
{
"failureMessage": "Incorrect generated template."
Expand All @@ -257,9 +231,7 @@
},
{
"description": "should validate iframe attributes",
"inputFiles": [
"iframe_attrs.ts"
],
"inputFiles": ["iframe_attrs.ts"],
"expectations": [
{
"failureMessage": "Incorrect generated template."
Expand All @@ -268,9 +240,7 @@
},
{
"description": "should support namespaces on attributes",
"inputFiles": [
"namespace_attr.ts"
],
"inputFiles": ["namespace_attr.ts"],
"expectations": [
{
"failureMessage": "Incorrect generated template."
Expand Down
Loading
Loading