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

Unified Diff: tests/html/custom/document_register_type_extensions_test.dart

Issue 23242007: Fix caught by analyzer (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/custom/document_register_type_extensions_test.dart
diff --git a/tests/html/custom/document_register_type_extensions_test.dart b/tests/html/custom/document_register_type_extensions_test.dart
index 3566111ffbb06ba9a6de51cfe50cca674990c3cf..587e96c9a21a8b2bed3f3e180136518747b7df6e 100644
--- a/tests/html/custom/document_register_type_extensions_test.dart
+++ b/tests/html/custom/document_register_type_extensions_test.dart
@@ -40,7 +40,7 @@ main() {
var testForm = new FormElement()..id = 'testForm';
document.body.append(testForm);
- var isFormElement = (element) {
+ var isFormControl = (element) {
testForm.append(element);
return element.form == testForm;
};
@@ -67,7 +67,7 @@ main() {
expect(barNewed.outerHtml, barOuterHtml);
expect(barNewed is Bar, isTrue);
expect(barNewed is InputElement, isTrue);
- expect(isFormElement(barNewed), isTrue);
+ expect(isFormControl(barNewed), isTrue);
var bazNewed = new Baz();
var bazOuterHtml = "<x-baz></x-baz>";
@@ -81,7 +81,7 @@ main() {
expect(quxNewed.outerHtml, quxOuterHtml);
expect(quxNewed is Qux, isTrue);
expect(quxNewed is InputElement, isTrue);
- expect(isFormElement(quxNewed), isTrue);
+ expect(isFormControl(quxNewed), isTrue);
// new Element.tag
@@ -128,7 +128,7 @@ main() {
var fooBarCreated =
document.$dom_createElement(Foo.tag, Bar.tag);
- expect(fooBasedCreated.outerHtml, '<x-foo is="x-bar"></x-foo>');
+ expect(fooBarCreated.outerHtml, '<x-foo is="x-bar"></x-foo>');
expect(fooBarCreated is Foo, isTrue);
var barFooCreated = document.$dom_createElement(Bar.tag,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698