Reformat miscellaneous negative tests

The expected errors in these tests cannot be asserted with the
`assert.throws` helper function for various reasons. Re-format their
meta-data according to the latest design in order to more precisely
describe test expectations.
This commit is contained in:
Mike Pennisi 2016-05-28 16:27:05 -04:00
parent 203b234fc0
commit 0c29e6de86
7 changed files with 21 additions and 7 deletions

View File

@ -17,7 +17,9 @@ info: |
HTMLCloseComment ::
WhiteSpaceSequence[opt] SingleLineDelimitedCommentSequence[opt] --> SingleLineCommentChars[opt]
negative: Test262Error
negative:
phase: runtime
type: Test262Error
---*/
var counter = 0;

View File

@ -19,7 +19,9 @@ info: |
HTMLCloseComment ::
WhiteSpaceSequence[opt] SingleLineDelimitedCommentSequence[opt] --> SingleLineCommentChars[opt]
negative: Test262Error
negative:
phase: runtime
type: Test262Error
---*/
var foo = [23]

View File

@ -17,7 +17,9 @@ info: |
HTMLCloseComment ::
WhiteSpaceSequence[opt] SingleLineDelimitedCommentSequence[opt] --> SingleLineCommentChars[opt]
negative: Test262Error
negative:
phase: runtime
type: Test262Error
---*/
var counter = 0;

View File

@ -14,7 +14,9 @@ info: |
SingleLineHTMLOpenComment ::
<!--SingleLineCommentCharsopt
negative: Test262Error
negative:
phase: runtime
type: Test262Error
---*/
var counter = 0;

View File

@ -24,7 +24,9 @@ info: |
2. If Type(V) is not Reference, return V.
3. Let base be GetBase(V).
4. If IsUnresolvableReference(V) is true, throw a ReferenceError exception.
negative: Test262Error
negative:
phase: runtime
type: Test262Error
flags: [module]
---*/

View File

@ -10,7 +10,9 @@ info: |
module.[[RequestedModules]] do,
a. Let requiredModule be ? HostResolveImportedModule(module, required).
b. Perform ? requiredModule.ModuleEvaluation().
negative: TypeError
negative:
phase: early
type: TypeError
flags: [module]
---*/

View File

@ -10,7 +10,9 @@ info: |
18. Resume the context that is now on the top of the execution context
stack as the running execution context.
19. Return Completion(result).
negative: Test262Error
negative:
phase: runtime
type: Test262Error
flags: [module]
---*/