Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/decodeURIComponent/S15.1.3.2_A4_T3.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_T3
7 es6id: 18.2.6.3
8 esid: sec-decodeuricomponent-encodeduricomponent
9 description: Checking URL with Line Terminator
10 ---*/
11
12 //CHECK#1
13 if (decodeURIComponent("http://unipro.ru/%0Aabout") !== "http://unipro.ru/\nabout") {
14 $ERROR('#1: http://unipro.ru/%A0about');
15 }
16
17 //CHECK#2
18 if (decodeURIComponent("http://unipro.ru/%0Babout") !== "http://unipro.ru/\vabout") {
19 $ERROR('#2: http://unipro.ru/%0Babout');
20 }
21
22 //CHECK#3
23 if (decodeURIComponent("http://unipro.ru/%0Cabout") !== "http://unipro.ru/\fabout") {
24 $ERROR('#3: http://unipro.ru/%0Cabout');
25 }
26
27 //CHECK#4
28 if (decodeURIComponent("http://unipro.ru/%0Dabout") !== "http://unipro.ru/\rabout") {
29 $ERROR('#4: http://unipro.ru/%0Dabout');
30 }