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

Side by Side Diff: pkg/intl/test/message_extraction/generated_messages_js_test.dart

Issue 23484010: Re-arrange tests to allow testing generated messages code in dart2js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Regenerated code Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 // This test is intended to be run when compiled to Javascript, though it will
6 // also work if run from the VM, it just won't test anything different from
7 // message_extraction_test. It runs the generated code without going through
8 // the message extraction or translation, which can't be done in JS. This tells
9 // us if the generated code works in JS.
10
11 library generated_messages_js_test.dart;
12
13 import 'package:unittest/unittest.dart';
14 import 'sample_with_messages.dart' as sample;
15 import 'print_to_list.dart';
16 import 'verify_messages.dart';
17
18 main() {
19 test("Test generated code running in JS", () =>
20 sample.main().then((_) => verifyResult(lines)));
21 }
OLDNEW
« no previous file with comments | « pkg/intl/test/message_extraction/foo_messages_fr.dart ('k') | pkg/intl/test/message_extraction/message_extraction_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698