diff options
Diffstat (limited to 'dom/html/test/forms/test_valueAsDate_pref.html')
-rw-r--r-- | dom/html/test/forms/test_valueAsDate_pref.html | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/dom/html/test/forms/test_valueAsDate_pref.html b/dom/html/test/forms/test_valueAsDate_pref.html index 91e2e1bfc..0369980e4 100644 --- a/dom/html/test/forms/test_valueAsDate_pref.html +++ b/dom/html/test/forms/test_valueAsDate_pref.html @@ -12,11 +12,12 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=874640 /** Test for Bug 874640 **/ var states = [ - // dom.experimental_forms, dom.forms.datetime, expectedValueAsDate - [ 'true', 'true', 'true' ], - [ 'true', 'false', 'true' ], - [ 'false', 'true', 'true' ], - [ 'false', 'false', 'false' ], + // dom.experimental_forms, dom.forms.datetime, dom.forms.datetime.others, expectedValueAsDate + [ 'true', 'true', ,'true', 'true' ], + [ 'true', 'false', 'false', 'true' ], + [ 'false', 'true', 'false', 'true' ], + [ 'false', 'false', 'true', 'true' ], + [ 'false', 'false', 'false', 'false' ], 'end' ]; @@ -32,11 +33,12 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=874640 SpecialPowers.pushPrefEnv({"set":[ ["dom.experimental_forms", state[0] === 'true'], - ["dom.forms.datetime", state[1] === 'true']]}, + ["dom.forms.datetime", state[1] === 'true'], + ["dom.forms.datetime.others", state[2] === 'true']]}, function() { iframe.src = 'data:text/html,<script>' + 'parent.is("valueAsDate" in document.createElement("input"), ' + - state[2] + ', "valueAsDate presence state should be ' + state[2] + '");' + + state[3] + ', "valueAsDate presence state should be ' + state[3] + '");' + '<\/script>' }); } |