This commit is contained in:
Lyza Danger Gardner 2017-06-29 11:10:43 -04:00 committed by Rick Waldron
parent e6712e0d16
commit e26c66bfff
59 changed files with 195 additions and 79 deletions

View File

@ -3,6 +3,8 @@
/*---
es5id: 15.1.2.2-2-1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: >
pareseInt - 'S' is the empty string when inputString does not
contain any such characters

View File

@ -4,6 +4,8 @@
/*---
info: Operator use ToString
es5id: 15.1.2.2_A1_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for boolean primitive
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator use ToString
es5id: 15.1.2.2_A1_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for number primitive
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator use ToString
es5id: 15.1.2.2_A1_T3
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for undefined and null
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator use ToString
es5id: 15.1.2.2_A1_T4
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for Boolean object
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator use ToString
es5id: 15.1.2.2_A1_T5
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for Number object
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator use ToString
es5id: 15.1.2.2_A1_T6
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for String object
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator use ToString
es5id: 15.1.2.2_A1_T7
es6id: 18.2.5
esid: sec-parseint-string-radix
description: If Type(value) is Object, evaluate ToPrimitive(value, String)
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.2_A2_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: "StrWhiteSpaceChar :: TAB (U+0009)"
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.2_A2_T10
es6id: 18.2.5
esid: sec-parseint-string-radix
description: "StrWhiteSpaceChar :: USP"
---*/

View File

@ -2,6 +2,8 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.1.2.2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: >
Leading U+180E is not recognized as whitespace

View File

@ -4,6 +4,8 @@
/*---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.2_A2_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: "StrWhiteSpaceChar :: SP (U+0020)"
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.2_A2_T3
es6id: 18.2.5
esid: sec-parseint-string-radix
description: "StrWhiteSpaceChar :: NBSB (U+00A0)"
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.2_A2_T4
es6id: 18.2.5
esid: sec-parseint-string-radix
description: "StrWhiteSpaceChar :: FF (U+000C)"
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.2_A2_T5
es6id: 18.2.5
esid: sec-parseint-string-radix
description: "StrWhiteSpaceChar :: VT (U+000B)"
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.2_A2_T6
es6id: 18.2.5
esid: sec-parseint-string-radix
description: "StrWhiteSpaceChar :: CR (U+000D)"
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.2_A2_T7
es6id: 18.2.5
esid: sec-parseint-string-radix
description: "StrWhiteSpaceChar :: LF (U+000A)"
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.2_A2_T8
es6id: 18.2.5
esid: sec-parseint-string-radix
description: "StrWhiteSpaceChar :: LS (U+2028)"
---*/

View File

@ -3,7 +3,8 @@
/*---
info: Operator remove leading StrWhiteSpaceChar
es5id: 15.1.2.2_A2_T9
es6id: 18.2.5
esid: sec-parseint-string-radix
description: "StrWhiteSpaceChar :: PS (U+2029)"
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator use ToNumber
es5id: 15.1.2.2_A3.1_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for boolean primitive
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator use ToNumber
es5id: 15.1.2.2_A3.1_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for string primitive
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator use ToNumber
es5id: 15.1.2.2_A3.1_T3
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for undefined and null
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator use ToNumber
es5id: 15.1.2.2_A3.1_T4
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for Boolean object
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator use ToNumber
es5id: 15.1.2.2_A3.1_T5
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking for Number object
---*/

View File

@ -5,6 +5,8 @@
info: Operator use ToNumber
es5id: 15.1.2.2_A3.1_T6
description: Checking for String object
es6id: 18.2.5
esid: sec-parseint-string-radix
---*/
//CHECK#1

View File

@ -4,6 +4,8 @@
/*---
info: Operator use ToNumber
es5id: 15.1.2.2_A3.1_T7
es6id: 18.2.5
esid: sec-parseint-string-radix
description: If Type(value) is Object, evaluate ToPrimitive(value, Number)
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator use ToInt32
es5id: 15.1.2.2_A3.2_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: If radix is NaN, +0, -0, +Infinity, -Infinity, return radix = +0
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator use ToInt32
es5id: 15.1.2.2_A3.2_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: ToInt32 use floor
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Operator use ToInt32
es5id: 15.1.2.2_A3.2_T3
es6id: 18.2.5
esid: sec-parseint-string-radix
description: ToInt32 use modulo
---*/

View File

@ -4,6 +4,8 @@
/*---
info: If R = 0 or R = undefined, then R = 10
es5id: 15.1.2.2_A4.1_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: R = 0
---*/

View File

@ -4,6 +4,8 @@
/*---
info: If R = 0 or R = undefined, then R = 10
es5id: 15.1.2.2_A4.1_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: R = undefined
---*/

View File

@ -4,6 +4,8 @@
/*---
info: If R < 2 or R > 36, then return NaN
es5id: 15.1.2.2_A4.2_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: R = 1
---*/

View File

@ -4,6 +4,8 @@
/*---
info: If R < 2 or R > 36, then return NaN
es5id: 15.1.2.2_A4.2_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: R = 37
---*/

View File

@ -8,6 +8,8 @@ info: >
when the number begins with the character pairs 0x or 0X, in which
case a radix of 16 is assumed."
es5id: 15.1.2.2_A5.1_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Check if parseInt still accepts octal
---*/

View File

