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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/ConsoleModel.js

Issue 2522613003: DevTools: respect isUnderTest conditions in the browser tests. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 this._messages = []; 43 this._messages = [];
44 /** @type {!Map<number, !SDK.ConsoleMessage>} */ 44 /** @type {!Map<number, !SDK.ConsoleMessage>} */
45 this._messageByExceptionId = new Map(); 45 this._messageByExceptionId = new Map();
46 this._warnings = 0; 46 this._warnings = 0;
47 this._errors = 0; 47 this._errors = 0;
48 this._revokedErrors = 0; 48 this._revokedErrors = 0;
49 this._logAgent = logAgent; 49 this._logAgent = logAgent;
50 if (this._logAgent) { 50 if (this._logAgent) {
51 target.registerLogDispatcher(new SDK.LogDispatcher(this)); 51 target.registerLogDispatcher(new SDK.LogDispatcher(this));
52 this._logAgent.enable(); 52 this._logAgent.enable();
53 if (!InspectorFrontendHost.isUnderTest()) { 53 if (!Host.isUnderTest()) {
54 this._logAgent.startViolationsReport([ 54 this._logAgent.startViolationsReport([
55 {name: 'longTask', threshold: 200}, {name: 'longLayout', threshold: 30 }, 55 {name: 'longTask', threshold: 200}, {name: 'longLayout', threshold: 30 },
56 {name: 'blockedEvent', threshold: 100}, {name: 'blockedParser', thresh old: -1}, 56 {name: 'blockedEvent', threshold: 100}, {name: 'blockedParser', thresh old: -1},
57 {name: 'handler', threshold: 150}, {name: 'recurringHandler', threshol d: 50} 57 {name: 'handler', threshold: 150}, {name: 'recurringHandler', threshol d: 50}
58 ]); 58 ]);
59 } 59 }
60 } 60 }
61 } 61 }
62 62
63 /** 63 /**
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 */ 636 */
637 _commandEvaluated(event) { 637 _commandEvaluated(event) {
638 this.dispatchEventToListeners(SDK.ConsoleModel.Events.CommandEvaluated, even t.data); 638 this.dispatchEventToListeners(SDK.ConsoleModel.Events.CommandEvaluated, even t.data);
639 } 639 }
640 }; 640 };
641 641
642 /** 642 /**
643 * @type {!SDK.MultitargetConsoleModel} 643 * @type {!SDK.MultitargetConsoleModel}
644 */ 644 */
645 SDK.multitargetConsoleModel; 645 SDK.multitargetConsoleModel;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698