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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/analysis/timing/HtmlParserTimings.java

Issue 82903007: Improved HTML parsing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Clean-up Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/analysis/timing/HtmlParserTimings.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/analysis/timing/HtmlParserTimings.java b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/analysis/timing/HtmlParserTimings.java
index 6362ca9d6ce563dd71ea5fd6f60ee2b74f400842..f21cff84befe37b8b113caf88df64fc02f3fd736 100644
--- a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/analysis/timing/HtmlParserTimings.java
+++ b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/analysis/timing/HtmlParserTimings.java
@@ -1,5 +1,6 @@
package com.google.dart.tools.core.analysis.timing;
+import com.google.dart.engine.error.GatheringErrorListener;
import com.google.dart.engine.html.parser.HtmlParseResult;
import com.google.dart.engine.html.parser.HtmlParser;
import com.google.dart.engine.source.FileBasedSource;
@@ -29,7 +30,8 @@ public class HtmlParserTimings extends TestCase {
@Override
public void run(File htmlFile) throws Exception {
Source source = new FileBasedSource(sourceFactory.getContentCache(), htmlFile);
- HtmlParseResult parseResult = new HtmlParser(source).parse(source);
+ GatheringErrorListener errorListener = new GatheringErrorListener();
+ HtmlParseResult parseResult = new HtmlParser(source, errorListener).parse(source);
assertNotNull(parseResult);
}
};
@@ -41,7 +43,8 @@ public class HtmlParserTimings extends TestCase {
public void run(File htmlFile, String contents) throws Exception {
Source source = new FileBasedSource(sourceFactory.getContentCache(), htmlFile);
sourceFactory.setContents(source, contents);
- HtmlParseResult parseResult = new HtmlParser(source).parse(source);
+ GatheringErrorListener errorListener = new GatheringErrorListener();
+ HtmlParseResult parseResult = new HtmlParser(source, errorListener).parse(source);
assertNotNull(parseResult);
}
};

Powered by Google App Engine
This is Rietveld 408576698