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); |
} |
}; |