test(core): enable test in compiler compliance for namespace uri (#38957)

Enables test that was fixed by #24386.
resolves #24426.

PR Close #38957
This commit is contained in:
Andrew Scott 2020-09-23 11:23:28 -07:00 committed by Alex Rickabaugh
parent 4c8766573d
commit bd7d8744fa
1 changed files with 5 additions and 4 deletions

View File

@ -167,9 +167,7 @@ describe('compiler compliance', () => {
expectEmit(result.source, template, 'Incorrect template');
});
// TODO(https://github.com/angular/angular/issues/24426): We need to support the parser actually
// building the proper attributes based off of xmlns attributes.
xit('should support namespaced attributes', () => {
it('should support namespaced attributes', () => {
const files = {
app: {
'spec.ts': `
@ -194,7 +192,10 @@ describe('compiler compliance', () => {
// The template should look like this (where IDENT is a wild card for an identifier):
const template = `
consts: [["class", "my-app", 0, "http://someuri/foo", "foo:bar", "baz", "title", "Hello", 0, "http://someuri/foo", "foo:qux", "quacks"]],
consts: [[${AttributeMarker.NamespaceURI}, "xmlns", "foo", "http://someuri/foo", ${
AttributeMarker.NamespaceURI}, "foo", "bar", "baz", "title", "Hello", ${
AttributeMarker.NamespaceURI}, "foo", "qux", "quacks", ${
AttributeMarker.Classes}, "my-app"]],
template: function MyComponent_Template(rf, ctx) {
if (rf & 1) {
$r3$.ɵɵelementStart(0, "div", 0);