@ -6,6 +6,8 @@ info: >
If the length of S is at least 2 and the first two characters of S
are either 0x or 0X, then remove the first two characters from S and let R = 16
es5id: 15.1.2.2_A5.2_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: ": 0x"
---*/

View File

@ -6,6 +6,8 @@ info: >
If the length of S is at least 2 and the first two characters of S
are either 0x or 0X, then remove the first two characters from S and let R = 16
es5id: 15.1.2.2_A5.2_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: ": 0X"
---*/

View File

@ -7,6 +7,8 @@ info: >
then let Z be the substring of S consisting of all characters before
the first such character; otherwise, let Z be S
es5id: 15.1.2.2_A6.1_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Complex test. R in [2, 36]
---*/

View File

@ -7,6 +7,8 @@ info: >
then let Z be the substring of S consisting of all characters before
the first such character; otherwise, let Z be S
es5id: 15.1.2.2_A6.1_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Complex test. Radix-R notation in [0..9, A-Z]
---*/

View File

@ -7,6 +7,8 @@ info: >
then let Z be the substring of S consisting of all characters before
the first such character; otherwise, let Z be S
es5id: 15.1.2.2_A6.1_T3
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Complex test. Radix-R notation in [0..9, a-z]
---*/

View File

@ -7,6 +7,8 @@ info: >
then let Z be the substring of S consisting of all characters before
the first such character; otherwise, let Z be S
es5id: 15.1.2.2_A6.1_T4
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Complex test. Radix-R notation in [0..9, A-Z]
---*/

View File

@ -7,6 +7,8 @@ info: >
then let Z be the substring of S consisting of all characters before
the first such character; otherwise, let Z be S
es5id: 15.1.2.2_A6.1_T5
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Complex test. Radix-R notation in [0..9, a-z]
---*/

View File

@ -7,6 +7,8 @@ info: >
then let Z be the substring of S consisting of all characters before
the first such character; otherwise, let Z be S
es5id: 15.1.2.2_A6.1_T6
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Complex test. Radix-R notation in [0..9]
---*/

View File

@ -4,6 +4,8 @@
/*---
info: If Z is empty, return NaN
es5id: 15.1.2.2_A7.1_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Complex test. R in [2, 36]
---*/

View File

@ -4,6 +4,8 @@
/*---
info: If Z is empty, return NaN
es5id: 15.1.2.2_A7.1_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: x is not a radix-R digit
---*/

View File

@ -8,6 +8,8 @@ info: >
letters A-Z and a-z for digits with values 10 through 35.
Compute the number value for Result(16)
es5id: 15.1.2.2_A7.2_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Complex test. Check algorithm
---*/

View File

@ -8,6 +8,8 @@ info: >
letters A-Z and a-z for digits with values 10 through 35.
Compute the number value for Result(16)
es5id: 15.1.2.2_A7.2_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking algorithm for R = 2
---*/

View File

@ -8,6 +8,8 @@ info: >
letters A-Z and a-z for digits with values 10 through 35.
Compute the number value for Result(16)
es5id: 15.1.2.2_A7.2_T3
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking algorithm for R = 16
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Return sign * Result(17)
es5id: 15.1.2.2_A7.3_T1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Complex test. Check algorithm
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Return sign * Result(17)
es5id: 15.1.2.2_A7.3_T2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking algorithm for R = 2
---*/

View File

@ -4,6 +4,8 @@
/*---
info: Return sign * Result(17)
es5id: 15.1.2.2_A7.3_T3
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking algorithm for R = 10
---*/

View File

@ -8,6 +8,8 @@ info: >
of the notation of an decimal literal, and no indication is given that any such
characters were ignored.
es5id: 15.1.2.2_A8
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Complex test without eval
includes: [decimalToHexString.js]
---*/

View File

@ -4,6 +4,8 @@
/*---
info: The length property of parseInt has the attribute DontEnum
es5id: 15.1.2.2_A9.1
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking use propertyIsEnumerable, for-in
---*/

View File

@ -4,6 +4,8 @@
/*---
info: The length property of parseInt does not have the attribute DontDelete
es5id: 15.1.2.2_A9.2
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking use hasOwnProperty, delete
---*/

View File

@ -4,6 +4,8 @@
/*---
info: The length property of parseInt has the attribute ReadOnly
es5id: 15.1.2.2_A9.3
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking if varying the length property fails
includes: [propertyHelper.js]
---*/

View File

@ -4,6 +4,8 @@
/*---
info: The length property of parseInt is 2
es5id: 15.1.2.2_A9.4
es6id: 18.2.5
esid: sec-parseint-string-radix
description: parseInt.length === 2
---*/

View File

@ -4,6 +4,8 @@
/*---
info: The parseInt property has the attribute DontEnum
es5id: 15.1.2.2_A9.5
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking use propertyIsEnumerable, for-in
---*/

View File

@ -4,6 +4,8 @@
/*---
info: The parseInt property has not prototype property
es5id: 15.1.2.2_A9.6
es6id: 18.2.5
esid: sec-parseint-string-radix
description: Checking parseInt.prototype
---*/

View File

@ -4,6 +4,8 @@
/*---
info: The parseInt property can't be used as constructor
es5id: 15.1.2.2_A9.7
es6id: 18.2.5
esid: sec-parseint-string-radix
description: >
If property does not implement the internal [[Construct]] method,
throw a TypeError exception

View File

@ -3,6 +3,7 @@
/*---
es6id: 18.2.5
esid: sec-parseint-string-radix
description: >
parseInt.name is "parseInt".
info: >