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

Unified Diff: LayoutTests/fast/forms/reset-autofilled.html

Issue 26622007: Move isAutofilled and setAutofilled from HTMLInputElement to HTMLFormControlElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
Index: LayoutTests/fast/forms/reset-autofilled.html
diff --git a/LayoutTests/fast/forms/reset-autofilled.html b/LayoutTests/fast/forms/reset-autofilled.html
index c4a161a4f47d7af0232d555fca0c1f702cb4ac9b..e6d95ccd9da7ac52533308d0718c2c5af78e1ebe 100644
--- a/LayoutTests/fast/forms/reset-autofilled.html
+++ b/LayoutTests/fast/forms/reset-autofilled.html
@@ -1,4 +1,3 @@
-<html>
<head>
<script src="../js/resources/js-test-pre.js"></script>
<script>
@@ -12,14 +11,18 @@
}
var field = document.getElementById('field');
+ var select = document.getElementById('select');
+ var textarea = document.getElementById('textarea');
if (window.internals) {
window.internals.setAutofilled(field, true);
+ window.internals.setAutofilled(select, true);
+ window.internals.setAutofilled(textarea, true);
} else {
testFailed('This test requires a LayoutTestController.');
return;
}
- shouldBe('countAutofilledElements()', '1');
+ shouldBe('countAutofilledElements()', '3');
var form = document.getElementById('form');
form.reset();
@@ -38,8 +41,9 @@
<body onload="test()">
This tests that a field's autofilled state is reverted when the form is reset. It can only be run using DumpRenderTree.<br>
<form id="form">
- <input type="text" id="field" />
+ <input type="text" id="field">
+ <select id="select"></select>
+ <textarea id="textarea"></textarea>
</form>
<div id="console"></div>
</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698