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

Unified Diff: test/iron_selector_template_repeat_test.dart

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 2 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 | « test/iron_selector_multi_test.html ('k') | test/paper_badge_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/iron_selector_template_repeat_test.dart
diff --git a/test/iron_selector_template_repeat_test.dart b/test/iron_selector_template_repeat_test.dart
index 51bcdc5241947d0db1a8ce092b6502dac45b6e50..0b93aaea53dc29e96172f1bae07ae4ae12a63caf 100644
--- a/test/iron_selector_template_repeat_test.dart
+++ b/test/iron_selector_template_repeat_test.dart
@@ -7,6 +7,7 @@ library polymer_elements.test.iron_selector_template_repeat_test;
import 'dart:async';
import 'dart:html';
import 'dart:js';
+import 'package:polymer/polymer.dart';
import 'package:polymer_elements/iron_selector.dart';
import 'package:test/test.dart';
import 'package:web_components/web_components.dart';
@@ -16,24 +17,24 @@ main() async {
await initWebComponents();
group('dom-repeat', () {
- JsObject scope, t;
+ DomBind scope;
+ DomRepeat t;
IronSelector s;
setUp(() {
- scope = new JsObject.fromBrowserObject(
- document.querySelector('template[is="dom-bind"]'));
- s = scope[r'$']['selector'];
- t = new JsObject.fromBrowserObject(scope[r'$']['t']);
- t['items'] = new JsObject.jsify([
+ scope = document.querySelector('template[is="dom-bind"]');
+ s = scope.$['selector'];
+ t = scope.$['t'];
+ t.items = [
{'name': 'item0'},
{'name': 'item1'},
{'name': 'item2'},
{'name': 'item3'}
- ]);
+ ];
});
tearDown(() {
- t['items'] = new JsObject.jsify([]);
+ t.items = [];
});
test('supports repeated items', () {
@@ -58,7 +59,7 @@ main() async {
// check selected
expect(s.selected, '1');
// update items
- t['items'] = new JsObject.jsify([{'name': 'foo'}, {'name': 'bar'}]);
+ t.items = [{'name': 'foo'}, {'name': 'bar'}];
wait(1).then((_) {
// check items
expect(s.items.length, 2);
« no previous file with comments | « test/iron_selector_multi_test.html ('k') | test/paper_badge_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698