Skip to content

Commit 8fad978

Browse files
committed
add one unit test for an example of a DASH XML element that can be present only once
1 parent f528511 commit 8fad978

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/unit/test/dash/dash.DashParser.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@ describe('DashParser', function () {
9090
expect(rawRepresentation.SupplementalProperty.length).to.equal(4);
9191
});
9292

93+
it('should map allowed SegmentTemplate from AdaptationSet to Representation', async () => {
94+
let parsedMpd = dashParser.parse(manifest_prop);
95+
let rawAdaptationSet = parsedMpd.Period[0].AdaptationSet[0];
96+
let rawRepresentation = rawAdaptationSet.Representation[0];
97+
98+
expect(rawRepresentation.SegmentTemplate).to.be.instanceOf(Object);
99+
});
100+
93101
});
94102
})
95103

0 commit comments

Comments
 (0)