Details
-
Type:
Bug
-
Status: Open
-
Priority:
None
-
Resolution: Unresolved
-
Affects Version/s: Release 3.4.0
-
Fix Version/s: None
-
Component/s: Editor, Validation
-
Labels:
-
Environment:
Appcelerator Studio, build: 3.4.0.201409112242
CLI: 3.4.0-dev
Alloy: 1.5.0-dev
Code processor: 1.1.1
SDK: 3.4.0
Mac OSX version 10.9.4
Description
When validation of css or html file is done through the studio through the commands option the results are not as expected. When the css file is selected to do a validation, it shows no error even though there is an error present in the editor for the css file.
This is not a regression as the same issue can be reproduced in appcelerator studio 3.3.0
Steps to reproduce:
1. Create a css file and add the following code:
body { font-family: arial; }
|
h1 { background-color:#CCC; border: 1px solid; color:#39F; text-align: center;}
|
Hello
|
Qwerty
|
!!!Test1
|
@!^$@#&^!
|
!!Error!!!
|
2. observe the editor
3. Go to commands > css > validated selected css file
Actual Results:
1. File created successfully
2. Error icon appears on the left hand gutter
3. Results shows no error (see attachment: CSS_validation_actualResult).
Expected Results:
1. File created successfully
2. Error icon appears on the left hand gutter
3. The same error found on the editor should be detected: Lexical error at line 5, column 2. Encountered: "Unable to render embedded object: File ( ") not found." Unable to render embedded object: File (Test1 !$#&) not found. Unable to render embedded object: File (Error) not found.
Uploading this css file separately to http://jigsaw.w3.org/css-validator shows the expected results (see attachment: CSS_validation_expectedResult)