Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit c7df4a5

Browse files
committed
WIP: fix/remove bugus tests
1 parent adc8941 commit c7df4a5

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

test/ngSanitize/sanitizeSpec.js

+2-14
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,6 @@ describe('HTML', function() {
6666
toBe('<- text1 text2 <1 text1 text2 <{');
6767
});
6868

69-
it('should throw badparse if text content contains "<" followed by "/" without matching ">"', function() {
70-
htmlParser('foo </ bar', handler);
71-
expect(start).toEqual(undefined);
72-
expect(text).toEqual('foo ');
73-
});
74-
75-
it('should throw badparse if text content contains "<" followed by an ASCII letter without matching ">"', function() {
76-
htmlParser('foo <a bar', handler);
77-
expect(start).toEqual(undefined);
78-
expect(text).toEqual('foo ');
79-
});
80-
8169
it('should accept tag delimiters such as "<" inside real tags', function() {
8270
// Assert that the < is part of the text node content, and not part of a tag name.
8371
htmlParser('<p> 10 < 100 </p>', handler);
@@ -103,8 +91,8 @@ describe('HTML', function() {
10391
});
10492

10593
it('should parse empty value attribute of node', function() {
106-
htmlParser('<OPTION selected value="">abc</OPTION>', handler);
107-
expect(start).toEqual({tag:'option', attrs:{selected:'', value:''}});
94+
htmlParser('<test-foo selected value="">abc</test-foo>', handler);
95+
expect(start).toEqual({tag:'test-foo', attrs:{selected:'', value:''}});
10896
expect(text).toEqual('abc');
10997
});
11098
});

0 commit comments

Comments
 (0)