tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

S15.1.3.4_A3.1_T1.js (699B)


      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: unescapedURIComponentSet not containing uriReserved
      6 esid: sec-encodeuricomponent-uricomponent
      7 description: Complex tests
      8 ---*/
      9 
     10 var uriReserved = ["%3B", "%2F", "%3F", "%3A", "%40", "%26", "%3D", "%2B", "%24", "%2C"];
     11 var uriReserved_ = [";", "/", "?", ":", "@", "&", "=", "+", "$", ","];
     12 for (var indexC = 0; indexC < 10; indexC++) {
     13  var str = uriReserved_[indexC];
     14  if (encodeURIComponent(str) !== uriReserved[indexC]) {
     15    throw new Test262Error('#' + (indexC + 1) + ': unescapedURIComponentSet not containing' + str);
     16  }
     17 }
     18 
     19 reportCompare(0, 0);