Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/decodeURI/S15.1.3.1_A4_T4.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.1_A4_T4
7 es6id: 18.2.6.2
8 esid: sec-decodeuri-encodeduri
9 description: Test some url
10 ---*/
11
12 //CHECK#1
13 if (decodeURI("") !== "") {
14 $ERROR('#1: ""');
15 }
16
17 //CHECK#2
18 if (decodeURI("http:%2f%2Funipro.ru") !== "http:%2f%2Funipro.ru") {
19 $ERROR('#2: http:%2f%2Funipro.ru');
20 }
21
22 //CHECK#3
23 if (decodeURI("http://www.google.ru/support/jobs/bin/static.py%3Fpage%3dwhy-ru.html%26sid%3Dliveandwork") !== "http://www.google.ru/support/jobs/bin/static.py%3Fpage%3dwhy-ru.html%26sid%3Dliveandwork") {
24 $ERROR('#3: http://www.google.ru/support/jobs/bin/static.py%3Fpage%3dwhy-ru.html%26sid%3Dliveandwork"');
25 }
26
27 //CHECK%234
28 if (decodeURI("http://en.wikipedia.org/wiki/UTF-8%23Description") !== "http://en.wikipedia.org/wiki/UTF-8%23Description") {
29 $ERROR('%234: http://en.wikipedia.org/wiki/UTF-8%23Description');
30 }