Skip to content

Commit b926296

Browse files
committed
Add the test for masks
1 parent a66118e commit b926296

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

test/diff/fixtures/first/mask.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
AZ<meta charset="UTF-32">
2+
<div id="blah{{\d+}}blah"></div>bl{{\}}{=ah 5
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{{[A-Z]+}}<meta charset="{{UTF-\d{1,2}}}">
2+
<div id="blah12345blah"></div>{{bl\{\{\\\}}{=ah\s\d}}

test/diff/isEqual.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,11 @@ describe('\'isEqual\'', function () {
136136

137137
htmlDiffer.isEqual(files.html1, files.html2).must.be.true();
138138
});
139+
140+
it('must work mask {{RegExp}}', function () {
141+
var htmlDiffer = new HtmlDiffer(),
142+
files = readFiles('mask');
143+
144+
htmlDiffer.isEqual(files.html1, files.html2).must.be.true();
145+
});
139146
});

0 commit comments

Comments
 (0)