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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js

Issue 2779703002: DevTools: format generator objects as objects (Closed)
Patch Set: Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/console/console-format-es6-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 var element; 467 var element;
468 switch (type) { 468 switch (type) {
469 case 'array': 469 case 'array':
470 case 'typedarray': 470 case 'typedarray':
471 element = this._formatParameterAsObject(output, includePreview); 471 element = this._formatParameterAsObject(output, includePreview);
472 break; 472 break;
473 case 'error': 473 case 'error':
474 element = this._formatParameterAsError(output); 474 element = this._formatParameterAsError(output);
475 break; 475 break;
476 case 'function': 476 case 'function':
477 case 'generator':
478 element = this._formatParameterAsFunction(output, includePreview); 477 element = this._formatParameterAsFunction(output, includePreview);
479 break; 478 break;
479 case 'generator':
480 case 'iterator': 480 case 'iterator':
481 case 'map': 481 case 'map':
482 case 'object': 482 case 'object':
483 case 'promise': 483 case 'promise':
484 case 'proxy': 484 case 'proxy':
485 case 'set': 485 case 'set':
486 element = this._formatParameterAsObject(output, includePreview); 486 element = this._formatParameterAsObject(output, includePreview);
487 break; 487 break;
488 case 'node': 488 case 'node':
489 element = this._formatParameterAsNode(output); 489 element = this._formatParameterAsNode(output);
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
1247 toMessageElement() { 1247 toMessageElement() {
1248 if (!this._element) { 1248 if (!this._element) {
1249 super.toMessageElement(); 1249 super.toMessageElement();
1250 this._expandGroupIcon = UI.Icon.create('', 'expand-group-icon'); 1250 this._expandGroupIcon = UI.Icon.create('', 'expand-group-icon');
1251 this._contentElement.insertBefore(this._expandGroupIcon, this._contentElem ent.firstChild); 1251 this._contentElement.insertBefore(this._expandGroupIcon, this._contentElem ent.firstChild);
1252 this.setCollapsed(this._collapsed); 1252 this.setCollapsed(this._collapsed);
1253 } 1253 }
1254 return this._element; 1254 return this._element;
1255 } 1255 }
1256 }; 1256 };
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/inspector/console/console-format-es6-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698