PageRenderTime 21ms CodeModel.GetById 12ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://macfuse.googlecode.com/
Unknown | 60 lines | 50 code | 10 blank | 0 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
17script parentTestScript
18	property parentTestScriptProperty : 6
19	on parentTestScriptFunc()
20		return "parent"
21	end parentTestScriptFunc
22end script
23
24script testScript
25	property parent : parentTestScript
26	property testScriptProperty : 5
27	on testScriptFunc()
28		return "child"
29	end testScriptFunc
30	on open foo
31	end open
32end script
33
34property foo : 1
35
36on test()
37end test
38
39on testReturnOne()
40	return 1
41end testReturnOne
42
43on testReturnParam(param)
44	return param
45end testReturnParam
46
47on testAddParams(param1, param2)
48	return param1 + param2
49end testAddParams
50
51on testAdd of a onto b given otherValue:d
52	return a + b + d
53end testAdd
54
55on testGetScript()
56	return testScript
57end testGetScript
58
59on print
60end print