| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <!-- | 2 <!-- |
| 3 Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4 for details. All rights reserved. Use of this source code is governed by a | 4 for details. All rights reserved. Use of this source code is governed by a |
| 5 BSD-style license that can be found in the LICENSE file. | 5 BSD-style license that can be found in the LICENSE file. |
| 6 --> | 6 --> |
| 7 <html lang="en"> | 7 <html lang="en"> |
| 8 <head> | 8 <head> |
| 9 <meta charset="utf-8"> | 9 <meta charset="utf-8"> |
| 10 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | 10 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| 11 <script type="application/javascript" src="testing.js"></script> | 11 <script type="application/javascript" src="testing.js"></script> |
| 12 <style>x-greeter { display: block; }</style> | 12 <style>x-greeter { display: block; }</style> |
| 13 </head> | 13 </head> |
| 14 <body> | 14 <body> |
| 15 <element name="x-greeter" extends="div" constructor="Greeter"> | 15 <element name="x-greeter" extends="div" constructor="Greeter"> |
| 16 <template>{{greetIng}}, {{title}}{{ending}}</template> | 16 <template>{{greetIng}}, {{title}}{{ending}}</template> |
| 17 <script type='application/dart'> | 17 <script type='application/dart'> |
| 18 import 'common.dart'; | 18 import 'common.dart'; |
| 19 import 'package:web_components/web_components.dart'; | 19 import 'package:web_ui/web_ui.dart'; |
| 20 class Greeter extends WebComponent { | 20 class Greeter extends WebComponent { |
| 21 String greetIng, ending; | 21 String greetIng, ending; |
| 22 } | 22 } |
| 23 </script> | 23 </script> |
| 24 </element> | 24 </element> |
| 25 <p> | 25 <p> |
| 26 This test has three loops, each over two items, for a total of six different | 26 This test has three loops, each over two items, for a total of six different |
| 27 greeting messages: | 27 greeting messages: |
| 28 </p> | 28 </p> |
| 29 <!-- note: "title" is a DOM field on all elements. --> | 29 <!-- note: "title" is a DOM field on all elements. --> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 43 var endings = ['??', '!!']; | 43 var endings = ['??', '!!']; |
| 44 main() { | 44 main() { |
| 45 window.setTimeout(() { | 45 window.setTimeout(() { |
| 46 expect(query('x-greeter').attributes, { 'title': 'world' }); | 46 expect(query('x-greeter').attributes, { 'title': 'world' }); |
| 47 window.postMessage('done', '*'); | 47 window.postMessage('done', '*'); |
| 48 }, 0); | 48 }, 0); |
| 49 } | 49 } |
| 50 </script> | 50 </script> |
| 51 </body> | 51 </body> |
| 52 </html> | 52 </html> |
| OLD | NEW |