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
|
|
|
/*---
|
|
|
|
info: URI tests
|
2017-06-29 21:42:01 +02:00
|
|
|
esid: sec-decodeuricomponent-encodeduricomponent
|
2014-07-22 01:09:02 +02:00
|
|
|
description: Checking URL with Line Terminator
|
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
//CHECK#1
|
|
|
|
if (decodeURIComponent("http://unipro.ru/%0Aabout") !== "http://unipro.ru/\nabout") {
|
2021-07-21 21:37:52 +02:00
|
|
|
throw new Test262Error('#1: http://unipro.ru/%A0about');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#2
|
|
|
|
if (decodeURIComponent("http://unipro.ru/%0Babout") !== "http://unipro.ru/\vabout") {
|
2021-07-21 21:37:52 +02:00
|
|
|
throw new Test262Error('#2: http://unipro.ru/%0Babout');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#3
|
|
|
|
if (decodeURIComponent("http://unipro.ru/%0Cabout") !== "http://unipro.ru/\fabout") {
|
2021-07-21 21:37:52 +02:00
|
|
|
throw new Test262Error('#3: http://unipro.ru/%0Cabout');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#4
|
|
|
|
if (decodeURIComponent("http://unipro.ru/%0Dabout") !== "http://unipro.ru/\rabout") {
|
2021-07-21 21:37:52 +02:00
|
|
|
throw new Test262Error('#4: http://unipro.ru/%0Dabout');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|