bcfa3a0bd12f8479f654fff09ccfcdca488f9005
[platform/framework/web/crosswalk-tizen.git] /
1 'use strict';
2
3 module.exports = {
4         __generic: function (t, a) {
5                 a.deep(t.call(this, this), []);
6         },
7         "": function (t, a) {
8                 var x = {}, y = {};
9
10                 a.deep(t.call([1, 'raz', x, 2, 'trzy', y], [x, 2, 'trzy']), [1, 'raz', y],
11                         "Scope longer");
12                 a.deep(t.call([1, 'raz', x], [x, 2, 'trzy', 1, y]), ['raz'],
13                         "Arg longer");
14                 a.deep(t.call([1, 'raz', x], []), [1, 'raz', x], "Empty arg");
15                 a.deep(t.call([], [1, y, 'sdfs']), [], "Empty scope");
16         }
17 };