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

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

Issue 8966029: Report errors and warnings for hiding elements, issue 572. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for comments Created 9 years 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/tests/client/layout/layout_tests.dart ('k') | client/touch/Momentum.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_test_lib.dart
diff --git a/client/tests/client/samples/total/total_test_lib.dart b/client/tests/client/samples/total/total_test_lib.dart
index a5b08045bc711485dfeb383c3dbcf0532e9b42bf..826f36a0575a378dc063a43a2049f778a54119cb 100644
--- a/client/tests/client/samples/total/total_test_lib.dart
+++ b/client/tests/client/samples/total/total_test_lib.dart
@@ -142,24 +142,26 @@ totalTests() {
});
test('Scanner', () {
- String input =
- "ROUND(R1C0 * ((R1C1 / 1234.0000) / (1 - POWER(1 + (R1C1 / 1234.5000)," +
- " -12 * R1C2))), 2)";
- Scanner scanner =
- new Scanner.preserveWhitespace(input,
- new CellLocation(null, new RowCol(0, 0)));
- List<Token> tokens = scanner.scan();
-
- List<String> expected = <String>[
- "ROUND", "(", "R1C0", " ", "*", " ", "(", "(", "R1C1", " ", "/", " ",
- "1234", ")", " ", "/", " ", "(", "1", " ", "-", " ", "POWER", "(", "1",
- " ", "+", " ", "(", "R1C1", " ", "/", " ", "1234.5", ")", ",", " ", "-",
- "12", " ", "*", " ", "R1C2", ")", ")", ")", ",", " ", "2", ")", ];
-
- int index = 0;
- tokens.forEach((Token token) {
- Expect.equals(expected[index++], token.toString());
- });
+ {
+ String input =
+ "ROUND(R1C0 * ((R1C1 / 1234.0000) / (1 - POWER(1 + (R1C1 / 1234.5000)," +
+ " -12 * R1C2))), 2)";
+ Scanner scanner =
+ new Scanner.preserveWhitespace(input,
+ new CellLocation(null, new RowCol(0, 0)));
+ List<Token> tokens = scanner.scan();
+
+ List<String> expected = <String>[
+ "ROUND", "(", "R1C0", " ", "*", " ", "(", "(", "R1C1", " ", "/", " ",
+ "1234", ")", " ", "/", " ", "(", "1", " ", "-", " ", "POWER", "(", "1",
+ " ", "+", " ", "(", "R1C1", " ", "/", " ", "1234.5", ")", ",", " ", "-",
+ "12", " ", "*", " ", "R1C2", ")", ")", ")", ",", " ", "2", ")", ];
+
+ int index = 0;
+ tokens.forEach((Token token) {
+ Expect.equals(expected[index++], token.toString());
+ });
+ }
validate(String input) {
Scanner scanner =
« no previous file with comments | « client/tests/client/layout/layout_tests.dart ('k') | client/touch/Momentum.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698