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

Side by Side Diff: pkg/third_party/html5lib/test/parser_test.dart

Issue 23532008: Fix missing quote. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library parser_test; 1 library parser_test;
2 2
3 import 'dart:convert; 3 import 'dart:convert';
4 import 'dart:io'; 4 import 'dart:io';
5 import 'package:path/path.dart' as pathos; 5 import 'package:path/path.dart' as pathos;
6 import 'package:unittest/unittest.dart'; 6 import 'package:unittest/unittest.dart';
7 import 'package:html5lib/dom.dart'; 7 import 'package:html5lib/dom.dart';
8 import 'package:html5lib/parser.dart'; 8 import 'package:html5lib/parser.dart';
9 import 'package:html5lib/parser_console.dart' as parser_console; 9 import 'package:html5lib/parser_console.dart' as parser_console;
10 import 'package:html5lib/src/constants.dart'; 10 import 'package:html5lib/src/constants.dart';
11 import 'package:html5lib/src/inputstream.dart' as inputstream; 11 import 'package:html5lib/src/inputstream.dart' as inputstream;
12 import 'package:html5lib/src/tokenizer.dart'; 12 import 'package:html5lib/src/tokenizer.dart';
13 import 'package:html5lib/src/utils.dart'; 13 import 'package:html5lib/src/utils.dart';
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 /** Extract the name for the test based on the test input data. */ 115 /** Extract the name for the test based on the test input data. */
116 _nameFor(String input) { 116 _nameFor(String input) {
117 // Using JSON.decode to unescape other unicode characters 117 // Using JSON.decode to unescape other unicode characters
118 var escapeQuote = input 118 var escapeQuote = input
119 .replaceAll(new RegExp('\\\\.'), '_') 119 .replaceAll(new RegExp('\\\\.'), '_')
120 .replaceAll(new RegExp('\u0000'), '_') 120 .replaceAll(new RegExp('\u0000'), '_')
121 .replaceAll('"', '\\"') 121 .replaceAll('"', '\\"')
122 .replaceAll(new RegExp('[\n\r\t]'),'_'); 122 .replaceAll(new RegExp('[\n\r\t]'),'_');
123 return JSON.decode('"$escapeQuote"'); 123 return JSON.decode('"$escapeQuote"');
124 } 124 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698