| Index: LayoutTests/inspector/console/console-format-collections.html
|
| diff --git a/LayoutTests/inspector/console/console-format-collections.html b/LayoutTests/inspector/console/console-format-collections.html
|
| index c354939072bf1c75c0576604d897dbdd5f16c074..07696e8d01ce101edc7bcc68de500b7146d6a1ac 100644
|
| --- a/LayoutTests/inspector/console/console-format-collections.html
|
| +++ b/LayoutTests/inspector/console/console-format-collections.html
|
| @@ -53,6 +53,17 @@ function logToConsole()
|
| // DOMTokenList
|
| var div = document.getElementsByTagName("div")[0];
|
| console.log(div.classList);
|
| +
|
| + // Array-like's.
|
| + console.log(new ArrayLike(5));
|
| + console.log(new ArrayLike(0xFFFFFFFF));
|
| + // Array-like's with wrong length.
|
| + console.log(new ArrayLike(-5));
|
| + console.log(new ArrayLike(5.6));
|
| + console.log(new ArrayLike(NaN));
|
| + console.log(new ArrayLike(Infinity));
|
| + console.log(new ArrayLike(-0));
|
| + console.log(new ArrayLike(0xFFFFFFFF + 1));
|
| }
|
|
|
| function onload()
|
| @@ -72,6 +83,12 @@ NonArrayWithLength.prototype.__defineGetter__("length", function()
|
| return this.keys.length;
|
| });
|
|
|
| +function ArrayLike(length)
|
| +{
|
| + this.length = length;
|
| +}
|
| +ArrayLike.prototype.splice = function() {};
|
| +
|
| function test()
|
| {
|
| InspectorTest.evaluateInPage("logToConsole()", callback);
|
|
|