diff options
author | Sam Mikes <smikes@cubane.com> | 2014-08-01 12:35:15 +0100 |
---|---|---|
committer | Sam Mikes <smikes@cubane.com> | 2014-08-13 00:19:11 +0100 |
commit | 6b7e5d77471631d193745d167970de888c75e84a (patch) | |
tree | 33fc44b9ab551ea476fc42b376c79446391b360e /test/suite/ch10 | |
parent | a794e0eb540928f19ac40b81ae41dcbbf6972b9d (diff) |
bestPractice: supply error names to negative
pilot directory for replacing flags: [negative] with
negative: errorname
ch07-7.2,7.3: add error names
ch07-rest: insert error names rest of ch07
ch08: add expected error name
ch11: add error name to negative
ch12: put error name in negative
ch13: add error name to negative
only one test, did it manually
ch15: add error name to negative:
ch07: add error name to negative
these tests used flags: \n - negative and so
were not caught by the earlier naive grep for flags: [negative]
--- changes suggested by @anba
bestPractice - remove added NotEarlyError
ch07,ch11 - expect ReferenceError (req'd by ES6)
correct test descriptions to expect ReferenceError only
enforce parsing as block statement by adding `;`
remove needless include of $FAIL.js
effectively, a rebase of all changes onto master
Merge branch 'negative-addErrorName-work' into negative-addErrorName-bestPractice
Merge branch 'saved-bestPractice-negative' into negative-addErrorName-work
Conflicts:
test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T2.js
test/suite/ch12/12.1/S12.1_A4_T1.js
test/suite/ch12/12.5/S12.5_A2.js
incorporate changes made on PR branch
re-remove added NotEarlyError
Merge branch 'negative-addErrorName-work' into negative-addErrorName-bestPractice
Conflicts:
test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T2.js
test/suite/ch12/12.1/S12.1_A4_T1.js
test/suite/ch12/12.5/S12.5_A2.js
ch15: correct negative regexes
ch10: avoid use of not-NotEarlyError regex
ch14 error regexps
ch13 error regexps
ch12: negative error matching
Merge branch 'console-runner-checkError' into negative-addErrorName-work
test262.py: check negative tests with regex
implement checking of negative tests =>
negative: SyntaxError
means that /SyntaxError/ must match stderr
or test is reported as failure
Fixes #78
expect real errors
bestPractice: supply error names to negative
pilot directory for replacing flags: [negative] with
negative: errorname
ch07-7.2,7.3: add error names
ch07-rest: insert error names rest of ch07
ch08: add expected error name
ch11: add error name to negative
ch12: put error name in negative
ch13: add error name to negative
only one test, did it manually
ch15: add error name to negative:
ch07: add error name to negative
these tests used flags: \n - negative and so
were not caught by the earlier naive grep for flags: [negative]
--- changes suggested by @anba
bestPractice - remove added NotEarlyError
ch07,ch11 - expect ReferenceError (req'd by ES6)
correct test descriptions to expect ReferenceError only
enforce parsing as block statement by adding `;`
remove needless include of $FAIL.js
Merge branch 'negative-addErrorName-work' into negative-addErrorName-bestPractice
resolved Conflicts:
test/suite/ch07/7.9/S7.9_A5.7_T1.js
test/suite/ch11/11.13/11.13.1/S11.13.1_A2.1_T3.js
test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T1.js
test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T10.js
test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T11.js
test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T2.js
test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T3.js
test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T4.js
test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T5.js
test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T6.js
test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T7.js
test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T8.js
test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T9.js
test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T3.js
test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T3.js
test/suite/ch11/11.4/11.4.4/S11.4.4_A2.1_T3.js
test/suite/ch11/11.4/11.4.5/S11.4.5_A2.1_T3.js
test/suite/ch12/12.5/S12.5_A2.js
test/suite/ch12/12.6/12.6.3/S12.6.3_A4_T2.js
negative: second half of @anba notes
correct test descriptions to expect ReferenceError only
enforce parse as block statement by adding `;`
remove needless include of $FAIL.js
ch12: specify type
negative: @anba fixes
bestPractice - remove added NotEarlyError
ch07,ch11 - expect ReferenceError (req'd by ES6)
bestPractice: supply error names to negative
pilot directory for replacing flags: [negative] with
negative: errorname
ch07-7.2,7.3: add error names
ch07-rest: insert error names rest of ch07
ch08: add expected error name
ch11: add error name to negative
ch12: put error name in negative
ch13: add error name to negative
only one test, did it manually
ch15: add error name to negative:
ch07: add error name to negative
these tests used flags: \n - negative and so
were not caught by the earlier naive grep for flags: [negative]
expect a SyntaxError
ch07: add error name to negative
these tests used flags: \n - negative and so
were not caught by the earlier naive grep for flags: [negative]
ch15: add error name to negative:
ch13: add error name to negative
only one test, did it manually
ch12: put error name in negative
ch11: add error name to negative
ch08: add expected error name
ch07-rest: insert error names rest of ch07
ch07-7.2,7.3: add error names
negative-errorname: pilot
pilot directory for replacing flags: [negative] with
negative: errorname
bestPractice: supply error names to negative
bestPractice: supply error names to negative
pilot directory for replacing flags: [negative] with
negative: errorname
ch07-7.2,7.3: add error names
ch07-rest: insert error names rest of ch07
ch08: add expected error name
ch11: add error name to negative
ch12: put error name in negative
ch13: add error name to negative
only one test, did it manually
ch15: add error name to negative:
ch07: add error name to negative
these tests used flags: \n - negative and so
were not caught by the earlier naive grep for flags: [negative]
bestPractice: supply error names to negative
negative-errorname: pilot
pilot directory for replacing flags: [negative] with
negative: errorname
ch07-7.2,7.3: add error names
ch07-rest: insert error names rest of ch07
ch08: add expected error name
ch11: add error name to negative
ch12: put error name in negative
ch13: add error name to negative
only one test, did it manually
ch15: add error name to negative:
ch07: add error name to negative
these tests used flags: \n - negative and so
were not caught by the earlier naive grep for flags: [negative]
expect a SyntaxError
negative: @anba fixes
bestPractice - remove added NotEarlyError
ch07,ch11 - expect ReferenceError (req'd by ES6)
ch12: specify type
negative: second half of @anba notes
correct test descriptions to expect ReferenceError only
enforce parse as block statement by adding `;`
remove needless include of $FAIL.js
expect real errors
ch12: negative error matching
ch13 error regexps
ch14 error regexps
add "description" header back
remove now-unused includes
remove needless include
Diffstat (limited to 'test/suite/ch10')
-rw-r--r-- | test/suite/ch10/10.1/10.1.1/10.1.1-2gs.js | 2 | ||||
-rw-r--r-- | test/suite/ch10/10.1/10.1.1/10.1.1-5gs.js | 2 | ||||
-rw-r--r-- | test/suite/ch10/10.1/10.1.1/10.1.1-8gs.js | 2 | ||||
-rw-r--r-- | test/suite/ch10/10.4/10.4.2/10.4.2.1-1gs.js | 2 | ||||
-rw-r--r-- | test/suite/ch10/10.5/10.5-1gs.js | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-2gs.js b/test/suite/ch10/10.1/10.1.1/10.1.1-2gs.js index 0c2dbe840..da0a123e9 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-2gs.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-2gs.js @@ -9,7 +9,7 @@ es5id: 10.1.1-2gs description: > Strict Mode - Use Strict Directive Prologue is ''use strict'' which lost the last character ';' -negative: ^((?!NotEarlyError).)*$ +negative: NotEarlyError flags: [noStrict] ---*/ diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-5gs.js b/test/suite/ch10/10.1/10.1.1/10.1.1-5gs.js index 3b0c23dcf..5b31cfe11 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-5gs.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-5gs.js @@ -9,7 +9,7 @@ es5id: 10.1.1-5gs description: > Strict Mode - Use Strict Directive Prologue is ''use strict';' which appears at the start of the code -negative: ^((?!NotEarlyError).)*$ +negative: NotEarlyError flags: [noStrict] ---*/ diff --git a/test/suite/ch10/10.1/10.1.1/10.1.1-8gs.js b/test/suite/ch10/10.1/10.1.1/10.1.1-8gs.js index 518b4e946..5d141ad06 100644 --- a/test/suite/ch10/10.1/10.1.1/10.1.1-8gs.js +++ b/test/suite/ch10/10.1/10.1.1/10.1.1-8gs.js @@ -9,7 +9,7 @@ es5id: 10.1.1-8gs description: > Strict Mode - Use Strict Directive Prologue is ''use strict';' which appears twice in the code -negative: ^((?!NotEarlyError).)*$ +negative: NotEarlyError flags: [noStrict] ---*/ diff --git a/test/suite/ch10/10.4/10.4.2/10.4.2.1-1gs.js b/test/suite/ch10/10.4/10.4.2/10.4.2.1-1gs.js index b786bdb83..75f49ccbb 100644 --- a/test/suite/ch10/10.4/10.4.2/10.4.2.1-1gs.js +++ b/test/suite/ch10/10.4/10.4.2/10.4.2.1-1gs.js @@ -10,7 +10,7 @@ description: > Strict Mode - eval code cannot instantiate variable in the variable environment of the calling context that invoked the eval if the code of the calling context is strict code -negative: ^((?!NotEarlyError).)*$ +negative: ReferenceError flags: [onlyStrict] ---*/ diff --git a/test/suite/ch10/10.5/10.5-1gs.js b/test/suite/ch10/10.5/10.5-1gs.js index 7e94a44c2..b7be54878 100644 --- a/test/suite/ch10/10.5/10.5-1gs.js +++ b/test/suite/ch10/10.5/10.5-1gs.js @@ -7,7 +7,7 @@ /*--- es5id: 10.5-1gs description: Strict Mode - arguments cannot be assigned to in a strict function -negative: ^((?!NotEarlyError).)*$ +negative: SyntaxError flags: [onlyStrict] ---*/ |