| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 isGroupMessage: function() | 251 isGroupMessage: function() |
| 252 { | 252 { |
| 253 return this.type === WebInspector.ConsoleMessage.MessageType.StartGroup
|| | 253 return this.type === WebInspector.ConsoleMessage.MessageType.StartGroup
|| |
| 254 this.type === WebInspector.ConsoleMessage.MessageType.StartGroupColl
apsed || | 254 this.type === WebInspector.ConsoleMessage.MessageType.StartGroupColl
apsed || |
| 255 this.type === WebInspector.ConsoleMessage.MessageType.EndGroup; | 255 this.type === WebInspector.ConsoleMessage.MessageType.EndGroup; |
| 256 }, | 256 }, |
| 257 | 257 |
| 258 /** | 258 /** |
| 259 * @return {boolean} | 259 * @return {boolean} |
| 260 */ | 260 */ |
| 261 isGroupStartMessage: function() |
| 262 { |
| 263 return this.type === WebInspector.ConsoleMessage.MessageType.StartGroup
|| |
| 264 this.type === WebInspector.ConsoleMessage.MessageType.StartGroupColl
apsed; |
| 265 }, |
| 266 |
| 267 /** |
| 268 * @return {boolean} |
| 269 */ |
| 261 isErrorOrWarning: function() | 270 isErrorOrWarning: function() |
| 262 { | 271 { |
| 263 return (this.level === WebInspector.ConsoleMessage.MessageLevel.Warning
|| this.level === WebInspector.ConsoleMessage.MessageLevel.Error); | 272 return (this.level === WebInspector.ConsoleMessage.MessageLevel.Warning
|| this.level === WebInspector.ConsoleMessage.MessageLevel.Error); |
| 264 }, | 273 }, |
| 265 | 274 |
| 266 /** | 275 /** |
| 267 * @return {!WebInspector.ConsoleMessage} | 276 * @return {!WebInspector.ConsoleMessage} |
| 268 */ | 277 */ |
| 269 clone: function() | 278 clone: function() |
| 270 { | 279 { |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 { | 445 { |
| 437 if (!WebInspector.settings.preserveConsoleLog.get()) | 446 if (!WebInspector.settings.preserveConsoleLog.get()) |
| 438 this._console.clearMessages(); | 447 this._console.clearMessages(); |
| 439 } | 448 } |
| 440 } | 449 } |
| 441 | 450 |
| 442 /** | 451 /** |
| 443 * @type {!WebInspector.ConsoleModel} | 452 * @type {!WebInspector.ConsoleModel} |
| 444 */ | 453 */ |
| 445 WebInspector.console; | 454 WebInspector.console; |
| OLD | NEW |