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

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

Issue 2769973004: DevTools: format generator objects as objects (Closed)
Patch Set: fix test result Created 3 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 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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 var element; 468 var element;
469 switch (type) { 469 switch (type) {
470 case 'array': 470 case 'array':
471 case 'typedarray': 471 case 'typedarray':
472 element = this._formatParameterAsObject(output, includePreview); 472 element = this._formatParameterAsObject(output, includePreview);
473 break; 473 break;
474 case 'error': 474 case 'error':
475 element = this._formatParameterAsError(output); 475 element = this._formatParameterAsError(output);
476 break; 476 break;
477 case 'function': 477 case 'function':
478 case 'generator':
479 element = this._formatParameterAsFunction(output, includePreview); 478 element = this._formatParameterAsFunction(output, includePreview);
480 break; 479 break;
480 case 'generator':
481 case 'iterator': 481 case 'iterator':
482 case 'map': 482 case 'map':
483 case 'object': 483 case 'object':
484 case 'promise': 484 case 'promise':
485 case 'proxy': 485 case 'proxy':
486 case 'set': 486 case 'set':
487 case 'weakmap': 487 case 'weakmap':
488 case 'weakset': 488 case 'weakset':
489 element = this._formatParameterAsObject(output, includePreview); 489 element = this._formatParameterAsObject(output, includePreview);
490 break; 490 break;
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 toMessageElement() { 1248 toMessageElement() {
1249 if (!this._element) { 1249 if (!this._element) {
1250 super.toMessageElement(); 1250 super.toMessageElement();
1251 this._expandGroupIcon = UI.Icon.create('', 'expand-group-icon'); 1251 this._expandGroupIcon = UI.Icon.create('', 'expand-group-icon');
1252 this._contentElement.insertBefore(this._expandGroupIcon, this._contentElem ent.firstChild); 1252 this._contentElement.insertBefore(this._expandGroupIcon, this._contentElem ent.firstChild);
1253 this.setCollapsed(this._collapsed); 1253 this.setCollapsed(this._collapsed);
1254 } 1254 }
1255 return this._element; 1255 return this._element;
1256 } 1256 }
1257 }; 1257 };
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