~ubuntu-branches/ubuntu/precise/stellarium/precise

« back to all changes in this revision

Viewing changes to scripts/tests/exit_test.ssc

  • Committer: Bazaar Package Importer
  • Author(s): Scott Howard
  • Date: 2010-02-15 20:48:39 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20100215204839-u3qgbv60rho997yk
Tags: 0.10.3-0ubuntu1
* New upstream release.
  - fixes intel rendering bug (LP: #480553)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
// Name: Timer Test
 
3
// License: Public Domain
 
4
// Author: Matthew Gates
 
5
// Description: For testing script rates.
 
6
//
 
7
 
 
8
include("status_label.inc");
 
9
useStatusLabel("Exit test (going to exit at 5): ", 50, 50, 16, "#ff0000");
 
10
var counter = 0;
 
11
while(1)
 
12
{
 
13
        status(counter++);
 
14
        if (counter>5)
 
15
        {
 
16
                LabelMgr.deleteAllLabels();
 
17
                core.exit();
 
18
        }
 
19
        core.wait(1);
 
20
}
 
21