summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/encodeURI/S15.1.3.3_A3.3_T1.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/src/tests/test262/built-ins/encodeURI/S15.1.3.3_A3.3_T1.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/encodeURI/S15.1.3.3_A3.3_T1.js b/js/src/tests/test262/built-ins/encodeURI/S15.1.3.3_A3.3_T1.js
new file mode 100644
index 0000000000..efa80f8843
--- /dev/null
+++ b/js/src/tests/test262/built-ins/encodeURI/S15.1.3.3_A3.3_T1.js
@@ -0,0 +1,14 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+info: unescapedURISet containing "#"
+esid: sec-encodeuri-uri
+description: encodeURI("#") === "#"
+---*/
+
+if (encodeURI("#") !== "#") {
+ throw new Test262Error('#1: unescapedURISet containing "#"');
+}
+
+reportCompare(0, 0);