Commit 56960ed2c95b8f43c028c7f4e05795fea9888475
1 parent
a467b4e5
Exists in
master
Correção do método que busca a quantidade de itens avaliados e alteração
do elemento e atributos da recomendação 6.2.1 do testeEselo.properties.
Showing
2 changed files
with
20 additions
and
1 deletions
Show diff stats
src/main/java/br/com/ases/business/impl/AvaliacaoBusinessImpl.java
... | ... | @@ -106,10 +106,29 @@ public class AvaliacaoBusinessImpl implements AvaliacaoBusiness { |
106 | 106 | for (String elementoBuscar : elementosBuscar) { |
107 | 107 | for (Element element : documento.getAllElements(elementoBuscar)) { |
108 | 108 | for (String atributoBuscar : atributosBuscar) { |
109 | + | |
110 | + if(element.getStartTag().getName().equalsIgnoreCase("input")) | |
111 | + { | |
112 | + if(!element.getAttributeValue(atributoBuscar).equalsIgnoreCase("button") | |
113 | + && !element.getAttributeValue(atributoBuscar).equalsIgnoreCase("reset") | |
114 | + && !element.getAttributeValue(atributoBuscar).equalsIgnoreCase("submit") | |
115 | + && !element.getAttributeValue(atributoBuscar).equalsIgnoreCase("hidden") | |
116 | + && !element.getAttributeValue(atributoBuscar).equalsIgnoreCase("image")) | |
117 | + { | |
118 | + qtdItens = qtdItens + (element.getAttributeValue(atributoBuscar) != null? 1 : 0); | |
119 | + } | |
120 | + }else if(element.getStartTag().getName().equalsIgnoreCase("textarea") || | |
121 | + element.getStartTag().getName().equalsIgnoreCase("select")) | |
122 | + { | |
123 | + qtdItens++; | |
124 | + } | |
125 | + else | |
126 | + { | |
109 | 127 | qtdItens = qtdItens + (element.getAttributeValue(atributoBuscar) != null? 1 : 0); |
110 | 128 | } |
111 | 129 | } |
112 | 130 | } |
131 | + } | |
113 | 132 | }else if(tipoTeste.equalsIgnoreCase("startTag")) |
114 | 133 | { |
115 | 134 | qtdItens = documento.getAllStartTags().size(); | ... | ... |
src/main/webapp/WEB-INF/testeEselo.properties
... | ... | @@ -69,7 +69,7 @@ |
69 | 69 | 5.3.1=proporcional=false=e=videoembed |
70 | 70 | 5.4.1=proporcional=false=e=audio=embed |
71 | 71 | 6.1.1=proporcional=true=e=input |
72 | -6.2.1=proporcional=true=e=label | |
72 | +6.2.1=proporcional=true=ea=einput=etextarea=eselect=atype | |
73 | 73 | 6.3.1=falso=false=ea=eFORM=atabindex |
74 | 74 | 6.4.1=falso=false=ea=eFORM=aONCHANGE=aONBLUR=aONFOCUS=aONFORMCHANGE=aONFORMINPUT=aONINPUT=aONINVALID=aONRESET=aONSELECT=aONSUBMIT=aONKEYDOWN=aONKEYPRESS=aONKEYUP=aONCLICK |
75 | 75 | 6.4.2=falso=false=ea=eFORM=aONDBLCLICK=aONDRAG=aONDRAGEND=aONDRAGENTER=aONDRAGLEAVE=aONDRAGOVER=aONDRAGSTART=aONDROP=aONMOUSEDOWN=aONMOUSEMOVE=aONMOUSEOUT=aONMOUSEOVER=aONMOUSEUP=aONMOUSEWHEEL=aONSCROLL | ... | ... |