Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move the tests for HTML comment.

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...
commit 2b7fca5ed1acf5f3e31e51b1f169c455605be894 1 parent 7c35150
@ariya authored
Showing with 33 additions and 33 deletions.
  1. +33 −33 test/test.js
View
66 test/test.js
@@ -4238,6 +4238,39 @@ var testFixture = {
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'
+ }]
}
},
@@ -23291,39 +23324,6 @@ var testFixture = {
column: 7,
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'
- }]
}
Please sign in to comment.
Something went wrong with that request. Please try again.