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

Unified Diff: samples/swarm/DataSource.dart

Issue 11810004: Make browser tests all run from a server instead of the local filesystem. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
Index: samples/swarm/DataSource.dart
diff --git a/samples/swarm/DataSource.dart b/samples/swarm/DataSource.dart
index 8c7d0e82fe8c2af76a5d3f4d7f5a926ce74588d9..e471567e19311fc8613c2191b40123bbb781dc75 100644
--- a/samples/swarm/DataSource.dart
+++ b/samples/swarm/DataSource.dart
@@ -56,8 +56,9 @@ class Sections extends Collection<Section> {
callback(new Sections(sections));
}
- static void initializeFromUrl(void callback(Sections sections)) {
- if (Sections.runningFromFile) {
+ static void initializeFromUrl(bool useCannedData,
+ void callback(Sections sections)) {
+ if (Sections.runningFromFile || useCannedData) {
initializeFromData(CannedData.data['user.data'], callback);
} else {
// TODO(jmesserly): display an error if we fail here! Silent failure bad.

Powered by Google App Engine
This is Rietveld 408576698