Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/decodeURIComponent/S15.1.3.2_A4_T1.js

raw
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: URI tests
6 es5id: 15.1.3.2_A4_T1
7 es6id: 18.2.6.3
8 esid: sec-decodeuricomponent-encodeduricomponent
9 description: Checking ENGLISH ALPHABET
10 ---*/
11
12 //CHECK#1
13 if (decodeURIComponent("http://unipro.ru/0123456789") !== "http://unipro.ru/0123456789") {
14 $ERROR('#1: http://unipro.ru/0123456789');
15 }
16
17 //CHECK#2
18 if (decodeURIComponent("%41%42%43%44%45%46%47%48%49%4A%4B%4C%4D%4E%4F%50%51%52%53%54%55%56%57%58%59%5A") !== "ABCDEFGHIJKLMNOPQRSTUVWXYZ") {
19 $ERROR('#2: ABCDEFGHIJKLMNOPQRSTUVWXYZ');
20 }
21
22 //CHECK#3
23 if (decodeURIComponent("%61%62%63%64%65%66%67%68%69%6A%6B%6C%6D%6E%6F%70%71%72%73%74%75%76%77%78%79%7A") !== "abcdefghijklmnopqrstuvwxyz") {
24 $ERROR('#3: abcdefghijklmnopqrstuvwxyz');
25 }