Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: LayoutTests/inspector/console/console-format.html

Issue 143263003: DevTools: Fix console.log for arrays in some corner cases. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector/console/console-format.html
diff --git a/LayoutTests/inspector/console/console-format.html b/LayoutTests/inspector/console/console-format.html
index 4357ec257cd5b510d8a6f5fd03a118eefc2858f3..a8a7eee8bcda61920901e2d18530c069188692e6 100644
--- a/LayoutTests/inspector/console/console-format.html
+++ b/LayoutTests/inspector/console/console-format.html
@@ -52,11 +52,15 @@ function onload()
});
var negZero = 1 / Number.NEGATIVE_INFINITY;
+ var arrayWithNonIndexOverflow = [1,2,3,4];
+ for (var i = 0; i < 6; ++i)
+ arrayWithNonIndexOverflow["index" + i] = i;
+
globals = [
regex1, regex2, str, str2, error, errorWithMessage, node, func, multilinefunc, num, linkify,
null, undefined, valuelessAttribute, valuedAttribute, existingAttribute, throwingLengthGetter,
- NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, array, {}, [function() {}], bar, svg,
- objectWithNonEnumerables, negZero, Object.create(null), Object, Object.prototype
+ NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, array, arrayWithNonIndexOverflow, {},
+ [function() {}], bar, svg, objectWithNonEnumerables, negZero, Object.create(null), Object, Object.prototype
];
runTest();
@@ -81,7 +85,9 @@ function test()
function finish()
{
- InspectorTest.dumpConsoleMessages();
+ var text = InspectorTest.textContentWithLineBreaks(WebInspector.consoleView.topGroup.element);
+ text = text.replace(/\bVM\d+/g, "VM");
+ InspectorTest.addResult(text);
InspectorTest.completeTest();
}
« no previous file with comments | « LayoutTests/http/tests/inspector/inspector-test.js ('k') | LayoutTests/inspector/console/console-format-array-prototype.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698