-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
90 changed files
with
123 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
<!DOCTYPE html> | ||
<html lang="en-us"> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | ||
<title>Test 051</title> | ||
<script> | ||
var Hyphenopoly = { | ||
require: { | ||
"en-us": "FORCEHYPHENOPOLY" | ||
}, | ||
setup: { | ||
selectors: { | ||
".hyphenate": { | ||
hyphen: "•" | ||
} | ||
} | ||
}, | ||
handleEvent: { | ||
hyphenopolyEnd: function (e) { | ||
assert(); | ||
} | ||
} | ||
}; | ||
function assert() { | ||
var tests = 4; | ||
var i = 1; | ||
var test = ""; | ||
var ref = ""; | ||
var result = true; | ||
while (i <= tests) { | ||
test = document.getElementById("test" + i).innerHTML; | ||
ref = document.getElementById("ref" + i).innerHTML; | ||
if (test === ref) { | ||
document.getElementById("result").innerHTML += "<span style=\"background-color: #d6ffd6\">" + (function (i) { | ||
return (i < 10) ? "0" + i : i; | ||
}(i)) + "</span> "; | ||
result = result && true; | ||
} else { | ||
document.getElementById("result").innerHTML += "<span style=\"background-color: #ffd6d6\">" + (function (i) { | ||
return (i < 10) ? "0" + i : i; | ||
}(i)) + "</span> "; | ||
result = false; | ||
} | ||
i += 1; | ||
} | ||
if (parent != window) { | ||
parent.postMessage(JSON.stringify({ | ||
desc: document.getElementById("desc").innerHTML, | ||
index: 51, | ||
result: (result ? "passed" : "failed") | ||
}), window.location.href); | ||
} | ||
} | ||
</script> | ||
<script src="../Hyphenopoly_Loader.js"></script> | ||
<style type="text/css"> | ||
body { | ||
width:50%; | ||
margin-left:25%; | ||
margin-right:25%; | ||
} | ||
|
||
.test { | ||
background-color: #D8E2F9; | ||
} | ||
.ref { | ||
background-color: #FEEFC0; | ||
} | ||
|
||
.hyphenate { | ||
hyphens: auto; | ||
-ms-hyphens: auto; | ||
-moz-hyphens: auto; | ||
-webkit-hyphens: auto; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="navigate"><a href="index.html">↞ Index</a> | <a href="test50.html">← Prev</a> | <a href="test52.html">Next →</a></div> | ||
|
||
<h1>Test 052</h1> | ||
<p id="desc">Check handling of lang="zxx"</p> | ||
<div id="result"></div> | ||
<hr> | ||
<p id="test1" class="test hyphenate">exception</p> | ||
<p id="ref1" class="ref">ex•cep•tion</p> | ||
|
||
<p id="test2" class="test hyphenate" lang="zxx">nonlinguistic</p> | ||
<p id="ref2" class="ref" lang="zxx">nonlinguistic</p> | ||
|
||
<p id="test3" class="test hyphenate">hyphenation <span lang="zxx">nonlinguistic</span></p> | ||
<p id="ref3" class="ref">hy•phen•ation <span lang="zxx">nonlinguistic</span></p> | ||
|
||
<p id="test4" class="test hyphenate" lang="zxx">nonlinguistic <span lang="en-us">hyphenation</span></p> | ||
<p id="ref4" class="ref" lang="zxx">nonlinguistic <span lang="en-us">hy•phen•ation</span></p> | ||
<hr> | ||
<div><span class="test">Test</span> <span class="ref">Ref</span></div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.