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> |