Mercurial > wow > squawk
comparison Tests.lua @ 4:d1383f2d9b43
more on the tests and the framework towards the viewer
author | wobin |
---|---|
date | Fri, 17 Apr 2009 20:42:31 +1000 |
parents | 1cc6e4710e2e |
children | d19385c4a282 |
comparison
equal
deleted
inserted
replaced
3:1cc6e4710e2e | 4:d1383f2d9b43 |
---|---|
3 if not Squawk then return end | 3 if not Squawk then return end |
4 | 4 |
5 --[[ | 5 --[[ |
6 --Tests we need to do: | 6 --Tests we need to do: |
7 -- | 7 -- |
8 -- - | 8 -- Add a follower |
9 -- Remove a follower | |
10 -- Request to follow someone | |
11 -- Recieve a request from a follower | |
12 -- Send a Squawk | |
13 -- Recieve a direct Squawk | |
14 -- Send a Squawk to the Guild | |
15 -- Recieve a Squawk from the Guild | |
9 --]] | 16 --]] |
17 -- | |
18 | |
19 SquawkTester = LibStub("AceAddon-3.0", "AceComm-3.0", "AceConsole-3.0") | |
20 | |
21 local Test = SquawkTester | |
22 | |
23 function Test:OnInitialize() | |
24 self:RegisterComm("Squawk", ReceiveMessage) | |
25 self:RegisterSlashCommand("TestSquawk", "RunTests") | |
26 end | |
27 | |
28 function Test:RunTests() | |
29 | |
30 end | |
31 | |
32 function Test:AddFollower() | |
33 | |
34 end | |
35 | |
36 function Test:ReceiveMessage(Prefix, Message, Distribution, Sender) | |
37 end | |
38 | |
39 function Test:SendMessageDirectly(Message) | |
40 | |
41 end |