| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 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 | 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 template_binding.test.template_binding_test; | 5 library template_binding.test.template_binding_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:html'; | 8 import 'dart:html'; |
| 9 import 'dart:math' as math; | 9 import 'dart:math' as math; |
| 10 import 'package:observe/observe.dart'; | 10 import 'package:observe/observe.dart'; |
| 11 import 'package:observe/mirrors_used.dart'; // make test smaller. | |
| 12 import 'package:template_binding/template_binding.dart'; | 11 import 'package:template_binding/template_binding.dart'; |
| 13 import 'package:unittest/html_config.dart'; | 12 import 'package:unittest/html_config.dart'; |
| 14 import 'package:unittest/unittest.dart'; | 13 import 'package:unittest/unittest.dart'; |
| 15 | 14 |
| 16 // TODO(jmesserly): merge this file? | 15 // TODO(jmesserly): merge this file? |
| 17 import 'binding_syntax.dart' show syntaxTests; | 16 import 'binding_syntax.dart' show syntaxTests; |
| 18 import 'utils.dart'; | 17 import 'utils.dart'; |
| 19 | 18 |
| 20 // Note: this file ported from | 19 // Note: this file ported from |
| 21 // https://github.com/Polymer/TemplateBinding/blob/fcb7a502794f19544f2d4b77c96ee
bb70830591d/tests/tests.js | 20 // https://github.com/Polymer/TemplateBinding/blob/fcb7a502794f19544f2d4b77c96ee
bb70830591d/tests/tests.js |
| (...skipping 2374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2396 } | 2395 } |
| 2397 } | 2396 } |
| 2398 | 2397 |
| 2399 class Issue18Syntax extends BindingDelegate { | 2398 class Issue18Syntax extends BindingDelegate { |
| 2400 prepareBinding(path, name, node) { | 2399 prepareBinding(path, name, node) { |
| 2401 if (name != 'class') return null; | 2400 if (name != 'class') return null; |
| 2402 | 2401 |
| 2403 return (model, _, oneTime) => new PathObserver(model, path); | 2402 return (model, _, oneTime) => new PathObserver(model, path); |
| 2404 } | 2403 } |
| 2405 } | 2404 } |
| OLD | NEW |