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