~ubuntu-branches/ubuntu/maverick/gnash/maverick

« back to all changes in this revision

Viewing changes to testsuite/misc-haxe.all/classes.all/desktop/Updater_as.hx

  • Committer: Bazaar Package Importer
  • Author(s): Micah Gersten, Micah Gersten, Chris Coulson
  • Date: 2010-09-28 23:38:37 UTC
  • mfrom: (1.1.14 upstream) (3.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20100928233837-wcay0dodera1c7sz
Tags: 0.8.8-5ubuntu1
[ Micah Gersten <micahg@ubuntu.com> ]
* FFe - LP: #636667
* Merge from debian unstable.  Remaining changes:
  + Add Ubuntu flash alternatives in postinst and prerm
    - update debian/browser-plugin-gnash.postinst
    - update debian/browser-plugin-gnash.prerm

[ Chris Coulson <chris.coulson@canonical.com> ]
* Ensure the directories we are installing alternatives too exist
  already
  - add debian/browser-plugin-gnash.dirs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Updater_as.hx:  ActionScript 3 "Updater" class, for Gnash.
2
 
//
3
 
// Generated by gen-as3.sh on: 20090514 by "rob". Remove this
4
 
// after any hand editing loosing changes.
5
 
//
6
 
//   Copyright (C) 2009, 2010 Free Software Foundation, Inc.
7
 
//
8
 
// This program is free software; you can redistribute it and/or modify
9
 
// it under the terms of the GNU General Public License as published by
10
 
// the Free Software Foundation; either version 3 of the License, or
11
 
// (at your option) any later version.
12
 
//
13
 
// This program is distributed in the hope that it will be useful,
14
 
// but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
// GNU General Public License for more details.
17
 
//
18
 
// You should have received a copy of the GNU General Public License
19
 
// along with this program; if not, write to the Free Software
20
 
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21
 
//
22
 
 
23
 
// This test case must be processed by CPP before compiling to include the
24
 
//  DejaGnu.hx header file for the testing framework support.
25
 
 
26
 
#if flash9
27
 
import flash.desktop.Updater;
28
 
import flash.display.MovieClip;
29
 
#else
30
 
import flash.Updater;
31
 
import flash.MovieClip;
32
 
#end
33
 
import flash.Lib;
34
 
import Type;
35
 
 
36
 
// import our testing API
37
 
import DejaGnu;
38
 
 
39
 
// Class must be named with the _as suffix, as that's the same name as the file.
40
 
class Updater_as {
41
 
    static function main() {
42
 
        var x1:Updater = new Updater();
43
 
 
44
 
        // Make sure we actually get a valid class        
45
 
        if (x1 != null) {
46
 
            DejaGnu.pass("Updater class exists");
47
 
        } else {
48
 
            DejaGnu.fail("Updater lass doesn't exist");
49
 
        }
50
 
 
51
 
// Tests to see if all the methods exist. All these do is test for
52
 
// existance of a method, and don't test the functionality at all. This
53
 
// is primarily useful only to test completeness of the API implementation.
54
 
 
55
 
        // Call this after finishing all tests. It prints out the totals.
56
 
        DejaGnu.done();
57
 
    }
58
 
}
59
 
 
60
 
// local Variables:
61
 
// mode: C++
62
 
// indent-tabs-mode: t
63
 
// End:
64