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

Unified Diff: test/iron_selector_content_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_basic_test.dart ('k') | test/iron_selector_exclude_local_names_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/iron_selector_content_test.dart
diff --git a/test/iron_selector_content_test.dart b/test/iron_selector_content_test.dart
index 29928282e38039862b207147d71ce0a5cf283549..c4c192a3164010355b89e09e85e6982d4ed90beb 100644
--- a/test/iron_selector_content_test.dart
+++ b/test/iron_selector_content_test.dart
@@ -9,6 +9,7 @@ import 'dart:html';
import 'dart:js';
import 'package:polymer_elements/iron_selector.dart';
import 'package:polymer_interop/polymer_interop.dart';
+import 'package:polymer/polymer.dart';
import 'package:test/test.dart';
import 'package:web_components/web_components.dart';
import 'common.dart';
@@ -16,15 +17,13 @@ import 'fixtures/content_element.dart';
/// Used imports: [IronSelector]
main() async {
- await initWebComponents();
+ await initPolymer();
TestContentElement s1 = document.querySelector('#selector1');
TestContentElement s2 = document.querySelector('#selector2');
TestContentElement s3 = document.querySelector('#selector3');
- // TODO(jakemac): Remove JsObject conversion once
- // https://github.com/dart-lang/polymer_interop/issues/7 is implemented.
- var t = new JsObject.fromBrowserObject(document.querySelector('#t'));
+ DomRepeat t = document.querySelector('#t');
group('content', () {
test('attribute selected', () {
@@ -113,12 +112,12 @@ main() async {
group('content with dom-repeat', () {
test('supports repeated children', () {
var done = new Completer();
- t['items'] = new JsObject.jsify([
+ t.items = [
{'name': 'item0'},
{'name': 'item1'},
{'name': 'item2'},
{'name': 'item3'}
- ]);
+ ];
wait(1).then((_) {
// check selected
expect(s3.selected, 'item0');
« no previous file with comments | « test/iron_selector_basic_test.dart ('k') | test/iron_selector_exclude_local_names_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698