[TIMOB-2079] Android: runtime errors on sound test cases (setToolbar)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:58:01.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 M05 |
Components | Android |
Labels | android, defect, error, regression, runtime |
Reporter | Thomas Huelbert |
Assignee | Don Thorp |
Created | 2011-04-15T03:09:50.000+0000 |
Updated | 2011-04-17T01:58:01.000+0000 |
Description
g1 running 1.6 and the sim running 2.2 Ti Mobile sdk 1.5.0.02c264.
1.Phone>sound>any test case
results: runtime errors on load
E/KrollContext( 7843): (kroll$8) [2437,96278] ECMA Error
evaluating source: TypeError: Cannot find function setToolbar in
object [Ti.UI.Window]. (app://examples/sound_file.js#167)
E/KrollContext( 7843): org.mozilla.javascript.EcmaError: TypeError:
Cannot find function setToolbar in object [Ti.UI.Window].
(app://examples/sound_file.js#167)
E/KrollContext( 7843): at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3761)
E/KrollContext( 7843): at
org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3739)
E/KrollContext( 7843): at
org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3767)
E/KrollContext( 7843): at
org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3786)
E/KrollContext( 7843): at
org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3850)
E/KrollContext( 7843): at
org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2343)
E/KrollContext( 7843): at
org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)
E/KrollContext( 7843): at
org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1524)
E/KrollContext( 7843): at
script(app://examples/sound_file.js:167)
E/KrollContext( 7843): at
org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
E/KrollContext( 7843): at
org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
E/KrollContext( 7843): at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
E/KrollContext( 7843): at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
E/KrollContext( 7843): at
org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
E/KrollContext( 7843): at
org.mozilla.javascript.Context.evaluateReader(Context.java:1142)
E/KrollContext( 7843): at
org.appcelerator.titanium.kroll.KrollContext.evaluateScript(Unknown
Source)
E/KrollContext( 7843): at
org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(Unknown
Source)
E/KrollContext( 7843): at
org.appcelerator.titanium.kroll.KrollContext.handleMessage(Unknown
Source)
E/KrollContext( 7843): at
android.os.Handler.dispatchMessage(Handler.java:95)
E/KrollContext( 7843): at
android.os.Looper.loop(Looper.java:123)
E/KrollContext( 7843): at
org.appcelerator.titanium.kroll.KrollHandlerThread.run(Unknown
Source)
Comments
- Don Thorp 2011-04-15
This is actually a test defect. Calling an iPhone only method. We're going to start getting out of providing dummy methods for iPhone especially since it makes it harder on the end user when they don't see the code in the test and iPhone doesn't do the same for Android or BB features. It just won't scale.
- Don Thorp 2011-04-15
Assigning to Ralf right now until we can figure the general problem out.
- Ralf Pfeiffer 2011-04-15
I am assigning to Don to take the action to modify the KS such that Android (and IOS) does not fail
- Don Thorp 2011-04-15
Not yet working on it.
- Don Thorp 2011-04-15
(from [43358e5f7b4bb194f79e343398f648008b353293]) -[#2079] fixed examples, local sound has a path problem to look at still https://github.com/appcelerator/titanium_mobile/commit/43358e5f7b4bb194f79e343398f648008b353293"> https://github.com/appcelerator/titanium_mobile/commit/43358e5f7b4b...
- Don Thorp 2011-04-15
- Thomas Huelbert 2011-04-15
Titanium SDK version: 1.5.0 (12/10/10 08:19 f37ab6c) G2 (2.2)