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

Unified Diff: compiler/javatests/com/google/dart/compiler/SystemLibrariesReaderTest.java

Issue 10918040: improve test failure message (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/javatests/com/google/dart/compiler/SystemLibrariesReaderTest.java
===================================================================
--- compiler/javatests/com/google/dart/compiler/SystemLibrariesReaderTest.java (revision 11743)
+++ compiler/javatests/com/google/dart/compiler/SystemLibrariesReaderTest.java (working copy)
@@ -32,11 +32,14 @@
Map<String, DartLibrary> librariesMap = reader.getLibrariesMap();
assertTrue(!librariesMap.isEmpty());
for (Entry<String, DartLibrary> entry : librariesMap.entrySet()) {
- String path = entry.getValue().getPath();
+ String path = entry.getValue().getPath();
File file = new File(base.resolve(new URI(null, null, path, null, null)).normalize());
- assertTrue(file.exists());
- }
-
+ if (!file.exists()) {
+ fail("Expected " + entry.getKey() + " path in libraries.dart to exist in SDK"
+ + "\n could not find " + file);
+ }
+ }
+
// check content
// "coreimpl": const LibraryInfo(
// "coreimpl/coreimpl_runtime.dart",
« 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