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

Unified Diff: client/tests/client/samples/total/total_tests.dart

Issue 8391009: Reroll r634 "Total now reads mortgage sample from server" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed blank line Created 9 years, 2 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 | « client/samples/total/src/Total.dart ('k') | samples/total/src/Dartc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/client/samples/total/total_tests.dart
diff --git a/client/tests/client/samples/total/total_tests.dart b/client/tests/client/samples/total/total_tests.dart
index da3f13b78c1ca544fba4c2fc49f6f3a624ad790e..595702d4d648d25e1bf302416359fa09be9cd75e 100644
--- a/client/tests/client/samples/total/total_tests.dart
+++ b/client/tests/client/samples/total/total_tests.dart
@@ -9,6 +9,7 @@
#import('../../../../samples/total/src/TotalLib.dart');
#import('../../../../testing/unittest/unittest.dart');
#import('../../../../view/view.dart');
+#source('../../../../../samples/total/src/SYLKProducer.dart');
main() {
test('DateUtils', () {
@@ -367,10 +368,11 @@ main() {
});
test('Mortgage', () {
- Reader reader = new SYLKReader();
- List<String> data = reader.makeExample("mortgage");
+ SYLKProducer producer = new SYLKProducer();
+ String data = producer.makeExample("mortgage");
Spreadsheet spreadsheet = new Spreadsheet();
- reader.loadSpreadsheet(spreadsheet, data);
+ Reader reader = new SYLKReader();
+ reader.loadFromString(spreadsheet, data);
Expect.approxEquals(383.05, spreadsheet.getDoubleValue(new RowCol(99, 2)), 0.05);
Expect.approxEquals(36977.28, spreadsheet.getDoubleValue(new RowCol(100, 2)), 0.05);
Expect.approxEquals(6976.86, spreadsheet.getDoubleValue(new RowCol(100, 3)), 0.05);
« no previous file with comments | « client/samples/total/src/Total.dart ('k') | samples/total/src/Dartc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698