[TIMOB-8011] MobileWeb: Titanium: include is failing to load
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2012-03-14T14:27:17.000+0000 |
| Affected Version/s | Release 2.0.0 |
| Fix Version/s | n/a |
| Components | MobileWeb |
| Labels | qe-mw020912 |
| Reporter | Natalie Huynh |
| Assignee | Chris Barber |
| Created | 2012-03-14T14:18:49.000+0000 |
| Updated | 2014-01-28T23:57:35.000+0000 |
Description
Steps To Reproduce:
1. Run filesystem module test 1177
Actual:
Error: Failed to load include "/my.js": 404
Expected:
To load test case without failure
Attachments
| File | Date | Size |
|---|---|---|
| TIMOB-1177.zip | 2012-03-14T14:18:49.000+0000 | 2325523 |
The reason it's not working is because the file does not exist. The logic is correct. You need to change the code to do a require("/iphone/my.js") or move the my.js file from the iphone directory to the root of the resources directory.