diff options
Diffstat (limited to 'test/suite/ch15/15.1/15.1.3/15.1.3.4')
28 files changed, 149 insertions, 203 deletions
diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.1_T1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.1_T1.js index 796172808..2cde4eca9 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.1_T1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.1_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If string.charAt(k) in [0xDC00 - 0xDFFF], throw URIError - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.1_T1.js - * @description Complex tests - */ +/*--- +info: If string.charAt(k) in [0xDC00 - 0xDFFF], throw URIError +description: Complex tests +---*/ errorCount = 0; count = 0; @@ -76,4 +74,3 @@ function decimalToHexString(n) { } return h; } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.1_T2.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.1_T2.js index e2e3deed9..4c35b9fd2 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.1_T2.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.1_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If string.charAt(k) in [0xDC00 - 0xDFFF], throw URIError - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.1_T2.js - * @description Complex tests - */ +/*--- +info: If string.charAt(k) in [0xDC00 - 0xDFFF], throw URIError +description: Complex tests +---*/ errorCount = 0; count = 0; @@ -76,4 +74,3 @@ function decimalToHexString(n) { } return h; } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.2_T1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.2_T1.js index 91271fa2c..8c93b2136 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.2_T1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.2_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If string.charAt(k) in [0xD800 - 0xDBFF] and string.length = k + 1, throw URIError - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.2_T1.js - * @description Complex tests - */ +/*--- +info: > + If string.charAt(k) in [0xD800 - 0xDBFF] and string.length = k + 1, throw + URIError +description: Complex tests +---*/ errorCount = 0; count = 0; @@ -76,4 +76,3 @@ function decimalToHexString(n) { } return h; } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.2_T2.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.2_T2.js index 5f363bcca..e9f983332 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.2_T2.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.2_T2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If string.charAt(k) in [0xD800 - 0xDBFF] and string.length = k + 1, throw URIError - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.2_T2.js - * @description Complex tests - */ +/*--- +info: > + If string.charAt(k) in [0xD800 - 0xDBFF] and string.length = k + 1, throw + URIError +description: Complex tests +---*/ errorCount = 0; count = 0; @@ -76,4 +76,3 @@ function decimalToHexString(n) { } return h; } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.3_T1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.3_T1.js index 0a929379d..3ae0347e4 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.3_T1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.3_T1.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If string.charAt(k) in [0xD800 - 0xDBFF] and string.charAt(k+1) not in [0xDC00 - 0xDFFF], throw URIError - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A1.3_T1.js - * @description Complex tests, string.charAt(k+1) in [0x0000, 0xD7FF, 0xD800, 0xDBFE, 0xDBFF, 0xE000, 0xFFFF] - */ +/*--- +info: > + If string.charAt(k) in [0xD800 - 0xDBFF] and string.charAt(k+1) not in + [0xDC00 - 0xDFFF], throw URIError +description: > + Complex tests, string.charAt(k+1) in [0x0000, 0xD7FF, 0xD800, + 0xDBFE, 0xDBFF, 0xE000, 0xFFFF] +---*/ chars = [0x0000, 0xD7FF, 0xD800, 0xDBFE, 0xDBFF, 0xE000, 0xFFFF]; errorCount = 0; @@ -83,4 +85,3 @@ function decimalToHexString(n) { } return h; } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.1_T1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.1_T1.js index 1920dd5f9..1ae173692 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.1_T1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.1_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If string.charAt(k) in [0x0000 - 0x007F]\[uriUnescaped], return 1 octet (00000000 0zzzzzzz -> 0zzzzzzz) - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.1_T1.js - * @description Complex tests, use RFC 3629 - */ +/*--- +info: > + If string.charAt(k) in [0x0000 - 0x007F]\[uriUnescaped], return 1 octet + (00000000 0zzzzzzz -> 0zzzzzzz) +description: Complex tests, use RFC 3629 +---*/ uriUnescaped = ["-", "_", ".", "!", "~", "*", "'", "(", ")", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]; errorCount = 0; @@ -79,4 +79,3 @@ function decimalToHexString(n) { } return h; } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.2_T1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.2_T1.js index ea19909ea..850184713 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.2_T1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.2_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If string.charAt(k) in [0x0080 - 0x07FF], return 2 octets (00000yyy yyzzzzzz -> 110yyyyy 10zzzzzz) - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.2_T1.js - * @description Complex tests, use RFC 3629 - */ +/*--- +info: > + If string.charAt(k) in [0x0080 - 0x07FF], return 2 octets (00000yyy + yyzzzzzz -> 110yyyyy 10zzzzzz) +description: Complex tests, use RFC 3629 +---*/ errorCount = 0; count = 0; @@ -76,4 +76,3 @@ function decimalToHexString(n) { } return h; } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.3_T1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.3_T1.js index b8fa4b3ea..fc42931e7 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.3_T1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.3_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If string.charAt(k) in [0x0800 - 0xD7FF], return 3 octets (xxxxyyyy yyzzzzzz -> 1110xxxx 10yyyyyy 10zzzzzz) - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.3_T1.js - * @description Complex tests, use RFC 3629 - */ +/*--- +info: > + If string.charAt(k) in [0x0800 - 0xD7FF], return 3 octets (xxxxyyyy + yyzzzzzz -> 1110xxxx 10yyyyyy 10zzzzzz) +description: Complex tests, use RFC 3629 +---*/ errorCount = 0; count = 0; @@ -76,4 +76,3 @@ function decimalToHexString(n) { } return h; } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.4_T1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.4_T1.js index 418d227a3..b07cf1c45 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.4_T1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.4_T1.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If string.charAt(k) in [0xD800 - 0xDBFF] and string.charAt(k+1) in [0xDC00 � 0xDFFF], return 4 octets (000wwwxx xxxxyyyy yyzzzzzz -> 11110www 10xxxxxx 10yyyyyy 10zzzzzz) - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.4_T1.js - * @description Complex tests, use RFC 3629, string.charAt(k+1) in [0xDC00, 0xDDFF, 0xDFFF] - */ +/*--- +info: > + If string.charAt(k) in [0xD800 - 0xDBFF] and string.charAt(k+1) in + [0xDC00 � 0xDFFF], return 4 octets (000wwwxx xxxxyyyy yyzzzzzz -> + 11110www 10xxxxxx 10yyyyyy 10zzzzzz) +description: > + Complex tests, use RFC 3629, string.charAt(k+1) in [0xDC00, + 0xDDFF, 0xDFFF] +---*/ chars = [0xDC00, 0xDDFF, 0xDFFF]; errorCount = 0; @@ -86,4 +89,3 @@ function decimalToHexString(n) { } return h; } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.4_T2.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.4_T2.js index 672437cec..f1373402d 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.4_T2.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.4_T2.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If string.charAt(k) in [0xD800 - 0xDBFF] and string.charAt(k+1) in [0xDC00 � 0xDFFF], return 4 octets (000wwwxx xxxxyyyy yyzzzzzz -> 11110www 10xxxxxx 10yyyyyy 10zzzzzz) - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.4_T2.js - * @description Complex tests, use RFC 3629, string.charAt(k) in [0xD800, 0xDBFF, 0xD9FF] - */ +/*--- +info: > + If string.charAt(k) in [0xD800 - 0xDBFF] and string.charAt(k+1) in + [0xDC00 � 0xDFFF], return 4 octets (000wwwxx xxxxyyyy yyzzzzzz -> + 11110www 10xxxxxx 10yyyyyy 10zzzzzz) +description: > + Complex tests, use RFC 3629, string.charAt(k) in [0xD800, 0xDBFF, + 0xD9FF] +---*/ chars = [0xD800, 0xDBFF, 0xD9FF]; errorCount = 0; @@ -86,4 +89,3 @@ function decimalToHexString(n) { } return h; } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.5_T1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.5_T1.js index 7a616a2ea..365dac9bf 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.5_T1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.5_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If string.charAt(k) in [0xE000 - 0xFFFF], return 3 octets (xxxxyyyy yyzzzzzz -> 1110xxxx 10yyyyyy 10zzzzzz) - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A2.5_T1.js - * @description Complex tests, use RFC 3629 - */ +/*--- +info: > + If string.charAt(k) in [0xE000 - 0xFFFF], return 3 octets (xxxxyyyy + yyzzzzzz -> 1110xxxx 10yyyyyy 10zzzzzz) +description: Complex tests, use RFC 3629 +---*/ errorCount = 0; count = 0; @@ -76,4 +76,3 @@ function decimalToHexString(n) { } return h; } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.1_T1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.1_T1.js index c6fbba03a..b12dda028 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.1_T1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.1_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * unescapedURIComponentSet not containing uriReserved - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.1_T1.js - * @description Complex tests - */ +/*--- +info: unescapedURIComponentSet not containing uriReserved +description: Complex tests +---*/ uriReserved = ["%3B", "%2F", "%3F", "%3A", "%40", "%26", "%3D", "%2B", "%24", "%2C"]; uriReserved_ = [";", "/", "?", ":", "@", "&", "=", "+", "$", ","]; @@ -16,4 +14,3 @@ for (indexC = 0; indexC < 10; indexC++) { $ERROR('#' + (indexC + 1) + ': unescapedURIComponentSet not containing' + str); } } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.2_T1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.2_T1.js index 5b9771bbe..532ba2769 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.2_T1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.2_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * unescapedURIComponentSet containing one instance of each character valid in uriUnescaped - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.2_T1.js - * @description Complex tests, uriUnescaped :: uriAlpha - */ +/*--- +info: > + unescapedURIComponentSet containing one instance of each character valid + in uriUnescaped +description: "Complex tests, uriUnescaped :: uriAlpha" +---*/ uriAlpha = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]; for (indexC = 0; indexC < uriAlpha.length; indexC++) { @@ -15,4 +15,3 @@ for (indexC = 0; indexC < uriAlpha.length; indexC++) { $ERROR('#' + (indexC + 1) + ': unescapedURISet containing ' + str); } } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.2_T2.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.2_T2.js index 7181c2229..a8cfcba6b 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.2_T2.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.2_T2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * unescapedURIComponentSet containing one instance of each character valid in uriUnescaped - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.2_T2.js - * @description Complex tests, uriUnescaped :: DecimalDigit - */ +/*--- +info: > + unescapedURIComponentSet containing one instance of each character valid + in uriUnescaped +description: "Complex tests, uriUnescaped :: DecimalDigit" +---*/ DecimalDigit = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]; for (indexC = 0; indexC < DecimalDigit.length; indexC++) { @@ -15,4 +15,3 @@ for (indexC = 0; indexC < DecimalDigit.length; indexC++) { $ERROR('#' + (indexC + 1) + ': unescapedURISet containing' + str); } } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.2_T3.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.2_T3.js index 627812016..230a5cbf4 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.2_T3.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.2_T3.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * unescapedURIComponentSet containing one instance of each character valid in uriUnescaped - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.2_T3.js - * @description Complex tests, uriUnescaped :: uriMark - */ +/*--- +info: > + unescapedURIComponentSet containing one instance of each character valid + in uriUnescaped +description: "Complex tests, uriUnescaped :: uriMark" +---*/ uriMark = ["-", "_", ".", "!", "~", "*", "'", "(", ")"]; for (indexC = 0; indexC < uriMark.length; indexC++) { @@ -15,4 +15,3 @@ for (indexC = 0; indexC < uriMark.length; indexC++) { $ERROR('#' + (indexC + 1) + ': unescapedURISet containing' + str); } } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.3_T1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.3_T1.js index 77511d262..2070f629f 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.3_T1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.3_T1.js @@ -1,14 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * unescapedURIComponentSet not containing "#" - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A3.3_T1.js - * @description encodeURIComponent("#") === "%23" - */ +/*--- +info: unescapedURIComponentSet not containing "#" +description: encodeURIComponent("#") === "%23" +---*/ if (encodeURIComponent("#") !== "%23") { $ERROR('#1: unescapedURIComponentSet not containing "%23"'); -} - +} diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A4_T1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A4_T1.js index 84e7e5b24..70c983960 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A4_T1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A4_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * URI tests - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A4_T1.js - * @description Checking ENGLISH ALPHABET - */ +/*--- +info: URI tests +description: Checking ENGLISH ALPHABET +---*/ //CHECK#1 if (encodeURIComponent("http://unipro.ru/0123456789") !== "http%3A%2F%2Funipro.ru%2F0123456789") { @@ -22,4 +20,3 @@ if (encodeURIComponent("aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ") ! if (encodeURIComponent(";/?:@&=+$,") !== "%3B%2F%3F%3A%40%26%3D%2B%24%2C") { $ERROR('#3: '); } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A4_T2.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A4_T2.js index 10c6e40b7..50cfff8d9 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A4_T2.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A4_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * URI tests - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A4_T2.js - * @description Checking RUSSIAN ALPHABET - */ +/*--- +info: URI tests +description: Checking RUSSIAN ALPHABET +---*/ //CHECK#1 if ((encodeURIComponent("http://ru.wikipedia.org/wiki/Юникод") !== "http%3A%2F%2Fru.wikipedia.org%2Fwiki%2F%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4") && (encodeURIComponent("http://ru.wikipedia.org/wiki/Юникод") !== "http%3A%2F%2Fru.wikipedia.org%2Fwiki%2F" + "%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4".toLowerCase())) { @@ -22,4 +20,3 @@ if ((encodeURIComponent("http://ru.wikipedia.org/wiki/Юникод#Ссылки" if ((encodeURIComponent("http://ru.wikipedia.org/wiki/Юникод#Версии Юникода") !== "http%3A%2F%2Fru.wikipedia.org%2Fwiki%2F%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4%23%D0%92%D0%B5%D1%80%D1%81%D0%B8%D0%B8%20%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4%D0%B0") && ((encodeURIComponent("http://ru.wikipedia.org/wiki/Юникод%23Версии Юникода") !== "http%3A%2F%2Fru.wikipedia.org%2Fwiki%2F" + "%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4#%D0%92%D0%B5%D1%80%D1%81%D0%B8%D0%B8%20%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4%D0%B0".toLowerCase()))) { $ERROR('#3: http://ru.wikipedia.org/wiki/Юникод#Версии Юникода'); } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A4_T3.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A4_T3.js index b89db588e..ffb9a1e13 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A4_T3.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A4_T3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * URI tests - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A4_T3.js - * @description Checking URL with Line Terminator - */ +/*--- +info: URI tests +description: Checking URL with Line Terminator +---*/ //CHECK#1 if ((encodeURIComponent("http://unipro.ru/\nabout") !== "http%3A%2F%2Funipro.ru%2F%0Aabout") && encodeURIComponent("http://unipro.ru/\nabout") !== "http%3A%2F%2Funipro.ru%2F%0aabout") { @@ -27,4 +25,3 @@ if ((encodeURIComponent("http://unipro.ru/\fabout") !== "http%3A%2F%2Funipro.ru% if ((encodeURIComponent("http://unipro.ru/\rabout") !== "http%3A%2F%2Funipro.ru%2F%0Dabout") && encodeURIComponent("http://unipro.ru/\rabout") !== "http%3A%2F%2Funipro.ru%2F%0dabout") { $ERROR('#4: http://unipro.ru/\\rabout'); } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A4_T4.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A4_T4.js index 3cbb21683..b7bc8b119 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A4_T4.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A4_T4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * URI tests - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A4_T4.js - * @description Test some url - */ +/*--- +info: URI tests +description: Test some url +---*/ //CHECK#1 if (encodeURIComponent("") !== "") { @@ -27,4 +25,3 @@ if (encodeURIComponent("http://www.google.ru/support/jobs/bin/static.py?page=why if (encodeURIComponent("http://en.wikipedia.org/wiki/UTF-8#Description") !== "http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FUTF-8%23Description") { $ERROR('#4: http://en.wikipedia.org/wiki/UTF-8#Description'); } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.1.js index 91efcb2bb..c9fcad4f3 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The length property of encodeURIComponent has the attribute DontEnum - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.1.js - * @description Checking use propertyIsEnumerable, for-in - */ +/*--- +info: The length property of encodeURIComponent has the attribute DontEnum +description: Checking use propertyIsEnumerable, for-in +---*/ //CHECK#1 if (encodeURIComponent.propertyIsEnumerable('length') !== false) { @@ -24,4 +22,3 @@ for (p in encodeURIComponent){ if (result !== true) { $ERROR('#2: result = true; for (p in encodeURIComponent) { if (p === "length") result = false; } result === true;'); } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.2.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.2.js index e90231832..1b19f3dec 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.2.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.2.js @@ -1,12 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The length property of encodeURIComponent has the attribute DontDelete - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.2.js - * @description Checking use hasOwnProperty, delete - */ +/*--- +info: The length property of encodeURIComponent has the attribute DontDelete +description: Checking use hasOwnProperty, delete +includes: [$FAIL.js] +---*/ //CHECK#1 if (encodeURIComponent.hasOwnProperty('length') !== true) { @@ -24,7 +23,3 @@ if (encodeURIComponent.hasOwnProperty('length') !== true) { if (encodeURIComponent.length === undefined) { $ERROR('#3: delete encodeURIComponent.length; encodeURIComponent.length !== undefined'); } - - - - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.3.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.3.js index be17a57f9..057f5ba90 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.3.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The length property of encodeURIComponent has the attribute ReadOnly - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.3.js - * @description Checking if varying the length property fails - */ +/*--- +info: The length property of encodeURIComponent has the attribute ReadOnly +description: Checking if varying the length property fails +---*/ //CHECK#1 x = encodeURIComponent.length; @@ -14,5 +12,3 @@ encodeURIComponent.length = Infinity; if (encodeURIComponent.length !== x) { $ERROR('#1: x = encodeURIComponent.length; encodeURIComponent.length = Infinity; encodeURIComponent.length === x. Actual: ' + (encodeURIComponent.length)); } - - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.4.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.4.js index bebeadbb5..f8ba01ec2 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.4.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.4.js @@ -1,16 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The length property of encodeURIComponent is 1 - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.4.js - * @description encodeURIComponent.length === 1 - */ +/*--- +info: The length property of encodeURIComponent is 1 +description: encodeURIComponent.length === 1 +---*/ //CHECK#1 if (encodeURIComponent.length !== 1) { $ERROR('#1: encodeURIComponent.length === 1. Actual: ' + (encodeURIComponent.length)); -} - - +} diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.5.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.5.js index 67358f35b..ba33abd70 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.5.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.5.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The encodeURIComponent property has the attribute DontEnum - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.5.js - * @description Checking use propertyIsEnumerable, for-in - */ +/*--- +info: The encodeURIComponent property has the attribute DontEnum +description: Checking use propertyIsEnumerable, for-in +---*/ //CHECK#1 if (this.propertyIsEnumerable('encodeURIComponent') !== false) { @@ -24,4 +22,3 @@ for (p in this){ if (result !== true) { $ERROR('#2: result = true; for (p in this) { if (p === "encodeURIComponent") result = false; } result === true;'); } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.6.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.6.js index 8d5bce7c4..26d53603b 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.6.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.6.js @@ -1,15 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The encodeURIComponent property has not prototype property - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.6.js - * @description Checking encodeURIComponent.prototype - */ +/*--- +info: The encodeURIComponent property has not prototype property +description: Checking encodeURIComponent.prototype +---*/ //CHECK#1 if (encodeURIComponent.prototype !== undefined) { $ERROR('#1: encodeURIComponent.prototype === undefined. Actual: ' + (encodeURIComponent.prototype)); } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.7.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.7.js index b762aae2d..0ba245ab6 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.7.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.7.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The encodeURIComponent property can't be used as constructor - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A5.7.js - * @description If property does not implement the internal [[Construct]] method, throw a TypeError exception - */ +/*--- +info: The encodeURIComponent property can't be used as constructor +description: > + If property does not implement the internal [[Construct]] method, + throw a TypeError exception +---*/ //CHECK#1 @@ -18,4 +18,3 @@ try { $ERROR('#1.2: new encodeURIComponent() throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A6_T1.js b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A6_T1.js index 695883985..d9b18aa0c 100644 --- a/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A6_T1.js +++ b/test/suite/ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A6_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Operator use ToString - * - * @path ch15/15.1/15.1.3/15.1.3.4/S15.1.3.4_A6_T1.js - * @description If Type(value) is Object, evaluate ToPrimitive(value, String) - */ +/*--- +info: Operator use ToString +description: If Type(value) is Object, evaluate ToPrimitive(value, String) +---*/ //CHECK#1 var object = {valueOf: function() {return "^"}}; @@ -76,4 +74,3 @@ catch (e) { $ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; encodeURIComponent(object) throw TypeError. Actual: ' + (e)); } } - |