Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2153] Android: Logging and unicode test fails (cannot read property)

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:58:15.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M01
ComponentsAndroid
Labelsandroid, android_refactor, defect, logging, regression, release-1.6.0, unicode
ReporterThomas Huelbert
AssigneeDon Thorp
Created2011-04-15T03:12:08.000+0000
Updated2011-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.

Comments

  1. Don Thorp 2011-04-15

    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.

  2. Thomas Huelbert 2011-04-15

    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

  3. Thomas Huelbert 2011-04-15

    1.5.1 as per Don

  4. Bill Dawson 2011-04-15

    (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...

  5. Bill Dawson 2011-04-15

    (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...

  6. Bill Dawson 2011-04-15

    (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...

  7. Thomas Huelbert 2011-04-15

    Titanium SDK version: 1.6.0 (12/21/10 13:46 8a96481) g2 (2.2) 2.1 sim

  8. Bill Dawson 2011-04-15

    (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...

JSON Source