// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: URI tests esid: sec-encodeuri-uri description: Checking URL with Line Terminator ---*/ //CHECK#1 if ((encodeURI("http://unipro.ru/\nabout") !== "http://unipro.ru/%0Aabout") && encodeURI("http://unipro.ru/\nabout") !== "http://unipro.ru/%0aabout") { throw new Test262Error('#1: http://unipro.ru/\\nabout'); } //CHECK#2 if ((encodeURI("http://unipro.ru/\vabout") !== "http://unipro.ru/%0Babout") && encodeURI("http://unipro.ru/\vabout") !== "http://unipro.ru/%0babout") { throw new Test262Error('#2: http://unipro.ru/\\vabout'); } //CHECK#3 if ((encodeURI("http://unipro.ru/\fabout") !== "http://unipro.ru/%0Cabout") && encodeURI("http://unipro.ru/\fabout") !== "http://unipro.ru/%0cabout") { throw new Test262Error('#3: http://unipro.ru/\\fabout'); } //CHECK#4 if ((encodeURI("http://unipro.ru/\rabout") !== "http://unipro.ru/%0Dabout") && encodeURI("http://unipro.ru/\rabout") !== "http://unipro.ru/%0dabout") { throw new Test262Error('#4: http://unipro.ru/\\rabout'); } reportCompare(0, 0);