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

Unified Diff: LayoutTests/fast/forms/autocomplete.html

Issue 133703002: Compatible handling of the form.autocomplete IDL attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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/autocomplete.html
diff --git a/LayoutTests/fast/forms/autocomplete.html b/LayoutTests/fast/forms/autocomplete.html
index 0978f372fe93f1211aab64bd766b418bc95efac7..1d40eeb3cf1a95b5ea132138934e49b978bfabaa 100644
--- a/LayoutTests/fast/forms/autocomplete.html
+++ b/LayoutTests/fast/forms/autocomplete.html
@@ -2,6 +2,7 @@
<head>
<script src="../../resources/js-test.js"></script>
<script>
+ window.jsTestIsAsync = true;
tkent 2014/01/14 00:35:33 Why?
sof 2014/01/14 06:39:48 To address the test previously dumping out "TEST C
tkent 2014/01/14 06:58:34 Oh, I see. It seems we don't need to run test() i
function test() {
var form = document.getElementById('form');
var field = document.getElementById('field');
@@ -12,18 +13,16 @@
shouldBeNull("form.getAttribute('autocomplete')");
shouldBeNull("field.getAttribute('autocomplete')");
- shouldBeEqualToString("form.autocomplete", "");
+ shouldBeEqualToString("form.autocomplete", "on");
shouldBeEqualToString("field.autocomplete", "");
- form.autocomplete = 'off';
- field.autocomplete = 'off';
- shouldBeEqualToString("form.getAttribute('autocomplete')", "off");
- shouldBeEqualToString("field.getAttribute('autocomplete')", "off");
-
- form.setAttribute('autocomplete', 'on');
- field.setAttribute('autocomplete', 'on');
- shouldBeEqualToString("form.autocomplete", "on");
- shouldBeEqualToString("field.autocomplete", "on");
+ shouldBeEqualToString("form.autocomplete = 'off'; form.getAttribute('autocomplete')", "off");
+ shouldBeEqualToString("field.autocomplete = 'off'; field.getAttribute('autocomplete')", "off");
+ shouldBeEqualToString("form.setAttribute('autocomplete', 'on'); form.autocomplete", "on");
+ shouldBeEqualToString("field.setAttribute('autocomplete', 'on'); field.autocomplete", "on");
+ shouldBeEqualToString("form.setAttribute('autocomplete', 'indeterminate'); form.autocomplete", "on");
+ shouldBeEqualToString("field.setAttribute('autocomplete', 'indeterminate'); field.autocomplete", "indeterminate");
+ finishJSTest();
}
</script>
</head>
« no previous file with comments | « LayoutTests/fast/dom/element-attribute-js-null-expected.txt ('k') | LayoutTests/fast/forms/autocomplete-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698