| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library polymer.test.web.layout_test; | 5 library polymer.test.web.web_components_less_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:html'; | 8 import 'dart:html'; |
| 9 import 'dart:js'; | 9 import 'dart:js'; |
| 10 import 'package:polymer/polymer.dart'; | 10 import 'package:polymer/polymer.dart'; |
| 11 import 'package:unittest/html_config.dart'; | 11 import 'package:unittest/html_config.dart'; |
| 12 import 'package:unittest/unittest.dart'; | 12 import 'package:unittest/unittest.dart'; |
| 13 | 13 |
| 14 int elementsReadied = 0; | 14 int elementsReadied = 0; |
| 15 | 15 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 29 ready() { | 29 ready() { |
| 30 elementsReadied++; | 30 elementsReadied++; |
| 31 } | 31 } |
| 32 } | 32 } |
| 33 | 33 |
| 34 main() => initPolymer().run(() { | 34 main() => initPolymer().run(() { |
| 35 useHtmlConfiguration(); | 35 useHtmlConfiguration(); |
| 36 | 36 |
| 37 setUp(() => Polymer.onReady); | 37 setUp(() => Polymer.onReady); |
| 38 | 38 |
| 39 test('platform-less configuration', () { | 39 test('web-components-less configuration', () { |
| 40 var jsDoc = new JsObject.fromBrowserObject(document); | 40 var jsDoc = new JsObject.fromBrowserObject(document); |
| 41 var htmlImports = context['HTMLImports']; | 41 var htmlImports = context['HTMLImports']; |
| 42 | 42 |
| 43 if (!ShadowRoot.supported || !(new LinkElement()).supportsImport) return; | 43 if (!ShadowRoot.supported || !(new LinkElement()).supportsImport) return; |
| 44 | 44 |
| 45 expect(elementsReadied, 2, reason: 'imported elements upgraded'); | 45 expect(elementsReadied, 2, reason: 'imported elements upgraded'); |
| 46 }); | 46 }); |
| 47 | 47 |
| 48 }); | 48 }); |
| OLD | NEW |