e8b5c39849097f19e6f5ca008383d469b4f36b3a
[platform/framework/web/crosswalk-tizen.git] /
1 'use strict';
2
3 var SubArray = require('../../../../array/_sub-array-dummy-safe');
4
5 module.exports = function (t, a) {
6         var arr, x = {}, subArr, result;
7
8         arr = ['foo', undefined, 0, '2d', false, x, null];
9
10         a.deep(t.call(arr, Boolean), ['foo', '2d', x], "Plain array");
11
12         subArr = new SubArray('foo', undefined, 0, '2d', false, x, null);
13
14         result = t.call(subArr, Boolean);
15         a(result instanceof SubArray, true, "Instance of subclass");
16         a.deep(result, ['foo', '2d', x], "Result of subclass");
17 };