Skip to content

Commit

Permalink
Add initial regression tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
kristapsdz committed Oct 24, 2020
1 parent 1aadf5d commit ffc59f4
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 0 deletions.
15 changes: 15 additions & 0 deletions regress/join-fail/simple-diff-attr.xliff
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<xliff version="1.2">
<file source-language="en" target-language="en">
<body>
<trans-unit id="unit1">
<source>title</source>
<target>Title</target>
</trans-unit>
<trans-unit id="2">
<source>hello <x id="0" xhtml:src="foo.jpg"/> world</source>
<target>Hello, World!</target>
</trans-unit>
</body>
</file>
</xliff>

5 changes: 5 additions & 0 deletions regress/join-fail/simple-diff-attr.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!DOCTYPE html>
<html xmlns:its="http://www.w3.org/2005/11/its" lang="en">
<head><title>title</title></head>
<body><p>hello <img src="bar.jpg" /> world</p></body>
</html>
5 changes: 5 additions & 0 deletions regress/join-pass/simple.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<head><title>Title</title></head>
<body><p>Hello, World!</p></body>
</html>
15 changes: 15 additions & 0 deletions regress/join-pass/simple.xliff
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<xliff version="1.2">
<file source-language="en" target-language="en">
<body>
<trans-unit id="unit1">
<source>title</source>
<target>Title</target>
</trans-unit>
<trans-unit id="2">
<source>hello <x id="0" xhtml:src="foo.jpg"/> world</source>
<target>Hello, World!</target>
</trans-unit>
</body>
</file>
</xliff>

5 changes: 5 additions & 0 deletions regress/join-pass/simple.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!DOCTYPE html>
<html xmlns:its="http://www.w3.org/2005/11/its" lang="en">
<head><title>title</title></head>
<body><p>hello <img src="foo.jpg" /> world</p></body>
</html>

0 comments on commit ffc59f4

Please sign in to comment.