| OLD | NEW |
| (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 } | |
| OLD | NEW |