OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014, 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 library experimental_boot.test.double_init_test; |
| 5 |
| 6 import 'dart:async'; |
| 7 import 'dart:js' as js; |
| 8 |
| 9 import 'package:polymer/polymer.dart'; |
| 10 import 'package:unittest/html_config.dart'; |
| 11 import 'package:unittest/unittest.dart'; |
| 12 |
| 13 @initMethod |
| 14 init() { |
| 15 useHtmlConfiguration(); |
| 16 test('can\'t call initPolymer when using polymer_experimental', () { |
| 17 expect(() => initPolymer(), throwsA("Initialization was already done.")); |
| 18 }); |
| 19 } |
OLD | NEW |