Problem description
If enabling LiveView, the Alloy runtime tests implemented for most of the samples available (
https://github.com/appcelerator/alloy/tree/master/test/apps) are not being triggered correctly and in most cases nothing is displayed when the app is started.
In the case of Alloy advanced themes sample
https://github.com/appcelerator/alloy/tree/master/test/apps/advanced/themes an Application Error is also displayed when the runtime specs are required if the user click on a button.
See screenshot and error log.
iOS log
[WARN] : New layout set while view [object progressFront] animating: Will relayout after animation.
[ERROR] : Script Error {
[WARN] : New layout set while view [object progressFront] animating: Will relayout after animation.
[WARN] : New layout set while view [object progressFront] animating: Will relayout after animation.
[ERROR] : backtrace = "#0 () at file:///Users/fcasali/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/AB68B2B3-7394-42E3-9D8B-BED50A2C721B/Harness.app/app.js:638\n#1 () at file:///Users/fcasali/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/AB68B2B3-7394-42E3-9D8B-BED50A2C721B/Harness.app/app.js:502\n#2 () at :93\n#3 testPatience() at :6";
[ERROR] : line = 608;
[ERROR] : message = "'undefined' is not a function (evaluating '_src.replace(/\\/\\/(.*)$/gm, '')')";
[ERROR] : name = TypeError;
[ERROR] : sourceId = 309385824;
[ERROR] : sourceURL = "file:///Users/fcasali/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/AB68B2B3-7394-42E3-9D8B-BED50A2C721B/Harness.app/app.js";
[ERROR] : }
[WARN] : New layout set while view [object progressFront] animating: Will relayout after animation.
Android log
[ERROR] : TiExceptionHandler: (main) [3430,3430] ----- Titanium Javascript Runtime Error -----
[ERROR] : TiExceptionHandler: (main) [0,3430] - In app.js:608,16
[ERROR] : TiExceptionHandler: (main) [2,3432] - Message: Uncaught TypeError: Object false has no method 'replace'
[ERROR] : TiExceptionHandler: (main) [0,3432] - Source: _src.replace(/\/\/(.*)$/gm, '').replace(/\n/g, '') +
[WARN] : IdleConnectionHandler: Removing a connection that never existed!
[ERROR] : TiHttpClient: (TiHttpClient-12) [2,3434] HTTP Error (org.apache.http.client.HttpResponseException): Not Found
[ERROR] : TiHttpClient: org.apache.http.client.HttpResponseException: Not Found
[ERROR] : TiHttpClient: at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:258)
[ERROR] : TiHttpClient: at ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:217)
[ERROR] : TiHttpClient: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:657)
[ERROR] : TiHttpClient: at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:637)
[ERROR] : TiHttpClient: at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1287)
[ERROR] : TiHttpClient: at java.lang.Thread.run(Thread.java:841)
[ERROR] : V8Exception: Exception occurred at app.js:608: Uncaught TypeError: Object false has no method 'replace'
Resolving as invalid because a) Ti.include is deprecated and not recommended for Alloy, and b) running the samples with the tests included injects additional code which doesn't represent a realistic situation for use with LiveView.
Closing as invalid. If this is incorrect, please reopen.