~vos-team/vos/scripting

« back to all changes in this revision

Viewing changes to libs/vos/scripting/tests/simple/v_object_basics.js

  • Committer: Lalo Martins
  • Date: 2006-08-25 04:54:46 UTC
  • Revision ID: lalo@laranja.org-20060825045446-13133058c1efdb0e
absolute beginning of js-vobject wrapper

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// run with ../../js-tester-simple
 
2
 
 
3
function run() {
 
4
    print('test script called!');
 
5
    print('my arguments:', arguments);
 
6
    try {
 
7
        print('site:', site);
 
8
    } catch(e) {
 
9
        return 'site is missing!';
 
10
    }
 
11
    if(site.valid)
 
12
        print('site is valid');
 
13
    else if(site.valid === undefined)
 
14
        return("site doesn't know if it's valid!");
 
15
    else
 
16
        return('site is not valid!  This should never happen');
 
17
}
 
18
 
 
19
err = run();
 
20
if(err) print(err);
 
21
print('done')
 
 
b'\\ No newline at end of file'