Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(465)

Side by Side Diff: pkg/third_party/html5lib/test/data/tokenizer/domjs.test

Issue 22375011: move html5lib code into dart svn repo (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: change location of html5lib to pkg/third_party/html5lib Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 {
2 "tests": [
3 {
4 "description":"CR in bogus comment state",
5 "input":"<?\u000d",
6 "output":["ParseError", ["Comment", "?\u000a"]]
7 },
8 {
9 "description":"CRLF in bogus comment state",
10 "input":"<?\u000d\u000a",
11 "output":["ParseError", ["Comment", "?\u000a"]]
12 },
13 {
14 "description":"NUL in RCDATA and RAWTEXT",
15 "doubleEscaped":true,
16 "initialStates":["RCDATA state", "RAWTEXT state"],
17 "input":"\\u0000",
18 "output":["ParseError", ["Character", "\\uFFFD"]]
19 },
20 {
21 "description":"skip first BOM but not later ones",
22 "input":"\uFEFFfoo\uFEFFbar",
23 "output":[["Character", "foo\uFEFFbar"]]
24 },
25 {
26 "description":"Non BMP-charref in in RCDATA",
27 "initialStates":["RCDATA state"],
28 "input":"&NotEqualTilde;",
29 "output":[["Character", "\u2242\u0338"]]
30 },
31 {
32 "description":"Bad charref in in RCDATA",
33 "initialStates":["RCDATA state"],
34 "input":"&NotEqualTild;",
35 "output":["ParseError", ["Character", "&NotEqualTild;"]]
36 },
37 {
38 "description":"lowercase endtags in RCDATA and RAWTEXT",
39 "initialStates":["RCDATA state", "RAWTEXT state"],
40 "lastStartTag":"xmp",
41 "input":"</XMP>",
42 "output":[["EndTag","xmp"]]
43 },
44 {
45 "description":"bad endtag in RCDATA and RAWTEXT",
46 "initialStates":["RCDATA state", "RAWTEXT state"],
47 "lastStartTag":"xmp",
48 "input":"</ XMP>",
49 "output":[["Character","</ XMP>"]]
50 },
51 {
52 "description":"bad endtag in RCDATA and RAWTEXT",
53 "initialStates":["RCDATA state", "RAWTEXT state"],
54 "lastStartTag":"xmp",
55 "input":"</xm>",
56 "output":[["Character","</xm>"]]
57 },
58 {
59 "description":"bad endtag in RCDATA and RAWTEXT",
60 "initialStates":["RCDATA state", "RAWTEXT state"],
61 "lastStartTag":"xmp",
62 "input":"</xm ",
63 "output":[["Character","</xm "]]
64 },
65 {
66 "description":"bad endtag in RCDATA and RAWTEXT",
67 "initialStates":["RCDATA state", "RAWTEXT state"],
68 "lastStartTag":"xmp",
69 "input":"</xm/",
70 "output":[["Character","</xm/"]]
71 },
72 {
73 "description":"Non BMP-charref in attribute",
74 "input":"<p id=\"&NotEqualTilde;\">",
75 "output":[["StartTag", "p", {"id":"\u2242\u0338"}]]
76 },
77 {
78 "description":"--!NUL in comment ",
79 "doubleEscaped":true,
80 "input":"<!----!\\u0000-->",
81 "output":["ParseError", ["Comment", "--!\\uFFFD"]]
82 },
83 {
84 "description":"space EOF after doctype ",
85 "input":"<!DOCTYPE html ",
86 "output":["ParseError", ["DOCTYPE", "html", null, null , false]]
87 }
88
89 ]
90 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698