Skip to content

Commit 6b5cde4

Browse files
hsivonenmoz-wptsync-bot
authored andcommitted
Make chardetng detect half-width katakana.
Differential Revision: https://phabricator.services.mozilla.com/D115209 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1706862 gecko-commit: c7c1c74df7ea57bf3c279309a98e19e53cf02e0d gecko-reviewers: emk
1 parent 305d7e1 commit 6b5cde4

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
>
2+
<meta charset="utf-8">
3+
<title>ja Shift_JIS latetitle>
4+
<script src=/resources/testharness.js>script>
5+
<script src=/resources/testharnessreport.js>script>
6+
<script>
7+
setup({explicit_done:true});
8+
window.onmessage = function(e) {
9+
test(function() {
10+
assert_equals(e.data, "Shift_JIS", 'Expected Shift_JIS');
11+
}, "Check detection result");
12+
w.close();
13+
done();
14+
};
15+
var w = window.open("support/ja-half-width-late.sub.html");
16+
script>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
>
2+
<title>ja Shift_JIS half-width katakanatitle>
3+
<script src=/resources/testharness.js>script>
4+
<script src=/resources/testharnessreport.js>script>
5+
<p>ʰÄÞ³ª±Ê°ÄÞ³ª±Ê°ÄÞ³ª±Ê°ÄÞ³ª±Ê°ÄÞ³ª±p>
6+
<script>
7+
setup({explicit_done:true});
8+
onload = function() {
9+
test(function() {
10+
assert_equals(document.characterSet, "Shift_JIS", 'Expected Shift_JIS');
11+
}, "Check detection result");
12+
done();
13+
};
14+
script>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
ja Shift_JIS late
3+
8+
9+

ʰ�޳��ʰ�޳��ʰ�޳��ʰ�޳��ʰ�޳��

0 commit comments

Comments
 (0)