PageRenderTime 81ms CodeModel.GetById 60ms app.highlight 2ms RepoModel.GetById 18ms app.codeStats 0ms

/pyjs/tests/test032.js

http://pyjamas.googlecode.com/
JavaScript | 18 lines | 14 code | 4 blank | 0 comment | 1 complexity | f4f746f0dcab2d43646dc5c97cb50712 MD5 | raw file
 1function i(x) {
 2    return x;
 3}
 4
 5
 6function test_builtins() {
 7    var x = new pyjslib_List([]);
 8    var y = pyjslib_isFunction(x);
 9    var z = pyjslib_map(i, x);
10    pyjslib_filter(callable, z);
11    pyjslib_dir(x);
12    if (pyjslib_hasattr(x, "foo")) {
13    var foo = pyjslib_getattr(x, "foo");
14    }
15}
16
17
18    test_builtins();