mirror of https://github.com/tc39/test262.git
Ensure test file YAML blocks don't have a trailing space. (#2018)
This commit is contained in:
parent
1b524be1c9
commit
d0f57bff72
|
@ -11,7 +11,7 @@
|
|||
invocation, coerced to a string. If specified, the first argument will be
|
||||
coerced to a string, escaped, and set as the element's `name` attribute.
|
||||
es6id: B.2.3.2
|
||||
---*/
|
||||
---*/
|
||||
|
||||
assert.sameValue('_'.anchor('b'), '<a name="b">_</a>');
|
||||
assert.sameValue('<'.anchor('<'), '<a name="<"><</a>');
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
big element. The element's content is the `this` value of the function
|
||||
invocation, coerced to a string.
|
||||
es6id: B.2.3.3
|
||||
---*/
|
||||
---*/
|
||||
|
||||
assert.sameValue('_'.big(), '<big>_</big>');
|
||||
assert.sameValue('<'.big(), '<big><</big>');
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
blink element. The element's content is the `this` value of the function
|
||||
invocation, coerced to a string.
|
||||
es6id: B.2.3.4
|
||||
---*/
|
||||
---*/
|
||||
|
||||
assert.sameValue('_'.blink(), '<blink>_</blink>');
|
||||
assert.sameValue('<'.blink(), '<blink><</blink>');
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
bold element. The element's content is the `this` value of the function
|
||||
invocation, coerced to a string.
|
||||
es6id: B.2.3.5
|
||||
---*/
|
||||
---*/
|
||||
|
||||
assert.sameValue('_'.bold(), '<b>_</b>');
|
||||
assert.sameValue('<'.bold(), '<b><</b>');
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
teletype text element. The element's content is the `this` value of the
|
||||
function invocation, coerced to a string.
|
||||
es6id: B.2.3.6
|
||||
---*/
|
||||
---*/
|
||||
|
||||
assert.sameValue('_'.fixed(), '<tt>_</tt>');
|
||||
assert.sameValue('<'.fixed(), '<tt><</tt>');
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
will be coerced to a string, escaped, and set as the element's `color`
|
||||
attribute.
|
||||
es6id: B.2.3.7
|
||||
---*/
|
||||
---*/
|
||||
|
||||
assert.sameValue('_'.fontcolor('b'), '<font color="b">_</font>');
|
||||
assert.sameValue('<'.fontcolor('<'), '<font color="<"><</font>');
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
will be coerced to a string, escaped, and set as the element's `size`
|
||||
attribute.
|
||||
es6id: B.2.3.8
|
||||
---*/
|
||||
---*/
|
||||
|
||||
assert.sameValue('_'.fontsize('b'), '<font size="b">_</font>');
|
||||
assert.sameValue('<'.fontsize('<'), '<font size="<"><</font>');
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
italic element. The element's content is the `this` value of the function
|
||||
invocation, coerced to a string.
|
||||
es6id: B.2.3.9
|
||||
---*/
|
||||
---*/
|
||||
|
||||
assert.sameValue('_'.italics(), '<i>_</i>');
|
||||
assert.sameValue('<'.italics(), '<i><</i>');
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
invocation, coerced to a string. If specified, the first argument will be
|
||||
coerced to a string, escaped, and set as the element's `href` attribute.
|
||||
es6id: B.2.3.10
|
||||
---*/
|
||||
---*/
|
||||
|
||||
assert.sameValue('_'.link('b'), '<a href="b">_</a>');
|
||||
assert.sameValue('<'.link('<'), '<a href="<"><</a>');
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
small print element. The element's content is the `this` value of the
|
||||
function invocation, coerced to a string.
|
||||
es6id: B.2.3.11
|
||||
---*/
|
||||
---*/
|
||||
|
||||
assert.sameValue('_'.small(), '<small>_</small>');
|
||||
assert.sameValue('<'.small(), '<small><</small>');
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
strikethrough element. The element's content is the `this` value of the
|
||||
function invocation, coerced to a string.
|
||||
es6id: B.2.3.12
|
||||
---*/
|
||||
---*/
|
||||
|
||||
assert.sameValue('_'.strike(), '<strike>_</strike>');
|
||||
assert.sameValue('<'.strike(), '<strike><</strike>');
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
subscript element. The element's content is the `this` value of the
|
||||
function invocation, coerced to a string.
|
||||
es6id: B.2.3.13
|
||||
---*/
|
||||
---*/
|
||||
|
||||
assert.sameValue('_'.sub(), '<sub>_</sub>');
|
||||
assert.sameValue('<'.sub(), '<sub><</sub>');
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
superscript element. The element's content is the `this` value of the
|
||||
function invocation, coerced to a string.
|
||||
es6id: B.2.3.14
|
||||
---*/
|
||||
---*/
|
||||
|
||||
assert.sameValue('_'.sup(), '<sup>_</sup>');
|
||||
assert.sameValue('<'.sup(), '<sup><</sup>');
|
||||
|
|
|
@ -6,7 +6,7 @@ description: >
|
|||
The method should return a valid iterator with the context as the
|
||||
IteratedObject.
|
||||
features: [Symbol.iterator]
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var map = new Map();
|
||||
map.set(1, 11);
|
||||
|
|
|
@ -11,7 +11,7 @@ description: >
|
|||
redefined in 'O' with all correct attribute values (10.6
|
||||
[[DefineOwnProperty]] step 3)
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
---*/
|
||||
|
||||
;
|
||||
(function(a, b, c) {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
The initial value of the keys property is the same function object as the
|
||||
initial value of the values property.
|
||||
es6id: 23.2.3.8
|
||||
---*/
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
||||
Set.prototype.keys,
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
description: >
|
||||
Returns an iterator that's already done if Set is empty.
|
||||
es6id: 23.2.3.10
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var set = new Set();
|
||||
var iterator = set.values();
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
The method should return a valid iterator with the context as the
|
||||
IteratedObject.
|
||||
es6id: 23.2.3.10
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var set = new Set();
|
||||
set.add(1);
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
accessible via iteration. When an item is added to the set after the
|
||||
iterator is "done", the new item should not be accessible via iteration.
|
||||
es6id: 23.2.3.10
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var set = new Set();
|
||||
set.add(1);
|
||||
|
|
|
@ -7,7 +7,7 @@ description: >
|
|||
IteratedObject.
|
||||
features:
|
||||
- Symbol.iterator
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var set = new Set();
|
||||
set.add(1);
|
||||
|
|
|
@ -8,7 +8,7 @@ description: >
|
|||
CoverParenthesizedExpressionAndArrowParameterList[?Yield]
|
||||
|
||||
12.14.5
|
||||
---*/
|
||||
---*/
|
||||
var af = ({x = 1}) => x;
|
||||
|
||||
assert.sameValue(typeof af, "function");
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
`yield` expression.
|
||||
features: [generators]
|
||||
es6id: 14.4
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var result;
|
||||
var obj = {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
`return` is a valid statement within generator function bodies.
|
||||
features: [generators]
|
||||
es6id: 14.4
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var result;
|
||||
var obj = {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
`yield` is a valid expression within generator function bodies.
|
||||
features: [generators]
|
||||
es6id: 14.4
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var iter, result;
|
||||
var obj = {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
`yield` is a valid expression within generator function bodies.
|
||||
features: [generators]
|
||||
es6id: 14.4
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var iter, result;
|
||||
var obj = {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
features: [generators]
|
||||
es6id: 14.1
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var result;
|
||||
var obj = {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
features: [generators]
|
||||
es6id: 12.1.1
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var iter, result;
|
||||
var obj = {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
features: [generators]
|
||||
es6id: 12.1.1
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var result;
|
||||
var obj = {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
within generator function bodies.
|
||||
features: [generators]
|
||||
es6id: 12.1.1
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var result;
|
||||
var obj = {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
within generator function bodies.
|
||||
features: [generators]
|
||||
es6id: 12.1.1
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var result;
|
||||
var obj = {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
`yield` is a valid statement within generator function bodies.
|
||||
features: [generators]
|
||||
es6id: 14.4
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var iter, result;
|
||||
var obj = {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
expressions.
|
||||
features: [generators]
|
||||
es6id: 14.4
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var iter, result;
|
||||
var obj = {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
Newlines terminate `yield` expressions.
|
||||
features: [generators]
|
||||
es6id: 14.4
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var iter, result;
|
||||
var obj = {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
The right-hand side of a `yield *` expression may appear on a new line.
|
||||
features: [generators]
|
||||
es6id: 14.4
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var result;
|
||||
var obj = {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
description: >
|
||||
`yield` may be used as a literal property name in an object literal.
|
||||
es6id: 12.1.1
|
||||
---*/
|
||||
---*/
|
||||
|
||||
({ yield: 1 });
|
||||
|
|
|
@ -10,7 +10,7 @@ negative:
|
|||
phase: parse
|
||||
type: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ info: |
|
|||
[...]
|
||||
flags: [module]
|
||||
features: [export-star-as-namespace-from-module]
|
||||
---*/
|
||||
---*/
|
||||
|
||||
import {named} from './instn-star-props-dflt-skip-star-as-named_FIXTURE.js';
|
||||
import {production} from './instn-star-props-dflt-skip-star-as-prod_FIXTURE.js';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
`yield` expression.
|
||||
features: [generators]
|
||||
es6id: 14.4
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var result;
|
||||
class A {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
`return` is a valid statement within generator function bodies.
|
||||
features: [generators]
|
||||
es6id: 14.4
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var result;
|
||||
class A {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
`yield` is a valid expression within generator function bodies.
|
||||
features: [generators]
|
||||
es6id: 14.4
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var iter, result;
|
||||
class A {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
`yield` is a valid expression within generator function bodies.
|
||||
features: [generators]
|
||||
es6id: 14.4
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var iter, result;
|
||||
class A {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
strict mode.
|
||||
features: [generators]
|
||||
es6id: 12.1.1
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var iter, result;
|
||||
class A {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
within generator function bodies.
|
||||
features: [generators]
|
||||
es6id: 12.1.1
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var result;
|
||||
class A {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
within generator function bodies.
|
||||
features: [generators]
|
||||
es6id: 12.1.1
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var result;
|
||||
class A {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
`yield` is a valid statement within generator function bodies.
|
||||
features: [generators]
|
||||
es6id: 14.4
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var iter, result;
|
||||
class A {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
expressions.
|
||||
features: [generators]
|
||||
es6id: 14.4
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var iter, result;
|
||||
class A {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
Newlines terminate `yield` expressions.
|
||||
features: [generators]
|
||||
es6id: 14.4
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var iter, result;
|
||||
class A {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
The right-hand side of a `yield *` expression may appear on a new line.
|
||||
features: [generators]
|
||||
es6id: 14.4
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var result;
|
||||
class A {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
negative:
|
||||
phase: parse
|
||||
type: SyntaxError
|
||||
---*/
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
The method should return a valid iterator that can be traversed using a
|
||||
`for...of` loop.
|
||||
es6id: 22.1.3.4
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var array = [0, 'a', true, false, null, /* hole */, undefined, NaN];
|
||||
var i = 0;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
The method should return a valid iterator that can be traversed using a
|
||||
`for...of` loop.
|
||||
es6id: 22.1.3.13
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var array = [0, 'a', true, false, null, /* hole */, undefined, NaN];
|
||||
var i = 0;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
description: >
|
||||
Array instances should be able to be traversed using a `for...of` loop.
|
||||
es6id: 13.6.4
|
||||
---*/
|
||||
---*/
|
||||
|
||||
var array = [0, 'a', true, false, null, /* hole */, undefined, NaN];
|
||||
var i = 0;
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
used as a label.
|
||||
es6id: 12.1.1
|
||||
flags: [noStrict]
|
||||
---*/
|
||||
---*/
|
||||
|
||||
yield: 1;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
phase: parse
|
||||
type: SyntaxError
|
||||
flags: [onlyStrict]
|
||||
---*/
|
||||
---*/
|
||||
|
||||
$DONOTEVALUATE();
|
||||
|
||||
|
|
Loading…
Reference in New Issue