File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<!DOCTYPE html>
22<!-- comments1 -->
33< html >
4- < head lang ="en ">
4+ <!-- comments2 --> < head lang ="en "> <!-- comments3 -- >
55 < meta charset ="UTF-8 ">
6- < title > <!-- comments2 --> </ title >
7- </ head >
6+ < title > <!-- comments4 --> </ title >
7+ </ head > <!-- comments5 -->
88< body >
9- Text<!-- comments3 -->
9+ Text<!-- comments6 -->
1010</ body >
1111</ html >
12- <!-- comments4 -->
12+ <!-- comments7 -->
Original file line number Diff line number Diff line change @@ -84,4 +84,12 @@ describe('\'isEqual\'', function () {
8484 htmlDiffer . isEqual ( files . html1 , files . html2 ) . must . be . true ( ) ;
8585 } ) ;
8686
87+ it ( 'must ignore html comments' , function ( ) {
88+ var htmlDiffer = new HtmlDiffer ( ) ,
89+
90+ files = readFiles ( '10.html' , '_10.html' ) ;
91+
92+ htmlDiffer . isEqual ( files . html1 , files . html2 ) . must . be . true ( ) ;
93+ } ) ;
94+
8795} ) ;
You can’t perform that action at this time.
0 commit comments