2014-07-14 07:15:05 +02:00
|
|
|
// Copyright (c) 2014 Hank Yates. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
2014-07-18 09:15:07 +02:00
|
|
|
/**
|
2014-07-14 07:15:05 +02:00
|
|
|
* @description Testing Array.from when passed an Object is passed
|
|
|
|
* @author Hank Yates (hankyates@gmail.com)
|
|
|
|
*/
|
|
|
|
|
|
|
|
runTestCase(function () {
|
|
|
|
var testArr = Array.from({
|
|
|
|
'a': 1,
|
|
|
|
'b': '2',
|
|
|
|
'c': 'three',
|
|
|
|
'length': '3'
|
|
|
|
});
|
|
|
|
|
|
|
|
if (testArr.length != 3) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
});
|