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

Unified Diff: LayoutTests/inspector/console/console-format-collections.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
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 964b43f98db96b1a2d4b685ab180a4fa1abdb2d8..c354939072bf1c75c0576604d897dbdd5f16c074 100644
--- a/LayoutTests/inspector/console/console-format-collections.html
+++ b/LayoutTests/inspector/console/console-format-collections.html
@@ -49,6 +49,10 @@ function logToConsole()
return arguments;
}
console.log(generateArguments(1, "2"));
+
+ // DOMTokenList
+ var div = document.getElementsByTagName("div")[0];
+ console.log(div.classList);
}
function onload()
@@ -59,12 +63,12 @@ function onload()
function NonArrayWithLength()
{
- this.keys=[];
+ this.keys = [];
}
NonArrayWithLength.prototype.__defineGetter__("length", function()
{
- console.log(".length should not be called");
+ console.log("FAIL: 'length' should not be called");
return this.keys.length;
});
@@ -83,9 +87,9 @@ function test()
<body onload="onload()">
<p>
-Tests that console nicely formats HTML Collections and NodeLists.
+Tests that console nicely formats HTML Collections, NodeLists and DOMTokenLists.
</p>
-<div style="display:none">
+<div style="display:none" class="c1 c2 c3">
<form id="f">
<select id="sel" name="sel">
<option value="1">one</option>

Powered by Google App Engine
This is Rietveld 408576698