Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(975)

Unified Diff: pkg/mdv/test/custom_element_bindings_test.dart

Issue 17552019: Reorganize mdv and observe packages (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merged Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/mdv/test/binding_syntax_test.dart ('k') | pkg/mdv/test/element_bindings_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/mdv/test/custom_element_bindings_test.dart
diff --git a/tests/html/custom_element_bindings_test.dart b/pkg/mdv/test/custom_element_bindings_test.dart
similarity index 97%
rename from tests/html/custom_element_bindings_test.dart
rename to pkg/mdv/test/custom_element_bindings_test.dart
index 6548a7f908ac9eaf395dcfddf425cc3f98e2d71b..af9919e4b6e066ce2dc10fc99b3661e42ce62a43 100644
--- a/tests/html/custom_element_bindings_test.dart
+++ b/pkg/mdv/test/custom_element_bindings_test.dart
@@ -6,12 +6,14 @@ library custom_element_bindings_test;
import 'dart:async';
import 'dart:html';
-import 'package:mdv_observe/mdv_observe.dart';
+import 'package:mdv/mdv.dart' as mdv;
+import 'package:observe/observe.dart';
import 'package:unittest/html_config.dart';
import 'package:unittest/unittest.dart';
-import 'mdv_observe_utils.dart';
+import 'observe_utils.dart';
main() {
+ mdv.initialize();
useHtmlConfiguration();
group('Custom Element Bindings', customElementBindingsTest);
}
@@ -120,7 +122,7 @@ customElementBindingsTest() {
'</my-custom-element>'
'</template>');
- TemplateElement.instanceCreated.listen((fragment) {
+ mdv.instanceCreated.listen((fragment) {
for (var e in fragment.queryAll('my-custom-element')) {
new MyCustomElement.attach(e);
}
@@ -208,14 +210,12 @@ class MyCustomElement implements Element {
switch (name) {
case 'my-point':
if (_sub1 != null) {
- print('!!! unbind $name');
_sub1.cancel();
_sub1 = null;
}
return;
case 'scary-monster':
if (_sub2 != null) {
- print('!!! unbind $name');
_sub2.cancel();
_sub2 = null;
}
« no previous file with comments | « pkg/mdv/test/binding_syntax_test.dart ('k') | pkg/mdv/test/element_bindings_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698