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

Unified Diff: pkg/intl/test/message_extraction/embedded_plural_text_before_test.dart

Issue 771253002: Add a flag to prohibit plurals/genders that don't take up the whole string. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review fixes Created 6 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
Index: pkg/intl/test/message_extraction/embedded_plural_text_before_test.dart
diff --git a/pkg/intl/test/message_extraction/really_fail_extraction_test.dart b/pkg/intl/test/message_extraction/embedded_plural_text_before_test.dart
similarity index 62%
copy from pkg/intl/test/message_extraction/really_fail_extraction_test.dart
copy to pkg/intl/test/message_extraction/embedded_plural_text_before_test.dart
index 76f52519bc6ebf5c2e389e828704bbab7c80e2ed..0cc44f76769e6c6aa7f20e1ff0571b8b1566bff6 100644
--- a/pkg/intl/test/message_extraction/really_fail_extraction_test.dart
+++ b/pkg/intl/test/message_extraction/embedded_plural_text_before_test.dart
@@ -2,13 +2,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library really_fail_extraction_test;
+library embedded_plural_text_before_test;
import "failed_extraction_test.dart";
import "package:unittest/unittest.dart";
main() {
- test("Expect failure because warnings are errors", () {
- runTestWithWarnings(warningsAreErrors: true, expectedExitCode: 1);
+ test("Expect failure because of embedded plural with text before it", () {
+ var files = ['embedded_plural_text_before.dart'];
+ runTestWithWarnings(warningsAreErrors: true, expectedExitCode: 1,
+ embeddedPlurals: false, sourceFiles: files);
});
}

Powered by Google App Engine
This is Rietveld 408576698