rsvp-reader/alt-implementations/readifry-master/hyphenator/testsuite/test100.html

41 lines
1.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Hyphenator.js &ndash; Test 100</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="http://mnn.ch/diversa/hyphenator_test100/formate.css">
<script src="../Hyphenator.js" type="text/javascript"></script>
<script type="text/javascript">
if (parent != window) {
Hyphenator.config({
'onhyphenationdonecallback': function () {
var t1 = document.getElementById('test').innerHTML,
t2 = document.getElementById('ref').innerHTML,
desc = document.getElementById('desc').firstChild.data,
msg = {
desc: desc,
index: 100
};
if (t1 == t2) {
msg.result = 'passed';
} else {
msg.result = 'failed';
}
parent.postMessage(JSON.stringify(msg), window.location.href);
}
});
}
Hyphenator.config({hyphenchar:'|'});
Hyphenator.run();
</script>
</head>
<body>
<p><a href="index.html">&lt;&lt;- index</a> | <a href="test99.html">&lt;- Prev</a> | <a href="test101.html">Next -&gt;</a></p>
<h1>Test 100</h1>
<p id="desc">External CSS (same origin policy)</p>
<p id="test" class="hyphenate" lang="en">Hyphenation</p>
<p id="ref">Hy|phen|ation</p>
</body>
</html>