Skip to content

Commit

Permalink
Move the tests for HTML comment.
Browse files Browse the repository at this point in the history
These are not only for tolerant mode, place them in the Comment category.

https://code.google.com/p/esprima/issues/detail?id=451
  • Loading branch information
ariya committed Sep 27, 2013
1 parent 7c35150 commit 2b7fca5
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions test/test.js
Expand Up @@ -4238,6 +4238,39 @@ var testFixture = {
end: { line: 1, column: 40 } end: { line: 1, column: 40 }
} }
}] }]
},

'<!-- foo': {
type: 'Program',
body: [],
comments: [{
type: 'Line',
value: ' foo'
}]
},

'var x = 1<!--foo': {
type: 'Program',
body: [{
type: 'VariableDeclaration',
declarations: [{
type: 'VariableDeclarator',
id: {
type: 'Identifier',
name: 'x'
},
init: {
type: 'Literal',
value: 1,
raw: '1'
}
}],
kind: 'var'
}],
comments: [{
type: 'Line',
value: 'foo'
}]
} }


}, },
Expand Down Expand Up @@ -23291,39 +23324,6 @@ var testFixture = {
column: 7, column: 7,
message: 'Error: Line 1: Invalid left-hand side in for-in' message: 'Error: Line 1: Invalid left-hand side in for-in'
}] }]
},

'<!-- foo': {
type: 'Program',
body: [],
comments: [{
type: 'Line',
value: ' foo'
}]
},

'var x = 1<!--foo': {
type: 'Program',
body: [{
type: 'VariableDeclaration',
declarations: [{
type: 'VariableDeclarator',
id: {
type: 'Identifier',
name: 'x'
},
init: {
type: 'Literal',
value: 1,
raw: '1'
}
}],
kind: 'var'
}],
comments: [{
type: 'Line',
value: 'foo'
}]
} }




Expand Down

0 comments on commit 2b7fca5

Please sign in to comment.