Index: LayoutTests/fast/forms/form-request-autocomplete.html |
diff --git a/LayoutTests/fast/forms/form-request-autocomplete.html b/LayoutTests/fast/forms/form-request-autocomplete.html |
index 815603b6e06b060b4f0532ce622d914cf49a212f..705b5aacb195e1c3d702557e58b67c9b57dc199d 100644 |
--- a/LayoutTests/fast/forms/form-request-autocomplete.html |
+++ b/LayoutTests/fast/forms/form-request-autocomplete.html |
@@ -23,16 +23,14 @@ function runTests() |
function checkForEnumerableProperties(form) |
{ |
- var enumerated = false; |
- for (var field in form) { |
- if (/^onautocomplete/i.test(field)) |
- testFailed('enumerable form attribute found on HTMLFormElement: ' + field); |
- enumerated = true; |
- } |
- if (enumerated) |
- testPassed('no enumerable properties on HTMLFormElement'); |
- else |
- testFailed('failed to enumerate HTMLFormElement properties'); |
+ var enumerable = {}; |
+ for (var field in form) |
+ enumerable[field] = true; |
+ if (!enumerable.onautocomplete) |
+ testFailed('failed to enumerate HTMLFormElement.onautocomplete'); |
+ if (!enumerable.onautocompleteerror) |
+ testFailed('failed to enumerate HTMLFormElement.onautocompleteerror'); |
+ testPassed('found enumerable properties on HTMLFormElement'); |
} |
function checkDynamicAttributes() |