mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
test: refactor language tests (#2594)
This commit is contained in:
parent
578bb771bf
commit
4c360fc1f0
@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>Chinese text</title>
|
<title>Chinese text</title>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
<script type="text/javascript" src="../../test.js"></script>
|
<script type="text/javascript" src="../../../test.js"></script>
|
||||||
<style>
|
<style>
|
||||||
.chn-text-block {
|
.chn-text-block {
|
||||||
width: 500px;
|
width: 500px;
|
26
tests/reftests/text/lang/persian.html
Normal file
26
tests/reftests/text/lang/persian.html
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html dir="rtl" lang="fa-IR">
|
||||||
|
<head>
|
||||||
|
<title>Persian rtl</title>
|
||||||
|
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
|
<script type="text/javascript" src="../../../test.js"></script>
|
||||||
|
<style>
|
||||||
|
body{
|
||||||
|
font-family: Arial;
|
||||||
|
}
|
||||||
|
.test{
|
||||||
|
padding: 10px 25px;
|
||||||
|
direction: rtl;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="test" lang="fa">
|
||||||
|
<p>
|
||||||
|
سلام دنیا! این یک تست است...
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<span class="test" lang="fa">من میتوانم. این است قدرت جاوااسکریپت!</span>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>Thai text</title>
|
<title>Thai text</title>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
<script type="text/javascript" src="../../test.js"></script>
|
<script type="text/javascript" src="../../../test.js"></script>
|
||||||
<style>
|
<style>
|
||||||
.text-block {
|
.text-block {
|
||||||
width: 500px;
|
width: 500px;
|
Loading…
Reference in New Issue
Block a user