diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/tests/test262/built-ins/encodeURIComponent/S15.1.3.4_A3.3_T1.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/encodeURIComponent/S15.1.3.4_A3.3_T1.js b/js/src/tests/test262/built-ins/encodeURIComponent/S15.1.3.4_A3.3_T1.js new file mode 100644 index 0000000000..5bb0516a4f --- /dev/null +++ b/js/src/tests/test262/built-ins/encodeURIComponent/S15.1.3.4_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: unescapedURIComponentSet not containing "#" +esid: sec-encodeuricomponent-uricomponent +description: encodeURIComponent("#") === "%23" +---*/ + +if (encodeURIComponent("#") !== "%23") { + throw new Test262Error('#1: unescapedURIComponentSet not containing "%23"'); +} + +reportCompare(0, 0); |