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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/html/HtmlTagInfoBuilderTest.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.engine_test/src/com/google/dart/engine/internal/html/HtmlTagInfoBuilderTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/html/HtmlTagInfoBuilderTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/html/HtmlTagInfoBuilderTest.java
index e2acae6d83416ddcd5560a1e5783d2b238fc7a35..0e66bae7f2f74488f2fbfdfc71e8d8942d7548a0 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/html/HtmlTagInfoBuilderTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/html/HtmlTagInfoBuilderTest.java
@@ -14,6 +14,7 @@
package com.google.dart.engine.internal.html;
import com.google.dart.engine.EngineTestCase;
+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.html.scanner.HtmlScanResult;
@@ -53,7 +54,9 @@ public class HtmlTagInfoBuilderTest extends EngineTestCase {
HtmlScanner scanner = new HtmlScanner(source);
source.getContents(scanner);
HtmlScanResult scanResult = scanner.getResult();
- HtmlParseResult result = new HtmlParser(source).parse(scanResult);
+ GatheringErrorListener errorListener = new GatheringErrorListener();
+ HtmlParseResult result = new HtmlParser(source, errorListener).parse(scanResult);
+ errorListener.assertNoErrors();
return result;
}
}

Powered by Google App Engine
This is Rietveld 408576698