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

Unified Diff: test/iron_input_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_iconset_test.dart ('k') | test/iron_list_different_heights_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/iron_input_test.dart
diff --git a/test/iron_input_test.dart b/test/iron_input_test.dart
index a10e94ee56113b651a73c43ee48f89f103816d09..05046131c0ae3881cd0c901c3d85f21956dad03f 100644
--- a/test/iron_input_test.dart
+++ b/test/iron_input_test.dart
@@ -7,13 +7,15 @@ library polymer_elements.test.iron_input_test;
import 'dart:async';
import 'dart:html';
import 'dart:js';
+import 'package:polymer/polymer.dart';
import 'package:polymer_elements/iron_input.dart';
import 'package:test/test.dart';
import 'package:web_components/web_components.dart';
import 'common.dart';
main() async {
- await initWebComponents();
+ await initPolymer();
+ var x = 'hello';
group('basic', () {
test('setting bindValue sets value', () {
@@ -47,12 +49,11 @@ main() async {
});
test('set bindValue to undefined', () {
- var scope = new JsObject.fromBrowserObject(
- document.getElementById('bind-to-object'));
+ DomBind scope = document.getElementById('bind-to-object');
scope['foo'] = null;
- expect(scope[r'$']['input'].bindValue, isNull,
+ expect(scope.$['input'].bindValue, isNull,
reason: 'bindValue is falsy');
- expect(scope[r'$']['input'].value, isEmpty, reason: 'value is falsy');
+ expect(scope.$['input'].value, isEmpty, reason: 'value is falsy');
});
test('validator used instead of constraints api if provided', () {
« no previous file with comments | « test/iron_iconset_test.dart ('k') | test/iron_list_different_heights_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698