WW-3952 Fixes test
Project: http://git-wip-us.apache.org/repos/asf/struts/repo Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/6ef9f7a3 Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/6ef9f7a3 Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/6ef9f7a3 Branch: refs/heads/master Commit: 6ef9f7a3aadd1c9dea5ca7a7a5ae350f37e6e96b Parents: 9eec07b Author: Lukasz Lenart <lukaszlen...@apache.org> Authored: Sun Apr 23 10:31:13 2017 +0200 Committer: Lukasz Lenart <lukaszlen...@apache.org> Committed: Sun Apr 23 10:31:13 2017 +0200 ---------------------------------------------------------------------- .../resources/org/apache/struts2/views/jsp/ui/Formtag-2.txt | 8 ++++---- .../resources/org/apache/struts2/views/jsp/ui/Formtag-22.txt | 8 ++++---- .../resources/org/apache/struts2/views/jsp/ui/Formtag-24.txt | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/struts/blob/6ef9f7a3/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-2.txt ---------------------------------------------------------------------- diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-2.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-2.txt index 806a94e..62d566c 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-2.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-2.txt @@ -36,9 +36,9 @@ function validateForm_doubleValidationAction() { var getFieldValue = function(field) { var type = field.type ? field.type : field[0].type; - if(type == 'select-one' || type == 'select-multiple') { - return (field.selectedIndex == -1 ? "" : field.options[field.selectedIndex].value); - } else if(type=='checkbox'||type=='radio') { + if(type === 'select-one' || type === 'select-multiple') { + return (field.selectedIndex === -1 ? "" : field.options[field.selectedIndex].value); + } else if(type==='checkbox'||type==='radio') { if(!field.length){ field=[field]; } @@ -62,7 +62,7 @@ field = form.elements['myUpDownSelectTag']; var error = "bar must be between 6000.1 and 10000.1."; var fieldValue=getFieldValue(field); - if(continueValidation && fieldValue != null) { + if(continueValidation && fieldValue !== null) { var value = parseFloat(fieldValue); if(value < 6000.1 || value>10000.1 || false || false){ addError(field, error); http://git-wip-us.apache.org/repos/asf/struts/blob/6ef9f7a3/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-22.txt ---------------------------------------------------------------------- diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-22.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-22.txt index 710ad54..136dc15 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-22.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-22.txt @@ -35,9 +35,9 @@ function validateForm_doubleValidationAction() { var getFieldValue = function(field) { var type = field.type ? field.type : field[0].type; - if(type == 'select-one' || type == 'select-multiple') { - return (field.selectedIndex == -1 ? "" : field.options[field.selectedIndex].value); - } else if(type == 'checkbox' || type == 'radio') { + if(type === 'select-one' || type === 'select-multiple') { + return (field.selectedIndex === -1 ? "" : field.options[field.selectedIndex].value); + } else if(type === 'checkbox' || type === 'radio') { if(!field.length) { field = [field]; } @@ -61,7 +61,7 @@ field = form.elements['myUpDownSelectTag']; var error = "bar must be between 6000.1 and 10000.1."; var fieldValue=getFieldValue(field); - if(continueValidation && fieldValue != null) { + if(continueValidation && fieldValue !== null) { var value = parseFloat(fieldValue); if(value < 6000.1 || value>10000.1 || false || false){ addError(field, error); http://git-wip-us.apache.org/repos/asf/struts/blob/6ef9f7a3/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-24.txt ---------------------------------------------------------------------- diff --git a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-24.txt b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-24.txt index f512ff4..a27432a 100644 --- a/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-24.txt +++ b/core/src/test/resources/org/apache/struts2/views/jsp/ui/Formtag-24.txt @@ -35,9 +35,9 @@ function validateForm_doubleValidationAction() { var getFieldValue = function(field) { var type = field.type ? field.type : field[0].type; - if(type == 'select-one' || type == 'select-multiple') { - return (field.selectedIndex == -1 ? "" : field.options[field.selectedIndex].value); - } else if(type == 'checkbox' || type == 'radio') { + if(type === 'select-one' || type === 'select-multiple') { + return (field.selectedIndex === -1 ? "" : field.options[field.selectedIndex].value); + } else if(type === 'checkbox' || type === 'radio') { if(!field.length) { field=[field]; } @@ -61,7 +61,7 @@ field = form.elements['myUpDownSelectTag']; var error = "bar must be between 6000.1 and 10000.1."; var fieldValue = getFieldValue(field); - if(continueValidation && fieldValue != null) { + if(continueValidation && fieldValue !== null) { var value = parseFloat(fieldValue); if(value < 6000.1 || value > 10000.1 || false || false) { addError(field, error);