1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
5 <script src=
"../../resources/js-test.js"></script>
6 <script src=
"resources/utilities.js"></script>
11 description("Verify the canonicalization of Safari Extension URLs.")
13 safariExtensionTestSet
= [
14 ['safari-extension://', 'safari-extension://'],
15 ['safari-extension://com.apple/', 'safari-extension://com.apple/'],
16 ['safari-extension://com.ApPlE/', 'safari-extension://com.ApPlE/'],
17 ['safari-extension://com.fĂȘte/', 'safari-extension://com.f%C3%AAte/'],
20 for (var i
= 0; i
< safariExtensionTestSet
.length
; ++i
) {
21 src
= canonicalize(safariExtensionTestSet
[i
][0]);
22 expected
= safariExtensionTestSet
[i
][1];
23 shouldBe('src', 'expected');
26 successfullyParsed
= true;