Titanium JIRA Archive
Alloy (ALOY)

[ALOY-948] Alloy: LiveView: runtime tests not working if LiveView is enabled

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2014-08-01T00:28:07.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsqe-3.2.1
ReporterFederico Casali
AssigneeUnknown
Created2014-02-05T00:39:59.000+0000
Updated2018-03-07T22:28:28.000+0000

Description

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'

Attachments

FileDateSize
device-2014-02-04-162647.png2014-02-05T00:39:59.000+000063157
Screen Shot 2014-02-04 at 4.23.09 PM.png2014-02-05T00:39:59.000+000046594

Comments

  1. Tim Poulsen 2014-08-01

    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.
  2. Eric Merriman 2018-03-07

    Closing as invalid. If this is incorrect, please reopen.

JSON Source