summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/decodeURIComponent/S15.1.3.2_A3_T3.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/decodeURIComponent/S15.1.3.2_A3_T3.js')
-rw-r--r--js/src/tests/test262/built-ins/decodeURIComponent/S15.1.3.2_A3_T3.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/decodeURIComponent/S15.1.3.2_A3_T3.js b/js/src/tests/test262/built-ins/decodeURIComponent/S15.1.3.2_A3_T3.js
new file mode 100644
index 0000000000..805b7fb9d7
--- /dev/null
+++ b/js/src/tests/test262/built-ins/decodeURIComponent/S15.1.3.2_A3_T3.js
@@ -0,0 +1,20 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+info: Let reservedURIComponentSet be the empty string
+esid: sec-decodeuricomponent-encodeduricomponent
+description: Complex test
+---*/
+
+//CHECK#1
+if (decodeURIComponent("%3B%2F%3F%3A%40%26%3D%2B%24%2C%23") !== ";/?:@&=+$,#") {
+ throw new Test262Error('#1: decodeURIComponent("%3B%2F%3F%3A%40%26%3D%2B%24%2C%23") equal ";/?:@&=+$,#", not "%3B%2F%3F%3A%40%26%3D%2B%24%2C%23"');
+}
+
+//CHECK#2
+if (decodeURIComponent("%3b%2f%3f%3a%40%26%3d%2b%24%2c%23") !== ";/?:@&=+$,#") {
+ throw new Test262Error('#2: decodeURIComponent("%3b%2f%3f%3a%40%26%3d%2b%24%2c%23") equal ";/?:@&=+$,#" or "%3B%2F%3F%3A%40%26%3D%2B%24%2C%23", not "%3b%2f%3f%3a%40%26%3d%2b%24%2c%23"');
+}
+
+reportCompare(0, 0);