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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/cache/HtmlEntryImplTest.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/cache/HtmlEntryImplTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/cache/HtmlEntryImplTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/cache/HtmlEntryImplTest.java
index c6131319ee7943a4cee6975764dcf08b902d9253..5a70156d5c0f916faaa5f570aeb3b8132c3cb97c 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/cache/HtmlEntryImplTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/cache/HtmlEntryImplTest.java
@@ -77,6 +77,10 @@ public class HtmlEntryImplTest extends EngineTestCase {
setState(HtmlEntry.PARSED_UNIT);
}
+ public void test_setState_parseErrors() {
+ setState(HtmlEntry.PARSE_ERRORS);
+ }
+
public void test_setState_referencedLibraries() {
setState(HtmlEntry.REFERENCED_LIBRARIES);
}
@@ -111,6 +115,13 @@ public class HtmlEntryImplTest extends EngineTestCase {
setValue(HtmlEntry.PARSED_UNIT, new HtmlUnit(null, null, null));
}
+ public void test_setValue_parseErrors() {
+ setValue(HtmlEntry.PARSE_ERRORS, new AnalysisError[] {new AnalysisError(
+ null,
+ HtmlWarningCode.INVALID_URI,
+ "-")});
+ }
+
public void test_setValue_referencedLibraries() {
setValue(HtmlEntry.REFERENCED_LIBRARIES, new Source[] {new TestSource()});
}

Powered by Google App Engine
This is Rietveld 408576698