mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Update web-platform-tests to revision 1268bd5901289acc95b1a576f108bdf382d82e44
This commit is contained in:
parent
f183d66217
commit
292a12e545
261 changed files with 5513 additions and 966 deletions
|
@ -0,0 +1 @@
|
|||
X-Content-Type-Options: nosniff
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>ar ISO-8859-6 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "ISO-8859-6", 'Expected ISO-8859-6');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/ar-ISO-8859-6-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>ar ISO-8859-6</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>çÐÇ çè ÇÎÊÈÇÑ ÊÑåêÒ ÇäÃÍÑá.</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "ISO-8859-6", 'Expected ISO-8859-6');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>ar windows-1256 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "windows-1256", 'Expected windows-1256');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/ar-windows-1256-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>ar windows-1256</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>åÐÇ åæ ÇÎÊÈÇÑ ÊÑãíÒ ÇáÃÍÑÝ.</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "windows-1256", 'Expected windows-1256');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>el ISO-8859-7 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "ISO-8859-7", 'Expected ISO-8859-7');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/el-ISO-8859-7-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,15 @@
|
|||
<!doctype html>
|
||||
<title>el ISO-8859-7</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>Ðñüêåéôáé ãéá äïêéìÞ êùäéêïðïßçóçò ÷áñáêôÞñùí: ¶ñçò
|
||||
<!-- I needed to work capital alpha with tonos into the test somehow... --></p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "ISO-8859-7", 'Expected ISO-8859-7');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>el windows-1253 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "windows-1253", 'Expected windows-1253');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/el-windows-1253-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,15 @@
|
|||
<!doctype html>
|
||||
<title>el windows-1253</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>Ðñüêåéôáé ãéá äïêéìÞ êùäéêïðïßçóçò ÷áñáêôÞñùí: ¢ñçò
|
||||
<!-- I needed to work capital alpha with tonos into the test somehow... --></p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "windows-1253", 'Expected windows-1253');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>fa windows-1256 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "windows-1256", 'Expected windows-1256');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/fa-windows-1256-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>fa windows-1256</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>Çیä ی˜ ÊÓÊ ÑãÒ<C3A3>ÐÇÑی ˜ÇÑǘÊÑ ÇÓÊ.</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "windows-1256", 'Expected windows-1256');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>fi windows-1252 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "windows-1252", 'Expected windows-1252');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/fi-windows-1252-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>fi windows-1252</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>Tämä on merkkikoodaustesti.</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "windows-1252", 'Expected windows-1252');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>he ISO-8859-8 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "ISO-8859-8", 'Expected ISO-8859-8');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/he-ISO-8859-8-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>he ISO-8859-8</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>.íéååú ãåãé÷ ïçáî åäæ</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "ISO-8859-8", 'Expected ISO-8859-8');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>he windows-1255 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "windows-1255", 'Expected windows-1255');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/he-windows-1255-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>he windows-1255</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>æäå îáçï ÷éãåã úååéí.</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "windows-1255", 'Expected windows-1255');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>is windows-1252 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "windows-1252", 'Expected windows-1252');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/is-windows-1252-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>is windows-1252</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>Þetta er kóðunarpróf á staf. Fyrir sum tungumál sem nota latneska stafi þurfum við meira inntak til að taka ákvörðunina.</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "windows-1252", 'Expected windows-1252');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>ja EUC-JP late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "EUC-JP", 'Expected EUC-JP');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/ja-EUC-JP-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>ja EUC-JP</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>これは矢机悸赋です。</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "EUC-JP", 'Expected EUC-JP');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>ja ISO-2022-JP late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "ISO-2022-JP", 'Expected ISO-2022-JP');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/ja-ISO-2022-JP-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>ja ISO-2022-JP</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>$B$3$l$OJ8;z<B83$G$9!#(B</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "ISO-2022-JP", 'Expected ISO-2022-JP');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>ja Shift_JIS late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "Shift_JIS", 'Expected Shift_JIS');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/ja-Shift_JIS-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>ja Shift_JIS</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>これは文字実験です。</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "Shift_JIS", 'Expected Shift_JIS');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>ko EUC-KR late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "EUC-KR", 'Expected EUC-KR');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/ko-EUC-KR-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>ko EUC-KR</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>이것은 문자 인코딩 테스트입니다.</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "EUC-KR", 'Expected EUC-KR');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>lt windows-1257 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "windows-1257", 'Expected windows-1257');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/lt-windows-1257-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>lt windows-1257</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>Tai simboliø kodavimo testas. Kai kurioms kalboms, naudojanèioms lotyniðkus raðmenis, mums reikia daugiau informacijos, kad galëtume priimti sprendimà.</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "windows-1257", 'Expected windows-1257');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>lv windows-1257 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "windows-1257", 'Expected windows-1257');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/lv-windows-1257-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>lv windows-1257</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>Ðis ir rakstzîmju kodçðanas tests. Daþâs valodâs, kurâs tiek izmantotas latîòu valodas burti, lçmuma pieòemðanai mums ir nepiecieðams vairâk ieguldîjuma.</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "windows-1257", 'Expected windows-1257');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>pl ISO-8859-2 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "ISO-8859-2", 'Expected ISO-8859-2');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/pl-ISO-8859-2-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>pl ISO-8859-2</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>To jest test kodowania znaków. W przypadku niektórych jêzyków, które u¿ywaj± znaków ³aciñskich, potrzebujemy wiêcej danych, aby podj±æ decyzjê.</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "ISO-8859-2", 'Expected ISO-8859-2');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>pl windows-1250 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "windows-1250", 'Expected windows-1250');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/pl-windows-1250-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>pl windows-1250</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>To jest test kodowania znaków. W przypadku niektórych jêzyków, które u¿ywaj¹ znaków ³aciñskich, potrzebujemy wiêcej danych, aby podj¹æ decyzjê.</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "windows-1250", 'Expected windows-1250');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>pt windows-1252 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "windows-1252", 'Expected windows-1252');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/pt-windows-1252-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>pt windows-1252</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>Este é um teste de codificação de caracteres.</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "windows-1252", 'Expected windows-1252');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>ru IBM866 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "IBM866", 'Expected IBM866');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/ru-IBM866-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>ru IBM866</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p><EFBFBD>â® â¥áâ ª®¤¨à®¢ª¨ ᨬ¢®«®¢.</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "IBM866", 'Expected IBM866');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>ru ISO-8859-5 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "ISO-8859-5", 'Expected ISO-8859-5');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/ru-ISO-8859-5-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>ru ISO-8859-5</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>ÍâÞ âÕáâ ÚÞÔØàÞÒÚØ áØÜÒÞÛÞÒ.</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "ISO-8859-5", 'Expected ISO-8859-5');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1 @@
|
|||
X-Content-Type-Options: nosniff
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>th windows-874 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "windows-874", 'Expected windows-874');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/th-windows-874-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>th windows-874</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>¹Õè¤×Í¡Ò÷´Êͺ¡ÒÃà¢éÒÃËÑÊÍÑ¡¢ÃÐ</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "windows-874", 'Expected windows-874');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>tr windows-1254 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "windows-1254", 'Expected windows-1254');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/tr-windows-1254-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>tr windows-1254</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>Bu bir karakter kodlama testidir. Latince karakterleri kullanan bazý dillerde karar vermek için daha fazla girdiye ihtiyacýmýz var.</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "windows-1254", 'Expected windows-1254');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>uk KOI8-U late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "KOI8-U", 'Expected KOI8-U');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/uk-KOI8-U-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>uk KOI8-U</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>ãÅ ÔÅÓÔ ÎÁ ËÏÄÕ×ÁÎÎÑ ÓÉÍ×Ï̦×.</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "KOI8-U", 'Expected KOI8-U');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>uk windows-1251 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "windows-1251", 'Expected windows-1251');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/uk-windows-1251-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>uk windows-1251</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>Öå òåñò íà êîäóâàííÿ ñèìâîë³â.</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "windows-1251", 'Expected windows-1251');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
14
tests/wpt/web-platform-tests/encoding-detection/utf-8.html
Normal file
14
tests/wpt/web-platform-tests/encoding-detection/utf-8.html
Normal file
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>UTF-8</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>これは文字実験です。</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_not_equals(document.characterSet.toUpperCase(), "UTF-8", 'Must not detect UTF-8');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>vi windows-1258 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "windows-1258", 'Expected windows-1258');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/vi-windows-1258-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>vi windows-1258</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>Ðây laÌ môòt thýÒ nghiêòm maÞ hoìa kyì týò.</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "windows-1258", 'Expected windows-1258');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>yi windows-1255 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "windows-1255", 'Expected windows-1255');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/yi-windows-1255-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>yi windows-1255</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>ãàÈñ àéæ àÇ èòñè ôÏàÇø ÷àÈãéøåðâ ôåï ëàÇøàÇ÷èòø.</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "windows-1255", 'Expected windows-1255');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>zh Big5 late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "Big5", 'Expected Big5');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/zh-Big5-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>zh Big5</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>這是一個字符編碼測試。</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "Big5", 'Expected Big5');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
|
@ -0,0 +1,16 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>zh GBK late</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
window.onmessage = function(e) {
|
||||
test(function() {
|
||||
assert_equals(e.data, "GBK", 'Expected GBK');
|
||||
}, "Check detection result");
|
||||
w.close();
|
||||
done();
|
||||
};
|
||||
var w = window.open("support/zh-GBK-late.sub.html");
|
||||
</script>
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<title>zh GBK</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<p>这是一个字符编码测试。</p>
|
||||
<script>
|
||||
setup({explicit_done:true});
|
||||
onload = function() {
|
||||
test(function() {
|
||||
assert_equals(document.characterSet, "GBK", 'Expected GBK');
|
||||
}, "Check detection result");
|
||||
done();
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue