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

Unified Diff: samples/swarm/SwarmApp.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/SwarmApp.dart
diff --git a/samples/swarm/SwarmApp.dart b/samples/swarm/SwarmApp.dart
index 462dcd30572f275598f2606665abc1458e343606..76c53a63e24f70c623b56ff0958c375146a47f73 100644
--- a/samples/swarm/SwarmApp.dart
+++ b/samples/swarm/SwarmApp.dart
@@ -23,8 +23,8 @@ class Swarm extends App {
/** Observable UI state. */
SwarmState state;
- Swarm() : super(), onLoadFired = false {
- Sections.initializeFromUrl((currSections) {
+ Swarm([bool useCannedData = false]) : super(), onLoadFired = false {
Emily Fortuna 2013/01/10 02:07:10 I unfortunately had to add this hack because the w
Jennifer Messerly 2013/01/10 02:18:10 yeah that's totally cool. The old code was dumb an
+ Sections.initializeFromUrl(useCannedData, (currSections) {
sections = currSections;
state = new SwarmState(sections);
setupApp();

Powered by Google App Engine
This is Rietveld 408576698