Permalink
Browse files

make test a little better

  • Loading branch information...
1 parent 6bcd609 commit 2267f32a02ef63bfd9ba241dfea74283c128cad7 @deanmao committed May 2, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 tests/parser.js
View
@@ -368,8 +368,12 @@ exports['html inside comment'] = {
};
exports['transitional doctype'] = {
- data: ['<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">']
- , expected: [{ type: 'doctype', data: ' HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"'}]
+ data: ['<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html></html>']
+ , expected: [
+ { type: 'doctype', data: ' HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"'},
+ { type: 'tag', name: 'html', raw: 'html' },
+ { type: 'tag', name: '/html', raw: '/html' }
+ ]
};
exports['html inside cdata'] = {

0 comments on commit 2267f32

Please sign in to comment.