[TIMOB-2153] Android: Logging and unicode test fails (cannot read property)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:58:15.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.6.0 M01 |
Components | Android |
Labels | android, android_refactor, defect, logging, regression, release-1.6.0, unicode |
Reporter | Thomas Huelbert |
Assignee | Don Thorp |
Created | 2011-04-15T03:12:08.000+0000 |
Updated | 2011-04-17T01:58:15.000+0000 |
Description
1.5.0.70ce98 g2 running 2.2, G1 running 1.6, sim 2.2.
1.BaseUI>Views>Web Views>Logging and Unicode
2.Check adb output
results:
E/Web Console(15156): Uncaught ReferenceError: TiAPI is not defined
at :3
E/Web Console(15156): Uncaught TypeError: Cannot read property
'API' of undefined at
file:///android_asset/Resources/examples/webview_logging.html:5
test results do not appear.
this doesn't seem to occur anymore. Please re-open if you can get it to fail and what else I need to do to recreate it.
Hey Don, poorly written bug.
1.plug into adb
2.run the test at BaseUI>Views>Web Views>Logging and Unicode
note results:
E/Web Console( 2446): Uncaught TypeError: Cannot read property 'API' of undefined at file:///android_asset/Resources/examples/webview_logging.html:5
D/TiAPI ( 2446): (kroll$6) [754,16730] webview loaded: file:///android_asset/Resources/examples/webview_logging.html
the test results appear as expected on the device, but not via adb logcat
1.5.1 as per Don
(from [12d7bf6a90db72fa0aebe538c95128c8a0cdc625]) Inject our Ti JS and JSON near beginning of local (and ONLY local) html file contents or html set directly via the html property. [#2153 state:fixed-in-qa][#2514 state:fixed-in-qa][#1635 state:fixed-in-qa][#1036 state:fixed-in-qa] https://github.com/appcelerator/titanium_mobile/commit/12d7bf6a90db72fa0aebe538c95128c8a0cdc625"> https://github.com/appcelerator/titanium_mobile/commit/12d7bf6a90db...
(from [a18707e021fcf0d46f8c3809ae20bc5b2da47e2c]) [#2153] Drillbit unit test to be sure Titanium/Ti are available in local html files loaded in webview https://github.com/appcelerator/titanium_mobile/commit/a18707e021fcf0d46f8c3809ae20bc5b2da47e2c"> https://github.com/appcelerator/titanium_mobile/commit/a18707e021fc...
(from [ea173edf09a19db3d02ff1cca7af32be089cfeb4]) [#2153] Drillbit unit test to be sure Titanium/Ti are available in webview after manually setting .html property https://github.com/appcelerator/titanium_mobile/commit/ea173edf09a19db3d02ff1cca7af32be089cfeb4"> https://github.com/appcelerator/titanium_mobile/commit/ea173edf09a1...
Titanium SDK version: 1.6.0 (12/21/10 13:46 8a96481) g2 (2.2) 2.1 sim
(from [6acef0763be05a72fd1d85cfd999f3d5a5bdd851]) [#2153] In drillbit test, omit the cleanup w.close as it causes intermittent seg faults in android 1.6 https://github.com/appcelerator/titanium_mobile/commit/6acef0763be05a72fd1d85cfd999f3d5a5bdd851"> https://github.com/appcelerator/titanium_mobile/commit/6acef0763be0...