/core/externals/update-engine/externals/google-toolbox-for-mac/Foundation/GTMNSAppleEvent+HandlerTest.applescript

http://macfuse.googlecode.com/ · AppleScript · 60 lines · 35 code · 10 blank · 15 comment · 0 complexity · a64f7763fe1a74df9d05744894cc0527 MD5 · raw file

  1. --
  2. -- Copyright 2008 Google Inc.
  3. --
  4. -- Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. -- use this file except in compliance with the License. You may obtain a copy
  6. -- of the License at
  7. --
  8. -- http://www.apache.org/licenses/LICENSE-2.0
  9. --
  10. -- Unless required by applicable law or agreed to in writing, software
  11. -- distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. -- WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. -- License for the specific language governing permissions and limitations under
  14. -- the License.
  15. --
  16. script parentTestScript
  17. property parentTestScriptProperty : 6
  18. on parentTestScriptFunc()
  19. return "parent"
  20. end parentTestScriptFunc
  21. end script
  22. script testScript
  23. property parent : parentTestScript
  24. property testScriptProperty : 5
  25. on testScriptFunc()
  26. return "child"
  27. end testScriptFunc
  28. on open foo
  29. end open
  30. end script
  31. property foo : 1
  32. on test()
  33. end test
  34. on testReturnOne()
  35. return 1
  36. end testReturnOne
  37. on testReturnParam(param)
  38. return param
  39. end testReturnParam
  40. on testAddParams(param1, param2)
  41. return param1 + param2
  42. end testAddParams
  43. on testAdd of a onto b given otherValue:d
  44. return a + b + d
  45. end testAdd
  46. on testGetScript()
  47. return testScript
  48. end testGetScript
  49. on print
  50. end print