2011-09-07 08:35:18 +02:00
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
2014-07-22 01:09:02 +02:00
/ * - - -
2018-01-05 18:26:51 +01:00
info : |
2014-07-22 01:09:02 +02:00
Let reservedURISet be a string containing one instance of each character valid
in uriReserved plus "#"
2017-06-29 21:49:38 +02:00
esid : sec - decodeuri - encodeduri
2014-07-22 01:09:02 +02:00
description : Complex test
-- - * /
2011-09-07 08:35:18 +02:00
//CHECK#1
if ( decodeURI ( "%3B%2F%3F%3A%40%26%3D%2B%24%2C%23" ) !== "%3B%2F%3F%3A%40%26%3D%2B%24%2C%23" ) {
2021-07-21 21:37:52 +02:00
throw new Test262Error ( '#1: decodeURI("%3B%2F%3F%3A%40%26%3D%2B%24%2C%23") equal "%3B%2F%3F%3A%40%26%3D%2B%24%2C%23", not ";/?:@&=+$,#"' ) ;
2011-09-07 08:35:18 +02:00
}
//CHECK#2
if ( decodeURI ( "%3b%2f%3f%3a%40%26%3d%2b%24%2c%23" ) !== "%3b%2f%3f%3a%40%26%3d%2b%24%2c%23" ) {
2021-07-21 21:37:52 +02:00
throw new Test262Error ( '#2: decodeURI("%3b%2f%3f%3a%40%26%3d%2b%24%2c%23") equal "%3b%2f%3f%3a%40%26%3d%2b%24%2c%23", not ";/?:@&=+$,#" or "%3B%2F%3F%3A%40%26%3D%2B%24%2C%23"' ) ;
2011-09-07 08:35:18 +02:00
}