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

Unified Diff: third_party/WebKit/LayoutTests/inspector/console/console-log-object-with-getter.html

Issue 2521513006: DevTools: allow array previews to show static array getters (Closed)
Patch Set: Rebaseline Created 4 years 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 | third_party/WebKit/LayoutTests/inspector/console/console-log-object-with-getter-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/console/console-log-object-with-getter.html
diff --git a/third_party/WebKit/LayoutTests/inspector/console/console-log-object-with-getter.html b/third_party/WebKit/LayoutTests/inspector/console/console-log-object-with-getter.html
index e3f59222d508a646b5c2c9af2d218a76c407c321..4bc6d32f2efb3c02b6242f59debb1cc2cb707e6e 100644
--- a/third_party/WebKit/LayoutTests/inspector/console/console-log-object-with-getter.html
+++ b/third_party/WebKit/LayoutTests/inspector/console/console-log-object-with-getter.html
@@ -6,9 +6,14 @@
var obj = {}
Object.defineProperty(obj, 'foo', {enumerable: true, get: function() { return {a:1,b:2}; }});
Object.defineProperty(obj, 'bar', {enumerable: false, set: function(x) { this.baz = x; }});
+
+var arr = [];
+Object.defineProperty(arr, 0, {enumerable: true, get: function() { return 1; }});
+Object.defineProperty(arr, 1, {enumerable: false, set: function(x) { this.baz = x; }});
function logObject()
{
console.log(obj);
+ console.log(arr);
}
function test()
@@ -16,14 +21,19 @@ function test()
InspectorTest.evaluateInPage("logObject()", step2);
function step2()
{
- InspectorTest.expandConsoleMessages(step3);
+ InspectorTest.dumpConsoleMessages();
+ step3();
}
function step3()
{
- InspectorTest.expandGettersInConsoleMessages(step4);
+ InspectorTest.expandConsoleMessages(step4);
}
function step4()
{
+ InspectorTest.expandGettersInConsoleMessages(step5);
+ }
+ function step5()
+ {
InspectorTest.dumpConsoleMessages();
InspectorTest.completeTest();
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-log-object-with-getter-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698