Skip to content

Commit c955ce5

Browse files
committed
Update test
1 parent d88ca50 commit c955ce5

5 files changed

Lines changed: 38 additions & 8 deletions

File tree

test/diffHtml.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('\'diffHtml\'', function () {
1818
files = readFiles('3.html', '_3.html'),
1919

2020
res = [ {
21-
value: '<html> <head> <title>Test</title> </head> <body> <label for="">label for input</label> <input id=""> </body> </html> ',
21+
value: '<html><head><title>Test</title></head><body><label for="">label for input</label><input id=""></body></html>',
2222
added: undefined,
2323
removed: undefined
2424
} ];

test/fixtures/10.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<!-- comments1 -->
3+
<html>
4+
<head lang="en">
5+
<meta charset="UTF-8">
6+
<title><!-- comments2 --></title>
7+
</head>
8+
<body>
9+
Text<!-- comments3 -->
10+
</body>
11+
</html>
12+
<!-- comments4 -->

test/fixtures/7.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<!DOCTYPE html>
22
<html>
3+
Text Text
34
<head lang="en">
45
<meta charset="UTF-8">
56
<title></title>

test/fixtures/_10.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head lang="en">
4+
<meta charset="UTF-8">
5+
<title></title>
6+
</head>
7+
<body>
8+
Text
9+
</body>
10+
</html>

test/fixtures/_7.html

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html>
3+
Text Text
4+
<head lang = "en">
5+
<meta charset="UTF-8">
6+
<title > </title>
37

4-
<head lang="en">
5-
<meta charset="UTF-8">
6-
<title ></title>
7-
</head>
8+
9+
</head>
810

911
<body>
10-
Text
11-
</body>
12+
Text
13+
14+
</body>
15+
16+
17+
18+
1219
</html>
1320

1421

0 commit comments

Comments
 (0)