[TIMOB-16691] Windows Hybrid: Add error checking when trying to set an invalid property
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-03-25T05:28:36.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2014 Sprint 06, 2014 Sprint 06 Tooling, Release 3.3.0 |
Components | Windows Hybrid |
Labels | module_hybrid, qe-testadded |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2014-03-25T05:25:27.000+0000 |
Updated | 2014-05-20T20:01:23.000+0000 |
Description
When trying to get an invalid property using the reflection api, Windows Hybrid needs to throw an exception.
var currentFolder = tiwp8.staticProperty('Windows.ApplicationModel.Package', 'Current');
var installFolder = currentFolder.property('InstalledLocation'); // works
var foo = currentFolder.property('foo'); // throws an error
Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5517 3_2_X_hybrid pull request: https://github.com/appcelerator/titanium_mobile/pull/5518
Verified fixed on: Windows 8.1 Appcelerator Studio, build: 3.3.0.201405121247 Titanium SDK, build: 3.3.0.v20140514121712 Titanium CLI, build: 3.3.0-dev Windows SDK: 8.0 Nokia Lumia 520: 8.0 Using the test code provided, the application throws an error as expected. Closing