mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-07 08:32:18 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
5
web/node_modules/es5-ext/test/array/#/copy-within/implement.js
generated
vendored
Normal file
5
web/node_modules/es5-ext/test/array/#/copy-within/implement.js
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
"use strict";
|
||||
|
||||
var isImplemented = require("../../../../array/#/copy-within/is-implemented");
|
||||
|
||||
module.exports = function (a) { a(isImplemented(), true); };
|
3
web/node_modules/es5-ext/test/array/#/copy-within/index.js
generated
vendored
Normal file
3
web/node_modules/es5-ext/test/array/#/copy-within/index.js
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
"use strict";
|
||||
|
||||
module.exports = require("./shim");
|
3
web/node_modules/es5-ext/test/array/#/copy-within/is-implemented.js
generated
vendored
Normal file
3
web/node_modules/es5-ext/test/array/#/copy-within/is-implemented.js
generated
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
"use strict";
|
||||
|
||||
module.exports = function (t, a) { a(typeof t(), "boolean"); };
|
29
web/node_modules/es5-ext/test/array/#/copy-within/shim.js
generated
vendored
Normal file
29
web/node_modules/es5-ext/test/array/#/copy-within/shim.js
generated
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
"use strict";
|
||||
|
||||
module.exports = function (t, a) {
|
||||
var args, x;
|
||||
|
||||
a.h1("2 args");
|
||||
x = [1, 2, 3, 4, 5];
|
||||
t.call(x, 0, 3);
|
||||
a.deep(x, [4, 5, 3, 4, 5]);
|
||||
a.deep(t.call([1, 2, 3, 4, 5], 1, 3), [1, 4, 5, 4, 5]);
|
||||
a.deep(t.call([1, 2, 3, 4, 5], 1, 2), [1, 3, 4, 5, 5]);
|
||||
a.deep(t.call([1, 2, 3, 4, 5], 2, 2), [1, 2, 3, 4, 5]);
|
||||
|
||||
a.h1("3 args");
|
||||
a.deep(t.call([1, 2, 3, 4, 5], 0, 3, 4), [4, 2, 3, 4, 5]);
|
||||
a.deep(t.call([1, 2, 3, 4, 5], 1, 3, 4), [1, 4, 3, 4, 5]);
|
||||
a.deep(t.call([1, 2, 3, 4, 5], 1, 2, 4), [1, 3, 4, 4, 5]);
|
||||
|
||||
a.h1("Negative args");
|
||||
a.deep(t.call([1, 2, 3, 4, 5], 0, -2), [4, 5, 3, 4, 5]);
|
||||
a.deep(t.call([1, 2, 3, 4, 5], 0, -2, -1), [4, 2, 3, 4, 5]);
|
||||
a.deep(t.call([1, 2, 3, 4, 5], -4, -3, -2), [1, 3, 3, 4, 5]);
|
||||
a.deep(t.call([1, 2, 3, 4, 5], -4, -3, -1), [1, 3, 4, 4, 5]);
|
||||
a.deep(t.call([1, 2, 3, 4, 5], -4, -3), [1, 3, 4, 5, 5]);
|
||||
|
||||
a.h1("Array-likes");
|
||||
args = { 0: 1, 1: 2, 2: 3, length: 3 };
|
||||
a.deep(t.call(args, -2, 0), { 0: 1, 1: 1, 2: 2, length: 3 });
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue