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

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

Issue 197073004: DevTools: Fix wrong is-array-like detection when logging in console. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/inspector/console/console-format-collections.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e50f80776d9db7d81888240fee7d82640cc1ff95 100644
--- a/LayoutTests/inspector/console/console-format.html
+++ b/LayoutTests/inspector/console/console-format.html
@@ -52,11 +52,14 @@ function onload()
});
var negZero = 1 / Number.NEGATIVE_INFINITY;
+ var arrayLikeFunction = function() {};
+ arrayLikeFunction.splice = function() {};
+
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
+ objectWithNonEnumerables, negZero, Object.create(null), Object, Object.prototype, arrayLikeFunction
];
runTest();
« no previous file with comments | « no previous file | LayoutTests/inspector/console/console-format-collections.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698