UIAutomation doesn't load #imports in order
| Originator: | heath.borders | ||
| Number: | rdar://12567752 | Date Originated: | 24-Oct-2012 04:31 PM |
| Status: | Open | Resolved: | |
| Product: | iPad SDK | Product Version: | Version 4.5.1 (4G1004) |
| Classification: | Serious Bug | Reproducible: | Always |
24-Oct-2012 04:31 PM Heath Borders: Summary: If I #import a script with UIAutomation, I expect to be able to use variables that script exposes immediately after #import returns. If I have transitive dependencies, they load out of order. Steps to Reproduce: Use 3 scripts: Test imports A.js A.js imports B.js and calls function C. B.js declares function C. Expected Results: The js files are loaded in the following order: Test.js (since it triggered the script, it should ultimately go first, but should block until all imports are resolved) B.js A.js Actual Results: The js files are loaded in the following order: Test.js A.js B.js This means that I can't use anything declared in B.js in A.js even though A.js imports B.js Regression: Notes: I can workaround this problem by importing all my files in a single js file instead of just importing what I need in my test. 24-Oct-2012 04:31 PM Heath Borders: 'UIAutomationIncludeBug.zip' was successfully uploaded
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!