summaryrefslogtreecommitdiffstats
path: root/dom/html/test
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-15 14:39:19 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-15 14:39:19 +0200
commit054dde272820f12b4f3c60ee4c8b7ede47126aa6 (patch)
tree48646cf011ed28c2ae0af8f4f01dabdd270916fa /dom/html/test
parent4cfe5d84de0b8976f8bc5c005ae12ac3adf8f18a (diff)
downloadUXP-054dde272820f12b4f3c60ee4c8b7ede47126aa6.tar
UXP-054dde272820f12b4f3c60ee4c8b7ede47126aa6.tar.gz
UXP-054dde272820f12b4f3c60ee4c8b7ede47126aa6.tar.lz
UXP-054dde272820f12b4f3c60ee4c8b7ede47126aa6.tar.xz
UXP-054dde272820f12b4f3c60ee4c8b7ede47126aa6.zip
Bug 1344642 - Part 1: Cleanup dom.forms.datepicker related code
Diffstat (limited to 'dom/html/test')
-rw-r--r--dom/html/test/forms/test_input_types_pref.html14
-rw-r--r--dom/html/test/forms/test_valueAsDate_pref.html16
2 files changed, 10 insertions, 20 deletions
diff --git a/dom/html/test/forms/test_input_types_pref.html b/dom/html/test/forms/test_input_types_pref.html
index 243836f34..73c4d65ab 100644
--- a/dom/html/test/forms/test_input_types_pref.html
+++ b/dom/html/test/forms/test_input_types_pref.html
@@ -37,23 +37,15 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=764481
inputType: "color",
expectedType: "color"
}, {
- prefs: [["dom.experimental_forms", false], ["dom.forms.datepicker", false],
- ["dom.forms.datetime", false]],
+ prefs: [["dom.experimental_forms", false], ["dom.forms.datetime", false]],
inputType: "date",
expectedType: "text"
}, {
- prefs: [["dom.experimental_forms", true], ["dom.forms.datepicker", false],
- ["dom.forms.datetime", false]],
+ prefs: [["dom.experimental_forms", true], ["dom.forms.datetime", false]],
inputType: "date",
expectedType: "date"
}, {
- prefs: [["dom.experimental_forms", false], ["dom.forms.datepicker", true],
- ["dom.forms.datetime", false]],
- inputType: "date",
- expectedType: "date"
- }, {
- prefs: [["dom.experimental_forms", false], ["dom.forms.datepicker", false],
- ["dom.forms.datetime", true]],
+ prefs: [["dom.experimental_forms", false], ["dom.forms.datetime", true]],
inputType: "date",
expectedType: "date"
}, {
diff --git a/dom/html/test/forms/test_valueAsDate_pref.html b/dom/html/test/forms/test_valueAsDate_pref.html
index 8518c291b..91e2e1bfc 100644
--- a/dom/html/test/forms/test_valueAsDate_pref.html
+++ b/dom/html/test/forms/test_valueAsDate_pref.html
@@ -12,12 +12,11 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=874640
/** Test for Bug 874640 **/
var states = [
- // dom.experimental_forms, dom.forms.datepicker, dom.forms.datetime, expectedValueAsDate
- [ 'true', 'true', 'true', 'true' ],
- [ 'true', 'false', 'false', 'true' ],
- [ 'false', 'true', 'false', 'true' ],
- [ 'false', 'false', 'true', 'true' ],
- [ 'false', 'false', 'false', 'false' ],
+ // dom.experimental_forms, dom.forms.datetime, expectedValueAsDate
+ [ 'true', 'true', 'true' ],
+ [ 'true', 'false', 'true' ],
+ [ 'false', 'true', 'true' ],
+ [ 'false', 'false', 'false' ],
'end'
];
@@ -33,12 +32,11 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=874640
SpecialPowers.pushPrefEnv({"set":[
["dom.experimental_forms", state[0] === 'true'],
- ["dom.forms.datepicker", state[1] === 'true'],
- ["dom.forms.datetime", state[2] === 'true']]},
+ ["dom.forms.datetime", state[1] === 'true']]},
function() {
iframe.src = 'data:text/html,<script>' +
'parent.is("valueAsDate" in document.createElement("input"), ' +
- state[3] + ', "valueAsDate presence state should be ' + state[3] + '");' +
+ state[2] + ', "valueAsDate presence state should be ' + state[2] + '");' +
'<\/script>'
});
}