add tests

This commit is contained in:
Felipe 2016-09-27 10:58:58 +02:00 committed by Felipe Lacerda
parent e0a48fe596
commit 44c26e014a
11 changed files with 261 additions and 0 deletions

View file

@ -17,3 +17,4 @@
[HTMLOptionsCollection.add method insert HTMLOptionElement Option element]
expected: FAIL

View file

@ -5946,6 +5946,54 @@
"url": "/_mozilla/css/width_nonreplaced_block_simple_a.html"
}
],
"css/word-break-keep-all-005.htm": [
{
"path": "css/word-break-keep-all-005.htm",
"references": [
[
"/_mozilla/css/word-break-keep-all-ref-005.htm",
"=="
]
],
"url": "/_mozilla/css/word-break-keep-all-005.htm"
}
],
"css/word-break-keep-all-006.htm": [
{
"path": "css/word-break-keep-all-006.htm",
"references": [
[
"/_mozilla/css/word-break-keep-all-ref-006.htm",
"=="
]
],
"url": "/_mozilla/css/word-break-keep-all-006.htm"
}
],
"css/word-break-keep-all-007.htm": [
{
"path": "css/word-break-keep-all-007.htm",
"references": [
[
"/_mozilla/css/word-break-keep-all-ref-007.htm",
"=="
]
],
"url": "/_mozilla/css/word-break-keep-all-007.htm"
}
],
"css/word-break-keep-all-008.htm": [
{
"path": "css/word-break-keep-all-008.htm",
"references": [
[
"/_mozilla/css/word-break-keep-all-ref-008.htm",
"=="
]
],
"url": "/_mozilla/css/word-break-keep-all-008.htm"
}
],
"css/word-spacing.html": [
{
"path": "css/word-spacing.html",
@ -19584,6 +19632,54 @@
"url": "/_mozilla/css/width_nonreplaced_block_simple_a.html"
}
],
"css/word-break-keep-all-005.htm": [
{
"path": "css/word-break-keep-all-005.htm",
"references": [
[
"/_mozilla/css/word-break-keep-all-ref-005.htm",
"=="
]
],
"url": "/_mozilla/css/word-break-keep-all-005.htm"
}
],
"css/word-break-keep-all-006.htm": [
{
"path": "css/word-break-keep-all-006.htm",
"references": [
[
"/_mozilla/css/word-break-keep-all-ref-006.htm",
"=="
]
],
"url": "/_mozilla/css/word-break-keep-all-006.htm"
}
],
"css/word-break-keep-all-007.htm": [
{
"path": "css/word-break-keep-all-007.htm",
"references": [
[
"/_mozilla/css/word-break-keep-all-ref-007.htm",
"=="
]
],
"url": "/_mozilla/css/word-break-keep-all-007.htm"
}
],
"css/word-break-keep-all-008.htm": [
{
"path": "css/word-break-keep-all-008.htm",
"references": [
[
"/_mozilla/css/word-break-keep-all-ref-008.htm",
"=="
]
],
"url": "/_mozilla/css/word-break-keep-all-008.htm"
}
],
"css/word-spacing.html": [
{
"path": "css/word-spacing.html",

View file

@ -0,0 +1,3 @@
[word-break-keep-all-008.htm]
type: reftest
expected: FAIL

View file

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<title>word-break: keep-all, latin</title>
<meta content="word-break: keep-all means breaking is forbidden within 'words'." name="assert">
<link href="https://drafts.csswg.org/css-text-3/#word-break-property" rel="help">
<link href="word-break-keep-all-ref-005.htm" rel="match">
<link href="mailto:ishida@w3.org" rel="author" title="Richard Ishida">
<style type="text/css">
.test { word-break: keep-all; }
/* the CSS below is not part of the test */
.test, .ref { border: 1px solid orange; margin: 20px; padding: 10px; width: 390px; font: 36px/1 sans-serif; }
</style>
</head>
<body>
<div id="instructions">Test passes if the two orange boxes are the same.</div>
<div class="test"><div id="testdiv"><span id="testspan">Latin latin latin latin</span></div></div>
<div class="ref"><span>Latin latin latin<br>latin</span></div>
<script>
var sentenceWidth = document.getElementById('testspan').getBoundingClientRect().width;
document.getElementById('testdiv').style.width = String(sentenceWidth - 5)+'px'
</script>
</body></html>

View file

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<title>word-break: keep-all, japanese</title>
<meta content="word-break: keep-all means breaking is forbidden within 'words'. In this style, sequences of CJK characters do not break." name="assert">
<link href="https://drafts.csswg.org/css-text-3/#word-break-property" rel="help">
<link href="word-break-keep-all-ref-006.htm" rel="match">
<style type="text/css">
.test { word-break: keep-all; }
/* the CSS below is not part of the test */
.test, .ref { border: 1px solid orange; margin: 20px; padding: 10px; width: 390px; font: 36px/1 sans-serif ; }
</style>
</head>
<body>
<div id="instructions">Test passes if the two orange boxes are the same.</div>
<div lang="ja" class="test"><div id="testdiv"><span id="testspan">日本語 日本語 日本語</span></div></div>
<div lang="ja" class="ref"><span>日本語 日本語<br>日本語</span></div>
<script>
var sentenceWidth = document.getElementById('testspan').getBoundingClientRect().width;
document.getElementById('testdiv').style.width = String(sentenceWidth - 5)+'px'
</script>
</body></html>

View file

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<title>word-break: keep-all, korean</title>
<meta content="word-break: keep-all means breaking is forbidden within 'words'. In this style, sequences of CJK characters do not break." name="assert">
<link href="https://drafts.csswg.org/css-text-3/#word-break-property" rel="help">
<link href="word-break-keep-all-ref-007.htm" rel="match">
<style type="text/css">
.test { word-break: keep-all; }
/* the CSS below is not part of the test */
.test, .ref { border: 1px solid orange; margin: 20px; padding: 10px; width: 390px; font: 36px/1 sans-serif; }
</style>
</head>
<body>
<div id="instructions">Test passes if the two orange boxes are the same.</div>
<div lang="ko" class="test"><div id="testdiv"><span id="testspan">한글이 한글이 한글이</span></div></div>
<div lang="ko" class="ref"><span>한글이 한글이<br>한글이</span></div>
<script>
var sentenceWidth = document.getElementById('testspan').getBoundingClientRect().width;
document.getElementById('testdiv').style.width = String(sentenceWidth - 5)+'px'
</script>
</body></html>

View file

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<title>word-break: keep-all, thai</title>
<meta content="word-break: keep-all means breaking is forbidden within 'words', except where opportunities exist due to dictionary-based breaking (such as in Thai)." name="assert">
<link href="https://drafts.csswg.org/css-text-3/#word-break-property" rel="help">
<link href="word-break-keep-all-ref-008.htm" rel="match">
<style type="text/css">
.test { word-break: keep-all; }
/* the CSS below is not part of the test */
.test, .ref { border: 1px solid orange; margin: 20px; padding: 10px; width: 390px; font: 36px/1 sans-serif; }
</style>
</head>
<body>
<div id="instructions">Test passes if the two orange boxes are the same.</div>
<div lang="th" class="test"><div id="testdiv"><span id="testspan">แและ แและแและ</span></div></div>
<div lang="th" class="ref"><span>แและ แและ<br>แและ</span></div>
<script>
var sentenceWidth = document.getElementById('testspan').getBoundingClientRect().width;
document.getElementById('testdiv').style.width = String(sentenceWidth - 5)+'px'
</script>
</body></html>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<title>word-break: keep-all, latin</title>
<link href="mailto:ishida@w3.org" rel="author" title="Richard Ishida">
<style type="text/css">
.test { word-break: keep-all; }
/* the CSS below is not part of the test */
.test, .ref { border: 1px solid orange; margin: 20px; padding: 10px; width: 390px; font: 36px/1 sans-serif; }
</style>
</head>
<body>
<div id="instructions">Test passes if the two orange boxes are the same.</div>
<div class="ref"><span>Latin latin latin<br>latin</span></div>
<div class="ref"><span>Latin latin latin<br>latin</span></div>
</body></html>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<title>word-break: keep-all, japanese</title>
<link href="mailto:ishida@w3.org" rel="author" title="Richard Ishida">
<style type="text/css">
.test { word-break: keep-all; }
/* the CSS below is not part of the test */
.test, .ref { border: 1px solid orange; margin: 20px; padding: 10px; width: 390px; font: 36px/1 sans-serif; }
</style>
</head>
<body>
<div id="instructions">Test passes if the two orange boxes are the same.</div>
<div lang="ja" class="ref"><span>日本語 日本語<br>日本語</span></div>
<div lang="ja" class="ref"><span>日本語 日本語<br>日本語</span></div>
</body></html>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<title>word-break: keep-all, korean</title>
<link href="mailto:ishida@w3.org" rel="author" title="Richard Ishida">
<style type="text/css">
.test { word-break: keep-all; }
/* the CSS below is not part of the test */
.test, .ref { border: 1px solid orange; margin: 20px; padding: 10px; width: 390px; font: 36px/1 sans-serif; }
</style>
</head>
<body>
<div id="instructions">Test passes if the two orange boxes are the same.</div>
<div lang="ko" class="ref"><span>한글이 한글이<br>한글이</span></div>
<div lang="ko" class="ref"><span>한글이 한글이<br>한글이</span></div>
</body></html>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<title>word-break: keep-all, thai</title>
<link href="mailto:ishida@w3.org" rel="author" title="Richard Ishida">
<style type="text/css">
.test { word-break: keep-all; }
/* the CSS below is not part of the test */
.test, .ref { border: 1px solid orange; margin: 20px; padding: 10px; width: 390px; font: 36px/1 sans-serif; }
</style>
</head>
<body>
<div id="instructions">Test passes if the two orange boxes are the same.</div>
<div lang="th" class="ref"><span>แและ แและ<br>แและ</span></div>
<div lang="th" class="ref"><span>แและ แและ<br>แและ</span></div>
</body></html>