|
15 | 15 |
|
16 | 16 | "File with problems should list them": function(){ |
17 | 17 | var result = { messages: [ |
18 | | - { type: "warning", line: 1, col: 1, message: "BOGUS", evidence: "ALSO BOGUS", rule: { name: "A Rule"} }, |
19 | | - { type: "error", line: 2, col: 1, message: "BOGUS", evidence: "ALSO BOGUS", rule: { name: "Some Other Rule"} } |
20 | | - ], stats: [] }, |
| 18 | + { type: "warning", line: 1, col: 1, message: "BOGUS", evidence: "ALSO BOGUS", rule: { name: "A Rule"} }, |
| 19 | + { type: "error", line: 2, col: 1, message: "BOGUS", evidence: "ALSO BOGUS", rule: { name: "Some Other Rule"} } |
| 20 | + ], stats: [] }, |
21 | 21 | file = "<file name=\"FILE\">", |
22 | 22 | error1 = "<error line=\"1\" column=\"1\" severity=\"warning\" message=\"BOGUS\" source=\"net.csslint.ARule\"/>", |
23 | 23 | error2 = "<error line=\"2\" column=\"1\" severity=\"error\" message=\"BOGUS\" source=\"net.csslint.SomeOtherRule\"/>", |
|
29 | 29 | "Formatter should escape special characters": function() { |
30 | 30 | var specialCharsSting = 'sneaky, "sneaky", <sneaky>, sneak & sneaky', |
31 | 31 | result = { messages: [ |
32 | | - { type: "warning", line: 1, col: 1, message: specialCharsSting, evidence: "ALSO BOGUS", rule: [] }, |
33 | | - { type: "error", line: 2, col: 1, message: specialCharsSting, evidence: "ALSO BOGUS", rule: [] } |
34 | | - ], stats: [] }, |
| 32 | + { type: "warning", line: 1, col: 1, message: specialCharsSting, evidence: "ALSO BOGUS", rule: [] }, |
| 33 | + { type: "error", line: 2, col: 1, message: specialCharsSting, evidence: "ALSO BOGUS", rule: [] } |
| 34 | + ], stats: [] }, |
35 | 35 | file = "<file name=\"FILE\">", |
36 | 36 | error1 = "<error line=\"1\" column=\"1\" severity=\"warning\" message=\"sneaky, "sneaky", <sneaky>, sneak & sneaky\" source=\"\"/>", |
37 | 37 | error2 = "<error line=\"2\" column=\"1\" severity=\"error\" message=\"sneaky, "sneaky", <sneaky>, sneak & sneaky\" source=\"\"/>", |
|
0 commit comments